Page 1 of 1

DLL can't execute editor functions?

Posted: Tue Mar 29, 2011 11:56 am
by TheJamsh
Created a simple script in the BZ2 scriptor to try and test raising and lowering water levels on-the-fly. It doesnt work because the scriptor can't execute certain console commands that are needed, such as:

"editor.water.layer #"
"editor.water.height #"

How can I get it to work?

Re: DLL can't execute editor functions?

Posted: Tue Mar 29, 2011 1:03 pm
by Nielk1
Is it that the scriptor can't, or that the functions are useless in the non editor EXE?

Re: DLL can't execute editor functions?

Posted: Tue Mar 29, 2011 1:15 pm
by Ded10c
I think that will most likely be because you're in the non-editor build.

Re: DLL can't execute editor functions?

Posted: Tue Mar 29, 2011 1:21 pm
by Nielk1
Perhaps we should request some way for the DLL to execute commands locked out from the console in a normal build? First this must be checked with a C++ compiled DLL to ensure that a newer base code DLL does not already compensate for this.

Re: DLL can't execute editor functions?

Posted: Tue Mar 29, 2011 2:43 pm
by TheJamsh
Maybe its just lack of power from the bz2 scriptor... but im pretty sure those commands are unavailable in normal builds now.