Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[TUT] Editing a Server Source - Configuation settings

Status
Not open for further replies.
Skilled Illusionist
Joined
Feb 23, 2009
Messages
352
Reaction score
10
110% by me.
THIS TUTORIAL IS MENT FOR PEOPLE EDITING A v9-v18 SOURCE FILE

Basicly this tutorial will tell you how to edit your source to do edit the server settings.

Okay first the boring bit, explanation

So in out Source's Database we have a folder called configuration.

Drecos Source\database\configuration

This is the general settings out server run of;

[server]
lang=US
packetlog=Y
chatlog=Y
savechatlog=Y
foreground=N
windowstate=OPEN
ipscan=1
update=3.2
port=90
[config]
welcome_message=1,Welcome to the Memo|Random test Hotel
bobba_filter=1
console=1
maxguestroomsinlist=30
maxfavouriterooms=30
maxroomsperuser=30
maxrollersinroom=100
maxpetsinroom=100
replacement=OWNED
maxfriends=500
freehcclothes=1
[HC]
present1=;club_sofa
present2=;aqua_chair;aqua_chair;aqua_chair;aqua_chair;aqua_table
present3=;mocchamaster
present4=;edicehc
present5=;hcamme
present6=;doorD
present7=;hcsohva
present8=;hc_lmp
present9=;hc_tbl
present10=;hc_chr
present11=;hc_dsk
hcbadge=;HC1
hcbadge2=;HC2


It allows us to edit the welcome message, port, HC options, console ectt..

Do edit this in a Windows form in Visual Basic we can use the WriteINI comand, let me show you can example

Code:
    WriteINI "server", "port", mainText1.Text, SettingIni

This code will write the port on the settings INI file, using what ever is in the text box mainText1. So another explanation, The "server" is in the ini where it says [server] (shown in blue) shows us where about it in INI file we edit. The "port" then tells us what option to edit, here its Port=90. SettingIni (shown in red) is already shown in form load (SettingIni = Replace(App.Path & "\database\configuration\settings.ini", "\\", "\"))

So we can take this to edit most of the option on the INI files as shown in this example

Macheath - [TUT] Editing a Server Source - Configuation settings - RaGEZONE Forums


on the comand button we add this code
Code:
Private Sub Command1_Click()
    WriteINI "server", "port", mainText1.Text, SettingIni
    WriteINI "server", "connection_limit", mainText2.Text, SettingIni
    WriteINI "config", "bobba_filter", mainCheck1.Value, SettingIni
    WriteINI "config", "console", mainCheck2.Value, SettingIni
    WriteINI "server", "ipscan", mainCheck3.Value, SettingIni
    WriteINI "config", "freehcclothes", mainCheck5.Value, SettingIni
    WriteINI "config", "Welcome_Message", "1," + Text1.Text, SettingIni
End Sub

Notice that for the welcome_message I have added a "1,"+Text1.Text this means that when I edit the Text1.Text the 1, will always be first. This means the welcome message will display

We can also use this to edit the HC options.

Happy editing
 
Status
Not open for further replies.
Back
Top