UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.08k stars 207 forks source link

Can't compile code gml_GlobalScript_scr_gamestart in Deltarune 1.07 with UTMT 0.4.0.1 #625

Closed SheepYhangCN closed 2 years ago

SheepYhangCN commented 2 years ago

when i tried to enable debug(in code gml_GlobalScript_scr_gamestart line243), it can't compile UTMT version:0.4.0.1 Deltarune version:1.07(Steam version and Chinese translate version are same)

screenshot: image

Jacky720 commented 2 years ago

For all intents and purposes, UMT still does not have a functioning 2.3 compiler. In the meantime, you'll have to edit assembly or use a dummy GameMaker project.

Also, there should be a Ch2 Debug script under Community scripts. That'll save the hassle of either for this specific case.

Romualdo666 commented 2 years ago

how can I do any of these?: "edit assembly or use a dummy GameMaker project."

Jacky720 commented 2 years ago

To edit assembly, select the "Disassembly" tab in the tool. It's lower-level than decompiled code and less prone to breaking.

This document explains what different commands do: https://docs.google.com/document/d/132mmSdLm2iQJIFBPQXcQsc0d7lBJZinkA_gZIVVLaqo/edit?usp=drivesdk

For example, the lines that disable global.debug are:

pushi.e 0
pop.v.i global.debug

And one would want to change the 0 to a 1.

Romualdo666 commented 2 years ago

oh thanks, but thats only for active the debug mode or I can modify Global Scripts too? becouse I'm making a mod and I really need to modify Global scripts and compile them

Jacky720 commented 2 years ago

Yes, this method also works on scripts. Just don't mess with the first or last couple of lines.

Romualdo666 commented 2 years ago

Thanks

Romualdo666 commented 2 years ago

sorry one more question: then can I add a new key item at gml_GlobalScript_scr_keyiteminfo?

Jacky720 commented 2 years ago

In the wise words of the Underminers FAQ channel:

Q: Can I do *insert something here* to Undertale or Deltarune? A: Yes, you can do anything, so long as you are determined enough.

Romualdo666 commented 2 years ago

well thanks, again.

Jacky720 commented 2 years ago

With functional script compilation in addition to the workarounds above, this issue should be closed.