Hey Dickson, Awesome! I'm glad you confirmed the AI is working correctly now too. Ian Reed On 9/8/2013 1:06 AM, Dickson Tan wrote:
Hey IanThanks a million for that fix. The AI is now working as it should. Am hoping to have my updated map ready for release in a few days.Dickson*From:*ian-reeds-games-bounce@xxxxxxxxxxxxx [mailto:ian-reeds-games-bounce@xxxxxxxxxxxxx] *On Behalf Of *Ian Reed*Sent:* Saturday, September 07, 2013 5:52 PM *To:* ian-reeds-games@xxxxxxxxxxxxx*Subject:* [ian-reeds-games] Re: AI again, map creation guide/changelog documentation and crashHi Dickson,Thanks for keeping on me about these bugs. I have a lot of things I work on between scripting features for TB and the new RPG engine so sometimes things I mean to do in the near term keep getting pushed back until I forget about them.I've fixed the ai buff bug. It was a side product of adding the friendly name flag to everything. The AI compares the names of effects to see if it should use the effect again and in this one scenario the name segregation was handled incorrectly.I couldn't reproduce the error you reported when saving a map and returning to the main menu but I analyzed the error report you pasted and I believe I've fixed the issue.Ah yes, the map creation guide. I still need to get around to updating that. Hopefully I'll get around to it soon, or feel free to remind me once a week until I do.The 2 above bugs and the one Jarek mentioned are fixed in dev 36. Hope everyone enjoys! Ian Reed On 9/6/2013 9:36 AM, Dickson Tan wrote: Hi Ian Have converted all my units to the new version 10 format. Unfortunately the weird AI issues seem to persist and it also gets stuck only casting 1 spell when I choose other units as test cases. Has the way that you hint to the AI the kind of skill been changed? E.g I've always used ai_buff to indicate buff skills and ai_curse for detrimental effects that you can inflict upon enemies. The latest version of the map with the version 10 parser format can be found here <https://dl.dropboxusercontent.com/u/2138237/demon%20wars%20cycle.zip>. You've also done lots of great work on updating the flags that we could use for maps and such. Could you also update the map creation guide and/or changelog with these changes so that there is a central reference that one can refer to? Have so many emails with the release announcements of multiple versions detailing changes that you've made. Finally, in dev 35 when saving a map in the editor and navigating back to the main menu, I get the following error. --------------------------- --------------------------- An error has occurred. Please notify the game creator of this error. You can copy the entire error to your clipboard by pressing control + C. Then you can paste it into an email by pressing control + V and send the email to support@xxxxxxxxxxxxxxxxxxx <mailto:support@xxxxxxxxxxxxxxxxxxx>. System.NullReferenceException: Object reference not set to an instance of an object. at Game.ExtensionMethods.LastSplit(String s, Char seperator) in C:\Data\Recent\TacticalRPG\TacticalRPG\ExtensionMethods.cs:line 26 at Game.HM.GetShortName(String s) in C:\Data\Recent\TacticalRPG\TacticalRPG\HelperMethods.cs:line 1048 at Game.Resources.DisposeMapMusic() in C:\Data\Recent\TacticalRPG\TacticalRPG\Resources.cs:line 109 at Game.HM.ReloadMapMusicAndSounds(Map m) in C:\Data\Recent\TacticalRPG\TacticalRPG\HelperMethods.cs:line 1063 at Game.MainMenu.Enter(Empty ent) in C:\Data\Recent\TacticalRPG\TacticalRPG\States\MainMenu.cs:line 30 at Game.StateMachine`1.EndChangeState() in C:\Data\Recent\TacticalRPG\TacticalRPG\StateMachine.cs:line 57 at Game.StateMachine`1.Process() in C:\Data\Recent\TacticalRPG\TacticalRPG\StateMachine.cs:line 40 at Game.Form1.RunGameLoop(Boolean keyPressed) in C:\Data\Recent\TacticalRPG\TacticalRPG\Form1.cs:line 242 at Game.Form1.Form1_KeyDown(Object sender, KeyEventArgs e) in C:\Data\Recent\TacticalRPG\TacticalRPG\Form1.cs:line 281 at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e) at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m) at System.Windows.Forms.Control.ProcessKeyMessage(Message& m) at System.Windows.Forms.Control.WmKeyChar(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) --------------------------- Keep up the good work and sorry for being the bearer of more bugs/errors. Dickson