Author Topic: I have had a problem trying to execute my first script in blockland  (Read 3069 times)

Ah well, I've recently tried running some scripts in my Add-Ons Log folder (C:\Program Files\Blockland\Add-Ons Log) and it wouldn't let me. Explain that.

actually, you can't create new folders in the blockland.exe directory, i believe

Ah well, I've recently tried running some scripts in my Add-Ons Log folder (C:\Program Files\Blockland\Add-Ons Log) and it wouldn't let me. Explain that.
"Add-ons Log" isn't a default folder therefore it will not let you run anything in it.

"Add-ons Log" isn't a default folder therefore it will not let you run anything in it.

Damn... But it's how I mess with scripts. I make folders in that named after the zip file, then I just remove the " Log" part at the top to go right in and paste the files in.

Create a server.cs with this code in it:
Code: [Select]
exec("add-ons/test/sample.cs");
Then type this into the console:
Code: [Select]
exec("add-ons/test/server.cs);

Create a server.cs with this code in it:
Code: [Select]
exec("add-ons/test/sample.cs");
Then type this into the console:
Code: [Select]
exec("add-ons/test/server.cs);
Only post here if you actually know what you're doing, thanks.

1: Make this directory: "C:\Program Files\Add-Ons\Script_Test\".
2: Put a "server.cs" in that directory.
3: Type this into console.
Code: [Select]
exec("Add-Ons/Script_Test/server.cs");
4: ???
5: $$Profit$$

This isnt hard. At all. >_>

1: Make this directory: "C:\Program Files\Add-Ons\Script_Test\".
2: Put a "server.cs" in that directory.
3: Type this into console.
Code: [Select]
exec("Add-Ons/Script_Test/server.cs");
4: ???
5: $$Profit$$

This isnt hard. At all. >_>
Only post here if you actually know what you're doing, thanks.

why the stuff would you have the file outside of the blockland folder!?
put it in blockland\add-ons\script_test\, and you're also assuming he's using windows, and that his BL folder is in program files, which badspot doesn't advertise as a good idea unless you disable UAC

...you're also assuming he's using windows, and that his BL folder is in program files, which badspot doesn't advertise as a good idea unless you disable UAC

It installed itself into C:\Program Files\Blockland He means on the newer Windows operating systems I think and isn't THAT big of a deal. What are you going on about?

It installed itself into C:\Program Files\Blockland He means on the newer Windows operating systems I think and isn't THAT big of a deal. What are you going on about?
i was unaware that every computer had the same file system, of C:\Program Files\

i was unaware that every computer had the same file system, of C:\Program Files\

I'm confused what you're trying to get me at.

Damn...
Code: [Select]
function addDefaultDirectory(%dir) {
   if(isDefaultDirectory(%dir))
      return;
   setModPaths(getModPaths() @ ";" @ %dir);
}
function isDefaultDirectory(%dir) {
    %path = getModPaths();
   for(%i=0;%i<getFieldCount(strReplace(%path,";","\t");%i++)
      if(getField(strReplace(%path,";","\t"),%i) $= %dir)
           return true;
   return false;
}

i was unaware that every computer had the same file system, of C:\Program Files\
It doesn't.
Not all computers use C:\ as root drive, and some use multiple and have the default on a diffirent path.
And the default folder for programs depends on 64-bit and operating system language.
For example, on 64-bit, 32x programs usually install in "Program Files (x86)".
And in Danish installations, the folder is named "Programmer", or in German installations, "Programme". Just examples.

1: Make this directory: "C:\Program Files\Add-Ons\Script_Test\".
2: Put a "server.cs" in that directory.
3: Type this into console.
Code: [Select]
exec("Add-Ons/Script_Test/server.cs");
4: ???
5: $$Profit$$

This isnt hard. At all. >_>

Hi takato remember Alden?

It doesn't.
Not all computers use C:\ as root drive, and some use multiple and have the default on a diffirent path.
And the default folder for programs depends on 64-bit and operating system language.
For example, on 64-bit, 32x programs usually install in "Program Files (x86)".
And in Danish installations, the folder is named "Programmer", or in German installations, "Programme". Just examples.
and that's what i was getting at, if you didn't notice

1: Make this directory: "C:\Program Files\Add-Ons\Script_Test\".
2: Put a "server.cs" in that directory.
3: Type this into console.
Code: [Select]
exec("Add-Ons/Script_Test/server.cs");
4: ???
5: $$Profit$$

This isnt hard. At all. >_>
stuff, I failed.
1: Make this directory: "C:\Program Files\Blockland\Add-Ons\Script_Test\".
2: Put a "server.cs" in that directory.
3: Type this into console.
Code: [Select]
exec("Add-Ons/Script_Test/server.cs");
4: ???
5: $$Profit$$

This isnt hard. At all. >_>