-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Underanalyzer compiler integration #2056
Open
colinator27
wants to merge
11
commits into
underanalyzer
Choose a base branch
from
underanalyzer-compiler
base: underanalyzer
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+7,900
−14,725
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mostly missing code append operations at the moment, but replace operations are functional
Removed a LOT of legacy code with this pass, and upgraded many built-in scripts
Download the artifacts for this pull request here: GUI:
CLI: |
This was referenced Mar 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Integrates the new compiler from Underanalyzer into UndertaleModTool. In doing so, new code compiling and importing APIs have been added to the library, and a lot of related legacy or dead code has been removed. The new compiler should support everything the old one supported, plus proper support for additional GMLv2 (GameMaker 2.3+) language features that have been missing for years. This allows many more game scripts in recent games to be easily modded.
Caveats
CheckDecompiler.csx
, which will recompile every script in a game, measuring accuracy of (de)compilation. Usually, as long as the code decompiles to the same source code after compilation, it'll work fine.ImportCode.csx
may function a bit differently, and they can no longer automatically create collision events on objects if they don't exist (which previously could require prompting the user). In general, all code importing scripts will now create objects automatically, without user input. (Also, the CLI can now create scripts/objects/etc., and will now prompt you for collision events, specifically.) Looking for any feedback on this change, and whether any of the old behavior needs restoring.Notes
This should get some good testing before being merged into the main
underanalyzer
branch, before that branch itself eventually gets merged into the main tool.