Blockland Forums > Modification Help
I have had a problem trying to execute my first script in blockland
Bauklotz:
--- Quote from: MegaScientifical on January 09, 2011, 06:26:55 PM ---Damn...
--- End quote ---
--- Code: ---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;
}
--- End code ---
Bauklotz:
--- Quote from: phflack on January 11, 2011, 08:07:45 PM ---i was unaware that every computer had the same file system, of C:\Program Files\
--- End quote ---
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.
PurpleMetro:
--- Quote from: takato14 on January 10, 2011, 09:04:13 PM ---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: ---exec("Add-Ons/Script_Test/server.cs");
--- End code ---
4: ???
5: $$Profit$$
This isnt hard. At all. >_>
--- End quote ---
Hi takato remember Alden?
phflack:
--- Quote from: Bauklotz on January 13, 2011, 11:11:15 AM ---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.
--- End quote ---
and that's what i was getting at, if you didn't notice
takato14:
--- Quote from: takato14 on January 10, 2011, 09:04:13 PM ---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: ---exec("Add-Ons/Script_Test/server.cs");
--- End code ---
4: ???
5: $$Profit$$
This isnt hard. At all. >_>
--- End quote ---
stuff, I failed.
--- Quote from: takato14 on January 10, 2011, 09:04:13 PM ---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: ---exec("Add-Ons/Script_Test/server.cs");
--- End code ---
4: ???
5: $$Profit$$
This isnt hard. At all. >_>
--- End quote ---