Level generator from txt files works wrong after export
Posted: Fri Apr 01, 2011 1:59 pm
Hi
I hope someone could help me.
I use readLevel function from this thread http://game-editor.com/forum/viewtopic.php?f=5&t=1305&p=6458&hilit=tiles+readlevel#p6458 , to generate levels from several text files, like level0.txt, level1.txt, level2.txt etc.
Everything works fine in game editor's game mode, but after export, level from first txt file is messed up, but next other generates and works fine.
I tried to use advices from some threads, like set variables to NULL, and tried to use skydereign's mymemset function to clear readLevel function's result array, but had no result.
I attache a little example tiletest.ged that show this problem.
will be appreciated for any advices and solutions.
(in example levels switch by pressing spacebar)
I hope someone could help me.
I use readLevel function from this thread http://game-editor.com/forum/viewtopic.php?f=5&t=1305&p=6458&hilit=tiles+readlevel#p6458 , to generate levels from several text files, like level0.txt, level1.txt, level2.txt etc.
Everything works fine in game editor's game mode, but after export, level from first txt file is messed up, but next other generates and works fine.
I tried to use advices from some threads, like set variables to NULL, and tried to use skydereign's mymemset function to clear readLevel function's result array, but had no result.
I attache a little example tiletest.ged that show this problem.
will be appreciated for any advices and solutions.
(in example levels switch by pressing spacebar)