Hello, we apologize but forum registrations are non-functional at this time. This issue should be fixed around mid-December. Until then, please stop by our Discord channel if you'd like to get in touch with the team. Thanks!

Scripting code

For discussion of the code running behind the game

Moderator: Staff

Post Reply
User avatar
byaku
Developer
Posts: 165
Joined: Mon Sep 11, 2006 12:45 pm
Location: Valencia, Spain
Contact:

Scripting code

Post by byaku » Thu Jun 14, 2007 2:02 am

There are 2 issues that need to be addressed, now that the demo was released.

1) I found that not all script files opened are always closed. I'm not completely sure about this, but I made a search for the Open and Close methods of the scripting engine, and I', not sure there were all the matching pairs that should be.

2) When debugging battle mode, and specifically the function Battle->AddEnemy(id), I found that the script file is opened to load the information of id enemy. However it is opened and read several times. I don't remember the reason exactly, but I think it was because the loading of the information was done in the constructor of some object. Since there are involved several temporal objects, the file is opened several times. Maybe there is need to redesign some things in there, such as use pointers for storing references, instead of objects, and manage them dynamically.
Post Reply