Switch Problem
<i>This post was originally made by <b>skyjake</b> on the dengDevs blog. It was posted under the category: Games.</i>
I am having a problem with switches not being animated. I gather a SWITCHES lump has been added, but is it supposed to be always present? My numswitches counter remains at zero (which causes the lack of animation in the switches) because apparently no SWITCHES lump is found.
I am having a problem with switches not being animated. I gather a SWITCHES lump has been added, but is it supposed to be always present? My numswitches counter remains at zero (which causes the lack of animation in the switches) because apparently no SWITCHES lump is found.
Comments
If none are animating then there is a bug. They animate fine in Windows.
The way it works is that the there is a built-in array in GAME/p_switch.c (not in __JHEXEN__ yet), by default the switches are added from alphSwitchList as normal unless a SWITCHES lump is found; in which case it reads them from there.
Set the verbosity level to 1 should result in various messages about the SWITCHES and ANIMATED defs being posted to the console.
This functionality was implemented for BOOM support.
When fixing this remember that sList can be either a ptr to the internal array alphSwitchList or the SWITCHES lump from a PWAD.
I really must get into the habit of considering endianness In my code.