wurstscript/wurst4vscode

how to inject compiletime objects using vscode without WurstWE?

Closed this issue · 5 comments

thx

add

-runcompiletimefunctions
-injectobjects

to your wurst_run.args file next to your map.

@Frotty is this feature documented?

it will be in the new manual

peq commented

I dont know why but when I run a map with VSCode, it injects nothing and ignores compiletime funcs.
wurst_run.args contains

-runcompiletimefunctions
-injectobjects

and is in the same folder as a map.
screenshot_1
When I use Sharpcraft World editor and save map with:
screenshot_2
it adds import and does compiletime funcs. And I dont undesrtand why I can do it with Sharpcraft WE but cant do it with VSCode
plz help me