glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] session.cpp code


From: Stéphane Magnenat
Subject: Re: [glob2-devel] session.cpp code
Date: Mon, 26 Mar 2007 22:16:06 +0200
User-agent: KMail/1.9.6

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]