From: Stefan F. <ste...@we...> - 2012-07-22 21:38:56
|
Thanks for reporting this bug: This was a pretty stupid one caused by my own code for the ClosePrivate action. There was the transient keyword missing for the PrivateCompany field to avoid its de-serialization (Rails never serializes the objects themselves, only the identifiers/names). I have attached both the fixed save file and a save file including the ClosePrivate action added. Fix is pushed to the Rails1.7.x branch. I will release Rails 1.7.8 tomorrow, maybe Erik will add his fix for the status window bug too? Stefan On 07/22/2012 03:36 AM, John David Galt wrote: > Warning: 200+ column ASCII-art follows. > > On 2012-06-13 15:49, Erik Vos wrote: >> My commit also includes Stefan's fix for closing the PfB manually. > > This patch appears to cause a new problem. Once I have closed PfB manually, > saving the game no longer works for the rest of that game. > > When I try to perform a save I get this pop-up: > > +-----------------------------------------------------------------------------------------------+ > | Message | > +-----------------------------------------------------------------------------------------------+ > | Save failed, reason: rails.game.PrivateCompany | > | Unexpected action: Save path=C:\Programming\Rails\1835_20120722_0112_OperatingRound 8.1.rails | > | | > | [ OK ] | > +-----------------------------------------------------------------------------------------------+ > > The save file is still created (and attached to this message), but trying to > reload it produces this pop-up: > > > +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ > | Message | > +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ > | Load failed, Reason = writing aborted; java.io.NotSerializableException: rails.game.PrivateCompany To improve Rails please submit save file to Rails user list at rai...@li... | > | Load failed, Reason = loaded file has less actions than current game To improve Rails please submit save file to Rails user list at rai...@li... | > | | > | [ OK ] | > +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Rails-devel mailing list > Rai...@li... > https://lists.sourceforge.net/lists/listinfo/rails-devel > |