| Blockland Forums > Modification Help |
| Missing file: testing.cs! |
| (1/2) > >> |
| Scars75:
--- Quote from: Console ---==>exec("testing.cs"); Missing file: testing.cs! --- End quote --- Does that for any existing file I try to exec, even when it is packaged like an addon How do I fix |
| Headcrab Zombie:
You need a specificy the full filepath not just the filename exec("Add-ons/Script_Test/testing.cs"); Replace Script_Test with whatever your add-on name is Or if you put the exec call in a file, you can exec another file in the same directory using exec("./testing.cs"); You may use this if, for example, you wish to have server.cs exec Addon_name.cs and have all the code in addon_name.cs (Why the hell do people do that anyways? I've never done it as it seems entirely pointless to me.) |
| Scars75:
--- Quote from: Headcrab Zombie on August 26, 2011, 09:36:29 PM ---You need a specificy the full filepath not just the filename exec("Add-ons/Script_Test/testing.cs"); Replace Script_Test with whatever you add-on name is Or if you put the exec call in a file, you can exec another file in the same directory using exec("./testing.cs"); You may use this if, for example, you wish to have server.cs exec Addon_name.cs and have all the code in addon_name.cs (Why the hell do people do that anyways? I've never done it as it seems entirely pointless to me.) --- End quote --- The file is directly in the blockland folder and exec("./testing.cs"); just tells me missing file. |
| Headcrab Zombie:
You can't exec files in the root folder. |
| Scars75:
--- Quote from: Headcrab Zombie on August 26, 2011, 09:39:37 PM ---Don't do that. --- End quote --- 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. |
| Navigation |
| Message Index |
| Next page |