Server Help

Misc User Apps - QSSU (Quick Server Set Up)

hellzlaker - Fri Jul 25, 2008 7:56 pm
Post subject: QSSU (Quick Server Set Up)
I just finished this and its pretty useful if you just started continuum and want to make your first zone, and all you gotta do is put the program into your subgame server folder, open it, write some values (has hints and everything) and your done. I might make one for ASSS later on.

Source is in the source folder. Oh and I'm going to upload it to my site.
Bak - Sat Jul 26, 2008 1:58 am
Post subject:
when you do

Code: Show/Hide
cin >> value;


and value is a string, it will only read the first word (up to the space). If you want to read a line that the user types with spaces do

Code: Show/Hide
string s;
getline( cin, s );


zones names/descriptions usually contain spaces

----------------------------

also, something fun I like to do is to create just data, and use loops to call repeated functions, although I'm not sure if it results in cleaner code, I think it's pimp... so like

Code: Show/Hide
config("DefaultLevelFile","DefaultLevelFile is the map that player will see when entering \n\tyour zone, below enter the name of the map file...","Misc","DefaultLevelFile");
    config("Port","Set this number to any value ranging between 1000 and 30000\n\t(CANT USE 4991 and 185)","Misc","Port");
    config("SysOp password","SysopPassword will be one you will be using a lot, for this allows you \n\tto use all * and ? commands available, letting you have the \n\thighest control in your zone","Password","SysopPassword");
    config("Energy password","EnergyPassword is the password people can use to turn on or off public \n\tenergy viewing.","Password","EnergyPassword");
    config("Super Moderator password","For main staff in your zone","Password","SuperModeratorPassword");
    config("Moderator password","For moderators in your zone","Password","ModeratorPassword");
    config("VIP password","Not used anymore, set it to anything..","Password","VIPPassword");
    config("Zone name","Set this to what you want your zone to be named...","Billing","ServerName");


becomes

Code: Show/Hide

const int INDEX_NAME = 0;
const int INDEX_HINT = 1;
const int INDEX_SECTION = 2;
const int INDEX_KEY = 3;

const char* configValues[][4] =
{
   {"DefaultLevelFile","DefaultLevelFile is the map that player will see when entering \n\tyour zone, below enter the name of the map file...","Misc","DefaultLevelFile"},
   {"Port","Set this number to any value ranging between 1000 and 30000\n\t(CANT USE 4991 and 185)","Misc","Port"},
   {"SysOp password","SysopPassword will be one you will be using a lot, for this allows you \n\tto use all * and ? commands available, letting you have the \n\thighest control in your zone","Password","SysopPassword"},
   {"Energy password","EnergyPassword is the password people can use to turn on or off public \n\tenergy viewing.","Password","EnergyPassword"},
   {"Super Moderator password","For main staff in your zone","Password","SuperModeratorPassword"},
   {"Moderator password","For moderators in your zone","Password","ModeratorPassword"},
   {"VIP password","Not used anymore, set it to anything..","Password","VIPPassword"},
   {"Zone name","Set this to what you want your zone to be named...","Billing","ServerName"},
};

for (int x = 0; x < sizeof(configValues)/sizeof(configValues[0]);++x)
   config(configValues[INDEX_NAME],configValues[INDEX_HINT],configValues[INDEX_SECTION],configValues[INDEX_KEY]);   

hellzlaker - Sat Jul 26, 2008 9:57 am
Post subject:
Oh forgot about zone description and name, when I was testing it I put 1 word inputs so couldn't see that, thanks.

And for the data I think it makes code more organized, I'm gonna try doing that
L.C. - Sat Jul 26, 2008 1:53 pm
Post subject:
Quote:
{"VIP password","Not used anymore, set it to anything..","Password","VIPPassword"},
That isn't true. VIP is used. It just isn't used by most people.
hellzlaker - Sat Jul 26, 2008 4:28 pm
Post subject:
What does VIP do? I just went along www.shanky.com/server and took most hints out of there
Samapico - Sun Jul 27, 2008 12:01 pm
Post subject:
Being VIP, among other things, allows you to connect to the server using the old subspace protocol. Subchat users, or MervBots need this.
hellzlaker - Sun Jul 27, 2008 12:20 pm
Post subject:
oh, we'll i never realized since i always gave mopd to bots
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group