| Blockland Forums > Suggestions & Requests |
| including add-ons in gamemodes |
| << < (2/2) |
| Zeblote:
--- Quote from: Mysteroo on March 27, 2013, 09:45:59 PM ---Wish it were that easy, but it doesn't quite work that way :/ --- End quote --- Yes it does. Put the files of the add-ons in the folder of your gamemode In the server.cs of your gamemode execute all those add-ons |
| Mysteroo:
--- Quote from: hodototman on March 28, 2013, 04:16:07 PM ---some kind of text in the gamemode.txt that activates the addon. --- End quote --- Gamemode.txt enables add-ons in your add-ons folder, not in your gamemode folder. Or at least doing it the way in the reference does. --- Quote from: Zeblote on March 28, 2013, 04:30:13 PM ---Yes it does. Put the files of the add-ons in the folder of your gamemode In the server.cs of your gamemode execute all those add-ons --- End quote --- well that's not just putting them in the folder... And again that requires at least a little scripting knowledge, which I have zippity-doo-da of If that is how it works though, what would I put in the server.cs? Do I just put the zip files of add-ons in the gamemode folder and then execute it with some line of code? |
| Zeblote:
You would extract the contents of the zips in subfolders, I'm not sure whether zips work, try it out And because we have a ton of add-ons in there and are lazy we would put something like this in the server.cs --- Code: ---%path = "add-ons/gamemode_stuff/*/server.cs"; for(%f = findfirstfile(%path); isfile(%f); %f = findnextfile(%path)) exec(%f); --- End code --- |
| Mysteroo:
--- Quote from: Zeblote on March 28, 2013, 04:52:56 PM ---You would extract the contents of the zips in subfolders, I'm not sure whether zips work, try it out And because we have a ton of add-ons in there and are lazy we would put something like this in the server.cs --- Code: ---%path = "add-ons/gamemode_stuff/*/server.cs"; for(%f = findfirstfile(%path); isfile(%f); %f = findnextfile(%path)) exec(%f); --- End code --- --- End quote --- awesome, I'll try that. Thanks! |
| Mysteroo:
Didn't work :/ I replaced the asterisk with the add-on file name, and I tried both a zip file and a normal file. Then started the gamemode and checked to see if the item I enabled was there and it wasn't Any other ideas? |
| Navigation |
| Message Index |
| Previous page |