WeiDU APPENDing to tooltip.2da should not crash the game
|Status:||Closed - Fixed||Start date:||04/06/2016|
|Classification:||C - Minor||Due date:|
|Target version:||Public Bug Reports - 126.96.36.199|
|Found In Version:||Public Bug Reports - 188.8.131.52|
- Download the attached mod and install the first component.
- Start the game.
The game crashes.
The game shouldn't crash.
See below. Basically, the extra spaces at EOF cause WeiDU to misuse APPEND, which in turn causes SoD to freak out and crash. The second component fixes the issue and identifies other text files with the same issue.
#1 Updated by Pete Camagna, "CamDawg" over 3 years ago
- File 00806.zip added
Confirmed, but for different reasons. WeiDU can handle files with linebreaks at the end--in fact it adds an ending linebreak when it APPENDs--the problem here are ending spaces.
The last line of the file actually contains spaces, so an APPEND command handed to WeiDU will skip the last line. It's the gap that cause the crash.
I've attached a small mod that lets you see the issue in action by APPENDing to tooltip.2da (component 1). After installing this, the game should crahs as in the original report. The second component fixes the issue and then APPENDs, which works as expected. It will also identify other files with this issue.
#2 Updated by Pete Camagna, "CamDawg" over 3 years ago
- Description updated (diff)
The original bug report from Pecca is below. I've rewritten the repro steps.
1. Open Tooltip.2da file with Near Infinity
2. See that there is an empty line (number 48)
This empty line causes the game crash on launch, when tooltip.2da is patched by WeiDU. Deleting this line fixes the problem.
There shouldn't be an empty line at the bottom of tooltip.2da file