Blockland Forums > Modification Help

I have had a problem trying to execute my first script in blockland

Pages: << < (2/7) > >>

Fluff-is-back:

You would then need to execute it using the correct path:

exec("add-ons/test/sample.cs");

phflack:

the console works from the blockland folder, so you must give it a filepath starting from in that folder like fluff, instead of starting from in addons which you did

PurpleMetro:


--- Quote from: Fluff-is-back on January 09, 2011, 01:27:13 PM ---You would then need to execute it using the correct path:

exec("add-ons/test/sample.cs");

--- End quote ---
I did what you said in the Blockland Console but then it said "invalid script file name add-ons/test/sample.cs - add ons script must be in folders that follow the <category>_<name> convention."

Space Guy:

Try naming it Add-Ons/Script_Testing/sample.cs - that's what the message means

PurpleMetro:

Now I did what SpaceGuy said but then it said Missing File add-ons/Script_Testing/sample.cs!
Is that supposed to happen because my script is blank?

Pages: << < (2/7) > >>

Go to full version