MissionVarriables are not reset

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

MissionVarriables are not reset

Post by Eric Walch »

When a player dies, the MissionVarriables are not reset. Only on loading a old game the variables are reset, but when going further with a new Jameson, it inherits all mission variables of the dead commander.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

Same on my machine - SVN2289
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Guys, can you provide a way to reproduce? I loaded a commander, checked that missionVariables.nova is NOVA_HERO, then launched, did 180 and crashed back at the station. When the new Jameson was started, executing missionVariables.nova on the console came back with null, which is what I would expect for a new Jameson. This with latest trunk (2290).
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

another_commander wrote:
Guys, can you provide a way to reproduce? I loaded a commander, checked that missionVariables.nova is NOVA_HERO, then launched, did 180 and crashed back at the station. When the new Jameson was started, executing missionVariables.nova on the console came back with null, which is what I would expect for a new Jameson. This with latest trunk (2290).
testreset.oxp (912Byte)
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

another_commander wrote:
Guys, can you provide a way to reproduce? I loaded a commander, checked that missionVariables.nova is NOVA_HERO, then launched, did 180 and crashed back at the station. When the new Jameson was started, executing missionVariables.nova on the console came back with null, which is what I would expect for a new Jameson. This with latest trunk (2290).
My mistake. I crashed myself and noticed some missionVariables had a value. But on second look I saved Jameson before launching and looked at their values. There were about 20 but all were proper starting values for missions. Nothing wrong. I have been sitting in the sun to long this weekend.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

Hihi, I think we've made the same mistake then :-) guiScreenChanged is fired before reset and when you set something there...

Edit: Changed the file above. It's not simple, but handles all 4 cases very well.
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

a double classic number 50 then ;-)
Bounty Scanner
Number 935
Post Reply