[0.12.20] [Twinsen] No 'you won' or 'rockets sent' after launching
Posted: Sun Dec 20, 2015 3:45 pm
by wjzijderveld
I can hardly believe this would actually be a bug, but I can't find a reason why this would happen. I don't get any error in the Lua console nor in the logfile.
In my current save I decided to build and launch a rocket. This to see what the factory could take and expand from there to fire more rockets.
But after I launched it... nothing happend. No end screen, no window with my 'score', it just happily closed again and started filling up again.
And yes, there is a satellite in there.
I launched a second rocket, but still nothing. Next day I tried again (I thought, maybe a restart of the game helped), but still nothing.
I disabled all my mods and tried again, still nothing.
I'm on Arch Linux, 64bit.
Attached my savegame + last log (which is quit boring).
Re: [0.12.20] No 'you won' or 'rockets sent' after launching
Posted: Sun Dec 20, 2015 5:21 pm
by Oxyd
The victory screen is handled by your save's control.lua, but there is no control.lua in your save. So it's all working as it should.
The likely reason for your lack of control.lua is that you created that save using the --create option. There was a bug in old versions of 0.12 (up to 0.12.9) where --create wouldn't put the proper control.lua into your save.
So, moving to duplicates. Unless you have a reason to believe it's a different issue than the one in the linked thread.
Re: [0.12.20] No 'you won' or 'rockets sent' after launching
Posted: Sun Dec 20, 2015 9:39 pm
by wjzijderveld
Hi Oxyd,
Thanks for you reply!
I don't understand how I didn't find that thread when searching for existing bug reports, ah well.
The proposed solution worked, so I now have a rocket-sent counter (after also adding locale to the save, which was also missing). Thanks for that!
I didn't create a game via the CLI and I don't remember not having any starting kit. So not sure how this happened, it doesn't seem the same as the thread you mentioned to me.
I didn't (un)pack a save game before, so I have no clue how I could have removed it myself. Maybe a mod messed it up?
Re: [0.12.20] No 'you won' or 'rockets sent' after launching
Posted: Sun Dec 20, 2015 10:50 pm
by Oxyd
wjzijderveld wrote:I didn't create a game via the CLI and I don't remember not having any starting kit. So not sure how this happened, it doesn't seem the same as the thread you mentioned to me.
I didn't (un)pack a save game before, so I have no clue how I could have removed it myself. Maybe a mod messed it up?
Did you start the game through some custom scenario? This control.lua is a part of the Freeplay scenario, so if you used a different scenario, you'd get a save with that scenario's control.lua (possibly none, if that scenario doesn't use any control.lua).
Re: [0.12.20] No 'you won' or 'rockets sent' after launching
Posted: Mon Dec 21, 2015 8:49 am
by wjzijderveld
Oxyd wrote:
wjzijderveld wrote:I didn't create a game via the CLI and I don't remember not having any starting kit. So not sure how this happened, it doesn't seem the same as the thread you mentioned to me.
I didn't (un)pack a save game before, so I have no clue how I could have removed it myself. Maybe a mod messed it up?
Did you start the game through some custom scenario? This control.lua is a part of the Freeplay scenario, so if you used a different scenario, you'd get a save with that scenario's control.lua (possibly none, if that scenario doesn't use any control.lua).
I don't use a scenario specific, just used 'new game'. But as far as I understand that should be the Freeplay scenario?
Re: [0.12.20] No 'you won' or 'rockets sent' after launching
Posted: Mon Dec 21, 2015 11:05 am
by Oxyd
Yes, New Game starts Freeplay. That definitely sounds like something that shouldn't happen then.
There was a similar bug where someone's control.lua just disappeared. But for that person, the issue somehow resolved itself by updating to 0.12.11, which apparently doesn't apply here.
So, moving back to bug reports.
Re: [0.12.20] No 'you won' or 'rockets sent' after launching
Posted: Tue Dec 29, 2015 2:09 pm
by Twinsen
Did you use the map editor? Saving in map editor will not create control.lua
Re: [0.12.20] [Twinsen] No 'you won' or 'rockets sent' after launching
Posted: Wed Jan 06, 2016 12:51 pm
by Twinsen
Possibly fixed in 0.13.
From the 0.13 changelog:
- Loading a scenario without control.lua will automatically load the freeplay game mode scripts.
This means new maps created in the map editor will get the freeplay game mode.
- Loading a scenario in the map editor will preserve it's scripts.
This means custom freeplay/sandbox maps can be created in-game.