Is it possible to set many sqgamemodes in your server.cfg?

Started by D4rkR420R, Aug 30, 2016, 10:56 PM

Previous topic - Next topic

D4rkR420R

Hi, my name is Death_Spirit and I'm in helping my leader on the server. My main question is if is possible to set many sqgamemodes in my server.cfg? If that's not the problem, how do people set the scripts in server.cfg? Please do answer and solve my problem. Your my only hope...

Sincerly,
Death_Spirit
TDZ's Manager

Cool

why you want to load many sqgamemods for 1 server and its not possible dont be so noobish

D4rkR420R


.

sqgamemode some_script.nut
I'm a bit confused by your question though :-\
.

D4rkR420R


.

.

D4rkR420R


.

Quote from: Death_Spirit on Aug 31, 2016, 01:56 AMAdd scripts to the server?

I just told you above. You use that in server.cfg

But are you sure that you're up for this kind of thing? I mean...
.

PunkNoodle

To be honest, I don't know either since I never messed with scripts too much and I have just one .nut file (the default one by Seby). I guess you can try adding "sqgamemode script1.nut script2.nut" and see if it works, else try adding several "sqgamemode" lines for every script and see which one of those two methods work. Anyway like I said I never came to have more than one script yet so I'm not sure, try what I said and see if it works, or just wait until someone else who knows will reply.

.

You call the dofile() function from the main script.

dofile("script1.nut", true);
dofile("script2.nut", true);
dofile("script3.nut", true);
.

Kewun

The answer is, you cant set more than 1sqgamemode.

but you can use dofile as slc said

D4rkR420R


Kewun

function onScriptLoad() {
       dofile("some_script.nut",true)
}

D4rkR420R

What about other files such as database, folders, etc.?

.

Quote from: Death_Spirit on Aug 31, 2016, 05:01 AMWhere do I insert that function in my main.nut?

Anywhere you want! At the top of the file, at the button, inside and outside functions. Doesn't matter. It'll matter in a way that doesn't matter to you. That's what I mean.

Quote from: Death_Spirit on Aug 31, 2016, 05:51 AMWhat about other files such as database, folders, etc.?

You didn't really just asked that question?
.