CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.3k stars 4.13k forks source link

LIXA EOC's not working properly #76479

Open CoroNaut opened 1 week ago

CoroNaut commented 1 week ago

Describe the bug

(SPOILERS) (SPOILERS)

I enter the LIXA "wall of flat space" but get unfolded effect and the popup, then nothing happens. I read some of the code, is it supposed to teleport the player? This doesn't seem intended that it just gives you the unfolded effect and never goes away.

I ended up walking around outside the facility and fought a few zombies to see if anything would happen, but no. I also tried deconstructing some parts of the machine, nothing.

Attach save file

Saegertown-trimmed.tar.gz

Steps to reproduce

  1. Load save
  2. Walk into "wall of flat space"
  3. It gives "unfolded" effect, and pops up its cool message, but doesn't do anything else
  4. Walk around in the real world fighting zombies outside the facility as if you were an invader into this dimension

Expected behavior

It's supposed to work as intended (whatever intended is)

Screenshots

No response

Versions and configuration

Additional context

No response

PGR-14 commented 1 week ago

Can confirm, doesn't always work as intended.

IdleSol commented 1 week ago

If I understand correctly. The problem is that there are no coordinates for teleportation.

  1. based on this: https://github.com/CleverRaven/Cataclysm-DDA/blob/182ec6c2943b5b9b3a723d4e691688cc8d3433c5/data/json/mapgen/LIXA_mapgen.json#L1233

This assumes that the LIXA_forward_tp_1 value is assigned coordinates. Similarly for LIXA_forward_tp_2 ... LIXA_forward_tp_16. And so 7 times for each parameter. I don't know if this is correct or not.

  1. When the trap is triggered, the following should happen: https://github.com/CleverRaven/Cataclysm-DDA/blob/182ec6c2943b5b9b3a723d4e691688cc8d3433c5/data/json/effects_on_condition/nether_eocs/LIXA_EOCs_spells_traps.json#L612

If I understand it correctly, it means teleporting the character by the coordinates of the global variable LIXA_forward_tp_1.

But there is a problem. If I display the list of global variables, there is no such variable in it.

For the control check, open the debug menu and set the value of the global variable:

After that we enter the corresponding trap. The trap is triggered and the character is teleported to the specified coordinates.

In the save, trap 1 is at the top. And trap 16, respectively, is at the bottom.