Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Mon Dec 30, 2024 4:04 pm
All times are UTC + 0
Ding Ding... RA2 INI cross-checking scripts *UPDATED for YR*
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   This topic is locked: you cannot edit posts or make replies. Page 1 of 4 [159 Posts] Mark the topic unread ::  View previous topic :: View next topic
Goto page: 1, 2, 3, 4 Next
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Feb 11, 2015 5:48 pm    Post subject:  Ding Ding... RA2 INI cross-checking scripts *UPDATED for YR* Reply with quote  Mark this post and the followings unread

Ok so a little background... I made a MOD, a good one, it was pretty much "done" in 2007, but I had a harddrive crash BOO!

So I found a semi-recent backup from late '06 or early '07, and decided to give it a whirl over the holidays @ 1080P... I was blown away by the fact that a silly 15yr old game could run resolutions that high, and that my mod was still so much fun.

I decided I had to RE-finish it!

Anyway, I had also written a script called "check.tcl" originally to help save my sanity, which later evolved into "mapcheck.tcl" and later still into "aicheck.tcl"... you can kinda see the progression of purpose.

Very early on, before Deezire was "the man" I was modding the AI as best I could, using my knowledge of tactics and balance, it was wonderous and fun, I just never shared publicly... only some early maps I made.

Just FYI I was also heavily involved in both the testing and feature requests during the last few versions of FinalAlert development, before Westwood bought it... if that gives me any credibility, one guy knows me hahahah #Tongue

So here's my scripts, give em a whirl... you'll have to edit them both to set your path correctly, and unfortunately it only "works" for RA2 and doesn't do YURI...

Feel free to ask questions...

Oh and you'll have to download the ActiveTCL runtimes from ActiveState for windows to use em...



aiclean-screen.jpg
 Description:
 Filesize:  323.73 KB
 Viewed:  24681 Time(s)

aiclean-screen.jpg



aicheck-screen.jpg
 Description:
 Filesize:  130.71 KB
 Viewed:  24681 Time(s)

aicheck-screen.jpg



Last edited by G-E on Sun Feb 22, 2015 5:52 pm; edited 2 times in total

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Feb 11, 2015 6:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

Script 1: AICHECK

This is the general cross-checker, great for finding unit/declaration errors, things you've forgot, or renamed without remembering some other instance.

This one should be the go-to script you run after a round of edits or rules.ini .. it will make sure you know you forgot to update art.ini Wink

Make sure you read the "check.log" it creates, you might be surprised how bad the unaltered RA2 was when it shipped... total mess really.

Thanks to this one, the only Exception errors are the virtual address ones caused by corrupted .mix resources...

Since I also name my maps consistently athse-*.mpr, I added a quick commandline option to check them all, but you could just as easily run it:

 tclsh aicheck.tcl *.mpr

It does some basic dependency checks, including the AI, which is easily forgotten, I find AI errors were my #1 cause of ingame crashes...  but then my AI is heavily modded, I have some 600 triggers, lots of them house specific..

Script 2: AICLEAN

This one is your post-mod cleanup, if you want it to be, otherwise it's a great way to review the scripts used by your AI...

It outputs a "translated.log" of the entire [ScriptTypes] section, so you can read in plan english wtf is going on..

For the OCD types, it alphabetically sorts the entire ai.ini except the triggers, and removes all comments, to make it nice and clean.

The best part for a novice will be the translator, but it will also come in handy to veterans with giant AI's like me Smile


CAVEATS: Neither script can extract any of the INI's from .mix files, not the Westwood ones, not a mod's... so you'll have to make sure you've extracted them all:

rules.ini
art.ini
ai.ini

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Apr 03, 2015 11:23 am    Post subject: UPDATES Reply with quote  Mark this post and the followings unread

Ok I took a break from modding to roll my AICHECK updates into the YR version, only to realize I don't need to keep 2 forks of the code if I just properly re-format the YR AI...

Sooooo, I updated AICLEAN to handle the garbage that is YR and make it cohesive again!

The new AICLEAN will reorganize your aimd.ini so that declarations come first, the code that belongs in that section after, and also makes the order match the RA2 ai.ini.

Some minor fixes, and error handling have been cleaned up, it should remove all comments and blank lines like "2=" in a script for example. It still re-numbers all the declarations, but now adds all the tags that weren't declared, instead of simply deleting them as previously.

As mentioned above, you will have to edit the scripts to point to your installation, and set some options.

Please report any bugs or crashes Smile

Last edited by G-E on Sat Apr 04, 2015 8:59 am; edited 1 time in total

Back to top
View user's profile Send private message
Millennium
Commander


Joined: 09 Mar 2008
Location: Osaka (JP)/Hong Kong/Germany

PostPosted: Fri Apr 03, 2015 9:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is awesome, too bad it's not compatible with ARES/#include.

_________________
Mao Zedong wrote:

Our mission, unfinished, may take a thousand years.  

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Apr 04, 2015 12:49 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks, but what are you including exactly?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Millennium
Commander


Joined: 09 Mar 2008
Location: Osaka (JP)/Hong Kong/Germany

PostPosted: Sat Apr 04, 2015 1:30 am    Post subject: Reply with quote  Mark this post and the followings unread

#include is a function in Ares which allows you to use seperate ini files for certain parts of your rulesmd. It doesn't give extra functionality as such, it just helps with organizing your code.

Personally, I use it have my inis organized like in Gen/ZH pretty much, so a particle.ini, weapon.ini, an armor.ini, etc

_________________
Mao Zedong wrote:

Our mission, unfinished, may take a thousand years.  

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Apr 04, 2015 3:11 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh I see, so AICLEAN should still work provided your declarations are still in the main rules.ini and only the unit/building code is moved out?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Apr 04, 2015 9:34 am    Post subject: Reply with quote  Mark this post and the followings unread

Another update, this time to the MAP parsing section...

Now checks Aircraft, Terrain and Smudge sections for invalid/missing objects, I stopped short of adding Overlays since I figured you aren't likely messing with bridges and ore being so finicky to get right (using something premade).

I ran through all my maps, found 1 missing building which I had commented out in rules.ini, so it seems to work nicely Smile

The output for map checking now shows unit totals used on the map for reference, and I also modified some of the error messages to make it more obvious if you set the variables wrong too #Tongue

Last edited by G-E on Sun Apr 05, 2015 12:35 am; edited 1 time in total

Back to top
View user's profile Send private message
BySc
Cyborg Artillery


Joined: 07 Jul 2013
Location: Turkey

PostPosted: Sat Apr 04, 2015 10:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Really nice sir.

_________________

Back to top
View user's profile Send private message ModDB Profile ID
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Apr 04, 2015 11:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

The "clean" aimd.ini size: 341,597 bytes

The original aimd.ini size: 341,169 bytes

The end of [Taskforces] looks like this:
393=0ECCF03F-G
394=0Z13371B-G
395=0Z13371Z-G
396=OreMiners

The end of [ScriptTypes] looks like this:
199=0ECC9B0C-G
200=0ECC9B0E-G
201=EDFAGTG
202=EDFAIRSTRIKE

The end of [TeamTypes] looks like this:
398=0ECCB03E-G
399=0Y1337ZA-G
400=LightAttack
401=OREMINER-G

So everything properly declared in alphabetical order...

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Apr 05, 2015 12:35 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok I spent more time finessing the code, seems it wasn't removing all junk lines from properly declared AI elements...

After looking through the aimd.ini I saw comments spread over 2 lines and other things that shouldn't be, so those are now wiped out when cleaning too Smile

Also made auto-detection of undeclared tags a little more elegant.

Have fun chasing crashes with it Smile

Last edited by G-E on Sat May 23, 2015 10:03 am; edited 1 time in total

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat May 23, 2015 6:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Not that anyone seems to care, but I updated them again a tiny bit...

MAPCLEAN script added to remove redundant FA2 added junk...

Last edited by G-E on Thu Jun 18, 2015 1:24 pm; edited 3 times in total

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat May 23, 2015 9:46 am    Post subject: Reply with quote  Mark this post and the followings unread

From what I can gather these scripts do exactly the same things as INI checker & AI editor but without a user friendly GUI?

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat May 23, 2015 9:56 am    Post subject: Reply with quote  Mark this post and the followings unread

Not exactly, AICHECK does more than find errors, or missing entries, it also tells you what's unused, or house dependency errors in the AI. It can also run through a map you specify on the commandline for invalid buildings/units based on your rules.ini, which can help you if you're adapting someone else's map to your mod.

AICLEAN will strip out all the junk/comments from rules.ini and ai.ini if you want it to. It also re-organizes the sections in ai.ini with proper declaration lists, but also provides an english output for the ScriptTypes section.

MAPCLEAN is a new script I just added, it removes redundant sections from multiplayer maps added by FinalAlert, although you can customize what sections are removed by editing the removetags in the script. Naturally it supports batch operation like *.mpr to clean all of them in one go.

They all run very quickly, and the output generated is meant for someone to quickly glance through looking for the important stuff. There's no need for a fancy GUI when you just want to know if you screwed anything up in your last update.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat May 23, 2015 10:02 am    Post subject: Reply with quote  Mark this post and the followings unread

I setup a batch file to launch AICHECK since that's the important one:

Code:
@tclsh aicheck3.tcl
pause
@start check.log


I add pause when I work on the scripts or do a fresh install, it will show the dos box waiting for a key press, if it crashes you'll know why then, or can show my a screenshot to tell you why. Then once it completes in about 0.8sec it pops up the log to show the things it didn't like.

I should also add that both AI editors linked elsewhere on the site fail to work on my machine, one crashes, the other refuses to operate citing string errors. My scripts are very tolerant, and work on any version of windows or I imagine  emulated windows.

Back to top
View user's profile Send private message
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat May 23, 2015 10:11 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for the clarification.

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Symphonic
Tiberian Fiend


Joined: 06 Jan 2009

PostPosted: Thu Jun 18, 2015 5:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Were you around on federation studios?  If so I think I recognize your username.  Regardless, thanks for posting this here, I look forward to playing around with it when I get my windows computer set back up.  Welcome back.

_________________
PreRA2 Dev Lead

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Jun 18, 2015 11:27 am    Post subject: Reply with quote  Mark this post and the followings unread

Maybe, honestly I was on more of the C&C/RA1 forums of the day, I regularly used to make maps. I did join a bunch of RA2 focused sites of course, but I didn't frequent most of them, most voxels were garbage, most ideas were regurgitated, the tools were still in their infancy. Once again I focused on maps and rules.ini modding, so I made friends with Matze and was one of his closest beta testers, along with whatever features/changes I inspired him to add...  I still have a copy of FA2 0.97a here #Tongue

Now as per RP's insistence of the numerical ordering of the lists, I did indeed verify what's to the left of equal doesn't really matter, so it can't be subtracting 1.

Therefore I'm updating my AICLEAN to re-order all the major lists in rules.ini starting from 0, if that option is enabled. I'll also add an option to keep inline comments. Inline meaning at the end of a line rather than on their own lines, it could be useful to keep alternate values or other data.

Once I'm done I'll check with the cleaned inis to see if everything still works normally, if so I'll update the download link in this thread.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Jun 18, 2015 1:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

*baleeted*

Last edited by G-E on Fri Jan 29, 2016 6:54 am; edited 1 time in total

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Mon Aug 17, 2015 7:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

Could you please explain what is to be changed in addition to the directory files in the aicheck3.tlc in order to use it with Yurs Revenge?

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Mon Aug 17, 2015 8:52 pm    Post subject: Reply with quote  Mark this post and the followings unread

If you open the .tcl in notepad, you'll see there's a few set lines with descriptions, namely the directory and the filenames of the inis. Each of the .tcl scripts need those variables set correctly to function, as each one is launched by itself.

Since there's no actual structural difference with rules vs rulesmd, it just needs to know which one to open.

One thing you will need to do however is run AICLEAN on your aimd.ini before it can be parsed properly, this is due to the sections being jumbled.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Tue Jan 26, 2016 10:27 am    Post subject: Reply with quote  Mark this post and the followings unread

New AICheck 3.4...

Checks for:
- objects are properly indexed
- indexed objects with no actual data
- referenced objects exist
- any orphaned objects
- any duplicate objects
- all prerequisites exist
- basic checks to verify an object is what it's supposed to be
- weapons have valid projectiles and warheads
- all sprites, debris, voxels etc are referenced in art.ini
- VoxelAnims have Voxel=yes set
- buildings, units, smudges and terrain objects in specified maps exist
- warheads have valid Verses= values
- all AITriggers use valid TeamTypes, and aren't duplicated
- all TeamTypes use valid ScriptTypes and TaskForces
- all ScriptTypes reference existing buildings
- all TaskForces reference existing units
- house specific units and buildings are valid for AITriggerTypes house
- AITriggerTypes house doesn't use ForbiddenHouses units or buildings
- AITriggerTypes uses valid ranges of weights, TechLevel, octal data
- houses specified for AITriggerTypes match their specified side
- valid number of line items in TaskForces and ScriptTypes objects
- missing Name= identifier on objects in ai.ini

Outputs:
- all errors found in rules.ini, art.ini, ai.ini and any maps specified
- optionally lists all RequiredHouses and ForbiddenHouses objects
- displays summary totals of AI objects

Note there will be some false-positive errors, and irrelevant errors, but it's a good habit to eliminate all the errors it finds, so that any modding mistakes aren't compounded.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Thu Dec 01, 2016 7:03 am; edited 2 times in total

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Jan 28, 2016 9:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ok SoundCheck 1.2...

Checks for:
- incorrect ordering of entries (like repeating earlier numbers)
- sounds that exist but aren't indexed
- sounds that are indexed but have no data
- missing sounds used in rules.ini/art.ini
- incorrectly spelled sound names
- duplicate sound data
- duplicate sound entries in the index

Lists:
- total unique sounds used in each rules.ini/art.ini
- total unused sounds in sound.ini
- total warnings
- total errors

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Thu Dec 01, 2016 7:03 am; edited 1 time in total

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Jan 29, 2016 6:49 am    Post subject: Reply with quote  Mark this post and the followings unread

AIClean 3.6... small updates, plus the YR script translations.

Unlike the other scripts, this one isn't so much an error checker, it corrects some obvious issues, but nothing substantial. It is for preparing the vanilla ai.ini/aimd.ini for first editing, or cleaning for public release, because who wants to release a sloppy AI with comments and garbage all over?

Basic functions:
- attempts to reclassify orphaned objects based on values within
- indexes unindexed TaskForces, TeamTypes, ScriptTypes
- alphabetically sorts indexed objects
- renumbers indexes optionally
- removes all comments, but optionally retains inline comments
- outputs a translated.log (a plain english translation of all ScriptTypes)
- identifies script actions only applicable to Yuri's Revenge in translated.log
- outputs a new cleaned ai.ini with each index ahead of object data

The script can be set to create ai(NEW).ini as the output, or to rename the original to a timecode, and output the new file in place of the original. It will use whatever filename your ai.ini actually is, you just have to set the variable in the script, even if it's myfunkyai.ini for use with your Ares mod.

There's also a weee option called cleanrules, this allows the script to remove all the comments from rules.ini simultaneously since it has to open it and read it to figure out what the script action numbers refer to.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Thu Dec 01, 2016 7:02 am; edited 1 time in total

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Jan 29, 2016 7:01 am    Post subject: Reply with quote  Mark this post and the followings unread

MapClean 1.0a  Smile

Simple script to remove all the junk FinalAlert adds to new multiplayer maps. Not exactly critical, but things like AITriggerTypesEnable, and adding copies of all the houses, adds a fair chunk of useless data.

Within the script there's a list of tags/sections to remove, so if your mod causes FA2 to add other stuff I didn't list, feel free to add yours.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Thu Dec 01, 2016 7:02 am; edited 1 time in total

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Jun 23, 2016 5:18 am    Post subject: Reply with quote  Mark this post and the followings unread

Had a weird problem, turned out I corrupted a section of ai.ini so it had nothing to do with it, but I updated AICHECK in the meantime.

Now checks for unused art.ini objects, live vestigial leftovers from TS, and now checks that all declared animations exist in art.ini, including animations only declared within art.ini itself, like activeanims.

It also does more thorough duplicate checking, and has the option to ignore the Bibshape and Buildup animations errors, because as we know, many are never declared in rules.ini as animations.

There's probably more I forgot...

Code:


---- RULES.INI ----

processing declarations...

checking [Animations]...
[GAYARD_B] -> ANIMATION missing art data: GAYARD_B
[NAPOST_AD] -> ANIMATION missing art data: NAPOST_AD
[NATECH_A] -> ANIMATION missing art data: NATECH_A
[NAPOST_B] -> ANIMATION missing art data: NAPOST_B
[NAREFN_A] -> ANIMATION missing art data: NAREFN_A
[NAREFN_B] -> ANIMATION missing art data: NAREFN_B
[NAREFN_C] -> ANIMATION missing art data: NAREFN_C
[GAPILE_CD] -> ANIMATION missing art data: GAPILE_CD
[NEWEXP02A] -> ANIMATION missing art data: NEWEXP02A
[NAWEAP_AD] -> ANIMATION missing art data: NAWEAP_AD
[GAPILE_C] -> ANIMATION missing art data: GAPILE_C
[GACSPH_A] -> ANIMATION missing art data: GACSPH_A
[SPEED] -> ANIMATION missing art data: SPEED
[NAHAND_BD] -> ANIMATION missing art data: NAHAND_BD
[NASAM_A] -> ANIMATION missing art data: NASAM_A
[GAGAPMK] -> ANIMATION missing art data: GAGAPMK
[HAVOCRING] -> ANIMATION missing art data: HAVOCRING
[NAFLAKMK] -> ANIMATION missing art data: NAFLAKMK
[GACNSTMK] -> ANIMATION missing art data: GACNSTMK

checking [VoxelAnims]...

re-classifying undeclared tags...

checking [InfantryTypes]...

checking [VehicleTypes]...
[DIABLO] -> undefined ANIM art: NEWEXP02A
[SCUD] -> undefined ANIM art: NEWEXP02A
[BIGV3] -> undefined ANIM art: NEWEXP02A

checking [AircraftTypes]...

checking [BuildingTypes]...

checking [Particles]...
[GasCloudM1] -> undefined PARTICLE art: GASLRGMK
[GasCloudD2] -> undefined PARTICLE art: WCCLOUD1
[GasCloudM2] -> undefined PARTICLE art: GASLRGMK
[LargeGreySmoke] -> undefined PARTICLE art: LGRYSMK1
[FireStream] -> undefined PARTICLE art: FLAMTHRO
[Gas2Cloud] -> undefined PARTICLE art: WCCLOUD1
[SmallGreySmoke] -> undefined PARTICLE art: SGRYSMK1
[TestSmoke] -> undefined PARTICLE art: t4_ib
[GasCloud1] -> undefined PARTICLE art: WCCLOUD1
[LargeRailgunPart] -> undefined PARTICLE art: TSTIMPCT
[GasCloud2] -> undefined PARTICLE art: WCCLOUD1
[GasCloudD1] -> undefined PARTICLE art: WCCLOUD1

checking [ParticleSys]...

checking [Projectiles]...

checking [Warheads]...

checking [Weapons]...
[BlackHawkCannon] -> WEAPON exists but is unused
[ChaosGas] -> WEAPON exists but is unused
[20mmRapid] -> WEAPON exists but is unused
[MedusaE] -> WEAPON exists but is unused
[PrismShot3] -> WEAPON exists but is unused
[CruiserMissile] -> WEAPON exists but is unused
[SZAP] -> WEAPON exists but is unused
[SentryCannon] -> WEAPON exists but is unused
[GrinderGun] -> WEAPON exists but is unused
[Medusa] -> WEAPON exists but is unused
[20mmRapidE] -> WEAPON exists but is unused
[FakeGun] -> WEAPON exists but is unused

checking undeclared/orphan tags...


---- ART.INI ----

[NADEPT_C1] -> ALTERNATE ART missing data: NADEPT_C
[NADEPT_C2] -> ALTERNATE ART missing data: NADEPT_C
[NADEPT_C3] -> ALTERNATE ART missing data: NADEPT_C
[NADEPT_C4] -> ALTERNATE ART missing data: NADEPT_C
[NADEPT_C5] -> ALTERNATE ART missing data: NADEPT_C
[NADEPT_C6] -> ALTERNATE ART missing data: NADEPT_C
[XCOMET] -> ALTERNATE ART missing data: MTNK
[GACSAM] -> ALTERNATE ART missing data: GACTWR_D
[GAVULC] -> ALTERNATE ART missing data: GACTWR_B
[NAYARD_S1] -> ALTERNATE ART missing data: NAYARD_S
[NAYARD_S2] -> ALTERNATE ART missing data: NAYARD_S
[NAYARD_S3] -> ALTERNATE ART missing data: NAYARD_S
[NAYARD_S1D] -> ALTERNATE ART missing data: NAYARD_S
[GAYARD_S1D] -> ALTERNATE ART missing data: GAYARD_S
[NAYARD_S2D] -> ALTERNATE ART missing data: NAYARD_S
[GAYARD_S2D] -> ALTERNATE ART missing data: GAYARD_S
[NAYARD_S3D] -> ALTERNATE ART missing data: NAYARD_S
[GAYARD_S3D] -> ALTERNATE ART missing data: GAYARD_S
[GAYARD_S1] -> ALTERNATE ART missing data: GAYARD_S
[GAYARD_S2] -> ALTERNATE ART missing data: GAYARD_S
[GAYARD_S3] -> ALTERNATE ART missing data: GAYARD_S
[GAROCK] -> ALTERNATE ART missing data: GACTWR_C


[CRYSTAL01] -> VOXELANIM missing art data: SONIC
[SONICTURRET] -> VOXELANIM missing art data: SONIC
[PEBBLE] -> VOXELANIM missing art data: MTRB
[METEOR01] -> VOXELANIM missing art data: MTRS
[METEOR02] -> VOXELANIM missing art data: MTRB


[XCOMET] -> undefined VEHICLE art: MTNK
[ASWVirt] -> undefined PROJECTILE art: ASWVirt
[ProtonBlast] -> undefined PROJECTILE art: Torpedo
[CACHIG05D] -> object ART exists but is undeclared/unused
[VirusSequence] -> object ART exists but is undeclared/unused
[SAM-E] -> object ART exists but is undeclared/unused
[SAM-NW] -> object ART exists but is undeclared/unused
[MONOENG] -> object ART exists but is undeclared/unused
[NAFNCE] -> object ART exists but is undeclared/unused
[BBOARD01] -> object ART exists but is undeclared/unused
[SPIKE] -> object ART exists but is undeclared/unused
[BBOARD02] -> object ART exists but is undeclared/unused
[BBOARD03] -> object ART exists but is undeclared/unused
[BBOARD04] -> object ART exists but is undeclared/unused
[BBOARD05] -> object ART exists but is undeclared/unused
[BBOARD06] -> object ART exists but is undeclared/unused
[BBOARD07] -> object ART exists but is undeclared/unused
[BBOARD08] -> object ART exists but is undeclared/unused
[MedicSequence] -> object ART exists but is undeclared/unused
[BBOARD09] -> object ART exists but is undeclared/unused
[BBOARD10] -> object ART exists but is undeclared/unused
[SAM-N] -> object ART exists but is undeclared/unused
[BBOARD11] -> object ART exists but is undeclared/unused
[SJAGUAR] -> object ART exists but is undeclared/unused
[BBOARD12] -> object ART exists but is undeclared/unused
[SHADOW] -> object ART exists but is undeclared/unused
[BBOARD13] -> object ART exists but is undeclared/unused
[METSMALL] -> object ART exists but is undeclared/unused
[BBOARD14] -> object ART exists but is undeclared/unused
[BBOARD15] -> object ART exists but is undeclared/unused
[CAPYR01] -> object ART exists but is undeclared/unused
[SAM-S] -> object ART exists but is undeclared/unused
[BBOARD16] -> object ART exists but is undeclared/unused
[GAWEAPBB] -> object ART exists but is undeclared/unused
[CAPYR02] -> object ART exists but is undeclared/unused
[NEWEXP2A] -> object ART exists but is undeclared/unused
[CAPYR03] -> object ART exists but is undeclared/unused
[VEINATAC] -> object ART exists but is undeclared/unused
[NAPULS] -> object ART exists but is undeclared/unused
[METLTRAL] -> object ART exists but is undeclared/unused
[SAM-W] -> object ART exists but is undeclared/unused
[STEAMPUF] -> object ART exists but is undeclared/unused
[PDPLANE2] -> object ART exists but is undeclared/unused
[TWINKLE1] -> object ART exists but is undeclared/unused
[TWINKLE2] -> object ART exists but is undeclared/unused
[BURN-L] -> object ART exists but is undeclared/unused
[BorisSequence] -> object ART exists but is undeclared/unused
[TWINKLE3] -> object ART exists but is undeclared/unused
[BURN-M] -> object ART exists but is undeclared/unused
[YURICNTL] -> object ART exists but is undeclared/unused
[COWSequence] -> object ART exists but is undeclared/unused
[SQUARE45] -> object ART exists but is undeclared/unused
[HORNET2] -> object ART exists but is undeclared/unused
[PODRING] -> object ART exists but is undeclared/unused
[HERCULES] -> object ART exists but is undeclared/unused
[METDEBRI] -> object ART exists but is undeclared/unused
[InitSequence] -> object ART exists but is undeclared/unused
[NAFISTMK] -> object ART exists but is undeclared/unused
[SAM-SE] -> object ART exists but is undeclared/unused
[BURN-S] -> object ART exists but is undeclared/unused
[NAWEAPBB] -> object ART exists but is undeclared/unused
[BBBLELRG] -> object ART exists but is undeclared/unused
[NATSLADM] -> object ART exists but is undeclared/unused
[TORPEDO] -> object ART exists but is undeclared/unused
[FPLS] -> object ART exists but is undeclared/unused
[MISLSAM] -> object ART exists but is undeclared/unused
[GAORE] -> object ART exists but is undeclared/unused
[METLARGE] -> object ART exists but is undeclared/unused
[TREESPRD] -> object ART exists but is undeclared/unused
[GACNSTDM] -> object ART exists but is undeclared/unused
[NAAPWR] -> object ART exists but is undeclared/unused
[CARGOCAR] -> object ART exists but is undeclared/unused
[DURASMOKE] -> object ART exists but is undeclared/unused
[LunarSequence] -> object ART exists but is undeclared/unused
[CACRSH01] -> object ART exists but is undeclared/unused
[NAPOST] -> object ART exists but is undeclared/unused
[CACRSH02] -> object ART exists but is undeclared/unused
[CACRSH03] -> object ART exists but is undeclared/unused
[SMOKEY] -> object ART exists but is undeclared/unused
[SAM-SW] -> object ART exists but is undeclared/unused
[SQDP] -> object ART exists but is undeclared/unused
[CACRSH04] -> object ART exists but is undeclared/unused
[NAGATE_A] -> object ART exists but is undeclared/unused
[SAM-NE] -> object ART exists but is undeclared/unused
[CANISTER] -> object ART exists but is undeclared/unused
[NAFISTBB] -> object ART exists but is undeclared/unused
[CACRSH05] -> object ART exists but is undeclared/unused
[NAGATE_B] -> object ART exists but is undeclared/unused
[ICBM] -> object ART exists but is undeclared/unused
[CACHIG04D] -> object ART exists but is undeclared/unused
[MONOCAR] -> object ART exists but is undeclared/unused
[APOCEXP] -> object ART exists but is undeclared/unused
[DoggieSequence] -> object ART exists but is undeclared/unused
[GGIA] -> object ART exists but is undeclared/unused
[EM] -> object ART exists but is undeclared/unused
[METSTRAL] -> object ART exists but is undeclared/unused




---- AI.INI ----


AVG_TT01 -> undefined heading under [TeamTypes]
AVG_TT02 -> undefined heading under [TeamTypes]

AI Totals:
 Taskforces:276
 Scripts:185
 TeamTypes:446
 Triggers:715



0D0814DC-G -> unused TASKFORCE
0D3052DC-G -> unused TASKFORCE
0D0816CC-G -> unused TASKFORCE
ST_TF05 -> unused TASKFORCE
ST_TF06 -> unused TASKFORCE
ST_TF07 -> unused TASKFORCE
AT_TF07 -> unused TASKFORCE
AT_TF08 -> unused TASKFORCE
AT_TF09 -> unused TASKFORCE
0D082F1C-G -> unused TASKFORCE
0A6E67CC-G -> unused SCRIPT
DDAY_AA -> unused SCRIPT
SDAY_SA -> unused SCRIPT
DDAY_AB -> unused SCRIPT
DDAY_AC -> unused SCRIPT
FUSION_GUARD -> unused SCRIPT
SDAY_SC -> unused SCRIPT
DDAY_AD -> unused SCRIPT
0C8A254C-G -> unused SCRIPT
SDAY_SD -> unused SCRIPT
SRAD_DEF -> unused SCRIPT
IFVGUARD -> unused SCRIPT
MTATTACK3 -> unused SCRIPT
DESTROYTOGUARD -> unused SCRIPT
DISGUISE_ATTACK2 -> unused SCRIPT
POWER_GUARD_A -> unused SCRIPT
DIRECT_VS_UNITS_REPEAT3 -> unused SCRIPT
0CE4A48C-G -> unused SCRIPT
0CE4CC8C-G -> unused SCRIPT
SDAY_AA -> unused SCRIPT
SDAY_AC -> unused SCRIPT
SDAY_AD -> unused SCRIPT
DDAY_SA -> unused SCRIPT
DDAY_SB -> unused SCRIPT
DDAY_SC -> unused SCRIPT
DDAY_SD -> unused SCRIPT
POWER_GUARD_S -> unused SCRIPT
0A3142EC-G -> unused SCRIPT
0C8A354C-G -> unused SCRIPT








---- MAPCHECK ----


Total processing time: 1371ms

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Jul 09, 2016 2:16 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 4.0 finally Smile

Made some small tweaks to the Overlay/Terrain parts, some housekeeping changes regarding animation parsing, etc.

I also finally figured out a fairly elegant way to check unit/building Owner= houses against the unit's used in the ai.ini -- similar in function to how ForbiddenHouses and RequiredHouses is parsed.

I caught 1 owner error of the backup TeamType in a trigger, must have been a copy-paste error.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Oct 22, 2016 6:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ok UPDATE TIME Smile

AICheck had some minor glitch that didn't process triggers correctly for something with dupes, I forget the details. There were also a some improvements to ownership matching with the taskforces/triggers.

AIClean has been updated with some new options, better comment/data filtering, and a new option that will sort all the options within Aircraft/Vehicles/Infantry to be in the same order for each. I had contemplated having it add missing default entries, but that gets messy with all the special cases.

As always, the goal is to help find and eliminate any potential errors that will cause crashes when you least expect it.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Thu Dec 01, 2016 7:02 am; edited 1 time in total

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Sun Nov 27, 2016 11:36 am    Post subject: Reply with quote  Mark this post and the followings unread

Hey,

i would like to run your aicheck but both the cleaner and the aicheck give me the same error message.

- I set the paths
- I set the filenames (YR)
- I downloaded and installed the recommended files
- I first run the cleaner, it creates a clean.log, the translated.log and a new rules(NEW).ini and ai(NEW).ini (while giving out the error message)
-then i run the check still on rulesmd.ini etc.
-then i run the check on the new cleaned versions

-still the same errors

?



E2.png
 Description:
 Filesize:  1.2 MB
 Viewed:  21354 Time(s)

E2.png



E1.png
 Description:
 Filesize:  998.29 KB
 Viewed:  21354 Time(s)

E1.png



Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Nov 27, 2016 10:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well it appears I do have a wee bug related to the thirdside, but before I upload a new version, sides(0) should not exist or be called, which meeeeaans it's a glitch in your ai.ini.

The triggers have the integer for which side a trigger is used by, and you must have one or more set to 0...

At the end of each trigger you see ",1,0,3,0,<none>,0,1,1" or something, that "3" represents the _side_, and 1=Allies, 2=Soviet, 3=Yuri. There is no zero side.

I'll try to clean up the error catching for this case, just looking at it now...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Mon Nov 28, 2016 12:50 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok updated with imrproved Sides handling, should be able to accept more than 3 sides as well now. The error above is indeed related to the value in the trigger, which is why I never caught it, as I never had an out of range value in mine.

Enjoy.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Thu Dec 01, 2016 7:04 am; edited 1 time in total

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Tue Nov 29, 2016 11:37 am    Post subject: Reply with quote  Mark this post and the followings unread

Good Work!
Thanks!

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Tue Nov 29, 2016 5:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Okay, your program is gold but despite creating a check.log it now gives this error message at a slightly other step:



aicheck.png
 Description:
 Filesize:  35.3 KB
 Viewed:  21185 Time(s)

aicheck.png



Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Nov 30, 2016 12:50 am    Post subject: Reply with quote  Mark this post and the followings unread

I don't see the TCL error to know what's going on there, so my first thought is you have a locked process holding up the write to the log....

So describe what you did? And if you want to send me your rules/ai/art inis privately I can take a quick look?

PS. Keep in mind these scripts don't support Ares' include function, so any relevant code would have to be in the main files...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Wed Nov 30, 2016 1:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hey hey,

I am still quite happy about your superb program; it catapults the cleanliness of my mod to new standards - thank you!

What I did was:

1. Run the Cleaner - it gave the old error from above (first or second pic I send) but created the clean.log anyway.
2. Run the checker that created the same error as above BUT now (after you updated it) created the check.log!
3. After cleaning most errors the check program started to give the new error at the different position (Parsing Trigger...) before it always gave the old one.
BTW I am using windows 7 64Bit. And I am not using the Ares include function.

PS: I mentioned this in the other thread the cleaner or checker scrambles Ares Tags within each unit all over the place - (survior tags for example) it is a minor disadvantage but can get pretty hard to deal with if you ordered hundred+ units before and now have to go through all of them again to recreate order - just for your developement of the program - i will still take that risk for it's overwhelming advantages in error fighting and cleanliness!.
Oh yea and the checker doesnt recognise occupy weapons as belonging to someone or being in use wich creates some false positives (all minor things). Just so you know Wink.

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Nov 30, 2016 6:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

I should mention this was developed for my own needs, and my own needs did not include unique YR functions. So YR support is still only developing, starting with the glaring errors first, then working towards the less important. Up until recently I could only call it "compatible" with YR as it didn't crash at least haha!

Personally, I would throw the scripts and batch files into your game directory, there's no real reason to have them off in the bushes, the TCL engine is already in the system.

I see one of the batch files you have has a pause in it, the other doesn't, if the error goes by too fast, add the pause or remove the REM to make that one pause too. If you show me TCL errors, I can fix em asap.



cleansettings.jpg
 Description:
 Filesize:  161.54 KB
 Viewed:  21129 Time(s)

cleansettings.jpg



_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Wed Nov 30, 2016 9:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Okay,

no errors occured with the checker if I put the files in the game directory!
I am curious if you could tweak the program a little to the Yuris Revenge users. Most of the people use Yuri anyway. I personally would love to see it evolve Smile

Things that i recognized:

1. Occupier weapons that are only used when occupying aren't checked as in use [ONeutronRifle] -> WEAPON exists but is unused.
2. Custom added Superweapons are looked at as orphan tags (even though they are listed in the rulesmd.ini under the superweapons list)
[AmerTankParaDropSpecial] -> unknown object/heading.
3. No crash or incompatibility with my modded Ares Yuris Revenge when starting up Smile!
4.Of course Ares alternate Prerequisite Groups aren't recognized ([YSPPPT] -> undefined prerequisite BUILDING: HIGHTECH)
4. Scrambling of Ares Tags.
5. Reordering of Scripts has a more randomizing effect.
6. TechTypes that use Image= are listed as undefined [CATIME] -> BUILDING not found or no data.
7. Barracks,Tech etc. are labeled as undefined [DOG] -> undefined prerequisite BUILDING: Barracks.
8. Everything else works golden!

Thanks again man!

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Dec 01, 2016 12:07 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh the generic prerequisites have to be all uppercase, others have to match the casing of the original. This might seem silly but I wanted to make sure it enforced object names as they were, to make everything consistent. As always the output is there to assist you, if you think it's ok, then ignore it.

I doubt I will add any Ares features, because there is already a decent debugger in it from what I see, and because it gets messy trying to filter what's correct for RA2 vs YR vs Ares.

I will add the infantry weapons checks now, and I will look into doing something with the superweapons, right now they are ignored.

*EDIT* Ok updated with the above, and I've deleted obsolete links in the thread, here are all four current scripts for download...



aiclean4.1.zip
 Description:

Download
 Filename:  aiclean4.1.zip
 Filesize:  8.34 KB
 Downloaded:  54 Time(s)


aicheck4.4.zip
 Description:

Download
 Filename:  aicheck4.4.zip
 Filesize:  11.75 KB
 Downloaded:  89 Time(s)


mapclean1.0a.zip
 Description:

Download
 Filename:  mapclean1.0a.zip
 Filesize:  1.98 KB
 Downloaded:  42 Time(s)


sndcheck1.2a.zip
 Description:

Download
 Filename:  sndcheck1.2a.zip
 Filesize:  3.18 KB
 Downloaded:  47 Time(s)


_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Thu Jan 19, 2017 7:08 am; edited 4 times in total

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Thu Dec 01, 2016 5:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Respect! Worked well!

May I ask, what Mapclean is?

Okay, after little testing I find this to be a very well executed program - if you want to perfect it a little more I found some very minor things:

1)
[GENWAR] -> undefined OpenTransportWeapon WEAPON: 0
[E1] -> undefined OpenTransportWeapon WEAPON: 1

2)
Warhead special (you know for rocket launchers and such is labeled as undefined)
[HornetLauncher] -> WARHEAD not found or no data: Special

3) Just an Idea - one could put the animation and building and art list at the end of the output, for most of those will (i guess) never be fixed because westwood made most of em - so you do not have to scroll through parts you most likely seldom need. BUt that is up to taste and it's your effort.

4) MapClean did not create the log - it started - pause was enabled but when i press a button it says cannot create maps.log.
Thanks !!

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Dec 02, 2016 1:41 am    Post subject: Reply with quote  Mark this post and the followings unread

Ich-Henker wrote:

[GENWAR] -> undefined OpenTransportWeapon WEAPON: 0
[E1] -> undefined OpenTransportWeapon WEAPON: 1

Mistakenly added that, there's nothing to check, I'll remove it.

Ich-Henker wrote:

Warhead special (you know for rocket launchers and such is labeled as undefined)
[HornetLauncher] -> WARHEAD not found or no data: Special

Again probably a letter case issue, all warheads must be defined and populated soooo....

Ich-Henker wrote:

3) Just an Idea - one could put the animation and building and art list at the end of the output, for most of those will (i guess) never be fixed because westwood made most of em - so you do not have to scroll through parts you most likely seldom need. BUt that is up to taste and it's your effort.

You might think art.ini errors are less important, but when adding new units or weapons it is as important as rules.ini errors, it is the ai.ini that is less connected to them. The logging engine records each group of errors linearly, categorized for each ini, then outputs them rules->art->ai, splitting up the output within a group doesn't make sense.

Ich-Henker wrote:

4) MapClean did not create the log - it started - pause was enabled but when i press a button it says cannot create maps.log.
Thanks !!

Again, probably permissions, throw it in the game directory like the rest, Win7+ have weird security rules where non-admin processes can write files. If it did successfully modify your map, the map will have a new comment header at the top...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Fri Dec 02, 2016 4:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Okay,

the special warhead is a special case Wink - it is a placeholder for units like V3's or Dreds to spawn it's missiles - it is unchanged by me.

Thanks again!

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Dec 03, 2016 5:11 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 4.1D updated above... slightly more Yurified.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Dec 09, 2016 5:32 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 4.2....  added checks for: DeploysInto building, UnloadingClass unit, OpenTransportWeapon range, and a few other tweaks.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Jan 13, 2017 7:36 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 4.4 uploaded...

Now checks the [AudioVisual] and [General] sections for all the various unit and animation entries, which as I discovered is organized differently between RA2 and YR.

Expect even mooorrre errorrsros!

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Jan 19, 2017 7:11 am    Post subject: Reply with quote  Mark this post and the followings unread

New AICLEAN 4.1 is up this time, found a few bugs stemming from formatting in the ai.ini when checking someone else's mod...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Fri Oct 27, 2017 10:02 am    Post subject:   Reply with quote  Mark this post and the followings unread

Hey G-E,

I am still using this scripts and think they are phenomenal - no more crashes relating to my coding.
Now I wonder: can you tell me how to include Ares Tags in the AI-Clean script to reorder the rulesmd including buildings and units - I am trying on my own right now but cannot find the buildings section within the editor.

This would be great,
-A-

Edit_1: I could arrange the new Ares tags into the list and it works - but how can I add a Segment for Buildings?

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Tue Apr 10, 2018 1:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Updated AICLEAN to 5.1a...

Notes:
- now has the unit tag sorting in an external .cfg for easy arranging
- now supports tag sorting on buildings as well
- replaces missing Name= tags with a missing string including the heading
- automatic configuration defaults if .cfg or options are missing/invalid
- improved output neatness
- more Yurified

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Fri Apr 13, 2018 3:30 pm; edited 1 time in total

Back to top
View user's profile Send private message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Fri Apr 13, 2018 8:53 am    Post subject: Reply with quote  Mark this post and the followings unread

Thank you, great news!

I tested it and got a few questions.

How to put the Building section - does it go into the cfg. file simple under [Buildings] or are the buidling tags in the same line as the [unit]-tags? BTW. great job on doing away with the set ucnt 0 it was hell of a work to implement before Wink

2-And somehow this version of clean merged the first heading in the rulesmd into its title:
; cleaned output generated by AICLEAN by G-E?[GenericPrerequisites]

it's an Ares tag that must be in the beginning so...

3-and it labeled the new rulesmd file rules, i do not know if there are underlying consequences to that - i think before it labeled it as rulesmd but that may be ai-check.

4- with my testing it sorts the buildings wrong and the units correct - it puts UIName at the end and DeathWeapon or Explosion in the very beginning, I think they are not ordered at all[at least in my file] even though the same tags are placed correctly in the units. And it is not because of Ares Tags i encorporated them in the cfg.

Example:

[GAAIRC]
SpyEffect.RevealRadar=yes
Factory=AircraftType
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
AIBasePlanningSide=0
SpyEffect.Custom=yes
Crewed=yes
Factory.ExplicitOnly=yes
Prerequisite=PROC,GACNST
ToProtect=yes
SpyEffect.ResetRadar=yes
ForbiddenHouses=Americans,Alliance
TechLevel=3
Points=70
HasStupidGuardMode=false
Strength=600
Sight=11
Spyable=yes
BuildCat=Tech
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
Name=Allied Airforce Command Headquarters
Cost=1000
Armor=wood
NumberOfDocks=4
Radar=yes
AIBuildThis=yes
Adjacent=4
Capturable=true
ThreatPosed=0
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry,YuriCountry_SouthPole
SolidHeight=-1
DamageSmokeOffset=75, 270, 140
MinDebris=2
Power=-50
MaxDebris=6
UnitReload=yes
Helipad=yes
UIName=Name:GAAIRC


An honest thanks again!

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Apr 13, 2018 3:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

Updated AICLEAN to 5.2...

Added more stuff to the aiclean.cfg and reshuffled a few things for what I think is better grouping, and updated the header in the .tcl to have better descriptions of how each feature works.



aiclean5.rar
 Description:

Download
 Filename:  aiclean5.rar
 Filesize:  9.78 KB
 Downloaded:  55 Time(s)


_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Apr 20, 2018 2:44 am    Post subject: Reply with quote  Mark this post and the followings unread

Time for AICHECK 5.1 update...

Added more interesting checks:
- transport scripts match transport TeamTypes
- passengers match the transport unit capacity
- defense AITriggers match defensive TeamTypes
- other general code cleanup.

The output log should also be more readable with more precise and consistent messages.

Enjoy... comment... eat redbean icecream... do nothing...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Sun Feb 03, 2019 12:11 am; edited 1 time in total

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies. Page 1 of 4 [159 Posts] Goto page: 1, 2, 3, 4 Next
Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.5390s ][ Queries: 19 (0.0556s) ][ Debug on ]