Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: piere on January 25, 2014, 09:22:13 AM
-
Hello is it possible to attach scripts to actors from external sources? Right now when I do actor.AttachScript("C:\test.script"); it works fine in debug mode, but when the game is compiled, it does not work. Any idea why, or how to make it work after the game is compiled? Thanks
-
Is that not something to do with the script being referenced by an absolute address. Rg C:\something\ . Try putting it in the savegames location
-
You would need to bundle the script compiler (dcscomp.dll) with the compiled game. It will only work on Windows.
-
Oh I meant the DLL needs to be in the game directory.
-
By default *.inc files are excluded from the compiled project, because normally they're not needed. See your project settings -> filters.
-
Thanks Mnemonic it works ! Now are there any disadvantages or negative effects for including the .inc files?
-
No, not really.