Reading Out of Bounds
Describe the bug
Hi everyone, I'm not sure if it's a bug, but because I'm unfamiliar with the platform, I did a quick search to see if I wasn't using the wrong version of Undertaletools. I have a Steam game that I'd like to edit, but when I launch data.win through Undertale, it gives an error right away. After seeing that there are several versions, one for each platform, I searched for this one (v1.08 - OSX, Steam), which would be the latest updated version for Steam, or even the version that launches with Windows (v1.08 - Windows, Steam), and I couldn't find any of them here on the Git portal for download.
I also thought it could be some bytecode encryption that hadn't yet been implemented in the "tools" to run it, and I also believe it's just my lack of knowledge of the tool, and I don't know how to use it.
That's why I'm reporting it as a bug in Git. I hope someone can help me or give me some guidance with this issue.
Another note: You've probably noticed some errors or inconsistencies in the English. Since I'm not fluent in English, I used Google Translate. Please excuse any errors.
Reproducing steps
1 - Standard, basic for this type of edit. I selected the version available for download here via Git, then separated the data.win file from the original folder into a dedicated folder.
2 - I ran UndertaleModTool, went to "File", then "Open" and selected the "data.win" file.
3 - When I clicked open, it wouldn't even load; I already got that error. I don't know if it would be standard for this type of file to have 109,000 lines of code, but when I played the file to load in "Claude" (IA), it showed this number of lines. Another point would be about the file size in MBs, which exceeds 20 Mbs.
Setup Details
1 - Tested on two versions, UndertaleModTool v0.8.3 - Windows-SingleFile and UndertaleModTool v0.8.3 - Windows. I also tried with GUI-windows-latest-Debug-isBundled-true-isSingleFile-false, but without success with the same error message as the images above. (Although they look the same, the software is different).
2 - Windows
3 - I didn't quite understand the third question, but it wasn't a game for GM, but rather one created from it (from GameMaker), at least the files seemed to indicate this. Here's the Steam download link:
Data.win "Reading out of bounds" – Incompatible chunk format
Premonition: After opening the issue with the problem report, I decided to investigate the issue myself and came across the following situation, described below.
Description: When trying to open data_fixed.win (fixed only the FORM header) in PowerShell, I receive the error "Reading out of bounds." Fixing the FORM header wasn't enough, as the internal chunk sizes remain incorrect.
Hexdump of the first 32 bytes of data_fixed.win: 00000000 46 4F 52 4D 0A 5F E5 01 47 45 4E 38 00 00 03 D2 FORM._...GEN8.... 00000010 18 03 00 00 EF BF BD 00 00 00 00 00 00 00 00 00 ................
Actual expected offsets and sizes (calculated by the Python decompiler): GEN8 @ 0x0000000A, size: 978 bytes STRG @ 0x007A787A, size: 1,561,402 bytes CODE @ 0x001ED128, size: 5,896,772 bytes
Steps to reproduce: Rename your data.win to data_fixed.win after running the fix script. Open UndertaleModTool (v0.8.3.0 or bleeding edge). Try File > Open data_fixed.win. You get "Reading out of bounds."
Workarounds tested: I fixed the FORM header via Python (full size). I tried opening it via Open Game Executable with the game's .exe in the same folder. I enabled "Bleeding edge updates" and restarted UTMT. I used CLI (UndertaleModCli extract -i data_fixed.win -o out).
None of these options worked. The Python decompiler correctly extracted all chunks (strings, scripts, audio, textures), but UTMT doesn't recognize the internal formats.
Thank you!
Here's the Steam download link:
Please actually attach it
Aqui está o link para download do Steam:
Por favor, anexe-o
Sorry, https://store.steampowered.com/app/2327640/Deadlock_Station/ This is link