scp-fs2open / scp-fs2open/fs2open.github.com
Crash in FRED resulted in corrupt mission file
- Dominant language
- C++
- Stars
- 487
- Forks
- 184
- PR merge metrics
- PR metrics pending
Description
I was saving a mission in FRED, (FSO 24.0.2) and when I clicked save, I got the following error message:
```
Error: C:\Games\FreespaceOpen\FS2\BtA-3.0.0\bta_core\data\missions\bta-af_m1_02.fs2(line 71):
Error: Required token = [#Wings] or [$Name:], found [$Team Color Setting: None 0.0000].
File: parselo.cpp
Line: 324
ntdll.dll! ZwWaitForSingleObject + 20 bytes
KERNELBASE.dll! WaitForSingleObjectEx + 142 bytes
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
USER32.dll! CallWindowProcW + 1548 bytes
USER32.dll! DispatchMessageW + 1188 bytes
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
fred2_open_24_0_2_x64_AVX.exe!
KERNEL32.DLL! BaseThreadInitThunk + 20 bytes
ntdll.dll! RtlUserThreadStart + 33 bytes
```
In addition, the mission file became heavily corrupted, more specifically: Most of the fixed strings are missing, starting with `$Skybox Model:` and `$AI Profile` And the text contains incorrect syntax, dislocated lines, dislocated strings, and huge amounts of missing data.
Example:
```
Vengeance 1 ;! Object #0
$Class: GTF Ulysses Friendly
$Team Color Setting: None 0.000000, 0.000000, 0.000000
1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 1.000000 XSTR("Nothing", -1) 33 100 Pilot Hyperspace ( false ) Hyperspace ( false ) 10 ( "cargo-known" "player-start" )
+Flags2: ( )
+Respawn priority: 0
+Orders Accepted List: ( "attack ship" "guard ship" "ignore ship" "form on wing" "cover me" "attack any" )
+Use Table Score: 12 Khabash ;! Object #1
$Class: PVSC Imhotep Friendly -1463.004150, 0.000000, 1032.130493
1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 1.000000 XSTR("Nothing", -1) 33 100
+Initial Shields: 100 Pilot
+Subsystem: turret01
+Subsystem: turret02
+Subsystem: turret03
+Subsystem: turret04
+Subsystem: turret05 Hyperspace ( true ) Hyperspace ( false ) 10 ( "cargo-known" "no-shields" )
+Flags2: ( )
+Respawn priority: 0
+Orders Accepted List: ( )
+Use Table Score: 50 Sigma 2 ;! Object #2
$Class: PVFr Bast Friendly -1487.023193, 0.000000, 732.876526
1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 1.000000 XSTR("Nothing", -1) 33 100
+Initial Shields: 100 Pilot Hyperspace ( true ) Hyperspace ( false ) 10 ( "cargo-known" "no-shields" )
+Flags2: ( )
+Respawn priority: 0
+Orders Accepted List: ( )
+Use Table Score: 20 Sigma 1 ;! Object #3
$Class: PVFr Bast Friendly -1406.280884, 0.000000, 734.748230
```
No major or unusual thing was being done by me in FRED when this occurred, I have no idea how this happened.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.