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 Wed Mar 26, 2025 2:05 pm
All times are UTC + 0
Unknown AI crash error (consistent)
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [20 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
NimoStar
Commander


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Tue Oct 22, 2024 4:03 pm    Post subject:  Unknown AI crash error (consistent) Reply with quote  Mark this post and the followings unread

I have already checked all AI tools and they find no mistakes.

The crash only happens in very late game Soviet AI. There is no crash if I fight Allies or Yuri. This is why it seems weird. I get no crashes when playing as Soviets myself.

All have the same error code.

I would like to tackle this error before publishing the mod, but my dozen attempts couldn't change it (even reverting the AI file).

The game just crashes to desktop, there is no error window. I am using Ares.

Code:
Exception code: C0000005 at 0070DF8A


All of them are that.

Does anyone knows what that means?



artmd.ini
 Description:

Download
 Filename:  artmd.ini
 Filesize:  430.93 KB
 Downloaded:  2 Time(s)


rulesmd.ini
 Description:

Download
 Filename:  rulesmd.ini
 Filesize:  1.13 MB
 Downloaded:  2 Time(s)


aimd.ini
 Description:
allegedly "stablecopy"

Download
 Filename:  aimd.ini
 Filesize:  241.97 KB
 Downloaded:  2 Time(s)


except.txt
 Description:

Download
 Filename:  except.txt
 Filesize:  5.29 KB
 Downloaded:  1 Time(s)


except.txt
 Description:

Download
 Filename:  except.txt
 Filesize:  5.29 KB
 Downloaded:  1 Time(s)


except.txt
 Description:

Download
 Filename:  except.txt
 Filesize:  5.29 KB
 Downloaded:  1 Time(s)


except.txt
 Description:

Download
 Filename:  except.txt
 Filesize:  5.29 KB
 Downloaded:  1 Time(s)


_________________

Back to top
View user's profile Send private message Visit poster's website
E1 Elite
General


Joined: 28 May 2013

PostPosted: Tue Oct 22, 2024 4:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

Check gattling stages.

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


Joined: 30 Nov 2023
Location: Germany

PostPosted: Tue Oct 22, 2024 8:03 pm    Post subject: Reply with quote  Mark this post and the followings unread

Duplicate tag/index [Animations] => 889 in rulesmd.ini!

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


Joined: 30 Nov 2023
Location: Germany

PostPosted: Tue Oct 22, 2024 8:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

I created a log file, there are a few things that could be changed.



check.ini
 Description:

Download
 Filename:  check.ini
 Filesize:  118.15 KB
 Downloaded:  4 Time(s)


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


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Wed Oct 23, 2024 9:53 am    Post subject: Reply with quote  Mark this post and the followings unread

There are some of those that could cause a crash in theory (such as CIVAN not having elite weapon, even though he couldn't rank up), but he isn't in the AI scripts. But most things such as duplicate listings should be completely harmless, and others supposed "missing anims" actually use different capitalization which works just fine.

But, we shall see. I reckon some leads might be useful, including the gatling one since I had made a gatling-enabled Apoc variant to use the missiles against ground as well.

_________________

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


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Thu Oct 31, 2024 1:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

I thank to the people that helped debugging, I am a major step closer to release thanks to that. Seems like AI is not crashing any more as before. And I made fixes, and fixes to fixes.

my fixes however made a new error, this happened during a soviet vs soviet battle:

Code:
Exception code: C0000005 at 007564BD
Registers:
EIP: 007564BD   ESP: 0019CEFC   EBP: 1B2912F0
EAX: 00000000   EBX: 00000000   ECX: 00000000
EDX: 00000000   ESI: 00000000   EDI: 1B2912F0


Any idea what that code is about?

_________________

Back to top
View user's profile Send private message Visit poster's website
wow4ik81
Cyborg Soldier


Joined: 30 Nov 2023
Location: Germany

PostPosted: Thu Oct 31, 2024 5:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

upload the new inis

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


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Sat Nov 02, 2024 1:08 am    Post subject: Reply with quote  Mark this post and the followings unread

I will try to see if I reproduce it first. I recently configured G-E's checking scripts, though the command line gives an error after the first part



2024-11-01 22_06_30-C__Windows_system32_cmd.exe.png
 Description:
check.log is actually created so I don't see what seems to be the problem (the AI file isn't updated, though)
 Filesize:  30 KB
 Viewed:  1545 Time(s)

2024-11-01 22_06_30-C__Windows_system32_cmd.exe.png



_________________

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


Joined: 09 Feb 2015

PostPosted: Sat Nov 02, 2024 5:10 am    Post subject: Reply with quote  Mark this post and the followings unread

Send me your 3 main inis in pm, there's clearly something structurally wrong with ai.ini since it's making the script crash, and we know where  the problem most likely resides by where it crashes... triggers.

_________________
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: Sat Nov 02, 2024 11:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

That's strange. The AI is based on vanilla one since alternate AIs aren't normally compatible with the campaign. And the AI itself seems to work just alright now as far as I tested.

Since the inis aren't a trade secret or anything (kind of worthless without other assets) I will still post them here besides sending them, just in case anyone can identify any problem.

The crash I posted reocurred last time seemingly when an Object 279 tank destroyed NALASR, but many other buildings had been destroyed without crashing so I don't think its related to building destruction animations for example. Maybe to elite levelling in the tank? Who knows.

I also include a more edited AI that I am not using just in case.



aimd - maybe unstable2.ini
 Description:

Download
 Filename:  aimd - maybe unstable2.ini
 Filesize:  246.14 KB
 Downloaded:  2 Time(s)


aimd.ini
 Description:

Download
 Filename:  aimd.ini
 Filesize:  241.97 KB
 Downloaded:  3 Time(s)


artmd.ini
 Description:

Download
 Filename:  artmd.ini
 Filesize:  431.4 KB
 Downloaded:  3 Time(s)


rulesmd.ini
 Description:

Download
 Filename:  rulesmd.ini
 Filesize:  1.14 MB
 Downloaded:  3 Time(s)


_________________

Back to top
View user's profile Send private message Visit poster's website
wow4ik81
Cyborg Soldier


Joined: 30 Nov 2023
Location: Germany

PostPosted: Sun Nov 03, 2024 6:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Don't you use any tools to check your inis? There are so many errors and I don't know where to start.
The BlimpBombE weapon is used but has no projectile, just one example of many...

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


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Mon Nov 04, 2024 7:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

I literally posted that I used the tool and a screenshot of it, bruh.

And I also said why not everything is fixed, there's too many false positives and stuff that doesn't actually affect anything in the logs, such as:
* caring for the capitalization of the names of anims
* and units, or
* tagging as errors  the phobos entries
* Caring for stuff such as "barracks has higher techlevel than produced unit" (which literally does nothing)
* "Weapon exists but is unused" (so what?)
* "Warhead not found: Special", when the original game also uses it without declaring it, and many other such cases
, and so on. It takes a lot to wade through that stuff.

In fact, the error you posted is one of like five "real" ones, and even that one can't cause a crash.

_________________

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


Joined: 09 Feb 2015

PostPosted: Mon Nov 04, 2024 8:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well AICHECK isn't crashing for me, so you might just have a permissions problem or where you placed the script is not where it's generating the check.log to read...

I always recommend keeping the scripts in the game/mod directory.

Anyway here's the check.log, as you can see there's a vast number of non-existent warheads, invalid techlevels, undefined animations and other junk.

The missing art errors can be solved just by adding a [HEADING] for the object in art.ini btw, no code required just that it exists.

I'm also including AICLEAN's log and altered inis, read the log to understand what it did/found, and then you can compare the inis to the original -- or start modding from the cleaned inis.

AICLEAN also generated a readable [ScriptTypes] translation, worth reviewing to look for weird cases.

AICLEAN is not entirely happy with your choice of adding [null] to this, so in my copy I removed it:
Code:

[AIRDROPTSK-G]
Name=Allied Airdrop load [null]



nimo cleaned inis.rar
 Description:

Download
 Filename:  nimo cleaned inis.rar
 Filesize:  168.31 KB
 Downloaded:  1 Time(s)


translated.log
 Description:

Download
 Filename:  translated.log
 Filesize:  47.94 KB
 Downloaded:  1 Time(s)


clean.log
 Description:

Download
 Filename:  clean.log
 Filesize:  39.07 KB
 Downloaded:  1 Time(s)


check.log
 Description:

Download
 Filename:  check.log
 Filesize:  81.76 KB
 Downloaded:  1 Time(s)


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

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


Joined: 30 Nov 2023
Location: Germany

PostPosted: Mon Nov 04, 2024 10:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

[ZEP]
ElitePrimary=BlimpBombE
BlimpBombE has Projectile=BlimpBombEP
[BlimpBombEP] Section does not exist.


[YMERC]
Primary=FireGuns
FireGuns has Projectile=Inviso
[Inviso] Section does not exist, and many other weapons.


[MTANK9] & [MTANK10]
Prerequisite=YAWEAP,YAPSIS
[YAPSIS] Section does not exist.


[NAPOWR]
Prerequisite=NACNST,FACTIONBUILDING
[FACTIONBUILDING] Section does not exist, and many more buildings.


[Warheads]
[AssaultArmsAGWH] Section does not exist, many more warheads are registered that are not present.

[OLDTNKD]
AllowedToStartInMultiplayer=no; Duplicate tag

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


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Mon Nov 04, 2024 11:21 pm    Post subject: Reply with quote  Mark this post and the followings unread

Registering warheads that are not present has no effect, prerequisite that does not exist in unbuildable unit has no effect, etc.

I actually found the event that crashes the game, and its none of that

Its [OBJECT279] being destroyed. In previous versions this didn't crash anything, but now it does. Removed trailer anim from custom turret debris (only "weird" thing), but it still crashes.

So it beats me, for now.

Quote:
where you placed the script is not where it's generating the check.log to read...


Its generating them at the game directory. Should I move all the script files to the game directory?

***

Object279 that is crashing the game is not mentioned by the .log at all, btw

PS: I removed the mention of the custom debris from the tank and that made the game not crash. Although I am still unsure of what caused it to be that way, maybe some debris numerical setting is out of expected bounds.

PS2: Well, it wasn't the settings because copying other working ones did nothing. I also tried to reduce the string length of the title with no effect. Maybe its the simple fact of having a number on the name which is bad for debris, don't know. For now I will just leave the custom debris disabled, even though for me that's one of the coolest looking effects (tank body and turret fly off independently and explode when destroyed).

_________________

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


Joined: 09 Feb 2015

PostPosted: Tue Nov 05, 2024 12:13 am    Post subject: Reply with quote  Mark this post and the followings unread

NimoStar wrote:
Its generating them at the game directory. Should I move all the script files to the game directory?


Yes, all the batchfiles for the scripts, their cfgs and the tcls, that's the simplest way to make sure it all works as intended.

Object 279 could easily be crashing because the voxel debris doesn't have an art entry telling the game it is in fact a voxel.

[OBJECT279DEB] -> VOXELANIM missing ART data: OBJECT279
[OBJECT279TURDEB] -> VOXELANIM missing ART data: OBJECT279

This may seem like a pedantic and overly particular take, but I would suggest fixing everything AICHECK finds wrong as soon as possible, even if it's only marginally important. For example all the unused voxelanims can be removed, all the art entries can be created, unused sequences can be deleted or commented out, tags that don't apply to voxels or buildings can be selectively removed....

Did you read the clean.log? That also contains lots of hints telling you that certain objects are duplicated in your inis, along with redundant tags within them...

Do you want to try using the cleaned inis as the basis for your mod? There's a lot of crap removed and many things it found corrected.

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

I don't want to remove anything. Most the entries are there for future use or because map needs them.

Deleting "Unused weapons" would break the campaigns that reference these weapons in their altered rules.

Furthermore, the "cleaned" inis remove Phobos stuff.

***

The error wasn't so much of the art but because the voxel was just named 279. Missing voxel will not crash with a vehicle, but seems that will crash with a debris.

Since the "missing art data" is the most common error due to it not taking into account capitalization, I coudn't know which of them were true or false. I spent over an hour just putting art entries in all caps.

Code:
In fact, the so called missing art data you so reference is completely irrelevant in these cases. It also throws the same error for "missing art data" for the default TIRE and PIECE voxel debris, which obviously work from the base game


***

I would suggest you reconfigure your scripts and divide into sections of errors that can crash the game, and other, alleged "cleaning" parts for the logs.

Furthermore, my suggestion is that the script be able to read any capitalization in art entries and match that with the rules. Just like the game does, make it agnostic.

_________________

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


Joined: 09 Feb 2015

PostPosted: Wed Nov 06, 2024 7:05 am    Post subject: Reply with quote  Mark this post and the followings unread

NimoStar wrote:
I would suggest you reconfigure your scripts and divide into sections of errors that can crash the game, and other, alleged "cleaning" parts for the logs.

AICHECK doesn't grade what it finds because a lot of it is ambiguous lacking context, any attempt to classify errors into mild or severe will inherently be inaccurate.

NimoStar wrote:
Furthermore, my suggestion is that the script be able to read any capitalization in art entries and match that with the rules. Just like the game does, make it agnostic.

This was a deliberate design choice to force modders to use consistent naming, because sometimes it does matter, and a little diligence goes a long way to preventing future name related errors.

NimoStar wrote:
Furthermore, the "cleaned" inis remove Phobos stuff.

Like what?

_________________
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: Thu Nov 07, 2024 12:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, in any case *none* of the errors found were the cause of any of the two crashes. The first was wrong number of gatling stages, the second was missing voxel. Putting in the "cleaned" inis would have made more crashes without resolving the ones still there.

So I will not be replacing my inis anytime soon.

I still think that trying to "force" modders do this or that according to OCD (rename, "remove unused", etc.) is bad design, instead of prioritizing crashes that we *know* crash the game, like missing weapon; or ones that have gameplay impact, like unlisted warhead.

I would divide and order the log into three types of errors:

Crashes:
1- Missing weapons, calling for nonexistent units, etc.

Glitches / unintended effects:
2- Unlisted warheads, anims, missing projectiles, so forth.

No necessary effect:
3- Unused weapons, warheads, inconsistent capitalization in names, etc.

Still, I did fix a few things like wrong projectile that have a moderate gameplay impact, so I guess I will just have to eyeball it.

_________________

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


Joined: 09 Feb 2015

PostPosted: Sat Nov 09, 2024 3:28 am    Post subject: Reply with quote  Mark this post and the followings unread

NimoStar wrote:
Putting in the "cleaned" inis would have made more crashes without resolving the ones still there.

Precisely why I was suggesting to look/compare, and read the log to see what it wants to do... like I said it shows entire duplicated objects and other things that can make it hard for you, in cases you change the wrong one and the game reads the other for example.

NimoStar wrote:
I still think that trying to "force" modders do this or that according to OCD (rename, "remove unused", etc.) is bad design, instead of prioritizing crashes that we *know* crash the game, like missing weapon; or ones that have gameplay impact, like unlisted warhead.

Again things like capitalization are enforced so as not to make casual spelling mistakes, as well as identifying duplicated code.

NimoStar wrote:
Still, I did fix a few things like wrong projectile that have a moderate gameplay impact, so I guess I will just have to eyeball it.

That's the idea, before every playtest, I run AICJHECK and give it a quick review, at least I know which messages I am aware of and ignore, versus what I wasn't expecting. Usually it will find a simple thing like forgetting to declare an object or a copy&paste error that can be quickly fixed without wasting the time in testing.

_________________
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   Reply to topic Page 1 of 1 [20 Posts] 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.2256s ][ Queries: 14 (0.0135s) ][ Debug on ]