Skip to content
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

Do not overwrite special node files that are unchanged #690

Open
CelticMinstrel opened this issue Mar 8, 2025 · 0 comments
Open

Do not overwrite special node files that are unchanged #690

CelticMinstrel opened this issue Mar 8, 2025 · 0 comments
Labels
enhancement minor A low priority task scenedit Affects the scenario editor

Comments

@CelticMinstrel
Copy link
Member

This is to enable the creation of a scripting language, such as the one @fosnola designed, without altering the core game engine.

The concept would be that an external program parses the custom scripting language and translates it into special node files which are then loaded by the game. The external program might produce output that's formatted differently from the output produced by the game – for example, it might use named constants and rely on them for a decompilation process. (That might seem unlikely in the case of an AvernumScript-style scripting language, but we should support other things too. Maybe someone wants to make a visual block interface akin to Scratch.)

Thus. the scenario editor shouldn't overwrite special node files unless they've actually changed. For packaged scenarios, it should store the raw taxt and write it back unchanged if the actual nodes weren't edited. For unpacked scenarios it would suffice to simply skip the step of writing the nodes if they weren't edited.

@CelticMinstrel CelticMinstrel added enhancement minor A low priority task scenedit Affects the scenario editor labels Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement minor A low priority task scenedit Affects the scenario editor
Projects
None yet
Development

No branches or pull requests

1 participant