Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - The Martian

Pages: 1 2 [3] 4 5 ... 10
31
OpenXcom Extended Version: 7.5.7 (v2022-03-07)

I've noticed that if I add maxRange: to a weapon and give it to an enemy unit they just stop moving when they come into sight range of an X-Com unit instead of closing the distance and firing.

Here is an example mod that makes all the alien weapons have a setting of maxRange: 9.
Test_maxRange.zip

Code: [Select]
items:

  - type: STR_SONIC_CANNON
    maxRange: 9

  - type: STR_SONIC_BLASTA_RIFLE
    maxRange: 9

  - type: STR_SONIC_PISTOL
    maxRange: 9

  - type: STR_DISRUPTOR_PULSE_LAUNCHER
    maxRange: 9

  - type: STR_THERMAL_SHOK_LAUNCHER
    maxRange: 9


This unit can see X-Com soldiers, and hasn't moved for 3 turns:
Spoiler:

There are other alien units in similar frozen states as well at the time of the screenshot which is where the
"Attack type=12 target=(24,18,0) weapon=STR_DISRUPTOR_PULSE_LAU..." debug message is most likely coming from.

Here is an even better example, If I reduce the maxRange: to 1 this unit is stuck in place and I can walk soldiers right up to it and it never tries to move forward:
Spoiler:

32
I noticed that if I try to make a unit leave no corpse by giving the corpse item a blank image for the FloorOb image it kind of works in that it can no longer be seen, but any other items on that tile are hidden behind the invisible corpse FloorOb.

Example, the cursor is over a corpse item FloorOb that is covering a stack of items:
Spoiler:

Example invisible corpse images for BigOb, FloorOb, HandOb:
Spoiler:




Is there a way that units can be setup to drop no corpse item on death?

33
In TFTD when using an incindiary weapon fire extinguishes when a turn passes if it is burning on the most commonly found tile on the ocean floor, but it will stay burning on most other tiles.

My guess is this is related to that map tile's configuration and not the weapon itself.

Is it possible to alter these tiles from a .rul file so that incindiary keeps burning, or is there another factor putting the fire out?



Gas Cannon fires an incindiary round:
Spoiler:

The next turn it is gone:
Spoiler:

34
Help / New alien race not spawning in UFOs when expected
« on: March 26, 2022, 01:04:14 am »
[OXCE Version: 7.5.7 (v2022-03-07)]

While learning the UFO controlling sections of OpenXcom's .rul files I've been trying to create a new alien race and have been using KiethSomataw99's Murmillo faction suggestion as a template. (The TFTD palette's limited amount of red can be a real pain at times.)

I have encountered a problem that I can't seem to get past, changing the code doesn't seem to produce any effect which makes me think that there is another option to control the race appearance rate that I need to configure or that my code incorrect.

The new units do work in "New Battle" mode from the main menu, however when I adjust the encounter rates in alienMissions: there seems to be almost no effect.

Even at 100% with all other races at 0% I still encounter just Aquatoids & Gillmen with the new race strangely absent.

At first I thought it wasn't working at all but after running a few missions with all races at 0% and the new race at 100% the new race spawned once... then back to Aquatoids & Gillmen for the next missions:

They spawned once (I haven't been able to get it to repeat since then) so 'something' was slightly working, just not as expected.

I'm attaching two .zip files to this post. One with the alienMissions: configured to 100% new faction encounter rate the other to a more balanced encounter rate, both seem produce the same results:
Test-New-Faction V0-1.zip (100% chance version)
Test-New-Faction V0-1.zip (Balanced chance of all races version)

35
OXCE Support Y-scripts / [Solved] Scripting 'isFuseEnabled'
« on: February 23, 2022, 05:52:11 pm »
I see that BattleItem.isFuseEnabled in the 'newTurnItem' section of the verbose openxcom.log allows for checking if the fuse is already active on an item, which sounds pretty useful.


I'm not sure how to define the Args it requires, could someone please post an example of the phrasing?
Code: [Select]
Name: BattleItem.isFuseEnabled                Args: [ptr BattleItem] [var int]                        Desc: check if fuse is triggered (like throw or proxy unit)
I was thinking that newTurnItem cycled through all items during a new turn and ran any scripts off each item, so the code in new_TurnItem: is phrased with the current item in the sequence as the subject of what the script is reading/writing, but then what is the var int that isFuseEnabled needs? I was expecting it to return a value not take one so I'm most likely not understanding this correctly.

What I'm trying for is something like this, if the grenade's fuse is not active run the code: (I know this code is incorrect, but I'm hoping it will show what I mean to accomplish.)
Code: [Select]
  scripts:
    newTurnItem:
      - offset: 52
        code: |
          if Battle_Item.isFuseEnabled STR_EXAMPLE_GRENADE = false;
            <CODE>
          end;




Additional question:
Am I correct in that all BattleItem, BattleGame, etc found in the openxcom.log file are phrased as Battle_Item and Battle_Game with an underscore dividing them when used in a .rul file's code for scripting?

36
Open Feedback / Does anyone use Small Torpedo/Rockets?
« on: February 08, 2022, 12:37:33 pm »
I'm curious, does anyone use the Small Torpedo/Rockets in either X-COM: Terror From The Deep or X-COM: UFO Defense?

Personally when I'm going to use HE to take down threat like a Chryssalid I can't figure out the reason to be equipped with the lower damage versions.


37
Released Mods / [OXCE][TFTD][ARMOR] Ride Armor
« on: February 07, 2022, 02:25:01 pm »
[OpenXcom Extended version 7.5.3 or newer is required to use version 1-0 of this mod] (Get OXCE 'HERE')
[OpenXcom Extended version 7.5.7 or newer is required to use version 1-1 of this mod] (Get OXCE 7.5.7 (Preview Build) 'HERE')

This mod adds a new armor to the game called "Ride Armor".


Once acquired it can be used to achieve superior mobility during surface missions.

Grab an alien surfboard and paradoxically take the fight on land!

Changelog:
V1-1
- Ride Armor no longer depletes a unit's stamina when it moves.
- OXCE version 7.5.7 or later is now required to run this mod.


Additional Credits:
. "Animated Armor" script by Yankes.
. Parts of the armor's sprite set was created from fragments of images made available by Bladum.

Download:
Ride Armor (TFTD) V1-0.zip
Ride Armor (TFTD) V1-1.zip

38
OXCE Suggestions DONE / [DONE] Armor that doesn't use energy when walking
« on: January 27, 2022, 05:34:07 pm »
I'm trying to create an armor that does not decrease a soldier's energy when it walks.

A unit's armor can be set to recover their entire energy the next turn using armors: recovery.energy but I need the amount of energy on the unit to hold at whatever its current energy value is when the unit steps between tiles so that it doesn't change during the current turn when walking.


I've been through the openxcom.log with verboseLogging, but haven't spotted a scripting section for when the unit walks.

I did see selectMoveSoundUnit but I don't think that is quite right, I think that one triggers when a unit is given the order to move by clicking a tile. (If I'm wrong please let me know)


Best case would probably be to set the units current energy to its last previous value every time movement occured between tiles.

Does anyone have advice for going about this?

39
Help / What does the UC mean?
« on: January 27, 2022, 04:49:11 pm »
I see _UC at the end of the name of several craft weapons and armor in the .rul files:
STR_SONIC_OSCILLATOR_UC
STR_GAUSS_CANNON_UC
STR_PWT_CANNON_UC
STR_CRAFT_GAS_CANNON_UC
STR_MAGNETIC_ION_ARMOR_UC
STR_ION_ARMOR_UC
STR_PLASTIC_AQUA_ARMOR_UC
STR_NONE_UC


What is UC?

40
Help / Craft suddenly only has 2 weapons?
« on: January 18, 2022, 08:51:53 am »
OXCE version: OpenXcom Extended 7.2 (v2021-12-24)

I've encountered something a bit odd.

I was using this code to make the Barracuda carry 4 different weapons:

Code: [Select]
crafts:

# [=] Barracuda [=] <1st Fighter>
  - type: STR_BARRACUDA
    sprite: 3
    fuelMax: 800
    damageMax: 120
    speedMax: 2400
    accel: 3
    weapons: 2
    costRent: 600000
    forceShowInMonthlyCosts: true
    costBuy: 600000
    refuelRate: 50
    transferTime: 96
    score: 250
    maxAltitude: 3
    weapons: 4
    weaponTypes:
      - [1, 3]
      - [3]
      - [2]
      - [2]


But now it is only displaying a choice for weapon slot 1 & 2.
Spoiler:



I don't think that I've changed anything that would effect crafts since it was working so this is unexpected, what am I doing wrong?

For convenience I've attached an example mod with this code to this post:
Test Craft Mod V0-1.zip

41
Help / Recovering friendly spawned units?
« on: January 12, 2022, 01:08:27 am »
Is it possible to recover a friendly unit at the end of combat that was spawned from an item via:
Code: [Select]
items:
  - type: STR_EXAMPLE_ITEM
    spawnUnit: STR_EXAMPLE_UNIT
    spawnUnitFaction: 0

I have a remote controlled robot drone but at the moment X-Com just discards it if deployed in the field which seems silly.

42
OXCE Support / [Solved] What does the M.C. training '+' button do?
« on: December 29, 2021, 02:34:01 pm »
In the upper right corner of the Molecular Control Training screen there is a + button.

I've tried pushing it but nothing seems to change, what does it do?

Spoiler:

43
Open Feedback / Can aliens see a X-Com unit's personal light?
« on: December 29, 2021, 09:54:33 am »
I noticed that there is a key bind to toggle your soldier's personal lights on/off (Default: 'L')

And personalLight: can be configured on armors: when modding the game.


Do aliens see X-Com units better if they have their lights on or is the lighting only for the benefit of the player?

44
Help / Locking STR_SOLDIER behind research is crashing the game.
« on: December 25, 2021, 11:53:20 am »
(OXCE Version: 7.2 v2021-12-24)

I'm encountering a crash to desktop.

The crash is triggered by starting a new game from the main menu and pressing 'ok' on the difficulty selection screen while my mod is running.

The line of code that appears to be causing the problem is the following:
Code: [Select]
soldiers:
  - type: STR_SOLDIER
    requires: # <----------------------
      - DoesNotExist # <---------------

I'm getting the following error displayed in the linux terminal window I'm running OXCE from after it crashes:
"Floating point exception (core dumped)"


For some reason locking the STR_SOLDIER behind research is causing the 'Float point exception (core dumped)' error.

Is this the wrong way to prohibit the player from purchasing X-Com soldiers from the "Purchase/Recruit" menu?


The openxcom.log file doesn't appear to display any error messages:
Code: [Select]
[25-12-2021_02-40-56] [INFO] OpenXcom Version: Extended 7.2 (v2021-12-24)
[25-12-2021_02-40-56] [INFO] Platform: Linux
[25-12-2021_02-40-56] [INFO] Data folder is:
[25-12-2021_02-40-56] [INFO] Data search is:
[25-12-2021_02-40-56] [INFO] - /home/name/.local/share/openxcom/
[25-12-2021_02-40-56] [INFO] - /usr/share/mate/openxcom/
[25-12-2021_02-40-56] [INFO] - /home/name/.local/share/flatpak/exports/share/openxcom/
[25-12-2021_02-40-56] [INFO] - /var/lib/flatpak/exports/share/openxcom/
[25-12-2021_02-40-56] [INFO] - /usr/local/share/openxcom/
[25-12-2021_02-40-56] [INFO] - /usr/share/openxcom/
[25-12-2021_02-40-56] [INFO] - /usr/local/share/openxcom/
[25-12-2021_02-40-56] [INFO] - /usr/share/openxcom/
[25-12-2021_02-40-56] [INFO] - ./
[25-12-2021_02-40-56] [INFO] User folder is: ./user/
[25-12-2021_02-40-56] [INFO] Config folder is: /home/name/.config/openxcom/
[25-12-2021_02-40-56] [INFO] Options loaded successfully.
[25-12-2021_02-40-56] [INFO] SDL initialized successfully.
[25-12-2021_02-40-56] [INFO] SDL_mixer initialized successfully.
[25-12-2021_02-40-56] [INFO] Attempted locale: C.UTF-8
[25-12-2021_02-40-56] [INFO] Detected locale: C.UTF-8
[25-12-2021_02-40-56] [INFO] Attempting to set display to 1280x720x8...
[25-12-2021_02-40-56] [INFO] Display set to 1280x720x8.
[25-12-2021_02-40-56] [INFO] Loading data...
[25-12-2021_02-40-56] [INFO] Scanning standard mods in ''...
[25-12-2021_02-40-56] [INFO] Scanning user mods in './user/'...
[25-12-2021_02-40-57] [INFO] Active mods:
[25-12-2021_02-40-57] [INFO] - xcom2 v1.0
[25-12-2021_02-40-57] [INFO] - AgainTestSoldiers v0.1
[25-12-2021_02-40-58] [INFO] Loading begins...
[25-12-2021_02-40-58] [INFO] Pre-loading rulesets...
[25-12-2021_02-40-58] [INFO] Loading vanilla resources...
[25-12-2021_02-40-58] [INFO] Loading rulesets...
[25-12-2021_02-40-59] [INFO] Loading rulesets done.
[25-12-2021_02-40-59] [INFO] Loading ended.
[25-12-2021_02-40-59] [INFO] Loading fonts... Font.dat
[25-12-2021_02-40-59] [INFO] Lazy loading: 1
[25-12-2021_02-40-59] [INFO] Loading custom palettes from ruleset...
[25-12-2021_02-40-59] [INFO] Making palette backups...
[25-12-2021_02-40-59] [INFO] Data loaded successfully.
[25-12-2021_02-40-59] [INFO] Loading language...
[25-12-2021_02-40-59] [INFO] Language loaded successfully.
[25-12-2021_02-40-59] [INFO] OpenXcom started successfully!
[25-12-2021_02-40-59] [INFO] Using software scaling routine. For best results, try an OpenGL filter.
[25-12-2021_02-44-51] [INFO] SDL_mixer initialized successfully.
[25-12-2021_02-44-51] [INFO] Loading data...
[25-12-2021_02-44-51] [INFO] Scanning standard mods in ''...
[25-12-2021_02-44-51] [INFO] Scanning user mods in './user/'...
[25-12-2021_02-44-51] [INFO] Active mods:
[25-12-2021_02-44-51] [INFO] - xcom2 v1.0
[25-12-2021_02-44-52] [INFO] Loading begins...
[25-12-2021_02-44-52] [INFO] Pre-loading rulesets...
[25-12-2021_02-44-52] [INFO] Loading vanilla resources...
[25-12-2021_02-44-53] [INFO] Loading rulesets...
[25-12-2021_02-44-53] [INFO] Loading rulesets done.
[25-12-2021_02-44-53] [INFO] Loading ended.
[25-12-2021_02-44-53] [INFO] Loading fonts... Font.dat
[25-12-2021_02-44-53] [INFO] Lazy loading: 1
[25-12-2021_02-44-53] [INFO] Loading custom palettes from ruleset...
[25-12-2021_02-44-53] [INFO] Making palette backups...
[25-12-2021_02-44-53] [INFO] Data loaded successfully.
[25-12-2021_02-44-53] [INFO] Loading language...
[25-12-2021_02-44-53] [INFO] Language loaded successfully.
[25-12-2021_02-44-53] [INFO] OpenXcom started successfully!
[25-12-2021_02-47-10] [INFO] SDL_mixer initialized successfully.
[25-12-2021_02-47-10] [INFO] Loading data...
[25-12-2021_02-47-10] [INFO] Scanning standard mods in ''...
[25-12-2021_02-47-10] [INFO] Scanning user mods in './user/'...
[25-12-2021_02-47-10] [INFO] Active mods:
[25-12-2021_02-47-10] [INFO] - xcom2 v1.0
[25-12-2021_02-47-10] [INFO] - AgainTestSoldiers v0.1
[25-12-2021_02-47-12] [INFO] Loading begins...
[25-12-2021_02-47-12] [INFO] Pre-loading rulesets...
[25-12-2021_02-47-12] [INFO] Loading vanilla resources...
[25-12-2021_02-47-12] [INFO] Loading rulesets...
[25-12-2021_02-47-12] [INFO] Loading rulesets done.
[25-12-2021_02-47-12] [INFO] Loading ended.
[25-12-2021_02-47-12] [INFO] Loading fonts... Font.dat
[25-12-2021_02-47-12] [INFO] Lazy loading: 1
[25-12-2021_02-47-12] [INFO] Loading custom palettes from ruleset...
[25-12-2021_02-47-12] [INFO] Making palette backups...
[25-12-2021_02-47-12] [INFO] Data loaded successfully.
[25-12-2021_02-47-12] [INFO] Loading language...
[25-12-2021_02-47-13] [INFO] Language loaded successfully.
[25-12-2021_02-47-13] [INFO] OpenXcom started successfully!



For convenience I've attached an example mod with this code to this post:
TestMod Soldiers V0-1.zip

45
Offtopic / Merry Christmas!
« on: December 25, 2021, 11:36:43 am »
Merry Christmas!

Pages: 1 2 [3] 4 5 ... 10