Author |
Message |
Askeladd |
Posted: Sun Feb 03, 2019 1:37 pm Post subject:
|
|
I finally got off my lazy butt and updated the first post and repo with the updates that E1 Elite made (thanks!).
DyordsTheBell wrote: | Finally I found a perfect editor to create my own AI tactics without having manually typing it by scratch, thanks. |
No problem  |
|
 |
DyordsTheBell |
Posted: Wed Nov 21, 2018 5:49 am Post subject:
|
|
Finally I found a perfect editor to create my own AI tactics without having manually typing it by scratch, thanks. |
|
 |
DyordsTheBell |
Posted: Wed Nov 21, 2018 5:49 am Post subject:
|
|
Finally I found a perfect editor to create my own AI tactics without having manually typing it by scratch, thanks ????????????. |
|
 |
E1 Elite |
Posted: Wed Oct 31, 2018 8:14 pm Post subject:
|
|
@Crimsonum: Updated with the fixes.
--------------------------------
Update version 2.0.3.9
Changes:
- TS config file fix of veteran level and removed unused AITrigger condition choices
- Skipped across list duplicate ID check for AITrigger IDs as vanilla TS has such
- Added version number to application title text
- Updated the AIGuide for script action Attack TargetType (0,n)
Attaching the updated version and the source code changes over the v2.0.3. |
|
 |
Crimsonum |
Posted: Wed Oct 31, 2018 6:16 pm Post subject:
|
|
In the config files the VeteranLevel values are wrong.
These
Code: | [VeteranLevels]
0=Rookie
1=Veteran
2=Elite |
should be
Code: | [VeteranLevels]
1=Rookie
2=Veteran
3=Elite |
In addition, TS only uses the following AI Trigger conditions, the additional three (5-7) were added in RA2/YR.
Code: | [Conditions]
-1=No Condition
0=Enemy owns AMOUNT of TECH TYPE
1=AI owns AMOUNT of TECH TYPE
2=Enemy power is YELLOW
3=Enemy power is RED
4=Enemy has at least AMOUNT of credits |
|
|
 |
chr0nicz420 |
Posted: Wed Oct 24, 2018 7:05 pm Post subject:
|
|
I apologize for not specifying but I mean the version 2.0.3.7. I just assumed the latest version is what it's posted recently here.
Anyway, the latest version, which is v2.0.3.8, fixed the visual issue. Thanks! |
|
 |
E1 Elite |
Posted: Wed Oct 24, 2018 6:17 pm Post subject:
|
|
@chr0nicz420: Check with this update. When you say latest version, mention the version number also like v2.0.3.7. Reverted some of the changes made by the UI designer tool of VS2017. If the problem still persists, then reduce the DPI scaling. Specially if you have updated Win10, instead of display scaling of 125%, you can try custom and scale it to say 113%.
--------------------------------
Minor update version 2.0.3.8
Changes:
- Reverted back non-essential changes in the form designer file.
Attaching the updated version and the source code changes over the v2.0.3. |
|
 |
chr0nicz420 |
Posted: Wed Oct 24, 2018 4:04 pm Post subject:
|
|
I have some visual problem regarding the latest version of AIEditor.
Apparently you can't see now the total cost of a TaskForce? And even I fully scroll down, I still can't see deeper down. |
|
 |
E1 Elite |
Posted: Wed Oct 10, 2018 8:18 pm Post subject:
|
|
Source code is shared and it can be compared with the github code and anyone can compile it themselves. There is no threat.
Edit: Just tested with latest MalwareBytes v3.6.1.2711. All the AIEdit files are clean. Also virustotal.com gave it clean. So, the problem could be on your end.
Edit2: Edited the post about further tests and removed its test attachment.
AIEdit.exe in v2.0.3.7 (94208 bytes) checksums:
SHA256: cd0db914b38f3535d0897c06e71b6d432dcae4a61edbc762b65d2e68838389f3
MD5: 98837e4e090447dcbaf96dcc8c21ad9f |
|
 |
MRMIdAS |
Posted: Wed Oct 10, 2018 6:51 pm Post subject:
|
|
E1 Elite wrote: | I just did a build from my Win10 installation and also restored Win7 from backup and checked with it, there is no change in the exe file except for timestamp etc. differences. So, there is nothing wrong with the files, it is only a false positive. Checked at virustotal.com and all are clean, even MalwareBytes.
Can't say if just using the word AI is causing it or checking registry for default browser and then launching the browser for the help html is causing it on your end. Attaching a test EXE file without that launching html from menu part of the code (changes to frmMainNew.cs and frmMainNew.Designer.cs is reverted). Let me know if it still gives warning for you. |
yep, still removing it.
EDIT: I do have 2.0.6 it's just in the folder I extracted 2.0.3 which didn't trip the AV, and still doesn't.
EDIT2: 2.0.7 Boots to the editor, trips the AV after booting, so it can't delete the exe, and makes malwarebytes demand a reset to fix the problem. joy. |
|
 |
E1 Elite |
Posted: Wed Oct 10, 2018 12:27 pm Post subject:
|
|
My understanding is, if you have duplicate BehavesLike in a section, game will use the one that comes last. It won't add up the effects. And it is just logged as a duplicate, it doesn't touch/modify rules file, it is just an info. |
|
 |
G-E |
Posted: Wed Oct 10, 2018 10:24 am Post subject:
|
|
Just a note that this particular instance of duplicate is perfectly valid, each behaviour adds something, not sure if you want to leave it as a warning/error or make an exception:
Duplicate tag/index [LargeRailgunPart] => BehavesLike in rules.ini! |
|
 |
E1 Elite |
Posted: Wed Oct 10, 2018 7:02 am Post subject:
|
|
Update version 2.0.3.7
Changes:
- Fixed additional number of duplicate messages on reloading INI files.
Attaching the updated version and the source code changes over the v2.0.3. |
|
 |
E1 Elite |
Posted: Tue Oct 09, 2018 5:57 pm Post subject:
|
|
I just did a build from my Win10 installation and also restored Win7 from backup and checked with it, there is no change in the exe file except for timestamp etc. differences. So, there is nothing wrong with the files, it is only a false positive. Checked at virustotal.com and all are clean, even MalwareBytes.
Can't say if just using the word AI is causing it or checking registry for default browser and then launching the browser for the help html is causing it on your end. Attaching a test EXE file without that launching html from menu part of the code (changes to frmMainNew.cs and frmMainNew.Designer.cs is reverted). Let me know if it still gives warning for you.
Edit: Removed the test attachment. |
|
 |
MRMIdAS |
Posted: Tue Oct 09, 2018 4:19 pm Post subject:
|
|
Yay, the new AI EDIT triggers MalwareBytes.
It reckons it's "Machine Learning" |
|
 |
E1 Elite |
Posted: Tue Oct 09, 2018 12:55 pm Post subject:
|
|
Update version 2.0.3.6
Changes:
- Added AI Guide for offline reference.
- Removed the usage of [AIEdit] section for ID generation.
- Provided StartIndex, IDPrefix and IDSuffix fields in config file for customizing IDs.
- Config files updated for corrections and for ID related fields.
- Added duplicate ID check across lists in AI ini.
- Parsing exception message box will now close the application.
Attaching the updated version and the source code changes over the v2.0.3.
Edit: Removed v2.0.3.6 attachments in favor of new release available with bugfix. |
|
 |
G-E |
Posted: Thu Jul 19, 2018 11:39 am Post subject:
|
|
That's silly and you know it... this use case didn't exist until recently.
Anyway I've added an exemption for [AIEdit], and I'm changing the way orphans are detected/reported so they can be automatically removed OR re-classified. |
|
 |
E1 Elite |
Posted: Thu Jul 19, 2018 10:44 am Post subject:
|
|
Minor update version 2.0.3.5
Changes:
- Avoid creating duplicate IDs even if [AIEdit] section is deleted from AI ini.
Attaching the updated version and the source code changes over the v2.0.3.
-----------------------------------------
@G-E: That script shouldn't automatically classify and add unlisted/orphaned/unused sections to list. How would you classify a section like
[AIEdit]
Index=16777228
into a TeamType? That script needs correction or exception to this etc. |
|
 |
G-E |
Posted: Thu Jul 19, 2018 9:19 am Post subject:
|
|
It would do this because it reclassifies orphaned objects and adds them to the list... if this is a permanent change I can add an exception. |
|
 |
E1 Elite |
Posted: Wed Jul 18, 2018 5:30 pm Post subject:
|
|
Just checked, G-E's aiclean5 script erroneously adds AIEdit to teamtype list. Avoid using that script with this tool's saved files. |
|
 |
Ich-Henker |
Posted: Wed Jul 18, 2018 3:41 pm Post subject:
|
|
Thank you, i work on it! I had a working session with this error disappearing. |
|
 |
E1 Elite |
Posted: Wed Jul 18, 2018 3:09 pm Post subject:
|
|
From very early version this tool has used [AIEdit] for getting last used ID for making a new next ID.
You have that as a teamtype which is a mistake for the tool. You should search for AIEdit in your AI.ini and replace with a different ID for both section and list. There should be only a single section without any list entry for [AIEdit] with only Index= entry. That Index= value is the AIEdit's last used hex ID 's decimal value.
If that sounds difficult, share your INI publicly or privately. |
|
 |
Ich-Henker |
Posted: Wed Jul 18, 2018 2:18 pm Post subject:
|
|
Hey, thanks for answering. To clarify: It was a team i am not talking about the index at the end of the aimd.ini, it was a real team crated by the program while saving. It had an index entry in the team list always at the last spot in the list, thats why i created a normal test team as a desperate idea before saving, i was very surprised by this because I used an older version of ai edit for years now ... what does this error message universally mean?
...now it is back after some renaming of task forces and adjusting some team types in its usage of task forces - i have no errors in aiedit btw. and aicheck doesn't give any ai errors too...[/img] |
|
 |
E1 Elite |
Posted: Wed Jul 18, 2018 1:12 pm Post subject:
|
|
Internally the tool stores in sorted format, so the saves are also sorted.
Also don't delete the [AIEdit] section as its Index= is used to get the next new section IDs by the tool. It is not a team and you shouldn't create a team with that ID or use that name in any of the list in AI.ini.
The tool is implemented that way. Those could be personalized/improved, the source code is available. |
|
 |
Ich-Henker |
Posted: Wed Jul 18, 2018 11:53 am Post subject:
|
|
THanks indeed!
There is one question for me, is there a way to stop the alphabetical or ID ordering or triggers, I made my own ordering scheme before and this tosses it away, I am willing to adapt but a question doesn't hurt.
And I get an error whenever i save my file with ai edit because it creates an [AIEdit] Team, if I erase it, I can open it again but if I save it creates this team again wich makes it unopenable with this message: System.ArgumentNullException: Der Wert darf nicht NULL sein.
Parametername: String
Edit: For now I got rid of it by creating test teams before saving, this stopped the aiedit team to appear... |
|
 |
cxtian39 |
Posted: Mon Mar 26, 2018 9:28 pm Post subject:
|
|
Thanks E1 Elite! |
|
 |
E1 Elite |
Posted: Mon Mar 26, 2018 8:13 pm Post subject:
|
|
Updated version 2.0.3.4
Changes:
- TeamType fields of Max/Priority/Techlevel now allows negative numbers also.
Attaching the updated version and the source code changes over the v2.0.3. |
|
 |
cxtian39 |
Posted: Mon Mar 26, 2018 7:32 pm Post subject:
|
|
I have a suicide aircraft with LimboLaunch=yes but then it's not considered dead after firing so AI can only build the team Max= times. |
|
 |
E1 Elite |
Posted: Mon Mar 26, 2018 1:25 pm Post subject:
|
|
Max=-1 is valid value but same can be achieved like with Max=1000.
You have to put some limit using condition check in AITrigger otherwise
it keeps on producing.
If you or others want I can give a private/public build which allows -ve
numbers in Priority/Max/Techlevel by switching datatype in the code
from unsigned int to integer.
My intention was to do more proper code changes but felt Max=-1 isn't
useful enough and alternative exists, so didn't do it. |
|
 |
cxtian39 |
Posted: Mon Mar 26, 2018 9:32 am Post subject:
|
|
Can't set Max=-1. If I do it manually, it automatically changes it to 0. |
|
 |
PussyPus |
Posted: Fri Mar 23, 2018 10:54 am Post subject:
|
|
Now that's easier to make without AI.INI manually. |
|
 |
E1 Elite |
Posted: Fri Mar 23, 2018 5:18 am Post subject:
|
|
Updated version 2.0.3.3
Changes:
- Script action's parameters now allow negative numbers wherever needed.
- Script actions 53, 54 and 55 now has editable parameters for YR (config\yr.ini).
Script actions 53, 54 and 55 uses 0 as parameter in vanilla YR but Ares
now allows non-zero parameters also.
Attaching the updated version and the source code changes over the v2.0.3. |
|
 |
G-E |
Posted: Sun Feb 18, 2018 11:37 pm Post subject:
|
|
MadHQ wrote: | My game never crashed. Either way I am going to fix it. |
What does my AICHECK say about it? |
|
 |
MadHQ |
Posted: Sun Feb 18, 2018 6:14 am Post subject:
|
|
LOL!!!
There is some thing wrong with my INI file... This was the taskforce that was erroring out... I need to find out if that was even used... My game never crashed. Either way I am going to fix it.
Code: | [0AE3596C-G]
Name=4 PREDTNK
0=4 PREDTNK, 2 WLFRIN
1=2,WLFRIN
Group=-1 |
|
|
 |
E1 Elite |
Posted: Sun Feb 18, 2018 6:06 am Post subject:
|
|
Use v2.0.3.2 that is attached above. It will show which Taskforce entry is giving
problem. Check if a number is given where it is expected. |
|
 |
MadHQ |
Posted: Sun Feb 18, 2018 4:12 am Post subject:
|
|
I do not know if this error is known... I am not sure what to do about it either.
My AI file cant be bad... My games does not crash.
The error appears after I load the AIMD.ini, there is no types of patching code used.
I can PM you my rules/ai if needed to help debug.
Full error message in the spoiler.
Spoiler (click here to read it): | See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt)
at AIEdit.TaskForce.Parse(String id, OrderedDictionary section, List`1 technoTypes, List`1 groupTypes, Logger logger)
at AIEdit.frmMainNew.LoadTaskForces(Dictionary`2 ai, List`1 technoTypes, List`1 groupTypes)
at AIEdit.frmMainNew.LoadData(String rulesPath, String aiPath)
at AIEdit.frmMainNew.LoadAI(String rulesfile, String aifile)
at AIEdit.frmMainNew.mnuLoad_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2600.0 built by: NET471REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
AIEdit
Assembly Version: 2.0.6255.38615
Win32 Version: 2.0.3
CodeBase: file:///C:/Users/Max/Downloads/aieditv2_0_3/AIEdit.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2600.0 built by: NET471REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ObjectListView
Assembly Version: 2.9.1.40222
Win32 Version: 2.9.1.0
CodeBase: file:///C:/Users/Max/Downloads/aieditv2_0_3/ObjectListView.DLL
----------------------------------------
************** 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.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box. |
|
|
 |
E1 Elite |
Posted: Mon Jan 15, 2018 3:39 am Post subject:
|
|
For rename, select an entry on the left panel and press F2 or double click. |
|
 |
TK3600 |
Posted: Sun Jan 14, 2018 9:59 pm Post subject:
|
|
Ever considered adding a rename option in the editor? Sometimes I change the taskforce comp from 4 terrorists to 3, I would like to change the name to 3 terrorists as well. |
|
 |
E1 Elite |
|
 |
TK3600 |
Posted: Wed Jan 10, 2018 10:46 pm Post subject:
|
|
May I ask what does group do? No group, Any group, Group 1 and etc. |
|
 |
TK3600 |
Posted: Wed Jan 10, 2018 9:41 pm Post subject:
|
|
E1 Elite wrote: | Updated version 2.0.3.2
Changes:
- Added an error message with faulty ID before throwing an exception while parsing AI ini.
Attaching the updated version and the source code changes over the v2.0.3. |
Thank you! Even though I learned to do it manually but this will be very helpful! |
|
 |
E1 Elite |
Posted: Sun Dec 24, 2017 7:21 am Post subject:
|
|
Updated version 2.0.3.2
Changes:
- Added an error message with faulty ID before throwing an exception while parsing AI ini.
Attaching the updated version and the source code changes over the v2.0.3. |
|
 |
E1 Elite |
Posted: Mon Sep 18, 2017 1:43 am Post subject:
|
|
Download aieditv2_0_3_1.zip from the above post or aieditv2_0_3.zip from
the first post. Unzip into a folder of your choice. Run AIEdit.exe from it. |
|
 |
TK3600 |
Posted: Sun Sep 17, 2017 8:32 pm Post subject:
|
|
Excuse me for a noob question, but how do I run this program? |
|
 |
Lin Kuei Ominae |
Posted: Sun Aug 27, 2017 8:03 am Post subject:
|
|
works now
thanks |
|
 |
E1 Elite |
Posted: Sun Aug 27, 2017 7:03 am Post subject:
|
|
Updated version 2.0.3.1
Changes:
- Application path is used to compute the full path of config files.
Attaching the updated version and the source code changes over the v2.0.3.
@LKO: This should fix your case, though I couldn't test it specifically. |
|
 |
Lin Kuei Ominae |
Posted: Sat Aug 26, 2017 7:49 pm Post subject:
|
|
i do start the exe directly
from its own folder on D:\modtools\AIEdit
The editor starts fine and asks for rules.ini and ai.ini, after i have selected them i always get the error message. |
|
 |
E1 Elite |
Posted: Sat Aug 26, 2017 6:30 pm Post subject:
|
|
Just tried with AI Editor v2.0.3 and v2.0.2.2, with TI 0.65 and DTA 1.1574,
loading INI files from both the game folder and a subfolder inside AIEdit.
All work without problems. Only shows some possible errors and
duplicates etc. in the INIs. No loading problems.
Edit:
If you make a link of EXE, right click - properties and don't have a correct
Start in folder, that could be your case. Try running the EXE itself or try
making a link with correct start in folder.
Program needs .NET Framework 4.xx. |
|
 |
Lin Kuei Ominae |
Posted: Sat Aug 26, 2017 6:07 pm Post subject:
|
|
You download aieditv2_0_3.zip (the attachment on the first post of this topic) and not the source.
Then start the exe.
@E1 & Askeladd
got a crash when opening TI or DTA inis
Quote: | System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Strategy\C&C_DTA_DEV\INI\config\ts.ini'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
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, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path) |
it seems to try loading the config files from the game directory and not the directory of the editor. |
|
 |
TK3600 |
Posted: Sat Aug 26, 2017 5:57 pm Post subject:
Noob Question
|
|
What is the software needed to run the program? I cannot open .cs file. |
|
 |