open-papyrus / papyrus-compiler

Open-source compiler for the Papyrus scripting language of Bethesda games.
https://open-papyrus.github.io/docs/papyrus-compiler/Introduction.html
MIT License
25 stars 3 forks source link

No-analysis compilation mode #2

Open Osmosis-Wrench opened 2 years ago

Osmosis-Wrench commented 2 years ago

For a script to compile with you calling function inside another script, you need to have the source file for that other script. However, you don't actually need the original, or even a valid script for this to work, you just need the correct function names etc.

You can manually "brute force" stubbed functions to make compilation work without having access to the original source files, but this takes a bit of time. It would be nice to have an option to automatically do it.

Maybe even just a "I know what i'm doing" option where it just blindly trusts the user has input the correct function names etc, and compiles without checking.