Joined: 04 May 2005, 14:09 Location: St. Paul, Minnesota, US (#64 at press time)
Here's what happens when I try to open the XTA_BT2.tdf default config:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.ArgumentException: Empty path name is not legal. at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at NTaiToolkit.CBuildtree.Load(String TDFfile) at NTaiToolkit.Form1.linkLabel1_LinkClicked(Object sender, LinkLabelLinkClickedEventArgs e) at System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e) at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Label.WndProc(Message& m) at System.Windows.Forms.LinkLabel.WndProc(Message& msg) 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)
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
Joined: 04 May 2005, 14:09 Location: St. Paul, Minnesota, US (#64 at press time)
That allows me to successfully open up the config file, but I still get this error whenever I run a globalai test of NTai:
Using script GlobalAI test (NTai.dll) Map: Small Supreme Battlefield.smf Mod: "XTA v8.1" from XTAPE.sd7 Number of damage types: 5 TA Spring 0.74b1 LUA: Loaded GUI interface Player Lindir_The_Green joined as 0 AI\Bot-libs\NTai.dll has C++ interface AI has enabled cheating. GlobalAI1: error in Global InitAI, cannot continue GlobalAI1: boost::spirit::parser_error GlobalAI1: Error :: InitAI() in XE9.3 failed, please notify AF at once GlobalAI1: Error :: www.darkstars.co.uk
[02:35] < Frame: 4679 >CManufacturer::TaskCycle has found the unitID, issuing TaskCycle [02:35] < Frame: 4679 >Given the go ahead :: armcv [02:35] < Frame: 4679 >Given the go ahead :: armbeaver [02:35] < Frame: 4679 >Given the go ahead :: armmlv if(targ == string("")) for b_builder
And the error Lindir was talking about happens if you don't have two NTais in game, not sure why.
I wrote a simple buildtree with the toolkit. When I play a game with 2 NTAI's (EE) the first AI crashes and the second keeps giving errors whenever it reads a "build hub" command. Maybe Im not doing everything correctly?
Here's the infolog:
Map: Castles.smf Mod: "Expand_and_Exterminate_v_0.171.sd7" from Expand_and_Exterminate_v_0.171.sd7 Number of damage types: 15 TA Spring 0.74b1 Player Player joined as 0 ai\bot-libs\NTai.dll has C++ interface AI has enabled cheating. GlobalAI1: error in Global InitAI, cannot continue GlobalAI1: boost::spirit::parser_error ai\bot-libs\NTai.dll has C++ interface AI has enabled cheating. GlobalAI2: [00:04]error :: a value :: b_hub :: was parsed in :: commander :: this does not have a valid UnitDef according to the engine, and is not a Task keyword such as repair or b_mex GlobalAI2: [00:04]error :: a value :: b_hub :: was parsed in :: commander :: this does not have a valid UnitDef according to the engine, and is not a Task keyword such as repair or b_mex GlobalAI1: Error :: InitAI() in XE9.3 failed, please notify AF at once GlobalAI1: Error :: http://www.darkstars.co.uk Player paused the game Player unpaused the game GlobalAI2: [06:04]error :: a value :: b_hub :: was parsed in :: commander :: this does not have a valid UnitDef according to the engine, and is not a Task keyword such as repair or b_mex GlobalAI2: [06:04]error :: a value :: b_hub :: was parsed in :: commander :: this does not have a valid UnitDef according to the engine, and is not a Task keyword such as repair or b_mex Kamir I: Can't reach destination! User exited Path cache hits 44 37% Path cache hits 17 5%
And btw a search-for-unit-in-the-massive-unitlist function and filters (eg. construction units, air units, submarines, milatary untis etc.) would be really cool, as it takes a lot of hard work searching for a unit in the unit-list.
Weird, save does not work 100% anymore... I was able to make "Core" build mexes and facilitys but arm doesn't build anything (even thought I've checked the buildlist for the arm commander and pressed save.
After I pressed save, the list for the arm commander is gone (the checkbox is unchecked again).
Also, It would be cool if you could edit build options for each building, like the vehicle facility, right now, my commander keeps building them.
A suggestion would be that you could set how much buildings he is allowed to built, maybe like that:
1. Factory: build at start
2. Factory: build when available >5000 & energy >5000
3. Factory: build when production >200 metal & 1000 energy
(should be extensible by the user)
Kinda like that (if this is possible and not too much work).
So basicially you have a drop down menu with "build at start" and "build when", then for "build when" there is another drop down menu in which you can choose to build when a specific "number" of resources is in storage or when you produce a specific "number" of resources.
The same would maybe work for vehicle production, so at first he may not use 3 factorys at once, but when a specific number of resources is available, he will use all three at once (and so on).
Of course this is just a plain example I've made up. (there may be some problems if you add an insane huge number of facilitys to build, but there's no room left etc...)
I also think that the idea about Filters is pretty good, saves a good amount of time for the end user if he searches units/facilitys.
You know there is a set of options that does that, look in the untis tab.
Also you can set arm and core commanders to build different things. Just create a new tasklist and call it say "armcommander" then assign it.
And a search box is a good idea, I'll get round to it soon.
Also people, look at the logfiles NTai generates for clues. If you ahve any message involving a unit and unfeasable that then says the task skipped, it means it hasnt the resources. Make ti build storage and be careful with economies.
You might also want to uncheck the antistall option, although doing so means its all upto you to stop NTais stored resources hiting zero.
doooohh, sorry AF for stealing your time, so if I understand right you can do practial all things I've said?
Producing 1 vehicle factory if energy income 20 -40, the second factory when energy 100-120 for example.
To prevent the AI from building them again and again while the income is in the set range I should check "Solobuild"?
Anyway, I still have this weird "Save" bug, I already deleted the config files for XTA 8.1 and started NTAI again with it, but still, my arm commander list is unchecked even if I checked and saved before.
Still my Suggestion stays about adding Metal income and available Resources (for Metal & Energy) to the Edit Options.
My thoughts behind this is, that it wouldn't be very good if you have 0 energy and the ai starts building 5 other buildings because its income is >100.
So you could kinda prevent building buildings when the ai is at war (and needs resources to build more units)
Again I don't know if anything like that is already implented (because there is no "real" Manual *hint*)
edit: ok somehow it saved the list now , still sometimes it does not (I chance the "Version" variable from 0.1 to 0.2 but it changes right back after saving, closing and reopening the config.
I think I've found a bug, It seems that the AI in the first position is never building anything. Tested on 2 Maps, with three ai's ingame: Core - Arm - Core. Also tested it like that: Arm - Core - Arm, still the FIRST AI never build anything. Note that I was in Spectator mode.
The first AI crashes before it gets to create the command structures that make the AI tick. As a result they arent called in order to prevent a hard crash.
The other AIs however dont get this bug and proceed at half steam, but they'd work better if the first AI was operational. The first AI has responsibilities the others dont, such as maintaining shared data, which is essential for things like threatmatrixes, without which it wont attack.
Please zip upon springfolder/AI/NTai and email me at email@example.com so i can test and get rid of the bug because so far I dont have the necessary files all together to debug it, just tidbits of some configs people have or a core config file but not everything all together.
And how would ppl feel about an upload button that uploaded a tasklist to a server and then allowed you to download other peoples tasklists?
One very useful concept to have is to mentally replace every mention of tasklists with the words 'build orders', the only difference beignt hat tasklists can have things that arent todo with building in them.
I can just guess how hard it is to keep track of things like that If you start to write programs things like that (I've written some small and fairly easy console programs in c#/c++, but that's just peanuts in comparison to what you do)
I hope "our" Files help you to "hunt" down some bugs.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum