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!

[Tutorial]Configuring Nation War and AutoStart CENTOS 7

Newbie Spellweaver
Joined
Dec 22, 2018
Messages
22
Reaction score
10
1.Go to /etc/cabal and copy file (server_list_mw)
2.Go to GlobalMgrSvr.ini and add this lines:
# Channel 5 1-200 (WorldSvr_01_10) NATION WAR
ChannelType10=83890256
MaxUserNum10=100
ServerOpen10=1
EntryLimitLevel10=1:199
EntryLimitRank10=1:9
3.Go to /etc/Data and copy files and file
4.Go to /home/cabal and copy file
5.Set 0700 permission for all files you have created or copied. Eg. chmod 0700 /home/cabal/f403_war_start.sh
6.Go to /etc/crontab and add this lines:
#Nation War Tierra Gloriosa Channel Start
0 13,17,21,1,5,9 * * * root /home/cabal/f403_war_start.sh
PS: this will start ur NW every 4 hour as it says: 13:00,17:00,21:00,1:00,5:00,9:00

7.Run this command on putty: ln -sf /usr/bin/WorldSvr /usr/bin/WorldSvr_01_10

Tip: If the channel did not started automatically, look for log on /var/log/cabal and try to edit /home/cabal/f403_war_start.sh figure out yourself about the command to run the server in this file. Edit that line with your cabal start command but leave $daemons for example: service $daemons start or systemctl start $daemons, etc..
Restart Centos and should work ;)
 
Last edited:
Junior Spellweaver
Joined
Apr 24, 2014
Messages
117
Reaction score
7
opening my normal channel, no war channel...
ps: war ch num 8 anyone change this code 8 ?

# War 170-200 (WorldSvr_01_08)EntryLimitRank08=1:9EntryLimitLevel08=170:30ChannelType08=83890256#ServerOpen08=1 #MaxUserNum08=300
 
Junior Spellweaver
Joined
Apr 24, 2014
Messages
117
Reaction score
7
1.Go to /etc/cabal and copy file (server_list_mw)
2.Go to GlobalMgrSvr.ini and add this lines:
# Channel 5 1-200 (WorldSvr_01_10) NATION WAR
ChannelType10=83890256
MaxUserNum10=100
ServerOpen10=1
EntryLimitLevel10=1:199
EntryLimitRank10=1:9
3.Go to /etc/Data and copy files and file
4.Go to /home/cabal and copy file
5.Set 0700 permission for all files you have created or copied. Eg. chmod 0700 /home/cabal/f403_war_start.sh
6.Go to /etc/crontab and add this lines:
#Nation War Tierra Gloriosa Channel Start
0 13,17,21,1,5,9 * * * root /home/cabal/f403_war_start.sh
PS: this will start ur NW every 4 hour as it says: 13:00,17:00,21:00,1:00,5:00,9:00

7.Run this command on putty: ln -sf /usr/bin/WorldSvr /usr/bin/WorldSvr_01_10

Tip: If the channel did not started automatically, look for log on /var/log/cabal and try to edit /home/cabal/f403_war_start.sh figure out yourself about the command to run the server in this file. Edit that line with your cabal start command but leave $daemons for example: service $daemons start or systemctl start $daemons, etc..
Restart Centos and should work ;)


i try 1845485421799 time no works auto just works manuel start :D :D :D
 
Junior Spellweaver
Joined
Apr 24, 2014
Messages
117
Reaction score
7
its easy to start the nation auto in centos 7

Install CentOS 7.0 repack then after that get the toast repack without the rpm installion and it should work

i use ; toast repack centos 7 and mssql auto install...so i need to azuresensei Repack ?
 
Banned
Banned
Joined
Apr 13, 2014
Messages
734
Reaction score
76
for the first time, I have a problem, why I don't have /home/cabal in my CS7? I am using toast and guide of AzureSensei :/
 
Joined
Jul 18, 2009
Messages
658
Reaction score
75
here ill give how it to make it work easily

first follow the guide for centos 7 installation made by AzureSensie

then after you installed the repack for centos 7
download toast repack and just copy to your centos the file without the rpm install the toast repack without installing the rpm so the lib will not be replace then config your cabal thats all
 
Banned
Banned
Joined
Apr 13, 2014
Messages
734
Reaction score
76
here ill give how it to make it work easily

first follow the guide for centos 7 installation made by AzureSensie

then after you installed the repack for centos 7
download toast repack and just copy to your centos the file without the rpm install the toast repack without installing the rpm so the lib will not be replace then config your cabal thats all

I got this problem.

..-----Starting up CABAL NationWar-----..
Reloading systemd: [ OK ]
Starting WorldSvr_01_12 (via systemctl): Failed to start WorldSvr_01_12.service: Unit not found. [FAILED]
Reloading systemd: [ OK ]
Starting WorldSvr_01_13 (via systemctl): Failed to start WorldSvr_01_13.service: Unit not found. [FAILED]
Reloading systemd: [ OK ]
Starting WorldSvr_01_14 (via systemctl): Failed to start WorldSvr_01_14.service: Unit not found. [FAILED]
Reloading systemd: [ OK ]
Starting WorldSvr_01_15 (via systemctl): Failed to start WorldSvr_01_15.service: Unit not found. [FAILED]
Reloading systemd: [ OK ]
Starting WorldSvr_01_16 (via systemctl): Failed to start WorldSvr_01_16.service: Unit not found. [FAILED]

I already created a symlink


ln -sf /usr/bin/WorldSvr /usr/bin/WorldSvr_01_16
ln -sf /etc/init.d/cabal_server /etc/init.d/WorldSvr_01_16

FIXED!
cabal_create -c 20 1 :D
 
Last edited:
Newbie Spellweaver
Joined
Aug 28, 2013
Messages
95
Reaction score
8
yum update
systemctl reload crond.service
chmod -R 0644 /etc/cron.d/
chmod -R 0700 /etc/logrotate.d/
chmod -R 0700 /home/cabal/
ln -sf /home/cabal/stop_war.sh /usr/bin/war_stop
ln -sf /home/cabal/start_war.sh /usr/bin/war_start
chkconfig haldaemon on
chkconfig crond on
systemctl restart crond.service
systemctl cron.d on

Restart server and all ( I use toast repack centos 7)

Easy auto start war centos 7
 
RaGEZONE VIP
[VIP] Member
Joined
Oct 10, 2019
Messages
198
Reaction score
457
yum updatesystemctl reload crond.service
chmod -R 0644 /etc/cron.d/
chmod -R 0700 /etc/logrotate.d/
chmod -R 0700 /home/cabal/
ln -sf /home/cabal/stop_war.sh /usr/bin/war_stop
ln -sf /home/cabal/start_war.sh /usr/bin/war_start
chkconfig haldaemon on
chkconfig crond on
systemctl restart crond.service
systemctl cron.d on
Restart server and all ( I use toast repack centos 7)
Easy auto start war centos 7

So many unnecessary manipulations with crond... In order to add the service to autorun on Centos 7, use the command systemctl enable. chkconfig is outdated. Setting the permissions to the first 2 directories is also pointless - they are already installed by default. I don’t know why there is a haldaemon here. In the end, the list of commands should look like this:

chmod -R 0700 /home/cabal/
ln -sf /home/cabal/stop_war.sh /usr/bin/war_stop
ln -sf /home/cabal/start_war.sh /usr/bin/war_start
systemctl enable crond.service
systemctl restart crond.service


And about the previous question - units can be viewed in the catalog /etc/systemd/system. Setting up these files is quite simple; you should easily understand it. After you add/edit the unit, use the following command to update the systemd (this will apply your settings, let's say so):

systemctl daemon-reload

yum update I do not recommend using on an already configured server. It works - do not touch.
 
Last edited:
Back
Top