Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
QSSU (Quick Server Set Up)

 
Post new topic   Reply to topic Printable version
 View previous topic  Starlight 1.0 Released Post :: Post Linux -- *nevermind*  View next topic  
Author Message
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Fri Jul 25, 2008 7:56 pm    Post subject: QSSU (Quick Server Set Up) Reply to topic Reply with quote

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.




QSSU

QSSU.rar - 113.04 KB
File downloaded or viewed 28 time(s)


Last edited by hellzlaker on Sat Jul 26, 2008 10:14 am, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Bak
?ls -s
0 in


Age:23
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sat Jul 26, 2008 1:58 am    Post subject: Reply to topic Reply with quote

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]);   

_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Sat Jul 26, 2008 9:57 am    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
L.C.
Server Help Squatter


Age:31
Gender:Gender:Male
Joined: Jan 03 2003
Posts: 573
Location: Missouri, US
Offline

PostPosted: Sat Jul 26, 2008 1:53 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Sat Jul 26, 2008 4:28 pm    Post subject: Reply to topic Reply with quote

What does VIP do? I just went along www.shanky.com/server and took most hints out of there
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Sun Jul 27, 2008 12:01 pm    Post subject: Reply to topic Reply with quote

Being VIP, among other things, allows you to connect to the server using the old subspace protocol. Subchat users, or MervBots need this.
_________________
(Insert a bunch of dead links here)
Back to top
View users profile Send private message Add User to Ignore List
hellzlaker
Registered Cap Buster
Popping men in the ass since Oct 2005


Gender: NEVER ENOUGH!
Joined: Oct 27 2005
Posts: 34
Offline

PostPosted: Sun Jul 27, 2008 12:20 pm    Post subject: Reply to topic Reply with quote

oh, we'll i never realized since i always gave mopd to bots
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Misc User Apps All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 51 page(s) served in previous 5 minutes.

phpBB Created this page in 0.085437 seconds : 34 queries executed (53.6%): GZIP compression disabled