DLL can't execute editor functions?

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

DLL can't execute editor functions?

Post 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?
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: DLL can't execute editor functions?

Post by Nielk1 »

Is it that the scriptor can't, or that the functions are useless in the non editor EXE?
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: DLL can't execute editor functions?

Post by Ded10c »

I think that will most likely be because you're in the non-editor build.
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: DLL can't execute editor functions?

Post 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.
User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

Re: DLL can't execute editor functions?

Post by TheJamsh »

Maybe its just lack of power from the bz2 scriptor... but im pretty sure those commands are unavailable in normal builds now.
Post Reply