On Monday 26 March 2007, donkyhotay wrote:
> Is anyone here familiar with how session.cpp works in glob2? I've been
> working on implementing custom prestige settings however I'm having
> trouble with the code within session.cpp, specifically within
> SessionGame::load and SessionGame::save I've tried inserting the new
> variable varPrestige however when I do so it won't read the maps. Even
> when I have tried updating the *SessionGame::getData and
> *SessionGame::setData I still get the same issue. Without being able to
> successfully pass the varPrestige variable through the session the only
> alternative I can come up with is piggybacking it on the orders whenever
> one is sent/recieved but that is real ugly even for me and I want to
> avoid that.

Could you be more precise with what is not working? "it won't read the maps" 
is not a very precise description. If you add new variables to the saved 
games, you must increment the version number and add code to handle older 
saved games.

Steph

-- 
http://nct.ysagoon.com


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to