[boskid][2.0.12] defines.space_platform_state is missing the define for number 7
Posted: Tue Oct 29, 2024 9:20 am
Hey,
after playing around with platforms, I noticed that one number you get from the event defines.events.on_space_platform_changed_state is missing its define counterpart.
Reproduce:
Luzifer
after playing around with platforms, I noticed that one number you get from the event defines.events.on_space_platform_changed_state is missing its define counterpart.
Reproduce:
- Make a new savegame, I used the small testing envoirment + cheat mode
- Use the command:
Code: Select all
/c script.on_event(defines.events.on_space_platform_changed_state, function(event) local stateTable = { "Waiting for starter pack", "Starter pack on the way", "On the path", "Waiting for depature", "No schedule", "No path", "Waiting at station", "???", "Starter pack requested" } game.print("New State: " .. stateTable[event.platform.state + 1]) game.print("Old State: " .. stateTable[event.old_state + 1]) end)
- Create a new space platform
- Look at the chat:
- Other option is to use:
Code: Select all
/c game.print(game.players[1].force.platforms[1].state)
Luzifer