View Issue Details

IDProjectCategoryView StatusLast Update
0006686The Dark ModScript/Defpublic28.02.2026 21:34
ReporterFrost_Salamander Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
Product VersionTDM 2.13 
Summary0006686: Script errors in map scripts cause game to hang/crash
DescriptionAny sort of error in a map script can cause the game to hang.

In my example, characters in a script function that appear after a closing semi-colon cause the game to hang, and then crash if attempt input. For example, this in <mapname>.script:

void main()
{
    sys.waitFrame();3
}

The reason this is kind of severe is there is no indication whatsoever what the problem is and it's impossible to troubleshoot. All you can do as a mapper is revert changes to your map until it stops happening. But the thing is, the problem isn't in the map. I almost lost an entire night's work because I had to revert to a previous version of the project that I knew was in a working state. Luckily I had saved it in source control about an hour earlier. I only noticed the cause after I started adding bits back, and noticed the crash happened after I restored the script file.
Steps To Reproduce1. Extract the attached FM project to your FMs directory

2. DMAP and start the map. It should freeze and then crash if you move the mouse around.
Additional InformationAlso reported here: https://forums.thedarkmod.com/index.php?/topic/23063-beta-testing-214/page/4/#findComment-506659
TagsNo tags attached.
Attached Files
scriptcrash.zip (9,244 bytes)

Relationships

related to 0006608 resolvedstgatilov Support last game frame as in-game main menu background 

Activities

stgatilov

stgatilov

28.02.2026 21:34

administrator   ~0017215

Hey!
I believe I have just fixed it in svn rev 11196, it was caused by changes of 0006608, I think.

Issue History

Date Modified Username Field Change
14.02.2026 22:51 Frost_Salamander New Issue
14.02.2026 22:51 Frost_Salamander File Added: scriptcrash.zip
23.02.2026 18:54 Frost_Salamander Summary dangling characters in map scripts cause game to crash => dangling characters in map scripts cause game to hang/crash
23.02.2026 18:54 Frost_Salamander Description Updated
28.02.2026 18:08 Frost_Salamander Summary dangling characters in map scripts cause game to hang/crash => Script errors in map scripts cause game to hang/crash
28.02.2026 18:08 Frost_Salamander Description Updated
28.02.2026 18:08 Frost_Salamander Additional Information Updated
28.02.2026 21:34 stgatilov Relationship added related to 0006608
28.02.2026 21:34 stgatilov Note Added: 0017215