Starship Corporation
http://www.starshipcorporation.com/forum/

X - Invalid ship file for Crew Management
http://www.starshipcorporation.com/forum/viewtopic.php?f=19&t=3904
Page 1 of 1

Author:  Watsong [ Sun 2. Jun 2013, 10:12 ]
Post subject:  X - Invalid ship file for Crew Management

1. Loaded 0.1.6 for first time.
2. Played crew management using "small_cargo(lowend_production)"
3. Built my own ship. First mission, small hull.
4. Saved the ship and exported it.
5. Went to crew management to test it.
6. While loading the ship class the following error occurs:

"Corrupt Class File. Rating invalid."

___________________________________________
ERROR in
action number 1
of Alarm Event for alarm 3
for object obj_missionsmenu_ui:

In script class_load:
Error in code at line 239:
for (i = 1; i < rooms_count+1; i += 1)
^
at position 18: Unknown variable rooms_count


Ship file attached. Nothing special about its construction. Used two power grids (one for each floor). No attempt was made to unlock blueprints.

EDIT: I loaded the ship file in the design screen and exported it again as a different name (Small Cargoship Contract 2). For some reason, it now works without problems! I attach this file also, so that they can be compared. No idea what went wrong with my first ship export.

Attachments:
Small Cargoship Contract 2.zip [5 KiB]
Downloaded 402 times
Small Cargoship Contract.zip [12.61 KiB]
Downloaded 350 times

Author:  Watsong [ Sun 2. Jun 2013, 19:04 ]
Post subject:  Re: Invalid ship file for Crew Management

It happened again. With the second ship that I designed. This one was for the Sol Line Cruiser contract. Exporting the ship again didn't work this time.

___________________________________________
ERROR in
action number 1
of Alarm Event for alarm 3
for object obj_missionsmenu_ui:

In script class_load:
Error in code at line 239:
for (i = 1; i < rooms_count+1; i += 1)
^
at position 18: Unknown variable rooms_count

Attachments:
Sol Line Cruiser Contract.zip [52.13 KiB]
Downloaded 391 times

Author:  Watsong [ Thu 6. Jun 2013, 16:08 ]
Post subject:  Re: Invalid ship file for Crew Management

Testing Observation
1. Loaded the game.
2. Went to ship design and loaded the Sol Line Cruiser Contract design.
3. Found and removed a single square of power grid that was outside of the ship.
4. Noted that total editing time was less than 5 minutes.
5. Exported the ship design.
6. The design was no longer broken.

No obvious major differences between the files. Noted that the SOP rating is being saved as 6 (my previous score for a small ship). The rating is meant to be global and not separate for every ship design?

Attachments:
Small Cargoship Contract Working.zip [5.02 KiB]
Downloaded 373 times

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/