Blockland Forums > Modification Help
Missing file: testing.cs!
Mega-Bear:
--- Quote from: Scars75 on August 26, 2011, 09:42:06 PM ---It also tells me missing file when I exec a script that's packaged correctly. So exec("Add-Ons/Script_Aaaa/server.cs"); does not work.
--- End quote ---
Then you most likely didn't reference it correctly. Double check your spelling.
Scars75:
--- Quote from: Mega-Bear on August 26, 2011, 09:47:03 PM ---Then you most likely didn't reference it correctly. Double check your spelling.
--- End quote ---
I checked my spelling many times and I'm sure it's correct.
Headcrab Zombie:
Did you create the file after opening Blockland?
In that case, you need to either restart Blockland, or enter in the console either "setmodpaths(getmodpaths());" or (i think) discoverfile("add-ons/script_aaaa/server.cs");
Other than that the only thing I can think of is that you misspelled something or that you forgot to actually make the .cs file.
Wheatley:
--- Quote from: Headcrab Zombie on August 26, 2011, 10:10:13 PM ---Other than that the only thing I can think of is that you misspelled something or that you forgot to actually make the .cs file.
--- End quote ---
Yeah, make sure you actually made it into a .cs file. You can change a .txt file into a .cs by:
--- Code: ---File>Save as...
Name the file, change the "Save as type" to "All files"
Add ".cs" to the end of the file. Example: from "Testing" to "Testing.cs"
--- End code ---
And then restart blockland so that it discovers the file.
Headcrab Zombie:
--- Quote from: Wheatley on August 29, 2011, 10:10:05 PM ---File>Save as...
Name the file, change the "Save as type" to "All files"
Add ".cs" to the end of the file. Example: from "Testing" to "Testing.cs"
--- End quote ---
Or do what I do and disable 'Hide extensions for known file types'
Then I can just make a new text file and change the file extension.