<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modenc2.markjfox.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=84.251.65.185</id>
	<title>ModEnc² - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://modenc2.markjfox.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=84.251.65.185"/>
	<link rel="alternate" type="text/html" href="https://modenc2.markjfox.net/Special:Contributions/84.251.65.185"/>
	<updated>2026-04-19T08:40:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://modenc2.markjfox.net/index.php?title=Internal_Error&amp;diff=12412</id>
		<title>Internal Error</title>
		<link rel="alternate" type="text/html" href="https://modenc2.markjfox.net/index.php?title=Internal_Error&amp;diff=12412"/>
		<updated>2013-09-01T08:26:16Z</updated>

		<summary type="html">&lt;p&gt;84.251.65.185: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Ts_ie.png|thumb|150px|right|Tiberian Sun&#039;s Internal Error]]&lt;br /&gt;
[[Image:Ra2_ie.png|thumb|150px|right|Red Alert 2&#039;s Internal Error]]&lt;br /&gt;
[[Image:Yr_ie.png|thumb|150px|right|Yuri Revenge&#039;s Internal Error]]&lt;br /&gt;
[[Image:Rp_ie.png|thumb|150px|right|RockPatch&#039;s Internal Error]]&lt;br /&gt;
The &#039;&#039;&#039;Internal Error&#039;&#039;&#039; (often just written short-hand as &#039;&#039;&#039;IE&#039;&#039;&#039;) is a general error returned by the [[Tiberian Sun]] [[engine]] and its derivates. The message itself gives no information about what the error actually was or what went wrong, thus leaving it to the modder to know what could have caused the error and to find the cause in their mod&#039;s changes.&lt;br /&gt;
&lt;br /&gt;
If you experience an Internal Error, you should:&lt;br /&gt;
# Check if the EIP reported in your except.txt file matches an EIP for which the IE cause is known (see below).&lt;br /&gt;
# Think about whether a distinctive event immediately preceeded the error (e.g. a unit being built, a weapon being fired, etc.). If this was the case then take a look at the changes you applied to that unit/weapon/whatever and see if there are any mistakes.&amp;lt;br&amp;gt;&lt;br /&gt;
# Carefully check your latest modifications, with the help of a diff between the current rules set and the previous, working rules if possible (for this reason, and in case you mess up your code beyond repair, you should always keep recent backups of working code).&lt;br /&gt;
Remember that the more code you add at the same time, the more likely it is to introduce multiple bugs and IE causes (and just because you found one mistake in your code, that doesn&#039;t mean there can&#039;t be another).&lt;br /&gt;
&lt;br /&gt;
==Except.txt==&lt;br /&gt;
If your game crashes because of an Internal Error, a file named except.txt is generated in your game folder. This file is a dump of certain runtime-data from the game at the moment the error occurred and could potentially tell you exactly what went wrong &#039;&#039;if&#039;&#039; you knew the engine code. &amp;lt;br&amp;gt;&lt;br /&gt;
Due to his research into the game&#039;s binary and his efforts to develop the RockPatch, pd has occasionally been able to indicate the area of the engine where the error occurred (for example, an error occurring in the voxel-loading routines may indicate a problem with a custom voxel).&lt;br /&gt;
However, pd has other commitments and should not be treated as the go-to guy for any IEs you may have. Further more, pd may not neccessarily be able to help - without the source code or a comprehensive understanding of the game&#039;s binary the file is of little use. (cp. [[SYNCx.txt]])&lt;br /&gt;
&lt;br /&gt;
According to an early version of [[Except.txt]] (which now redirects here), this file includes the full structure and a stack dump of a [http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/context_str.asp CONTEXT] element.&lt;br /&gt;
&lt;br /&gt;
IEs that share the same cause also share the same &amp;lt;tt&amp;gt;EIP:&amp;lt;/tt&amp;gt; value in except.txt, so knowing that value might help you determine the cause of your IE (see the list of known IE causes (below) which also includes the corresponding EIP). However, it should be noted that some shared IE causes in INI code can yield one of several different EIP values (depending on the circumstance), and that some rare IE causes can actually yield totally random EIP values. As such, if you do have an unexplained IE, you should check all of the known causes.&lt;br /&gt;
&lt;br /&gt;
== Known causes of Internal Errors and their EIPs ==&lt;br /&gt;
Since &amp;quot;Internal Error&amp;quot; is the game&#039;s response to almost any fatal error, its causes are diverse. Most common are causes related to weapons and warheads, with a missing warhead probably being the most commonly reported cause.&amp;lt;br&amp;gt;Note that some IE causes may be prevented (or at least have certain limits extended (e.g. CellSpread)) by the [[RockPatch]], which in turn has opened up potential for new IE causes ([[RockPatch]]-specific IEs are not listed here).&lt;br /&gt;
&lt;br /&gt;
=== Some useful tips ===&lt;br /&gt;
If an integer between {{Tt|0x00812000}} and {{Tt|0x00B78300}} appears in the stack, subtract {{Tt|0x00400000}} from it and look at the resulting address in {{Tt|gamemd.exe}} with a hex editor. If you find some INI flag, you can be almost sure this flag was the one being read when the problem happened and as such its values (or absence thereof) is the problem.&lt;br /&gt;
&amp;lt;!-- Someone consider writing a tool to process this --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Specific game versions ===&lt;br /&gt;
&lt;br /&gt;
==== Yuri&#039;s Revenge 1.001 ====&lt;br /&gt;
&lt;br /&gt;
{{:Internal_Error/YR}}&lt;br /&gt;
&lt;br /&gt;
==== Tiberian Sun 2.03 ====&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot; class=&amp;quot;table_descrowdesccol anchorcontainer&amp;quot;&lt;br /&gt;
! EIP&lt;br /&gt;
! Cause&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|00415698|eip}} &lt;br /&gt;
| You used a [[TrailerAnim]] on an animation but forgot to set a [[TrailerSeperation]].&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|004C6428|eip}} &lt;br /&gt;
| AI does not have any buildings available for it to build. Check {{f|BuildConst|link}}=, {{f|BuildPower|link}}= etc.&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|006703D4|eip}} &lt;br /&gt;
| WaveClass Sonic exception, normally triggered by a unit with a weapon that has IsSonic=yes set, firing to the south of the screen and the user scrolling up. No certain fix for this as we know, although [http://ppmsite.com/forum/viewtopic.php?t=31604 HyperPatch] has been confirmed to fix it at least on some systems. Another fix is disabling DirectDraw hardware acceleration via either dxdiag or a [http://www.ppmsite.com/forum/viewtopic.php?t=19543 custom ddraw.dll], although the fix doesn&#039;t work on Windows OS&#039;s newer than XP.&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|0067159B|eip}} &lt;br /&gt;
| WaveClass Sonic exception. Not sure if this is code related, could be end user.&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|006717CB|eip}} &lt;br /&gt;
| WaveClass laser exception. This can be fixed by setting DetailLevel= to 1 or 0 in SUN.ini. In addition, disabling DirectDraw hardware acceleration via either dxdiag or a [http://www.ppmsite.com/forum/viewtopic.php?t=19543 custom ddraw.dll] fixes it, but this fix only works on Windows operating systems older than Vista.&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|0067159B|eip}} &lt;br /&gt;
| | You have set {{sl|AudioVisual|ShakeScreen}} to zero.&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|006B6AE6|eip}} &lt;br /&gt;
| Multiple reasons, depending on the stack dump in the except:&lt;br /&gt;
* If {{Tt|0066F44F}} appears near the top of the stack dump - A [[Warhead]] whose {{f|Verses|link}} could not be processed. {{Tt|EBP}} value says how many values remained to be parsed when an error occurred - (5 - {{Tt|EBP}}) is the 0-based index of the problematic value.&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|90900004|eip}} &lt;br /&gt;
| Generic exception.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Unverified / lacking information ====&lt;br /&gt;
&lt;br /&gt;
{| cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot; class=&amp;quot;table_descrowdesccol anchorcontainer&amp;quot;&lt;br /&gt;
! EIP&lt;br /&gt;
! Cause&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|?|eip}} &lt;br /&gt;
| Removing a building from the PrerequisitePower= list, while it exists in one of the (GDI/NODRegular/Third)PowerPlant= lists will cause an IE the moment any of your Power buildings get destroyed or sold as long as you own a Construction Yard. YR mods that remove Yuri&#039;s side from the game, should not remove YAPOWR from PrerequisitePower=.&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;(Could not be reproduced thus far.)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|?|eip}} &lt;br /&gt;
| Calling for an animation that is not listed under {{tt|[[Animations|[Animations]]]}} might trigger an IE.&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;(That can be caused by multiple issues at various EIPs.)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|?|eip}} &lt;br /&gt;
| Building a unit in-game whose VXL/SHP was inserted in an original game MIX instead of an expansion MIX.&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;(Does this really happen? Sounds more like the mix editor crapping up than simply &amp;quot;game should blow up because you changed stock files&amp;quot;.)&#039;&#039;&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;Further more, why would anyone eschew the normal method of &#039;&#039;expand&#039;&#039;ing the game&#039;&#039;. I don&#039;t see anyone testing/replicating this so I propose removing it from the list. //Marshall&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|006F3481|eip}}&lt;br /&gt;
| The (elite) secondary weapon (or its warhead) of the object you just selected could not be found (see [[#Broken-reference_Causes|broken-reference causes]], below).&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;(Marshall retested this and found that the EIP for a missing secondary weapon is actually 006F352E (see above). Not sure what is meant by &amp;quot;you just selected&amp;quot; as the IE will occur the instant the unit is created/promoted. Please can someone else confim that EIP 006F3481 is incorrect and remove this entry if so. Although, it begs the question of where this EIP came from? - it was added by DCoder on 2008-03-04 (id 14195))&#039;&#039;&lt;br /&gt;
:I&#039;m sorry, I made a mistake analyzing that one. I saw it at [http://www.cannis.net/forum/index.php?s=&amp;amp;showtopic=8560&amp;amp;view=findpost&amp;amp;p=170096 C-GEN] and analyzed it. But in fact it was caused by the &#039;&#039;ElitePrimary&#039;&#039; being wrong, not EliteSecondary. (Though 006F352E in your comment has &amp;quot;ElitePrimary&amp;quot; as the cause as well, I assume you meant 004D5108.) Just cause a certain EIP causes an IE, doesn&#039;t mean another EIP cannot cause an IE for the same reason - there are quite a lot of code paths in the game, and under certain circumstances the first EIP doesn&#039;t get hit. &amp;lt;br&amp;gt;I just reanalyzed the function which both these EIPs fall under, and I can say this: 006F3481 IEs if (Elite)Secondary is broken, 006F352E - if (Elite)Primary is. The function is responsible for selecting which weapon a unit should use against a certain target in idle mode, the EIP you reported above for (Elite)Secondary (004D5108) is correct, but is only hit if the unit is in Guard mode scanning for targets when promotion happens. [maybe this part should go off to a talk page?] &#039;&#039;//[[User:DCoder|DCoder]]&#039;&#039;&lt;br /&gt;
&#039;&#039;(Just tested this a bit more and got several new EIPs for when the unit was promoted (added in this revision), can&#039;t seem to get any consistent results - will need to test this further. //Marshall&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|?|eip}}&lt;br /&gt;
| Setting {{f|CarryOverCap|0|link}}. Default value is -1, positive values do not cause an IE.&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;I have tested this and couldn&#039;t get an IE to occur. Are there any specific circumstances that are required to trigger an IE on a map with CarryOverCap=0? Note that, in FA2YR, CarryOverCap defaults to zero so I would expect this IE to have been seen more often if it was really a problem. //Marshall&#039;&#039; &lt;br /&gt;
: This setting applies when you progress from one campaign map to another. However, I now see that the default campaigns use 0, so there must be something else amiss. A quick investigation shows that this value is not divided by, so there shouldn&#039;t be an exception at all... Will contact Apollo who submitted this as the cause. &#039;&#039;//[[User:DCoder|DCoder]]&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|?|eip}}&lt;br /&gt;
| Warheads that are not listed under {{tt|[[Warheads|[Warheads]]]}} have been reported to cause an IE, although the exact details are not established. It is not neccessary for every warhead to be listed (for example, removing the Grand Cannon warhead from the list appears to have no effect on the game), however there is no reason not to list every warhead. &#039;&#039;&#039;Validity questionable - if someone can replicate this then please provide an except.txt.&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;Simply thinking about this, putting warheads on the list should guarantee their position in the internal array, so if there is anywhere that references warheads by internal array position then this is important. However, even if you change an existing weapon&#039;s warhead to a non-parsed one in a game mode file, you &#039;&#039;still&#039;&#039; won&#039;t get an IE because default warhead values will be used. Because of this, I&#039;m starting to wonder if the reports of un-listed warheads causing an IE are erroneous. If someone can replicate this then please provide an except.txt //Marshall&#039;&#039;&lt;br /&gt;
: Verified under a debugger - if a weapon exists and links to a warhead that does not, this will not cause an IE, warhead stats will simply remain defaulted. (In other cases, warheads should also remain defaulted but functional. I have not verified every warhead loading location now, but my applicable ini flags tables should indicate whether or not uninited objects cause issues.) &#039;&#039;//[[User:DCoder|DCoder]] 12:44, 11 May 2008 (UTC)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|?|eip}}&lt;br /&gt;
| If a falling paratrooper (who has nearly reached the ground) is killed by an area-effect mutation weapon. Point based mutations seem to be okay (the falling paratrooper explodes) and the [[Super weapon:Genetic Mutator|Genetic Mutator]] seems incapable of killing falling paratroopers. If you have an area-effect mutation weapon, you should ensure that all paratroopers are immune to it (this also means that you can&#039;t have a buildable paradrop plane and an area-effect mutation weapon in the same mod).&lt;br /&gt;
|-&lt;br /&gt;
! {{Anchor|00000000|eip}}&lt;br /&gt;
| Placing two buildings on a map in the map editor so that they overlap, and then destroying or garrisoning one of them in-game. Note that this error is intermittent so may not immediately be noticeable. Use [[FinalAlert]]&#039;s {{tt|Options}} {{arr|r}} {{tt|Show Building Outline}} feature to see the actual areas taken up by buildings, since there are some buildings whose foundation is different from their visual size, and make sure you don&#039;t have any buildings that overlap.&lt;br /&gt;
Given the unusual EIP value (all zeroes) that has been gathered from testing, it may be a corrupt EIP and not a true indication of the source of the error. Note that this EIP has also been gathered from other &#039;random-EIP&#039; causes.&lt;br /&gt;
:Indeed it is not a true indication, EIP 00000000 can be acquired in several ways. If you can provide an except, I will be able to provide more specific details to look for, like in the case of 0045EC90 . &#039;&#039;//[[User:DCoder|DCoder]]&#039;&#039; &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Broken-reference Causes===&lt;br /&gt;
*Most of the flags that point to an object type do not verify that the object type exists and will try to invoke it anyway. This includes pointers to weapons, projectiles, warheads, particles, particle systems and infantry/unit/aircraft/building types, among other things.&lt;br /&gt;
*All object types must be parsed in order for them to be invoked successfully. For example, a weapon must be parsed by being referenced by a unit in the main rules (weapons used in a game mode that aren&#039;t referenced in the main rules will not have been parsed, nor will shrapnel weapons that haven&#039;t been referenced by a dummy unit).&lt;br /&gt;
*Note that all weapons have to specify a {{f|Warhead|link}} tag and the tag must not be blank otherwise an IE will occur. However if the specified {{f|Warhead|link}} does not exist then that will not cause an IE, as the game will use default warhead settings.&lt;br /&gt;
*Your object type may not be &#039;missing&#039; as such, you may just have mis-spelled its ID (e.g. &amp;quot;MagenticBeam&amp;quot; as opposed to &amp;quot;MagneticBeam&amp;quot;). Always check your typing carefully to make sure you don&#039;t &amp;lt;!-- irony intended --&amp;gt; any words out.&lt;br /&gt;
&lt;br /&gt;
===Tank Bunker / Sell Unit IEs===&lt;br /&gt;
*There are two IEs that can occur after using a &#039;Sell Unit&#039; superweapon on a tank-bunkered unit. Both of these IEs can yield seemingly random EIP values (due to the fact that, when the unit is sold, the building&#039;s &amp;quot;BunkeredUnit&amp;quot; pointer isn&#039;t cleared and so points to garbage memory. Attempts to dereference it will be met with varying levels of failure).&lt;br /&gt;
*An IE may occur the instant you sell the unit.&lt;br /&gt;
*If an IE does not occur the instant you sell the unit, then the Tank Bunker will have been rendered unusable as the walls are still up. If the &#039;broken&#039; Tank Bunker is sold or destroyed then an IE will occur (this IE &#039;&#039;does&#039;&#039; always happen). This IE frequently yields EIP 004593BB, although has been known to yield seemingly random EIP values (for the reason stated above).&lt;br /&gt;
*The only way to prevent these IEs is to make sure a player never has access to both the Sell Unit superweapon and the Tank Bunker at the same time. &amp;lt;small&amp;gt;(To achieve this, the building that provides the superweapon must be uncapturable and immune to mind-control as must the Tank Bunker. Further more, unless both buildings are country specials, you will need to remove MCVs from crates and make Construction Yards uncapturable and immune to mind-control too.)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Software used to find Internal Errors==&lt;br /&gt;
*[http://dc.strategy-x.com/checker INI Checker] (can check your rules, art and sound files for syntactic errors like typos and missing references)&lt;br /&gt;
*[[ExceptChecker]] (primarily for RockPatch-related IEs, it analyzes except.txt, tries to find references to code added by the patch or known routines, and &#039;&#039;might&#039;&#039; then be able give a direction)&lt;br /&gt;
*[[Debugger]] (if you know assembler)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
*[[Reconnection Error]]&lt;br /&gt;
*[http://forums.renegadeprojects.com/showthread.php?pid=2034#pid2034 Confirmation the Infantry Linking IE also applies to modifications done by maps]&lt;br /&gt;
&lt;br /&gt;
[[Category:Bugs_and_Errors]]&lt;/div&gt;</summary>
		<author><name>84.251.65.185</name></author>
	</entry>
</feed>