Jump to content
Sign in to follow this  
Chrono Vortex

Fixing Internal Errors in Custom Maps

Recommended Posts

5a6821015252f_YRInternalError.png.858c9cf6184d746745b1a7da73c72105.png

What This Is

Not too long ago, I found this article on ModEnc detailing the exact causes of a number of internal errors (IEs) in Yuri's Revenge. I thought to myself "great, now I can look up all the error logs for my maps and fix them!" No cigar, turns out the error codes for CnCNet's main executable, "gamemd-spawn.exe," are different from those of the original game.

If you've ever tried to make maps with a significant number of triggers or INI edits, odds are you've come across an IE at least once. So, the following is a list of error codes and their respective causes in CnCNet, based on the one from the ModEnc article, so you can identify and fix IEs whenever they come up in your maps.

How to Use This

Whenever an IE pops up while you're playing a skirmish in CnCNet, a file called "EXCEPT_CNCNET.TXT" will be created in your main CnCNet directory. In this file, it should say somewhere "Exception occurred at [some hexadecimal value]." This hexadecimal value (hopefully) corresponds to one of the error codes listed below. The cause under the error code should tell you exactly what went wrong in your map so you can fix it.

Finding the cause of an IE which occured in a multiplayer game is only a bit trickier. The directory for these error logs is "[CnCNet Directory]/Client/ErrorLogs." This folder should contain all your IE and reconnection error logs arranged by date. The IE error logs are named "EXCEPT_CNCNET_[DATE].TXT." If you want to make sure that the error occured on the map you want to fix, open the zip file associated with the log, open the file "spawnmap.ini" it contains in WordPad or Notepad++ and search for [Basic]. under [Basic], "Name=" should tell you which map this error occured on.

Error Codes

Yeah, it's not much right now. I'll get to testing more as soon as I have the time.

Drawbacks

I suspect that whenever the gamemd-spawn executable is updated, these error codes are liable to change, which is part of why I've provided the maps designed to test these errors. I probably won't be able to keep this list up to date reliably, so if you're inclined, feel free to test any of these errors using the provided maps and let me know what the new error code is whenever there's an update.

Also, if you find an error code and cause I haven't covered, let me know so I can stick it on the list.

Edited by Chrono Vortex
  • Like 2

Share this post


Link to post
Share on other sites
On 24.01.2018 at 5:01 PM, Chrono Vortex said:

Кроме того, если вы обнаружите код ошибки и я не включил его, сообщите мне, чтобы я мог вставить его в список.

Try to use <16 reveal all map> singleplayer action of trigger in multiplayer game.

cncnetonelove.map

Share this post


Link to post
Share on other sites
On 4/16/2018 at 9:51 AM, VladisS said:

Try to use <16 reveal all map> singleplayer action of trigger in multiplayer game.

cncnetonelove.map

On 4/16/2018 at 7:44 PM, FReQuEnZy said:

That will cause an internal error on cncnet due to exploit fixes.

IIRC that causes a reconnection error, not an internal error, and I'm not privy to any method of diagnosing those.

Also, crap, I totally forgot about this thread. Would this be useful to anybody, is it worth working on?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×