| Off Topic > Games |
| The@Team - A multiplayer real time dungeon crawler by Rotondo |
| << < (34/53) > >> |
| Doomonkey:
I did some more work on the mod I stole from Blockland. Now when you toggle it on and off, it will adjust your view. |
| Electrk:
Lugnut and Port helped make a basic add-on system. Make a folder in base called add-ons then put this at the end of main.cs: --- Code: ---//load add-ons echo("Loading Add-Ons..."); $AddOnPath = "base/add-ons/"; for($AddOnFile = findFirstFile($AddOnPath @ "*.cs"); $AddOnFile !$= ""; $AddOnFile = findNextFile($AddOnPath @ "*.cs")) { echo("Loading Add-On:" SPC $AddOnFile); exec($AddOnFile); } --- End code --- For one that only looks for main.cs (but you need to put a separate folder for each add-on): --- Code: ---//load add-ons echo("Loading Add-Ons..."); $AddOnPath = "base/add-ons/"; for($AddOnFile = findFirstFile($AddOnPath @ "*/main.cs"); $AddOnFile !$= ""; $AddOnFile = findNextFile($AddOnPath @ "*/main.cs")) { echo("Loading Add-On:" SPC $AddOnFile); exec($AddOnFile); } --- End code --- Also, I'm on the server if anyone wants to play. Also, on one of the songs the bassline does not match the main melody and it sounds really bad. |
| Lugnut:
yes, it has to be in base. the above code will execute all .cs files in the base/add-ons folder. client.cs, noob.cs, burp.cs, etc this simple modification will make the system only execute client.cs files, disregarding others. --- Code: ---//load add-ons echo("Loading Add-Ons..."); $AddOnPath = "base/add-ons/"; for($AddOnFile = findFirstFile($AddOnPath @ "client.cs"); $AddOnFile !$= ""; $AddOnFile = findNextFile($AddOnPath @ "client.cs")) { echo("Loading Add-On:" SPC $AddOnFile); exec($AddOnFile); } --- End code --- Why is this useful/neccesary? --- Quote from: Lugnut on June 30, 2012, 08:36:06 PM ---derp.zip |->client.cs |->gui.cs contents of client.cs --- if($guiexecuted == 0) exec("./gui.cs"); //more code --- --- End quote --- |
| Electrk:
--- Quote from: Lugnut on June 30, 2012, 08:29:01 PM ---yes, it has to be in base. the above code will execute all .cs files in the base/add-ons folder. client.cs, noob.cs, burp.cs, etc this simple modification will make the system only execute client.cs files, disregarding others. --- Code: ---//load add-ons echo("Loading Add-Ons..."); $AddOnPath = "base/add-ons/"; for($AddOnFile = findFirstFile($AddOnPath @ "client.cs"); $AddOnFile !$= ""; $AddOnFile = findNextFile($AddOnPath @ "client.cs")) { echo("Loading Add-On:" SPC $AddOnFile); exec($AddOnFile); } --- End code --- Why is this useful/neccesary? --- End quote --- This doesn't work, I tried it. |
| Club559:
Okay guys, Fixed main.cs version: --- Code: ---//load add-ons echo("Loading Add-Ons..."); $AddOnPath = "base/add-ons/"; for($AddOnFile = findFirstFile($AddOnPath @ "*/main.cs"); $AddOnFile !$= ""; $AddOnFile = findNextFile($AddOnPath @ "*/main.cs")) { echo("Loading Add-On:" SPC $AddOnFile); exec($AddOnFile); } --- End code --- Fixed client.cs version: --- Code: ---//load add-ons echo("Loading Add-Ons..."); $AddOnPath = "base/add-ons/"; for($AddOnFile = findFirstFile($AddOnPath @ "*/client.cs"); $AddOnFile !$= ""; $AddOnFile = findNextFile($AddOnPath @ "*/client.cs")) { echo("Loading Add-On:" SPC $AddOnFile); exec($AddOnFile); } --- End code --- These require your main.cs/client.cs to be in folders. |
| Navigation |
| Message Index |
| Next page |
| Previous page |