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 Thu Mar 28, 2024 6:22 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 2 of 4 [159 Posts] Mark the topic unread ::  View previous topic :: View next topic
Goto page: Previous 1, 2, 3, 4 Next
Author Message
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Tue Apr 24, 2018 1:19 pm    Post subject:   Reply with quote  Mark this post and the followings unread

Thank you very much for your effort. I love these scripts!

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


Joined: 09 Feb 2015

PostPosted: Wed Apr 25, 2018 1:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Update to MAPCLEAN 2.1...

Notes:
- external configuration file: mapclean.cfg
- removes unnecessary sections added by FA2
- now able to add whole new sections to the map
- now can add/remove/modify tags within existing sections
- batchfiles included to scan *.mpr and *.yrm - doesn't like spaces!
- will scan/clean whatever file extension you use with your mod too
- better sanity checking to avoid crashing on say non-map files?

So this update was partly to be able to auto-remove certain YR specific flags that the old one couldn't, like the Dominator lighting, but the code was extended beyond that to modify values or add new ones. Thus you could batch-modify all your maps to have correct Ion Storm lighting, or add some building you want disabled on your maps just as easily. Another useful possibility is removing all CellTags, Triggers, Waypoints etc from conversion maps, simply by adding the respective headings to the [Remove] section of the config file.

I tried getting the code to accept drag-n-drop maps, but because of the way filenames are passed it seems to be problematic, nested within itself, and will vary by platform. The only sure way to run it is from the commandline, or specify the mask in a batchfile.

Bleh! 2.1 up because some code optimization changed the order of the map and the game borked!



mapclean2.rar
 Description:

Download
 Filename:  mapclean2.rar
 Filesize:  3.44 KB
 Downloaded:  25 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: Sat Apr 28, 2018 6:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Update to AICHECK 5.2...

This includes a number of parsing changes and check.log formatting improvements, there isn't a whole lot new over the last release in terms of features or checks, except that you can now pass custom map filters to it in the form of a filemask, not just use the included "multi" and "multiyr" shortcuts. The writespecialreqs option now outputs the RequiredHouses/ForbiddenHouses more compactly, and now outputs the RequiresStolenXXXXXTech's units/buildings as well in check.log -- perhaps a good overview of how many stolen techs each house or side gets.

Some reference documentation has been included as well, it isn't a comprehensive tome of information, but it should clarify what needs to be prepared for the script to function properly, and what you can expect regarding compatibility with mods, Ares, YR in general.

PS. The included batchfiles have been renamed to be consistent with MAPCLEAN's

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

Last edited by G-E on Sun Jun 03, 2018 6:49 pm; edited 2 times in total

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


Joined: 06 Aug 2015
Location: Germany

PostPosted: Sat Apr 28, 2018 9:13 am    Post subject:   Reply with quote  Mark this post and the followings unread

Thank you very much!!!

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


Joined: 09 Feb 2015

PostPosted: Sun Apr 29, 2018 3:25 am    Post subject: Reply with quote  Mark this post and the followings unread

Updated to SOUNDCHECK 2.0 because I'm on a roll like that...

This release now checks audio.idx for possible missing .wav files! Common mistake caused by removing/renaming, or someone forgot to include them. *cough*

Enable/disable advancedscan in the script, and make sure audio.idx/audio.bag are in the RA2 directory with the other necessary .ini files to use this function.



sndcheck2.rar
 Description:

Download
 Filename:  sndcheck2.rar
 Filesize:  3.7 KB
 Downloaded:  11 Time(s)


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

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


Joined: 11 Feb 2016

PostPosted: Tue May 01, 2018 5:14 am    Post subject: Reply with quote  Mark this post and the followings unread

Your clean script changes all names to Scorched Earth RA2 Mod and makes them unidentifiable.



gg.png
 Description:
 Filesize:  301.78 KB
 Viewed:  7156 Time(s)

gg.png



_________________

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


Joined: 09 Feb 2015

PostPosted: Tue May 01, 2018 6:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Hahah AICLEAN has that function but it can be disabled when you edit the settings....

I added that because half my name tags are garbage and it seemed more professional to rename them to something generic, with the added bonus of marking them as mine #Tongue

_________________
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: Wed May 16, 2018 9:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Updated AICHECK to 5.3...

Now supports OpenTopped exemptions for the recent transport/passengers checks of the last release, and should reduce false-positive errors on YR/Ares setups.



aicheck5.rar
 Description:

Download
 Filename:  aicheck5.rar
 Filesize:  13.42 KB
 Downloaded:  19 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: Sun Jun 03, 2018 12:12 am    Post subject: Reply with quote  Mark this post and the followings unread

Update AICLEAN 5.3...

Changed reindex to avoid renumbering OverlayTypes, I didn't realize the side effects this has on FA2 and possibly the game.



aiclean5.rar
 Description:

Download
 Filename:  aiclean5.rar
 Filesize:  9.83 KB
 Downloaded:  14 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: Mon Jul 09, 2018 2:32 am    Post subject: Reply with quote  Mark this post and the followings unread

Updated to SOUNDCHECK 2.2....

This release adds a specific check for the unusual circumstance of having no Sounds= list in a particular sound object, previously it would only flag a sound with no data at all.

I don't expect this to be a common issue, since it really could be a simple typo, but that's the scenario that prompted this update, and having this check would have made it easier to troubleshoot.



sndcheck2.rar
 Description:

Download
 Filename:  sndcheck2.rar
 Filesize:  3.76 KB
 Downloaded:  15 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: Thu Jul 19, 2018 12:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Updates AICHECK 5.4 and AICLEAN 5.5...

AICHECK:
- added Cameo and .shp art collision detection (same name)

AICLEAN:
- added AIEdit section exemption to cleaning process
- changed orphan detection, allows discarding orphans now
- improved log output messages regarding orphans



aicheck5.rar
 Description:

Download
 Filename:  aicheck5.rar
 Filesize:  13.58 KB
 Downloaded:  17 Time(s)


aiclean5.rar
 Description:

Download
 Filename:  aiclean5.rar
 Filesize:  10.08 KB
 Downloaded:  15 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: Sat Sep 29, 2018 6:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

[baleeted]

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

Last edited by G-E on Sun Oct 07, 2018 1:03 pm; edited 1 time in total

Back to top
View user's profile Send private message
Lee3y
Disk Thrower


Joined: 09 Feb 2018

PostPosted: Sun Sep 30, 2018 9:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi G-E,

I have recently had trouble with a map I've created (a random error/crash), so I thought I'd give your Mapclean tool a try, and firstly congratulations on your efforts making such tools.

I have never tried to run such a tool, and don't have much experience using with these sort of programs, but I gave it a go. I downloaded the tcl program, downloaded your tool, and with no readme/instructions to follow I did manage to work out how to run it. I have placed your tools in the directory of tcl, as well as the map I'm testing it on (a copy of my problematic map I'm working on). I've taken a screenshot which I've attached.

At first I tried to run it for the original file which had a very odd, unique corruption, and it failed to run. See file 'rwfLB.mpr'.

Then I tried to run it on another file I made, which had partially rescued my original map,

On the good news front, after running your Mapclean2, it renamed the rescued map copy file as .OLD, and saved the new file as the original name, as intended I believe. See file 'ruwiforescued3lb'.

Can you tell me what exactly it did or added? I see it increased the file size. I am unable to test the map until I get home tomorrow. I accept it by no means acts as a guarantee to fix the issue, but I thought I would see what it does. I think I'll post a thread about this problematic map soon for more clarity.



Mapclean2 Test screenshot.png
 Description:
 Filesize:  810.41 KB
 Viewed:  6638 Time(s)

Mapclean2 Test screenshot.png



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


Joined: 09 Feb 2015

PostPosted: Sun Sep 30, 2018 10:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hah ok, first thing, you don't have to run these from within tclsh, batchfiles work best since tclsh is installed in your %PATH% anyway. You can just open a normal prompt and type: tclsh <stuff>. You should never have to browse to the ActiveTCL files for any reason.

Secondly, given your other thread, there's nothing MAPCLEAN will really do for you, it doesn't modify the terrain or overlay packed sections at all. I further explain why your current issue is also likely not corrupted map data itself, only the possible layout.

Now, the other part of the answer was that it could be AI errors, and for that AICHECK/AICLEAN are the tools you want to be using -- if you aren't already.

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

Back to top
View user's profile Send private message
Lee3y
Disk Thrower


Joined: 09 Feb 2018

PostPosted: Sun Sep 30, 2018 11:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

G-E wrote:
Hah ok, first thing, you don't have to run these from within tclsh, batchfiles work best since tclsh is installed in your %PATH% anyway. You can just open a normal prompt and type: tclsh <stuff>. You should never have to browse to the ActiveTCL files for any reason.

Secondly, given your other thread, there's nothing MAPCLEAN will really do for you, it doesn't modify the terrain or overlay packed sections at all. I further explain why your current issue is also likely not corrupted map data itself, only the possible layout.

Now, the other part of the answer was that it could be AI errors, and for that AICHECK/AICLEAN are the tools you want to be using -- if you aren't already.


Hi G-E, thanks for some advice. I genuinely had no idea of how to run it, so this was me just working it out in my own backward way. So I can just run it via normal command prompt via the start menu? Sounds easier for sure. I read how you recommend to place your mapclean and other tools / batch files  directly in the game directory, which is something I will consider doing in the future; I have protocols when I update my game/mod's directory, namely backing it up twice, before proceeding to alter the current build, in case of something unexpected.

Yeah, I wasn't sure if the mapclean tool would perhaps leave me with some kind of report/log to hint at what may be causing an error.

As for the AI, I have not made any map-specific alterations here, and my AI runs fine on any other map. That's not to say I won't consider trying your AI tool in the near future though. Which leaves me still puzzled at this issue

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


Joined: 09 Feb 2015

PostPosted: Mon Oct 01, 2018 12:13 am    Post subject: Reply with quote  Mark this post and the followings unread

MAPCLEAN comes with batchflies that will scan all the maps, you can edit them if you use another extension like .map or something for your mod. Then you can double-click without having to navigate to your game from the prompt.

I'll update MAPCLEAN soon, I was looking at the initiation code and see a few things I can improve, thus on a commandline you should be able to specify not only fileamsk (*.map) but a list of filenames and filemasks together should you choose.

I have batchfile I didn't appear to include, I named it _mc_.bat which has %1 as the argument, thus if I open a prompt in my game dir, I can type "_mc_ mynewmap.mpr" and it is done.

_________________
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 Oct 01, 2018 1:09 am    Post subject: Reply with quote  Mark this post and the followings unread

MAPCLEAN 2.2...

Improves file loading code, and should handle spaces in filenames as well now. Also because of this, the correct error is shown when no files are specified.

Also including _mc_.bat to make it easier to drag-and-drop maps onto that instead of using commandline.



mcex.jpg
 Description:
 Filesize:  23.83 KB
 Viewed:  6613 Time(s)

mcex.jpg



mcex2.jpg
 Description:
 Filesize:  20 KB
 Viewed:  6613 Time(s)

mcex2.jpg



mapclean2.rar
 Description:

Download
 Filename:  mapclean2.rar
 Filesize:  3.52 KB
 Downloaded:  12 Time(s)


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

Last edited by G-E on Mon Oct 01, 2018 4:23 am; edited 1 time in total

Back to top
View user's profile Send private message
Lee3y
Disk Thrower


Joined: 09 Feb 2018

PostPosted: Mon Oct 01, 2018 3:53 am    Post subject: Reply with quote  Mark this post and the followings unread

So all mapcheck does is neaten the map's code? I've downloaded that updated version anyway. I will give the other tools a go too like I mentioned.

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


Joined: 09 Feb 2015

PostPosted: Mon Oct 01, 2018 4:31 am    Post subject: Reply with quote  Mark this post and the followings unread

Lee3y wrote:
So all mapcheck does is neaten the map's code? I've downloaded that updated version anyway. I will give the other tools a go too like I mentioned.

Read the mapclean.cfg it allows you to batch replace or remove stuff too.

Like you could have custom game modes FA2 can't write in, or you have specific lighting settings you want to use as a baseline. In my case I remove some YR specific junk along with irrelevant single player code.

You can use AICHECK to scan maps for invalid objects (except overlays) since it fully parses rules.ini and can cross-check. Very useful when converting maps you didn't make to your mod. See documentation.

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

Back to top
View user's profile Send private message
Lee3y
Disk Thrower


Joined: 09 Feb 2018

PostPosted: Mon Oct 01, 2018 6:31 am    Post subject: Reply with quote  Mark this post and the followings unread

G-E wrote:
Lee3y wrote:
So all mapcheck does is neaten the map's code? I've downloaded that updated version anyway. I will give the other tools a go too like I mentioned.

Read the mapclean.cfg it allows you to batch replace or remove stuff too.

Like you could have custom game modes FA2 can't write in, or you have specific lighting settings you want to use as a baseline. In my case I remove some YR specific junk along with irrelevant single player code.

You can use AICHECK to scan maps for invalid objects (except overlays) since it fully parses rules.ini and can cross-check. Very useful when converting maps you didn't make to your mod. See documentation.


Got it, thanks for wording it in a way I understand.

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


Joined: 09 Feb 2015

PostPosted: Sun Oct 07, 2018 1:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Small additions...

AICHECK 5.6b:
- added additional checks for AI side mismatch in scripts
- fixed a bug with side detection (see above) on civilian buildings
- better list index checking

AICLEAN 5.7:
- now cleans art.ini of comments and empty lines
- fixed catastrophic bug with the rules cleaner
- improved comment handling



aiclean5.rar
 Description:

Download
 Filename:  aiclean5.rar
 Filesize:  10.26 KB
 Downloaded:  16 Time(s)


aicheck5.rar
 Description:

Download
 Filename:  aicheck5.rar
 Filesize:  13.9 KB
 Downloaded:  14 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: Sun Feb 03, 2019 12:15 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 5.8a update...

This update focuses on art.ini specific checking, things like conflicts between Trailer= and UseLineTrail=, as well as invalid values for Layer=.

There were some code cleanups, with previous omissions like Dock building checking for VehicleTypes, and many similarly minor improvements.



aicheck5.rar
 Description:

Download
 Filename:  aicheck5.rar
 Filesize:  14.1 KB
 Downloaded:  18 Time(s)


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

Back to top
View user's profile Send private message
WoodleMyNoodle
Cyborg Soldier


Joined: 09 Apr 2018

PostPosted: Sun Feb 03, 2019 10:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

I'd like to thank you for this tool as it helped me find a lot of duplicants I apparently had.

I've only got one thing I am confused about; it's telling me the ordering of my [WeaponTypes] and [Projectiles] is wrong, although I haven't got a clue as to why.

Testing it on a mod based on YR, so that may be why but I'd figure I'd tell you anyway.

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


Joined: 09 Feb 2015

PostPosted: Sun Feb 03, 2019 10:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Can you elaborate more? Show your log maybe?

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

Back to top
View user's profile Send private message
WoodleMyNoodle
Cyborg Soldier


Joined: 09 Apr 2018

PostPosted: Mon Feb 04, 2019 11:23 am    Post subject: Reply with quote  Mark this post and the followings unread

Basically what it does is telling the order is wrong of [WeaponTypes] And projectiles.

So what it looks like is
[WeaponTypes]
incorrect ordering or duplicate index found = 0=NotAWeapon
.....
.....

And then proceeds to list ALL of my weapon types.

It does the same for [Projectiles]


Then again I am quite new so it could be that there is something I don't know of.

I'd also like to inform you about some other issues I was having. Granted they are not big issues, since they are quite easy to ignore.

1. When checking VehicleTypes, InfantryTypes, BuildingTypes & AircraftTypes, the tool is having issues with understanding Prerequisites that are in [GenericPrerequisites] thus it gives an error such as:

[LROSTY] -> undefined BUILDING for Prerequisite: ALLRAX

2. The tool has issues with finding buildings/data when the building is an upgrade/plug. (Has a tag like: PowersUpBuilding=GAPOWR)

[GAPOWRUP] -> BUILDING not found or no data

Aside from that, the tool has been working perfectly for me and I'd like to thank you for it.

Again, I may just be dumb/ unexperienced and the issues are caused on my side rather than the program. In that case I apologize.

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


Joined: 09 Feb 2015

PostPosted: Mon Feb 04, 2019 12:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

For the weapons error, that sounds you have one or more lower numbers index after higher ones, though [WeaponTypes] itself is not part of the original Westwood code, so it wouldn't actually do anything with that information.

For the second part, it's a similar answer, [GenericPrerequisites] is not Westwood code, and none of the scripts have been made Ares compatible.

Any Ares-specific extensions will just be ignored...

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

Back to top
View user's profile Send private message
WoodleMyNoodle
Cyborg Soldier


Joined: 09 Apr 2018

PostPosted: Mon Feb 04, 2019 6:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh okay. Apologies for that then.
For some reason I had in my mind you were currently in the process of making it Ares compatible.

Guess the tool is working perfectly. Cheers. It's very useful.

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


Joined: 09 Feb 2015

PostPosted: Mon Feb 04, 2019 11:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

I do try to make sure the tools don't conflict with other programs, but I don't use Ares in my mod, and Ares itself is a moving target in terms of features and dependencies. Any ares support beyond the very basic would require constant attention if not revision... and could potentially require a whole new fork of the script if the original checks conflict with Ares checks, or vice versa.

As it stands, barring a few false positives and believing newer features exist, the scripts are mostly compatible with TS too, which is as broad as I can make it.

_________________
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 May 22, 2019 10:39 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hey,

I am still very interested in your program and use it every time i mod.
What I would like to see:

1: Elimination of the false positive:

example: [V3Launcher] -> WARHEAD not found or no data: Special

ModEnc:

"Warhead=Special is a really special case. It is used for spawner weapons (weapons which instead of firing spawn certain AircraftTypes to attack the target). (See Spawns.) "

2: List for customizable orphan tags that users can type in to avoid those false positives:

checking undeclared/orphan tags...
[GenericPrerequisites] -> unknown object/heading
[YuriCountry_SouthPole] -> unknown object/heading
[WeaponTypes] -> unknown object/heading
[MouseCursors] -> unknown object/heading

3. WeaponTypesList is shown as a false positive but it is a commen tool for Ares users:

processing declarations...
[WeaponTypes] -> incorrect ordering or duplicate index found: 1=WeatherFragment
[WeaponTypes] -> incorrect ordering or duplicate index found: 2=WeatherFragmentE
[WeaponTypes] -> incorrect ordering or duplicate index found: 3=WeatherStrike2
[WeaponTypes] -> incorrect ordering or duplicate index found:

etc.

4. The ability to use AICLEAN on:

- Warheads
- Superweapons

and other categories with the cfg-file,

I would love to determine the tag order like with units and buildings.

5. Option to enter custom prerequisites to avoid false positives for Ares can create prerequisite groups like proc in original yuris revenge - so it would be the same category as the one that now detects proc as a valid prerequisite in AICHECK:
checking [VehicleTypes]...

[YMDISK] -> undefined BUILDING for Prerequisite: HIGHTECH
[TWBDI] -> undefined BUILDING for Prerequisite: AIRTECH
[BZEP] -> undefined BUILDING for Prerequisite: AIRTECH
[YSTARES] -> undefined BUILDING for Prerequisite: HIGHTECH
[ZEP] -> undefined BUILDING for Prerequisite: AIRTECH
[DRONF] -> undefined BUILDING for Prerequisite: AIRTECH
[TWBD] -> undefined BUILDING for Prerequisite: AIRTECH
[MI24] -> undefined BUILDING for Prerequisite: AIRTECH
[SCHP] -> undefined BUILDING for Prerequisite: AIRTECH

6. Very important: the ability to disable deleation of everything behind a ; - this way AICLEAN becomes a superb ordering tool!

7. Allow custom sides in the TLC:

set sides(3) "YuriCountry YuriCountry_SouthPole"

8. Option to disable the unused statements.

9. There is another false positive with the AI-Script to move to a friendly building if that building is a tech building that needs to be taken by an engineer!


---- AI.INI ----


[010000F3-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000E8-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000E9-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EA-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EB-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EC-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000ED-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F4-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EE-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EF-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F0-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F5-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invali

Thank you!

Would be great and I will test it! And I got to point out, that Ares development is very stable and steady in it's approach by Alex. Those names and Lists I mentioned will not change I think and due to their use my List nearly only consists of false positives, which is a shame.

-A-

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


Joined: 09 Feb 2015

PostPosted: Thu May 23, 2019 1:13 am    Post subject: Reply with quote  Mark this post and the followings unread

1. this is likely your letter casing, "Special" vs "SPECIAL" vs "special"... the script assumes incorrect casing is an error so that you eliminate doubt by being consistent

2-3,5. again these are Ares specific, and maybe I can add an Ares-compatible mode in the future

4. how many Superweapons do you have and how often to you play with them to need to move manipulating rules to a .cfg?

6. AICLEAN has the option to preserve inline comments (ie. your code has a comment after it) but due to the way it loads the ini, it can't attach comments on their own lines to any code block -- how can it possibly know if it was a footer or header?

7. Sides should be automatically loaded from rules.ini, the option to explicitly specify sides exists in the code, but it is overridden by what it finds -- if yours isn't finding the Sides in the code, why not?

8. AICLEAN doesn't do the same cross-checking as AICHECK, it understands very little about the rules, as an analogy: it focuses entirely on grammar... not meanings

9. why are you using 58,x instead of 47,x?

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

Back to top
View user's profile Send private message
WoRmINaToR
Rocket Cyborg


Joined: 31 Oct 2008
Location: AKA Sir Prize

PostPosted: Thu May 23, 2019 7:57 am    Post subject: Reply with quote  Mark this post and the followings unread

What he means about the 1st point is that "Special" is referenced as a warhead by several launcher weapons, but no actual warhead named "Special" exists in the base game. Special is treated... well, special, by the game.

_________________
New name: Sir Prize. I've switched to a new account to update to the name I've been using everywhere else for the last several years.

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


Joined: 06 Aug 2015
Location: Germany

PostPosted: Thu May 23, 2019 9:50 am    Post subject:   Reply with quote  Mark this post and the followings unread

Thank you for your reply Smile

1.Exactly as stated above - the warhead "special" does not exist and is a placeholder for spawner weapons from the original game, that is why i quoted ModEnc on that.

https://www.modenc.renegadeprojects.com/Warhead#.5BSpecial.5D

9. I use that script action, because the team has to move to an owned tech building in order to defend the right one Wink

Ares compatibility would be a great thing for it really has no alternative in it's options and is heavily used by modders.

7. I added my additional country within the TLC-File maybe I made an oversight :/

4. I really have 30 or more SW's and constantly put in new tags from Ares; some of them are working in the background or act as things you wouldn't realize while playing. I think there is no downside to having the option to order all types like Buildings, Units, Weapons, Projectiles, Warheads, Superweapons - i just restricted to the ones with list entries for i thought that makes this ordering process work within your tool.

6. I know but somehow all my comments are gone again even though i disabled that option. Before that they were moved to the right everytime i used Aiclean. And I use Aiclean more often to order all the new tags  that came up every working session with every new Ares testbuild and release version Smile so ordering becomes a necessity.

8. I ment the unused weapons in aicheck or animations - it is nice to see but bloats the log file. I like to have some optional weapons in my code that i can later revisit - i now would have to save them elsewhere to see more clearly what is going on in the log file. Big mods have many weapons, buildings etc.

10. I forgot a false positive: -alternate desert art or snow art is presented falsely. This I think is not so important.

[TANYD] -> object ART exists but is undeclared/unused
[GGIA] -> object ART exists but is undeclared/unused
...

I would love to be able to order the artmd.ini too - it makes modding so much easier and more bug free and with the cfg-support one can easily adapt new tags, why not make it applicable to more sections, seems logical to me. Sometimes when you are creative you do a lot at once restarting the game again and again to see if it works and the last thing you think about is ordering all tags.

I think i pointed out, how much I like this tool, I even tried to understand this way of programming to make an ordering tool only out of AIClean but couldn't find the right instructions online. Yeah, I think it is great and do not hesitate to develope it more, I thank you anyway! As I said my log, due to ares usage, consists of nearly only false positives; here is a small example:

checking [InfantryTypes]...
[PTROOP2] -> undefined BUILDING for Prerequisite: HIGHTECH
[BORIS] -> undefined BUILDING for Prerequisite: FLAG
[TANY] -> undefined BUILDING for Prerequisite: FLAG
[LUNR] -> undefined BUILDING for Prerequisite: NAPILE
[DOGO] -> undefined BUILDING for Prerequisite: FLAG
[DESO] -> undefined BUILDING for Prerequisite: FLAG
[SLAVE] -> undefined BUILDING for Prerequisite: YROC

checking [VehicleTypes]...
[YMDISK] -> undefined BUILDING for Prerequisite: HIGHTECH
[TWBDI] -> undefined BUILDING for Prerequisite: AIRTECH
[BZEP] -> undefined BUILDING for Prerequisite: AIRTECH
[YSTARES] -> undefined BUILDING for Prerequisite: HIGHTECH
[ZEP] -> undefined BUILDING for Prerequisite: AIRTECH
[DRONF] -> undefined BUILDING for Prerequisite: AIRTECH
[TWBD] -> undefined BUILDING for Prerequisite: AIRTECH
[MI24] -> undefined BUILDING for Prerequisite: AIRTECH
[SCHP] -> undefined BUILDING for Prerequisite: AIRTECH
[YAGTNK] -> undefined BUILDING for Prerequisite: HIGHTECH
[IRONF] -> undefined BUILDING for Prerequisite: REPAIR
[OREIRONF] -> undefined BUILDING for Prerequisite: REPAIR
[ICHOP] -> undefined BUILDING for Prerequisite: AIRTECH
[RZEP] -> undefined BUILDING for Prerequisite: AIRTECH
[COLLECTORS] -> undefined BUILDING for Prerequisite: HIGHTECH
[YMENTNK] -> undefined BUILDING for Prerequisite: HIGHTECH
[COLLECTORSL] -> undefined BUILDING for Prerequisite: HIGHTECH
[OREIRONFI] -> undefined BUILDING for Prerequisite: REPAIR
[OREIRONFL] -> undefined BUILDING for Prerequisite: REPAIR

those are the the prerequisite groups i talked about in the first post they are under the "[GenericPrerequisites] -> unknown object/heading" header in the rules file.

looks like this:

[GenericPrerequisites]
HIGHTECH=GAHIGH,SAHIGH,YACOMD,YAFORS

Have a nice day Smile

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


Joined: 09 Feb 2015

PostPosted: Thu May 23, 2019 2:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

WoRmINaToR wrote:
What he means about the 1st point is that "Special" is referenced as a warhead by several launcher weapons, but no actual warhead named "Special" exists in the base game. Special is treated... well, special, by the game.

This is a theory written by people who just assumed that, there's nothing special about the "special" warhead, it has traits like any other warhead. If you don't believe me assign any other suitable warhead for your launcher. The capitalization was merely wrong, like so many other WW typos.

Ich-Henker: to cheat your generic prerequisite list, find this line and add yours in the same paired format with the x:
Code:
array set buildings "RADAR x TECH x BARRACKS x FACTORY x POWER x PROC x"


I'm hesitant to add any Superweapon configuration, as you say it's constantly changing, and I don't even know what all the possibilities are. It seems to me you're more likely to copy&paste the code when making new ones, so re-ordering lines would be redundant the second time?

_________________
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 May 23, 2019 3:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 6.0...

- Improved missing art logging messages
- Improved side handling, handles up to 8 sides now
- Made generic prerequisites configurable instead of hardcoded
- Added handling for AlternateDesertArt



aicheck6.rar
 Description:

Download
 Filename:  aicheck6.rar
 Filesize:  14.15 KB
 Downloaded:  13 Time(s)


_________________
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: Thu May 23, 2019 5:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thank you very very much Smile I test it now Smile

You did it! Works as intended:

-prerequisite groups are recognized (even Ares ones)
-snow and desert alternate images are scanned correctly
-sides automatically load from rulesmd (i think) Smile

Thank you again Smile and you did it very fast after mentioning it!

Good job!

Smile

Last edited by Ich-Henker on Thu May 23, 2019 6:45 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: Thu May 23, 2019 6:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

But I have to insist on the "special" topic.

The special warhead does not exist in the [Warheads] list:

[Warheads]
0=EMPuls
1=SonicWarhead
2=TankOGas
3=SA
4=HE
5=AP
6=Gas
7=Fire
8=HollowPoint
9=Super
10=Organic
11=Slimer
12=FirestormWH
13=IonCannonWH
14=RailShot
15=Mechanical
16=VeinholeWH
17=IonWH
18=ARTYHE
19=PlasmaWH
20=SAMWH
21=ORCAAP
22=RailShot2
23=ORCAHE
24=Controller
25=PsiPulse
26=IvanBomb
27=IvanWH
28=Electric
29=ElectricAssault
30=V3HE
31=Parasite
32=NUKE
33=BlimpHE
34=ParasitePlus
35=DeathWH
36=ParasiteDog
37=BombDisarm
38=Snapshot
39=RadBeamWarhead
40=RadEruptionWarhead
41=RadSite
42=GrandCannonWH
43=UltraAP
44=HowitzerWH
45=CometWH
46=MaverickHE
47=FlakWH
48=OilExplosionWH
49=TankSnapshot
50=CRNUKEWH
51=ChronoBeam
52=PistolsWH
53=NukeMaker
54=FakeC4WH
55=HollowPointNoBuilding
56=V3WH
57=FlakTWH
58=APSplash
59=DMISLWH
60=DemobombWH
61=MirageWH
62=SSA
63=SSAB
64=ApocAP
65=HARVWH
66=V3EWH
67=DMISLEWH
68=TerrorBombWH
69=FlakGuyWH
70=CRTerrorBombWH
71=NukeToWH
72=ControllerBuilding
73=SuperPsiPulse
74=DominatorWH
75=AirstrikeFlare
76=VirusGas
77=Virus
78=PsychGasCreate
79=PsychGas
80=Battering
81=GattWH
82=Mutate
83=CMISLWH
84=CMISLEWH
85=Smashing
86=LocomotorBeam
87=MIGWH
88=LUNARWH
89=GUARDWH
90=AntiB
91=AntiPerson
92=PJABWH
93=APSplash2
94=SAFlame
95=SSABFlame
96=DiskWH
97=NukeB
98=BORISWH
99=SCHOPWH
100=TRexWH
101=MutateExplosion
102=TRexInfWH
103=Crush
104=BlimpHEEffect
105=Mechanical2
106=RippleWH
107=ChimpWarhead
108=SA3
109=MSplit4WH
110=ChronoEMPWH
111=ParasiteF
112=UNTAP
113=AORCAAP
114=FVGhostWH
115=Shard
116=HCApocAP
117=DummyWarhead
118=RedRingWH
119=ALCarryWH
120=AtlasWH
121=LFController
122=MortarWH
123=ChronoFieldWH
124=OreCreate
125=NeuroElectric
126=RippleNDWH
127=SPsychGasCreate
128=NNUKE
129=GenWarWH
130=HindFire
131=SA4
132=YABFlame
133=SARTYHE
134=Yuri35PercentWH
135=SSUltraAP
136=ACIDWH
137=UltraAPE
138=ChronoWarpWH
139=GRIZAPE
140=NUKE3
141=ApocAPE
142=IonWH2
143=OATankOGas
144=RPG
145=StaloneWH
146=StareWH
147=DATankOGas
148=SANoBuilding
149=JCApocAP
150=VeteranWH
151=RHINAPE
152=ComHollowPoint
153=HVExplosionWH
154=CrFire
155=BfrtWH
156=MagneShakeWH
157=VeteranWH2
158=PrismWarhead
159=SamaelFragmentWH
160=PropagandaWHA
161=UltraA2
162=EMPWH
163=CriveWH
164=DefaultDeathWH
165=SNUKE
166=NukeRocketWH
167=InterWarhead
168=ICurtainWH
169=UNTAPE
170=Shock
171=DetonationsWH
172=StealthWH
173=SlowdownWH
174=CloudWH
175=WeatherStrikeWH
176=PoisonWH
177=CloudWH2
178=HollowPointSnipe
179=CraneRepairWarhead
180=LocomotorBeam2
181=OfficerPWH
182=SlashWH
183=JCApocAPE
184=StatueWH
185=ABOMBERWH
186=HCTerrorBombWH
187=TerrorombWH
188=Fire2
189=PoisonBombWH
190=OldPsychGasCreate
191=HulkInfWH
192=HulkWH
193=HShipWH
194=SlowdownBWH
195=MissileWH
196=TankOGasS
197=SWHollowPoint
198=KamikazeWH
199=FirestormEWH
200=BigRippleWH
201=WeatherEWH
202=WeatherStrikeEWH
203=305mmWH
204=15PercentWH
205=15PercentStasisWH
206=LeviathanWH
207=ApocAPR
208=ApocAPER
209=RipaExpl
210=RmnvPWH
211=RmnvCheerWH
212=HeExpWH
213=RippleEMPWH
214=50PercentWH
215=KTSTLEXPWH
216=PropagandaWHR
217=TibGreenWH
218=MeteoriteWH
219=DREDPRMMISLWH
220=DREDPRMMISLWHE
221=TechnicianWH
222=PsyGasGem
223=ShardWH
224=FlyingTWH
225=UntankerAAWH
226=CriveABWH
227=MEGACARRJETWH
228=MEGACARRJETWHE
229=BombEMPWH
230=DefaultDeathNSWH
231=BeagBombWH
232=FireInfantry
233=GhostWH
234=SplitDummyWH
235=FinalWH2
236=EMPSWH
237=GEMPWH
238=TornadoWH
239=ParasiteDogTanks
240=SSUltraAPS
241=SAFlameEn
242=SAFlameAA
243=NUKEWH2
244=DeathNoDamWH
245=CloudWHM
246=HollowPointChronoMP5
247=SquidWH
248=SonicWarheadHeal
249=NavalMineWH
250=RippleSmallEMPWH
251=CloudsWH
252=NukeWeatherSmallWH2
253=EarthquakeWH
254=NukeWeatherSmallWH
255=StormBoltWH
256=StormCloud
257=StormImpactWH
258=RadialHealWH
259=RadialDamageWH
260=UntankerWH
261=CloudsStrikeEWH
262=EMPWaveWH
263=160mmTWH
264=160mmSniperWH
265=YuriTibWH
267=StormImpactWH2
268=StormBoltWH2
269=ChronoFieldAnimWH
270=VirusBombWH
271=VirusBombExploWH
272=TeslaistWaveWH
273=PlagueWH
274=BarrageWH
275=RZepWH
276=HellTankWH
277=BigRippleBlueWH
278=BigRippleYellowWH
279=MagneticPullWH

More severe [Special exists as a Side]

[Special]
UIName=Name:Special
Name=JP
Suffix=JP
Prefix=J
Color=Grey
Side=Mutant
SmartAI=yes
MultiplayPassive=true

The V3Launcher uses the following:

[V3Launcher]
Damage=1
ROF=150
Range=14
MinimumRange=5
Spawner=yes
Projectile=InvisibleHigh
Speed=12
Warhead=Special


... so the writing is consistent Warhead=Special relates to no warhead; not in the warheads list nor to a section, neither in rulesmd.ini or artmd.ini.

:/


2. Dont't be hesistant with order options in the .cfg file, for we can input the tags we use on our own anyway - so the mere option is enough - same with warheads, which would be greatly appreciated Smile
I do not want to sound greedy, keep up the good work and have a nice evening.

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


Joined: 09 Feb 2015

PostPosted: Thu May 23, 2019 7:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Special might be hardcoded to be verses 100% on everything (default), but I'm telling you it doesn't have any special powers. None of my launchers use special and they all work.

PS. About the 58,x issue, it could be written so that the side mismatch is ignored for NeutralTechBuildings=, BUT because you'd first have to own the structure, of which there is no guarantee, I prefer to leave it as one of those errors you wilfully ignore art your own risk...

_________________
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: Thu May 23, 2019 7:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hey Smile

I see your point with special! I could ask Alex, he can look behind the curtains. If there is no interference, i could set a ne warhead for spawners - but of course i am a bit reluctant to that.

For the script action: It is logical and i know it works ingame: a tech building becomes friendly ingame by infiltrating it with an engineer, then the trigger activates (trigger recognizes the overtaken building) thus using the script which says friendly building in order to target the now owned building.

Problem is, my art.ini part in the log looks like this now :/ :

---- AI.INI ----


[010000F3-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000E8-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000E9-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EA-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EB-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EC-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000ED-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F4-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EE-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000EF-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F0-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F5-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F1-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F2-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F6-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F8-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F9-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000FA-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000FB-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000FC-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000F7-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000FD-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000FE-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010000FF-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[01000100-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[01000101-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[01000102-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[01000103-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003B7-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003C4-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003C6-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003D9-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003B7-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003B7-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003B7-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003C4-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003C4-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003C4-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003B7-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003DA-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003DC-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[01000489-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[01000488-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003E4-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[010003E3-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid
[01000447-G] -> TEAMTYPE has mismatched side for SCRIPT action, move to friendly building invalid

Haha, bit cluddered Smile

All the best to you, hope to hear more from you and your program. Smile

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


Joined: 09 Feb 2015

PostPosted: Thu May 23, 2019 8:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ich-Henker wrote:
I see your point with special! I could ask Alex, he can look behind the curtains. If there is no interference, i could set a ne warhead for spawners - but of course i am a bit reluctant to that.

If you want to be sure you can target the exact same thing the missile damages, use the same warhead on both, or use the other special case: Super. It's not rocket surgery.

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

Back to top
View user's profile Send private message
WoRmINaToR
Rocket Cyborg


Joined: 31 Oct 2008
Location: AKA Sir Prize

PostPosted: Thu May 23, 2019 9:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

G-E wrote:
WoRmINaToR wrote:
What he means about the 1st point is that "Special" is referenced as a warhead by several launcher weapons, but no actual warhead named "Special" exists in the base game. Special is treated... well, special, by the game.

This is a theory written by people who just assumed that, there's nothing special about the "special" warhead, it has traits like any other warhead. If you don't believe me assign any other suitable warhead for your launcher. The capitalization was merely wrong, like so many other WW typos.


I am well aware, and in fact I myself explicitly defined a [Launcher] warhead so I could control the verses values. I know that there isn't any other special hardcoding beyond just verses values, but even being able to function properly as a warhead without being defined with the appropriate warhead tags is special behavior, in my opinion.

Since as Ich-Henker pointed out, the [Special] section exists (though as a country), it makes sense that things wouldn't crash, but without a verses= tag defined, IIRC, it should default to 0% for all values, meaning the launchers wouldn't be able to fire on anything. That's clearly not the observed behavior, which suggests there's something hardcoded there.

Back to top
View user's profile Send private message YouTube User URL
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Fri May 24, 2019 7:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Game won't crash even if specified Warhead is missing entirely - no section and everything. It will however, if there's no Warhead declared on the weapon at all. There's nothing special about Warhead=Special either, game will simply use the default values of Warhead properties (for what it's worth, ModEnc's mention about Verses defaulting to 0% against everything is almost certainly incorrect and instead defaults to 100% against all).

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Fri May 24, 2019 9:43 am    Post subject: Reply with quote  Mark this post and the followings unread

Hey Smile,

1. Think I found a false positive:

[WeatherFragment] -> WEAPON exists but is unused

ShrapnelWeapon=WeatherFragment

So, ShrapnelWeapons are not considered being in use.

2. I am trying a custom Lancher WH now. Wink

3. I still get the alternate theater false positives.

[SEALA] -> object ART exists but is undeclared/unused
[SEALD] -> object ART exists but is undeclared/unused

Hope to hear some news from your program. Smile

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


Joined: 09 Feb 2015

PostPosted: Fri May 24, 2019 3:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ich-Henker wrote:

1. Think I found a false positive:

[WeatherFragment] -> WEAPON exists but is unused

ShrapnelWeapon=WeatherFragment

So, ShrapnelWeapons are not considered being in use.

I just checked, you're right shrapnel isn't parsed...

I must not have realized because apparently my shrapnel is defined on dummy units like XCOMET.

2sec fix.

Code:

[SEALA] -> object ART exists but is undeclared/unused
[SEALD] -> object ART exists but is undeclared/unused

Typo in code...



aicheck6.rar
 Description:

Download
 Filename:  aicheck6.rar
 Filesize:  14.17 KB
 Downloaded:  10 Time(s)


_________________
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 May 24, 2019 5:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Great work man  Cool

thank you!

The shrapnel logic does not need dummy units in ares anymore you make the weapon types list:

[WeaponTypes]
1=WeatherFragment
2=WeatherFragmentE
3=WeatherStrike2
4=WeatherStrikeE2

which then handles airburst and shrapnel weapons. That is something, by the way, that aicheck still sees as something wrong Very Happy

[WeaponTypes] -> incorrect ordering or duplicate index found: 1=WeatherFragment
[WeaponTypes] -> incorrect ordering or duplicate index found: 2=WeatherFragmentE
[WeaponTypes] -> incorrect ordering or duplicate index found: 3=WeatherStrike2
[WeaponTypes] -> incorrect ordering or duplicate index found: 4=WeatherStrikeE2


Hm, still get the alternate theater art false positive on

[SEALD] -> object ART exists but is undeclared/unused
[GIA] -> object ART exists but is undeclared/unused
[GGIA] -> object ART exists but is undeclared/unused
[TANYD] -> object ART exists but is undeclared/unused
[CONSD] -> object ART exists but is undeclared/unused

and others :/

3.

I think those are false positives too:

checking [BuildingTypes]...
[GAWALL] -> BUILDING not found or no data
[GAFWLL] -> BUILDING not found or no data
[NAWALL] -> BUILDING not found or no data
[CAKRMW] -> BUILDING not found or no data
[GASAND] -> BUILDING not found or no data
[CAFNCB] -> BUILDING not found or no data
[CAFNCP] -> BUILDING not found or no data
[CAFNCW] -> BUILDING not found or no data

those are walls, which are present in the building and overlay lists because they are buildable as walls and turned into overlays after.

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


Joined: 09 Feb 2015

PostPosted: Fri May 24, 2019 11:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

I can add WeaponTypes to the ignored list, that would at least eliminate parsing.

The alternate art code was tested against YR, and you'd get that error if the tags in the unit have typos, or the value isn't yes. It wouldn't pickup the fact that you use the alternates and assume the art objects are orphaned. If you want to send me your inis privately to test against, I can look...

The building/overlay thing was something I thought about a lot when doing the code, and I realized you can (and should) fix it in the rules. Non-buildable walls can be removed from the BuildingTypes, this frees up a slot for something new, and the relevant building-specific should be code removed from the object.
Code:

[CAFNCP]
Name=Fence Prison Camp
Armor=steel
Strength=80
Points=1
DrawFlat=false
Wall=yes
CrushSound=WallCrushBlack
Crushable=yes
Selectable=no
RadarInvisible=yes

In the case of buildable walls, you need them to be BuildingTypes, but that means you also need all the relevant building tags within.
Code:

[GASAND]
UIName=Name:GASAND
Name=Sandbags
BuildCat=Combat
Strength=100
Prerequisite=POWER
Armor=concrete
CrushSound=WallCrushSandbag
Crushable=yes
Wall=yes
TechLevel=1
Adjacent=8
Sight=1
Nominal=yes
Selectable=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=25
Insignificant=yes
Points=1
Repairable=false
ThreatPosed=0   ; This value MUST be 0 for all building addons
BaseNormal=no
AIBuildThis=no
GuardRange=5

I'm guessing your walls fall into both categories right now, some needlessly declared as building, others missing building code.

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

Back to top
View user's profile Send private message
WoRmINaToR
Rocket Cyborg


Joined: 31 Oct 2008
Location: AKA Sir Prize

PostPosted: Fri May 24, 2019 11:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Starkku wrote:
Game won't crash even if specified Warhead is missing entirely - no section and everything. It will however, if there's no Warhead declared on the weapon at all. There's nothing special about Warhead=Special either, game will simply use the default values of Warhead properties (for what it's worth, ModEnc's mention about Verses defaulting to 0% against everything is almost certainly incorrect and instead defaults to 100% against all).


Good to know! Learn new stuff all the time about this silly game. Someone should really correct the entry in ModEnc too.

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


Joined: 09 Feb 2015

PostPosted: Sat May 25, 2019 5:59 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok, I did another update and went on a huge testing spree with YR. I got interesting results to say the least...

The AICLEAN process, in the course of re-enumerating list index values, showed the building indexes as referenced in the AI are partly incorrect vanilla, but partly incorrect cleaned as well! So there are errors in both directions, calling buildings where they ought to be, and incorrectly calling where they are.

The "mismatched side" section is the most obvious, the 3 script errors before *F17C are gone, but 2 new errors arise after AICLEAN did its magic.

Here is the check.log on vanilla YR inis:
Code:
[0CAD0DCC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD0C7C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CE4CA3C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[0CAD0B2C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[08DA30EC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[0D62199C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D6216FC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D6215AC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D62145C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CA1F84C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD145C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD130C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD2AEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0C8E2C3C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD25AC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0C8B81BC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D052AEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0AD2BAEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0C8C2AEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0C87E5AC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D0B3B9C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CA2A04C-G] -> primary TEAMTYPE has mismatched side (2 vs 1) for SCRIPT action (move to friendly building) target
[0CA2B06C-G] -> primary TEAMTYPE has mismatched side (2 vs 1) for SCRIPT action (move to friendly building) target
[0CA2FEDC-G] -> primary TEAMTYPE has mismatched side (2 vs 1) for SCRIPT action (move to friendly building) target
[0A44F17C-G] -> primary TEAMTYPE has mismatched side (1 vs 2) for SCRIPT action (move to friendly building) target
[09B58D0C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[06099EFC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[0609946C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[061183BC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[061183BC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[06109EFC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[06109A4C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[08BE3EFC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[05CACB7C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide


And here is the check.log on "cleaned" inis:
Code:
[0CAD0DCC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD0C7C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD0B2C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D62199C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D6216FC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D6215AC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D62145C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CA1F84C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD145C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD130C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD2AEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0C8E2C3C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0CAD25AC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0C8B81BC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D052AEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0AD2BAEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[06BC27CC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[06BC2DEC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[06BC2DEC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[0A43080C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[0C8C2AEC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0C87E5AC-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0D0B3B9C-G] -> Owner mismatch for backup TEAMTYPE: 0CB246CC-G <-> Alliance
[0A44F17C-G] -> primary TEAMTYPE has mismatched side (1 vs 2) for SCRIPT action (move to friendly building) target
[0611A33C-G] -> backup TEAMTYPE has mismatched side (3 vs 1) for SCRIPT action (move to friendly building) target
[0611A1EC-G] -> primary TEAMTYPE has mismatched side (3 vs 1) for SCRIPT action (move to friendly building) target
[06109EFC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[06109A4C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[08BE3EFC-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[05CACB7C-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide


You'll note the plentiful new "non-player" error shown, that's because in YR the AIBasePlanningSide value was removed on Conyards, the very tag the script uses to determine side, since Owner= is unreliable at best. There is also a new similar message for when "move to friendly" references one of the NeutralTechBuildings= entries.

One of the particular errors is a Yuri side script 08B96C8C-G that uses "move to friendly" on GAROBO (new index 357, old index 361), obviously that's not gonna work. Not that the original spot holder of 357 was any better CASANF08, and offsetting the difference +4 gives you CASANF15...

In the case of Soviet dogs TeamType 0A44F17C-G, the AITrigger 0A4520CC-G calling it has the side value of 1, which isn't related to AICLEAN's work at all.

_________________
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 25, 2019 6:41 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 6.2 update...

- Mismatched side for friendly moves now throws a meaningful error when referencing buildings without AIBasePlanningSide set, thus classed as non-player, previously the value was compared against the trigger incorrectly.
- Added alternative log message for the above non-player error when referencing structures listed in NeutralTechBuildings
- Added a handler for the 64k modifier for move/attack script actions for completeness
- Reworked the code that ignores Ares lists, it may not have ignored WeaponTypes correctly, and additional list types will be easier to ignore later

AICLEAN 5.8b update...

- Added a handler for the 64k modifier for move/attack script actions for completeness



aiclean5.rar
 Description:

Download
 Filename:  aiclean5.rar
 Filesize:  10.11 KB
 Downloaded:  26 Time(s)


aicheck6.rar
 Description:

Download
 Filename:  aicheck6.rar
 Filesize:  14.34 KB
 Downloaded:  8 Time(s)


_________________
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: Sat May 25, 2019 8:59 am    Post subject:   Reply with quote  Mark this post and the followings unread

You are just so cool Very Happy!

Interesting explanations too. I start a test now. Smile

All the best to you!

1.-[WeaponTypes] are finally gone Very Happy I am very happy with that! Thank you.

2.-I still get the wall buildings/overlays but i did not use aiclean first - should i?

This is my [Gasand]

[GASAND]
UIName=Name:GASAND
Name=Sandbags
ThreatPosed=0
BuildCat=Combat
AIBuildThis=no
AIBasePlanningSide=0
BaseNormal=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry,YuriCountry_SouthPole
TechLevel=-1
Prerequisite=GACNST
Selectable=no
Cost=50
Points=1
Adjacent=8
Armor=wood
Strength=100
Sight=0
GuardRange=10
Nominal=yes
Insignificant=yes
CrushSound=WallCrushSandbag
Explosion=TWLT070,S_BRNL58,NEWEXPLL1,NEWEXPLL2,NEWEXPFIRE1,OILEXPLANIM
Wall=yes
Crushable=yes
Repairable=false

Okay, if i take the unbuildable walls and fences form the building list, you can still place them in Final Alert, so no problem there.
What tags define a building in your program? Because I still get this: [GASAND] -> BUILDING not found or no data.
THink i found it in artmd.ini it seems to be related to the tooverlay logik:

[GASAND]
Cameo=SBAGICON
Foundation=1x1
ToOverlay=GASAND
DamageLevels=2
NewTheater=yes

that is why it must be in both categories.


3.-In the AI Section i get three different mentionings now:

[010000F3-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding [That truly refers to the allied construction yard because it does not have aibaseplanningside]
[010003B7-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide
[01000445-G] -> primary TEAMTYPE has mismatched side (3 vs 2) for SCRIPT action (move to friendly building) target

-Okay, can confirm: those meaningful outputs helped to seperate the real errors like mismatched sides from the scripts where the target was a neutral tech building: good job. Maybe there is a possibility to ignore that neutral tech building part of the outcome, because i only got 30 of them left in the aisection Very Happy

4. The AlternateArt Issue:

in Ares you have:

AlternateTheaterArt


The Navy Seal has AlternateArcticArt=yes set, which causes the game to use the image file seala.shp on arctic maps, instead of seal.shp. This logic works for any InfantryType, however this only works for the arctic theater and only for InfantryTypes.

[TechnoType]?AlternateTheaterArt= (boolean)
   Specifies whether or not this SHP-based unit can have alternate art depending on the theater of the current map. For example, setting Image=JUNK and AlternateTheaterArt=yes on a unit will make the unit load artmd.ini section [JUNKA] on arctic, [JUNKD] on desert, and so on according to theater. If any of those sections do not exist then the unit will fall back to [JUNK]. So quite similar to AlternateArcticArt, just automatic and smarter. Defaults to no.

So using AlternateArcticArt and AlternateDesertArt removes the output using AlternateTheaterArt=yes which encompasses all theatres of course not for it is ares specific. Smile

5. VoxelAnim problems: THis message occurs:

[SONICTURRET] -> VOXELANIM missing ART data: SONIC

so I thought creating an artmd.ini entry would solve the issue.

[SONIC]
Voxel=yes

after that:

[SONIC] -> object ART exists but is undeclared/unused

Turns out it is beacause of the:

[SONICTURRET]
Name=Disruptor Turret
ShareTurretData=yes
ShareSource=SONIC
Elasticity=0.0
MinAngularVelocity=10.0
MaxAngularVelocity=14.0
MinZVel=30.0
MaxZVel=38.0
MaxXYVel=8.0
Duration=100
ExpireAnim=TWLT026
Damage=90
DamageRadius=100
Warhead=TankOGas

SharedSource tag is not parsed i guess. Smile


Thank you again Smile

PS: What about a feature, where everyone can simply put in a section one wants to be ignored by the program for example:

set ignore "GASAND NAWALL"

Hey Worminator: I edited the ModEnc entry Wink

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


Joined: 09 Feb 2015

PostPosted: Sat May 25, 2019 11:17 am    Post subject: Reply with quote  Mark this post and the followings unread

Ich-Henker wrote:

5. VoxelAnim problems: THis message occurs:

[SONICTURRET] -> VOXELANIM missing ART data: SONIC

so I thought creating an artmd.ini entry would solve the issue.

[SONIC]
Voxel=yes

after that:

[SONIC] -> object ART exists but is undeclared/unused

ShareSource is handled, the underlying problem here is that your VoxelAnim is trying to share the turret data of a unit that doesn't exist except as an art entry. Since SONIC is not a valid declared unit, it doesn't exist...

Although I see how the message is confusing, so I'll look into separating it from the Image= handler, then it can give more accurate feedback.

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

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 2 of 4 [159 Posts] Goto page: Previous 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.2782s ][ Queries: 17 (0.0174s) ][ Debug on ]