Alloppatalle
Landlubber
I am trying to see if it is possible to change the ships cabins in a game that is already started (from a first preliminary test, I managed to change them in a new game).
Looking through the code, cabins are assigned to ships in Ships_init.c, and all the properties of these cabins are in boarding.c (there are actually 2 copies of this file, but from my tests only editing the one in "Locations\init" worked).
Now, what I have done using console.c, is:
But this wasn’t enough, because the cabin of my ship didn’t change. I finally managed to change it regenerating my ship with pchar.Ship.Type = GenerateShip(SHIP_Name, true); in console.c.
I am not a programmer, and I have no knowledge of Storm Engine coding, so I’d like to know if it safe to change cabins like this.
And what happens to other ships of the same type? I regenerated the ship only for the main character, right (the pchar in the code)? So the others generated before the ships reinit still have the old cabins?
Looking through the code, cabins are assigned to ships in Ships_init.c, and all the properties of these cabins are in boarding.c (there are actually 2 copies of this file, but from my tests only editing the one in "Locations\init" worked).
Now, what I have done using console.c, is:
- Reinit ships
- Reinit boarding locations
But this wasn’t enough, because the cabin of my ship didn’t change. I finally managed to change it regenerating my ship with pchar.Ship.Type = GenerateShip(SHIP_Name, true); in console.c.
I am not a programmer, and I have no knowledge of Storm Engine coding, so I’d like to know if it safe to change cabins like this.
And what happens to other ships of the same type? I regenerated the ship only for the main character, right (the pchar in the code)? So the others generated before the ships reinit still have the old cabins?