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 Sun Oct 13, 2024 12:43 am
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 3 of 4 [159 Posts] Mark the topic unread ::  View previous topic :: View next topic
Goto page: Previous 1, 2, 3, 4 Next
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat May 25, 2019 9:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 6.3a... performance release!

- Improved log messages
- Lots of code cleanup/optimizing



aicheck6.rar
 Description:

Download
 Filename:  aicheck6.rar
 Filesize:  14.38 KB
 Downloaded:  22 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 9:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

<3

It really has sped up a lot!

Hey, what about making the output alphabetical?

Greetings Smile

Edit: I experienced a crash with the latest build, when you set a side on a trigger to all and it references units that have requiredhouse=xxx

Looks like this:

parsing [AITriggerTypes]...
can't read "sides(0)": no such element in array
   while executing
"foreach house $sides($side) {
                                                               set house [string trim $house]
                                                               set multi1 [lsearch $teamownedhouse($tt1) $house]
                                                               if {$multi1 == ..."
   invoked from within
"if [string equal "<all>" $house] {
                                                       foreach house $sides($side) {
                                                               set house [string trim $house]
                                                               set multi1 [lsearch $teamownedh..."
   ("while" body line 127)
   invoked from within
"while ![eof $of] {
               set curline [gets $of]
               set cc [string first ";" $curline]
               if {$cc == 0} {continue}
               if {$cc != -1} {
                       set comment [string ..."
   (procedure "loadini" line 1603)
   invoked from within
"loadini $argv"
   (file "aicheck6.tcl" line 2282)
Drücken Sie eine beliebige Taste . . .

It is a complicated matter, thus the situation but a crash isn't in your interest, that is why i thought i post it. Smile

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


Joined: 09 Feb 2015

PostPosted: Sun May 26, 2019 6:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

RequiredHouses with a dummy value? I don't understand what you're telling me.

I can't crash it even by putting bad side values into the triggers, so while you may have a typo, you'd see a proper log entry for it:
Code:
[RUS_G30] -> invalid SIDE value for TRIGGER: 0


If your [Sides] section is somehow written wrongly, I'm not sure that would do much either, since it counts up sides without caring what their names are, but you'd also see a log entry for that:
Code:
[Sides] -> detected YR
[Sides] -> detected side: 4


Soooo if you want me to look into it, I need more info... and what you've narrowed it down to?

_________________
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: Sun May 26, 2019 8:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

It crashes when:

Trigger has sides=all

,<all>,0,1, ...

the trigger then refers to a team with a taskforce that has a member that has requiredhouses=russians (for example).

That was that - is it understandable?

Smile

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


Joined: 09 Feb 2015

PostPosted: Sun May 26, 2019 9:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Show me the trigger.

_________________
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: Sun May 26, 2019 9:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

There he is Smile

01000385-G=ALL Secret Lab Heros E,01000388-G,<all>,0,1,CASLAB,0100000003000000000000000000000000000000000000000000000000000000,500.000000,10.000000,500.000000,1,0,0,0,<none>,1,0,0

Back to top
View user's profile Send private message
MRMIdAS
Energy Commando


Joined: 17 Jul 2008

PostPosted: Mon May 27, 2019 1:45 am    Post subject: Reply with quote  Mark this post and the followings unread

So, you're telling all to build a Russian only trigger? why not just set it to Soviet>Russian?

Just a thought

_________________
MIdAS - Turning wages into beer since 2002

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


Joined: 09 Feb 2015

PostPosted: Mon May 27, 2019 2:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Ich-Henker wrote:
01000385-G=ALL Secret Lab Heros E,01000388-G,<all>,0,1,CASLAB,0100000003000000000000000000000000000000000000000000000000000000,500.000000,10.000000,500.000000,1,0,0,0,<none>,1,0,0

Like I thought you put side zero for the trigger, but that doesn't explain why it would crash, it has handlers for such.

Anyway I was doing more optimizing with particular interest on log messages, I have it doing more and still only a hair slower than 6.3 Smile

----------

AICHECK 6.5 update...

- Now checks Smudges, Overlays and Terrain objects for missing data/art (Tiberium ignored)
- Error logging is now more accurately divided up into respective sections
- Reduced redundant error conditions, and messages more consistent
- Misc optimizations



aicheck6.rar
 Description:

Download
 Filename:  aicheck6.rar
 Filesize:  14.83 KB
 Downloaded:  32 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: Mon May 27, 2019 7:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, it is a niche problem. I changed it back; i just wanted to point out that it crashed for G-E.

Thnaks for the new version; will try. Smile

Yup, there it is: [01000294-G] -> invalid SIDE value: 0 haha

and now all the smudges to clean up ahhhh Very Happy

Bit of feedback if you are interested.

1. Ares related:

[CHRP] -> VEHICLE has Passengers value, but is not Transport or OpenTopped

This is a false positive due to the abductor logic: it has a transport value for it trapps units inside of it the flag is on it's weapon=

[NeutronCannon]
Abductor=yes

it is not open topped because the prisoned inmates should not fire outside...nice idea anyway, it grows in strength the more it captures .. gotta think about that Smile.

2. checking Alternate Art...

works fine but excludes alternate lunar art wich ends on l.

[BRUTEL] -> unused ART object or referencing object undefined

3. The new outputs are very usable and specific, well done!

Cool  Exclamation

4. Suggestions.

4.1 Ignore those wall buildings if they have ToOverlay in their Art code
4.2 The customizable ignore-section in the tlc config file ignore: "CHRP" for example.
4.2 Still orderable SW's  - i looked it up i have 108 of them. Same with warheads and what about the artmd.ini?

But no hurry, this program never was as good as now. Smile

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


Joined: 09 Feb 2015

PostPosted: Mon May 27, 2019 11:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

1. Don't care Smile
2. You're lucky I even added Desert since you asked
3. Thanks!
4. Not interested, hiding things encourages mistakes

Frankly unless there's a new pressing issue, or a bug I find in my mod that may make sense to check, this is gonna be the last update for a while...

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

Back to top
View user's profile Send private message
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Sat Jun 15, 2019 9:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

I noticed that AICHECK doesn't always seem to find buildings if another object type is listed with the same ID, for example an animation or an overlay. With cases like walls, both the building and the overlay must share the ID (the overlay doesn't have its own section, but both are listed). In addition, it seems to have trouble finding buildings when the sections are placed between other object types, for example in between VehicleTypes. FYI I tested with TS, if that matters.

_________________


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


Joined: 09 Feb 2015

PostPosted: Sat Jun 15, 2019 10:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

The arrays only hold 1 instance of a named object if the index for both is before the data for both, it's just the way the script loads data, and would be a pain to change. As an aside, if the wall isn't buildable, it doesn't have to be a building at all...

I'd need to see specific examples if you mean something other than wall is having issues, because the index list dictates which array the object ends up in, if the object shows up under [VehicleTypes] then that's where it goes. There is a pointer array that defines what each object-to-be-found belongs to. Objects not related to walls should not share names as a rule of thumb, and I think it's good to encourage distinctiveness to be on the safe side when referencing?

AICHECK also does a post-pass on orphaned objects to see if it can determine what they are for the purposes of logging errors, but as long as everything is declared this shouldn't make a difference.

Beyond all that, has it helped?

PS. I did notice the dummy side values essentially mean that "ThirdSide" is expected as a third side, and any other name will read as fourth, including where it tells you how many sides are detected... it's easy to remove if you need to, just ask.

_________________
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 Aug 26, 2019 9:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

MAPCLEAN 2.3 now automatically uppercases the theater value in a map, some modders changed the case because FA2 only recognizes uppercase, consider it a poor man's edit protection.

Also new script MAPKILL, or more specifically "YR Map Killer", this one has a very simple function that doesn't depend on the game or mods, and doesn't require configuration, it just deletes any map with a missing [Header] and/or any of the YR-only terrains, Lunar, Desert, NewUrban.

Since next to none of you mod RA2, MAPKILL is probably totally useless, but in the off-chance someone finds it useful. I have noticed some maps with corruption will cause the script to hang, but it tells you what map it is working on, so it should be easy to Ctrl-C and manually remove that map before trying again. The included batchfile is set for *.yrm but it can be changed to any filemask as usual.



mapclean2.rar
 Description:

Download
 Filename:  mapclean2.rar
 Filesize:  3.59 KB
 Downloaded:  20 Time(s)


mapkill.zip
 Description:

Download
 Filename:  mapkill.zip
 Filesize:  1.36 KB
 Downloaded:  16 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 Aug 30, 2019 1:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

SOUNDCHECK 2.3...

- improved logging of sounds without resources (wavs), removing a redundant error
- fixed the console message showing which object was missing resources instead of the resource



sndcheck2.rar
 Description:

Download
 Filename:  sndcheck2.rar
 Filesize:  3.81 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
Ich-Henker
Flamethrower


Joined: 06 Aug 2015
Location: Germany

PostPosted: Fri Jan 03, 2020 12:19 pm    Post subject:  False Positive Reply with quote  Mark this post and the followings unread

Hey,

got an annoying false positiv, whenever I extend a RequiredHosues-Tag to more than one country.

[Unit]
SpecialThreatValue=1
LeadershipRating=8
Cloneable=no
Owner=Russians,Confederation,Africans,Arabs,Siberia
RequiredHouses=Russians,Siberia

[Trigger]
010005F8-G=S Titan Nuke Carrier S,010001D0-G,Siberia,0,1,SAHIGH,0100000003000000000000000000000000000000000000000000000000000000,2500.000000,2500.000000,2500.000000,1,0,2,0,<none>,1,1,1

[AICheck-Alarm]
[010005F8-G] -> RequiredHouses mismatch for primary TEAMTYPE: 010001D0-G <-> Siberia


Do I miss something, because I can easily replicate the problem with any other unit.

Greetings!

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


Joined: 09 Feb 2015

PostPosted: Sun Jan 05, 2020 10:47 am    Post subject: Reply with quote  Mark this post and the followings unread

Odd, there was a typo or copy/paste error because all the other conditions around it are correct and the if statement for the backup TeamType is also correct.

Find "if {$multi1 != 0}" and change that to "if {$multi1 == -1}"

That's 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: Sun Jan 05, 2020 8:38 pm    Post subject:   Reply with quote  Mark this post and the followings unread

Thank you very much.

Helped indeed!

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


Joined: 09 Feb 2015

PostPosted: Wed Feb 19, 2020 3:10 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 6.6...

Another performance enhancing release, I realized there's no need to load inis line by line and worry about memory usage, so now it blasts through with a full read and memory split. The above RequiredHouses glitch is fixed as well.



aicheck6.rar
 Description:

Download
 Filename:  aicheck6.rar
 Filesize:  14.96 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
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat Mar 07, 2020 10:39 pm    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 6.9...

- Added a check for Engineer and other type category conflicts
- Fixed the multi-map check parsing code so a lack of files don't cause a crash
- Improved weapon/shrapnel/airburst checks
- Fixed projectile image checking
- Improved logging for weapons and other undeclared or orphaned objects



aicheck6.rar
 Description:

Download
 Filename:  aicheck6.rar
 Filesize:  14.91 KB
 Downloaded:  17 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 Mar 21, 2020 7:06 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 7.0...

- added PipScale and Passengers values checks for vehicles
- updated the header text with better descriptions
- updated some logging message syntax



aicheck7.rar
 Description:

Download
 Filename:  aicheck7.rar
 Filesize:  15.21 KB
 Downloaded:  33 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: Wed May 13, 2020 9:44 am    Post subject: Reply with quote  Mark this post and the followings unread

So good to see you work on it! Thank you. All features work as intended!
PipscaleCheck I really like!  Exclamation

There is a false positive however where a task force is ordered to move to a now friendly (because infiltrated by an engineer)  before neutral tech building.
checking [AITriggerTypes]...
[010000F3-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000E8-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000E9-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
etc.
Same with a guard script targeting a construction yard wich does not have AIBasePlanningSide because it is normally unbuildable!

[010003B7-G] -> SCRIPT action (move to friendly building) target: Non-player or missing AIBasePlanningSide

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


Joined: 09 Feb 2015

PostPosted: Wed May 13, 2020 12:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

Those are informational warnings, you don't have to act on them. A lot of "errors" are not critical, but seeing them as potential mistakes allows you to better evaluate them in context.

_________________
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 13, 2020 1:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, I see; it is just such a big blob of distracting false positives in this case: And why is it a false positive? Because it is an AI-Action that is only triggered when the AI owns a tech building of that exact type... so the script checker says= wrong action but in kontext of the trigger it becomes a correct action!


checking [AITriggerTypes]...
[010000F3-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000E8-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000E9-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000EA-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000EB-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000EC-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000ED-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F4-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000EE-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000EF-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F0-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F5-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F1-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F2-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F6-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F8-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F9-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000FA-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000FB-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000FC-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000F7-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000FD-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000FE-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[010000FF-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[01000100-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[01000101-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[01000102-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding
[01000103-G] -> SCRIPT action (move to friendly building) target: NeutralTechBuilding

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


Joined: 09 Feb 2015

PostPosted: Sun May 17, 2020 2:50 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 7.1a...

This one was a bitch to sort out, but there were overlapping issues that didn't matter until I changed one thing, the point here is that "B anims" as in Buildup and BibShape have a toggle to check, but when unchecked certain features kept checking them for other reasons. This then exposed a need to change how the data is stored for referencing, which then exposed how Image= redirection of art became orphaned, and thus a false-positive error.

Updating took so long compared to most features, but the end result is better handling of mixed cases, and thus preventing otherwise known errors from showing up as orphans, which are handled differently. Likewise checkbanims=0 now disables declaration/existence tests while still loading the art as a valid object, allowing other functions to work without more special case handling.



aicheck7.rar
 Description:

Download
 Filename:  aicheck7.rar
 Filesize:  15.33 KB
 Downloaded:  17 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: Wed May 20, 2020 10:11 am    Post subject: Reply with quote  Mark this post and the followings unread

SoundCheck 2.5...

First, I added an option to list duplicately referenced waves within a sound, though there are good reasons to do so to skew the randomness. This is purely for a quick check to see if there were copy+paste errors or typos, and not really for regular use.

Second, I added the optional inverse of what it does, it finds waves within audio.idx/audio.bag that are not referenced at all. Using this new feature I was able to remove about 10MB of audio from my mod, and trace down several sounds I had added to without updating the ini.

All in all, I think that's about as far as this script can go...



sndcheck2.rar
 Description:

Download
 Filename:  sndcheck2.rar
 Filesize:  4.13 KB
 Downloaded:  16 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 May 25, 2020 9:04 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 7.5a...

- checks all TechnoTypes for valid TechLevel
- checks BuildingTypes for valid AIBasePlanningSide if AIBuildThis=yes
- checks for name collisions among most objects (excludes overlay/terrain etc)
- checks Animations and Warheads referenced in the global sections are valid
- now lists unused Warheads
- now checks Warheads used within Particles



aicheck7.rar
 Description:

Download
 Filename:  aicheck7.rar
 Filesize:  15.99 KB
 Downloaded:  40 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 Apr 10, 2021 3:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hey, good work again!

False Positives:
1) Warheads are declared as unused when used by superweapons (of course that is an ares tag):

In Rulesmd:
SW.Warhead=ForceShieldSmallWH

In aicheck log:
[ForceShieldSmallWH] -> WARHEAD exists but is unused

2) Aibaseplanningside=-1 is seen as unknown while it is an official tag for all sides: https://www.modenc.renegadeprojects.com/AIBasePlanningSide

3) Warheads used within the special weapon section are seen as unused:

[SpecialWeapons]
NukeWarhead=Nuke
NukeDown=NukeDown
NukeProjectile=NukeUp
EMPulseWarhead=EMPuls
EMPulseProjectile=PulsPr
MutateWarhead=Mutate

4) Warheads used by animations in artmd.ini are listed as unused.

5) If a task force is send towards a former neutral tech building as soon as that tech building becomes friendly via an engineer it is still displayed as an error

SCRIPT action (move to friendly building) target: NeutralTechBuilding
in aimd:

0=58,131143
1=49,0

The action works but it is still displayed as wrong.

6) This matter is Ares related but quite polluting the output with many false positives:

[MissileSplit4Weapon] -> WEAPON referenced as Airburst/Shrapnel but isn't attached to a valid unit

Ares has a weapontypes list so that you do not have to attach these types of weapons to dummy units anymore. Aicheck attributes them as not attached to a valid unit while they are in a valid list, which makes it hard to adress the one that is really missing:

[WeaponTypes]
1=StormFragment
2=TeslaSupportBeam

(That is how the list is named in rulesmd)


Suggestion:
I know you were against it before but I would nicely ask for the option to switch off specific tags in the aicheck config file like we can do with the "set gprereqs" tag: "setexeption" would do, so we could disable false positives like [thirdside] for example.
Same for the option to disable the unused warheads and weapons display in the log via the aicheck config file Very Happy.

See you!

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


Joined: 09 Feb 2015

PostPosted: Mon Apr 12, 2021 12:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is getting wholly into Ares territory, and at a glance would require changing a fair chunk of parsing code, or at least adding a bunch, which I am not prepared to venture into at this time.

Remember a false positive is just information, if you know you can safely ignore it, that's still better than the script not checking for the "proper" conditions.

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

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


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Sun Apr 18, 2021 1:59 am    Post subject: Reply with quote  Mark this post and the followings unread

But maybe you delete the entry believing in the "false positive", that is pretty serious.

Also, in my attempt to use this, all that happens is "tclsh is not recognized as an internal or external command". This happens when running the script from RA2YR directory (as well as in other directories)

_________________

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


Joined: 09 Feb 2015

PostPosted: Thu Apr 22, 2021 4:17 am    Post subject: Reply with quote  Mark this post and the followings unread

You have to install the ActiveTCL runtimes like it says in the header of each script, which you should already be editing to set paths and such.

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

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


Joined: 04 Jun 2021

PostPosted: Fri Jun 04, 2021 1:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Nice tool, thanks for your effort!

I've just tried AICheck7 on YR but I think it has some bugs though, the most obvious is I get lots false positives on "move to friendly building", although my scripts are okay and running as expected. It says "Non-player or missing AIBasePlanningSide" or "TEAMTYPE has mismatched side (x vs y) for SCRIPT action (move to friendly building) target".

Unless I'm missing something, you must be computing the side wrong or most likely the building index. You probably know this already, but the building index should be calculated based on the position in the [BuildingTypes] array, not on the left side number, which is just a string, so I'm guessing AICheck is simply pointing to the wrong building.

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


Joined: 09 Feb 2015

PostPosted: Fri Jun 04, 2021 10:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

The mismatched side and such errors are to let you know if you have other faction objects your faction shouldn't have access to. As further back in the thread with Ich-H constantly asking about these, it's just information, the script doesn't know context, you do.

The point is to alert you to as many things as possible, without focusing on anything totally irrelevant.

If you genuinely think there's a bug somewhere post the scenario+code and the log entries.

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

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


Joined: 04 Jun 2021

PostPosted: Tue Jun 15, 2021 11:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

The script does know the context from the teamtype. The team belongs to a side, the targeted building also belongs to a side, all you need to do is to compare the sides to drop the spam. Not sure how activetcl works, but it looks like it supports functions/procedures? If you make some tool functions to access various data it will be very easy to compare deeper stuff.

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


Joined: 09 Feb 2015

PostPosted: Wed Jun 16, 2021 12:07 am    Post subject: Reply with quote  Mark this post and the followings unread

Post your log, this generic discussion isn't going to help you get answers.

In my own mod I have this AICHECK warning:
[0ECCFA7C-G] -> Owner mismatch for backup TEAMTYPE: 0C142C8C-G <-> <all>

The reason I have that error is because it's an engineer on a flaktrack mission, but the flaktrack isn't available for Cuba, yet the trigger is <all> houses for the side. It's correct for all houses except Cuba.

This would inform me that I may need to make another trigger with it's own sets of teams/scripts for Cuba using Cuba's APC. What it can't tell is whether that means I should make the primary part of the trigger house specific exempting Cuba altogether from it, then make an entirely Cuba specific trigger, or whether I actually don't care if Cuba can't execute the secondary mission on the trigger. This is what I mean context.

Do you understand it's being very specific about this? This is how the script works, it finds things you may not have considered as well as glaring errors.

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

Back to top
View user's profile Send private message
adamstrange
Cyborg Cannon


Joined: 07 Mar 2013

PostPosted: Mon Jun 21, 2021 4:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

Have you created an AI mod that can be downloaded ?

Back to top
View user's profile Send private message
geof101
Rocket Infantry


Joined: 30 May 2012

PostPosted: Wed Aug 18, 2021 8:41 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm having this error msg.



Untitled.png
 Description:
 Filesize:  9.42 KB
 Viewed:  14655 Time(s)

Untitled.png



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


Joined: 09 Feb 2015

PostPosted: Fri Oct 22, 2021 6:05 am    Post subject: Reply with quote  Mark this post and the followings unread

SOUNDCLEAN 1.2 update...

I decided to add a re-indexing option that would sort all sounds by name. This is particularly useful when working on a map using FA2 and scrolling through the list, because if you have say ambient sounds scattered around, then typing the prefix won't show the full list, only the list starting at the first match.

A minor side effect is that inline comments on the index are discarded, but the keepcomments options will still save the header and inline comments everywhere else.



sndclean.zip
 Description:

Download
 Filename:  sndclean.zip
 Filesize:  1.79 KB
 Downloaded:  9 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: Wed Nov 03, 2021 5:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 7.9 update...

- added alternate source art checking within art.ini, where animations/sprites are using Image=xxxx
- added "100 unit bug" checking for VehicleTypes (no exception for Ares just ignore it)
- changed a few log messages



aicheck7.rar
 Description:

Download
 Filename:  aicheck7.rar
 Filesize:  16.28 KB
 Downloaded:  32 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: Wed Apr 27, 2022 3:08 am    Post subject: Reply with quote  Mark this post and the followings unread

MAPCLEAN 3.0...

Ok so this was a fairly significant overhaul, with two major features. The parsing engine was updated to behave more like AICLEAN, in that it takes key sections and places them either at the beginning (in a specific order) or at the very end, with everything unknown/unimportant being between those blocks. This might not be terribly useful, but if you edit maps manually outside of FA2, it can make at least the scripting section easier to jump around within, as the definitions and the related code are clumped together.

Also, previously the script had no provision to work with missions (singleplayer maps) because it expected to see the header and preview sections of the map code, which are absent in missions, but while I had initially just added some error handling for that use case, I since decided to flesh out the possibility. I still don't recommend using this on missions, as the primary function of changing or removing code in a generic fashion would seem to contradict the needs of a mission map, which by its nature is entirely customized with many defaults overridden.

For cases where you want to use MAPCLEAN on a mission map, you'll have to edit the .tcl and set an internal flag to allow it. This also means you could make a duplicate of the script that is run by an alternative batchfile, specifically configured for your mission maps. By default the maps being processed are saved as *.old so there's little danger of losing anything.

On a less impactful note, both the configuration and log filenames can now be customized within the .tcl header, as well as a new option to specify whether to keep appending to the existing log, or overwrite it each run.



mapclean3.rar
 Description:

Download
 Filename:  mapclean3.rar
 Filesize:  4.51 KB
 Downloaded:  16 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 Jun 17, 2022 6:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

SOUNDCLEAN 1.3 Update...

- Corrected the header string which said "AICLEAN" as an artifact from copy&paste code.

- Changed the sorting order to put all ambient sounds (_Amb_xxxxxxx) at the beginning, instead of at the end like previously due to the TCL sorting algorithm.



sndclean.zip
 Description:

Download
 Filename:  sndclean.zip
 Filesize:  1.82 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
Overmind
Rocket Cyborg


Joined: 05 May 2022

PostPosted: Tue Aug 16, 2022 5:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hello, I tried the latest version of this tool. I get an error and it seems not to complete.

It does not alter my .inis in any way (maybe due to the error ?).



Error.jpg
 Description:
The actual Error
 Filesize:  174.89 KB
 Viewed:  13512 Time(s)

Error.jpg



out.txt
 Description:
Log until error occurs.

Download
 Filename:  out.txt
 Filesize:  17.75 KB
 Downloaded:  9 Time(s)


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


Joined: 09 Feb 2015

PostPosted: Wed Aug 17, 2022 9:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 7.9a

This one explictly stops bad AITriggerTypes with side value of 0 from crashing the script.



aicheck7.rar
 Description:

Download
 Filename:  aicheck7.rar
 Filesize:  16.31 KB
 Downloaded:  28 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 Sep 11, 2022 4:51 am    Post subject: Reply with quote  Mark this post and the followings unread

SOUNDCLEAN 1.4 update...

This one separates the index sorting from the object sorting, in that each can be enabled or disabled separately.

The new "sortsounds" option will make the script write out all the sound objects in the order matching the declaration list, no matter what ordering it uses. However the list is sorted, or not, is how they will be written.

As with the last update change, any sortation options will still place ambient sounds first, if both settings are off then it will not.



sndclean.zip
 Description:

Download
 Filename:  sndclean.zip
 Filesize:  1.91 KB
 Downloaded:  22 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 26, 2023 9:11 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 8.0 update...

An oversight in checking has been corrected, Warhead references in art.ini are now checked against rules.ini entries.

Code:
checking Animations...
[CRYSTAL4] -> WARHEAD specified doesn't exist: TankOGas
[METLARGE] -> WARHEAD specified doesn't exist: Meteorite
[METSMALL] -> WARHEAD specified doesn't exist: Meteorite


Also checks for invalid values on attached building lighting: LightVisibility, LightIntensity, LightRedTint, LightGreenTint, LightBlueTint



aicheck8.rar
 Description:

Download
 Filename:  aicheck8.rar
 Filesize:  16.49 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
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Mar 05, 2023 6:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

SoundCheck 3.0 update...

This one finally checks the tags within sounds for valid content: Volume, Priority, FShift etc...

Due to the lack of preloading the ini for processing, the one check I left out is to make sure sounds with Range= have the accompanying Type=local set, but otherwise I think it is feature-complete.



sndcheck3.rar
 Description:

Download
 Filename:  sndcheck3.rar
 Filesize:  4.68 KB
 Downloaded:  9 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: Wed Mar 08, 2023 12:39 am    Post subject: Reply with quote  Mark this post and the followings unread

AICheck 8.1f update...

New:
- informs you that BurstDelayX on weapons is incorrect
- verifies DebrisTypes contain valid VoxelAnims on AircraftTypes & VehicleTypes
- additional checking on orphaned objects

Replacing the 8.1 release, I have rejigged the VoxelAnim code, which can now differentiate *barl.vxl and *tur.vxl references to their source unit, and checks if it has Turret=yes. Also it now recommends using Image= instead of ShareSource= (see: here)



aicheck8.rar
 Description:

Download
 Filename:  aicheck8.rar
 Filesize:  17.09 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 Mar 16, 2023 3:33 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok here's a variant of the last AICHECK, with one unique feature added: it cross checks the existence of files with all the presumed references, that means general animations and building animations .

Now there are some caveats here, it ignores Theater=yes art with the extensions like .sno/.tem/etc, and it only looks at the object names, which are all the snow art names, so that's what has to be extracted to check against. within the aicheck8mod.tcl you will have to set a new variable filebase to the path where you've extracted all the .shp files, the ones from the game and the mod you're testing.

The purpose of this is to find out if anything you have referenced in rules.ini+art.ini is physically missing, something a logic test between all the tags can't determine. As such this will require a bit of setup in finding all the files within the game mixes (ra2.mix->isosnow.mix and elsewhere) but is very simple to configure.

Both tcl and batchfile are distinctly named, so they won't overwrite any existing copy you have.

In the example screenshot, I didn't extract the collapse animations to the directory specified in $filebase, but everything else was present, including renamed Psychic Amplifier artwork from the temperate theater art, since it shows an error without snow art.



artyfakes.jpg
 Description:
 Filesize:  148.24 KB
 Viewed:  12802 Time(s)

artyfakes.jpg



aicheck8mod.rar
 Description:

Download
 Filename:  aicheck8mod.rar
 Filesize:  16.31 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: Fri Apr 21, 2023 12:13 am    Post subject: Reply with quote  Mark this post and the followings unread

AICHECK 8.3....

I discovered the orphan/unknown object detection code didn't handle VehicleTypes, so that's been corrected, which means they are later properly scanned for errors, even though they remain unused.

Additionally, as I found out, the game will crash for units that have DebrisTypes specified (overriding the [General] defaults), but don't have DebrisMaximums set for them! There are now error messages for one found without the other, and improper length lists.

I also improved some of the VoxelAnims checking code, adding range checks to a few tags, and shortening the error messages to be more inline with other sections.



aicheck8.rar
 Description:

Download
 Filename:  aicheck8.rar
 Filesize:  17.54 KB
 Downloaded:  17 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: Tue May 02, 2023 5:29 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 Sat May 06, 2023 1:46 pm; edited 1 time in total

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


Joined: 20 Jan 2008
Location: Texas

PostPosted: Wed May 03, 2023 4:54 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm not sure I entirely understand how to use these scripts? I was able to sort out getting ActiveTCL working but if I understand the output I'm getting back, I need to have the INI files in the specific path C:\CC-RA2 ?

AICheck specifically seems to still kick back an error that it can't find rules.ini but if I rename my rulesmd then it seems to function. I'm a bit more interested in knowing how the map checkers work. I'm not entirely sure how it works or even what it does but I have a map that's been crashing on me every time I run it and I'm at wits end trying to figure out what's up with it.

Back to top
View user's profile Send private message ModDB Profile ID
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies. Page 3 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.4287s ][ Queries: 16 (0.0428s) ][ Debug on ]