Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 24th Feb 2012 18:33
i am having problems with this, how can i load the data from file so when i try to save that same data or modified data it saves same way as original

this is piece my save code - it is quite a large function


and this is my load code


so now the problem is when i load my map, that was saved with



and then try to save it again, i get



this will crash the program with 'object already exists at line xxxx' error

can someone help me with this this is critical to any level editor?
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 24th Feb 2012 23:06
delete your scene completely before loading a fresh file.....if there is an object that already exists....delete it first befor loading the new one.

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 25th Feb 2012 02:47
ok i solved the problem, i missed one object when i was deleting entire scene

Login to post a reply

Server time is: 2026-07-10 13:45:14
Your offset time is: 2026-07-10 13:45:14