Pink Petal Games

Feedback => Bugs and Game balancing => Topic started by: Midnight_Amratha on March 21, 2010, 09:28:46 AM

Title: Load fail on consecutive days
Post by: Midnight_Amratha on March 21, 2010, 09:28:46 AM
not sure why but after saving extensively (often several times in a play) i get a locked game on load on the next day i want to play the game, the game simply locks down and refuses to load that saved game. of the top of my head, is the gamelog file too big or what?
Title: Re: Load fail on consecutive days
Post by: DocClox on March 21, 2010, 11:12:17 AM
that's a new one. Can you post the save and gamelog?
Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 21, 2010, 10:46:27 PM
Is it loading the game and then freezing when you hit next day, or is it freezing during the loading process?  If it is the latter, then most likely you have a corrupted save file.  Post your save as an attachment (just the .gam file, we don't need the .mast.gam) and I'll test it out.
Title: Re: Load fail on consecutive days
Post by: Midnight_Amratha on March 22, 2010, 03:16:56 PM
sounds like what you say is a corrupted save file, have a look at it.
Title: Re: Load fail on consecutive days
Post by: delta224 on March 22, 2010, 03:55:46 PM
Yeah, I I've forgotten the save file structure it will a while for me to fix it.

grumbles about making a script to do all this for me.
Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 22, 2010, 05:02:37 PM
Well, looking over the save file, nothing jumps out at me as broken.  I loaded the game and it seems to be working just fine for me.  I did notice that multiple girls were pregnant, so you could have stumbled on to another incarnation of the giving birth/coming of age bug.  I have my pregnancy and coming of age timers set to 1 week for testing purposes and didn't experience any problems, though.
Title: Re: Load fail on consecutive days
Post by: DocClox on March 22, 2010, 05:17:52 PM
Interesting. I wonder if it's a combination of config file setting and save file? Like the save file is broken, but only if the config file sets X, Y and Z?

Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 22, 2010, 06:40:57 PM
Could be.   Midnight_Amratha, could you attach the config file you are using?  I'll test to see if that's the case.
Title: Re: Load fail on consecutive days
Post by: Midnight_Amratha on March 23, 2010, 01:59:32 PM
sure thing
Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 23, 2010, 03:02:06 PM
Well, I tried your config file and I still can't replicate the problem.  Are you using a version other than v1.29.4.6?  Are you using any custom items or item packs?  Have you been cursed by a voodoo priest?
Title: Re: Load fail on consecutive days
Post by: Midnight_Amratha on March 23, 2010, 03:47:26 PM
well i did have the voodoo priest on a visit but the mirror spooked him so i haven't seen more of him, apart from that i use the package of items from WM editor and a few girl packages, and apart from adding my own sterility removal package i haven't touched it. i'll try and attach the gamelog now
Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 23, 2010, 04:55:22 PM
The game log doesn't reveal anything interesting, as near as I can tell.

Looking closer at the save, I found a problem where the names of the last two brothels were dropped from the file for some reason.  I don't know if that was causing your crash problem or not, but I fixed the problem (fixed save attached, brothels are named "Whateva" and "Otha Whateva" - you can edit the save file and rename them).  Try using the fixed save and see if that helps.
Title: Re: Load fail on consecutive days
Post by: Midnight_Amratha on March 23, 2010, 05:05:37 PM
not sure if that did it but now i'm able to load the game :) what happens next when i buy the next brothel and the names are deleted? except the first name i mean.
 
 
 
 
yups, when i bought a new brothel, the name of brothel 2 was replaced while the new brothel is unnamed. not sure if that tells you something about where the flaw might be.
Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 23, 2010, 06:40:46 PM
It's a known bug - I don't know if it has been fixed in the dev builds or not, though.  You can edit the save file to fix the problem, though it takes a bit of searching.  To fix a missing name, in the game, find the name of the first girl in the brothel, and then find her in the save file.  There should be a blank line 9 lines or so above her entry in the file - this is where the brothel name goes (the following line should have 6 numbers, and they are probably all 0's).  If the brothel is empty, search for the name of the last girl in the list of the previous brothel, then find the blank line after her entry.  If the brothel was just purchased and there are no girls in it yet, it's entry will be at the bottom of the save file, prior to the list of script files.
Title: Re: Load fail on consecutive days
Post by: renzor on March 24, 2010, 07:03:16 PM
I got the same issue here no matter how many times i reload the program my game always crashes the very next week without fail. The very last event i remember happening is that a new rival appeared in town (the knife-happy former liutenant) and that i set all but one of my goons to 'sabotage'. Here are my files, If I need to post anything else let me know.
Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 24, 2010, 11:01:41 PM
I can confirm your crash on next week.  Taking the guards off sabotage duty stops the crash from happening.  After some testing, I *think* the crash is happening when you have more guards sabotaging than are necessary to defeat all remaining rivals.  As an example:

Rival 1 has 5000g
Rival 2 has 4000g

Gang 1 steals 3000g from Rival 1
Gang 2 steals 2000g from Rival 1 - Rival 1 is defeated
Gang 3 steals 4000g from Rival 2 - Rival 2 is defeated
Gang 4 is on sabotage duty, but all rivals that were around at the start of the turn are defeated - crash

It is notable that the crash does not happen if there are no rivals at the start of the turn, regardless of how many gangs are on sabotage duty.
Title: Re: Load fail on consecutive days
Post by: DocClox on March 25, 2010, 04:34:25 AM
So, just to summarise, we're losing the names of the brothels after a while?

That'll be a bugger to track down, but at least we know what to look for.
Title: Re: Load fail on consecutive days
Post by: zodiac44 on March 25, 2010, 12:31:39 PM
Yes, we are losing the names of *some* of the brothels after some event occurs.  Usually it is the last brothel you own that gets borked.  I've seen cases where it affects the last two, but that could be a double dose of the problem (it borks the last brothel, then you buy another one and that one gets borked).

There's the second, separate issue of a crash when gangs are sabotaging.
Title: Re: Load fail on consecutive days
Post by: Uriel on March 25, 2010, 02:21:45 PM
More reports about the naming issue here (http://pinkpetal.org/index.php?topic=265.0). But i never had a crash in my game. Despite it was a very long one.
Title: Re: Load fail on consecutive days
Post by: Midnight_Amratha on March 25, 2010, 08:15:13 PM
actually to clarify, you get to keep the first name of your brothels, if you manually remane the next brothels you wil see all the names, THEN if you buy a new brothel and name it, you will overwrite the name of brothel number two instead of naming the latest bought brothel.'
 
example: brothel 1, brothel 2, brothel 3, brothel 4
 
you buy brothel 5 and now the line reads
 
brothel 1, brothel 5, brothel 3, brothel 4, <blank space>
 
is there a counter who says how many brothels you have and keeps track of which one you name?
 
are  there two different ways  of  naming brothels?
Title: Re: Load fail on consecutive days
Post by: renzor on March 25, 2010, 11:59:11 PM
Thanks alot for the help Zodiac, I did what you advised and the game continues normally now. That said I uasually keeps my gangs on sabotage mode regardless of who is in the city and i've pre-emptively kicked out 5-6 challengers that way so why it acts like this after awhile i dont know.