The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 871 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IE - One Sided AI: Fixed!
#1
I've been working on debugging an error that mysteriously popup in AR2. The game ONLY crashes when I play against a Genesis AI. I have debugged for days and countless hours for the past couple of weeks. I've already determined that it is not the AIMD.ini because I have every trigger commented out currently. The game still works with the old rules and no active AI Triggers.

The game either crashes while the credits are loading up, 3861 Credits (except2.txt), or several seconds afterwards (except1.txt).

I have debugged in many different ways. At first I was converting an older working rules into the newer broken rules, slowly copying over all the general changes and testing. I did find 2 errors, both corrected. However, they aren't the cause of the IE that is happening currently. Finally, when I got the game to start causing the same IE as the broken rules, it was inconsistant. I couldn't track if the IE was connected to a building or what. Sometimes the game would IE at the start, sometimes I would be able to play a whole game.

I also tried putting all the  tech levels of the buildings except the Conyard to -1. My plan was to slowly re-enable each building. However, with just the MCV enabled it crashed. So I wasn't able to get anywhere with this method.

Two changes that were done before this IE started to occur were: Renaming and reordering the Building, Unit and Infantry Lists. I have taken the old rules and reordered the lists in the same manner as the newer rules and there was no IE. So for the moment, I have concluded that it is not the cause.

So if anyone has experienced this error before, has any idea why the one AI would cause the crash (on all difficulty levels), or can read the except1.txt and except2.txt, feel free to enlighten me. I'm pretty positive it isn't building code because if I play as Genesis against a Nemesis AI I can build every structure and unit without error. I do know that it's possibly caused by general AI code, building list order, or the renaming of most units and structures. Yet, I'm stuck now without any direction. Thanks.

Details
Only occurs when AI is Genesis.
Crashes while the credits are loading up: 3861 Credits, except2.txt
Several seconds go by: except1.txt


Attached Files
.txt   Less than 1 minute ago">except1.txt (Size: 25.37 KB / Downloads: 368)
.txt   Less than 1 minute ago">except2.txt (Size: 25.35 KB / Downloads: 366)
Reply


Messages In This Thread
IE - One Sided AI: Fixed! - by tmapm - 30.09.2006, 17:44:38
RE: IE - One Sided AI - by tmapm - 30.09.2006, 19:24:30
RE: IE - One Sided AI: Fixed! - by DCoder - 30.09.2006, 20:04:35
RE: IE - One Sided AI: Fixed! - by Bobingabout - 30.09.2006, 23:09:40
RE: IE - One Sided AI: Fixed! - by Vinifera7 - 01.10.2006, 05:42:57
RE: IE - One Sided AI: Fixed! - by DCoder - 01.10.2006, 06:30:32
RE: IE - One Sided AI: Fixed! - by Vinifera7 - 01.10.2006, 08:31:47
RE: IE - One Sided AI: Fixed! - by Kiith-Sa - 01.10.2006, 15:28:47



Users browsing this thread: 1 Guest(s)