Nation War

Results 1 to 20 of 20
  1. #1
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Nation War

    Hello. Help me please. I add nation war channels. All work. But me need autostart in 00:00, 04:00, 08:00, etc. How I can make it?


  2. #2
    Proficient Member MOT7 is offline
    MemberRank
    Jan 2013 Join Date
    SomewhereLocation
    187Posts

    Re: Nation War

    Just try to use crond.
    Just some easy line to input. I don't remember exactly where the script is located but i think it's in /etc/.
    There you can find a script called crond.sh (if i remember correctly).

    Input the following line:
    0 0,4,8,12,16,20 * * * root /etc/*...*

    change the *...* part into the directory where you create your script to start nationwar. just create a file, chmod it and fill in the "service WorldSvr_0x_0x start" commands for your nationwar channels.

    Then restart crond or reboot the system. Finish.

    Greetings
    MOT7

  3. #3
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    Quote Originally Posted by MOT7 View Post
    Just try to use crond.
    Just some easy line to input. I don't remember exactly where the script is located but i think it's in /etc/.
    There you can find a script called crond.sh (if i remember correctly).

    Input the following line:
    0 0,4,8,12,16,20 * * * root /etc/*...*

    change the *...* part into the directory where you create your script to start nationwar. just create a file, chmod it and fill in the "service WorldSvr_0x_0x start" commands for your nationwar channels.

    Then restart crond or reboot the system. Finish.

    Greetings
    MOT7
    Need restart CentOS or Cabal?

  4. #4
    Proficient Member MOT7 is offline
    MemberRank
    Jan 2013 Join Date
    SomewhereLocation
    187Posts

    Re: Nation War

    You CAN restart centOS, no need to restart cabal.
    To restart crond, use:

    "service crond restart" in Terminal.
    Should work then.

    Greetings
    MOT7

  5. #5
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    Quote Originally Posted by MOT7 View Post
    You CAN restart centOS, no need to restart cabal.
    To restart crond, use:

    "service crond restart" in Terminal.
    Should work then.

    Greetings
    MOT7
    It's need for stop too or no? And why nation war channels start after restart server?

  6. #6
    TheOne jaguar666 is offline
    MemberRank
    Aug 2012 Join Date
    Comfort RoomLocation
    407Posts

    Re: Nation War

    To make you easy setting the NW schedule, just open the pre-released repack of toast2250 and find the chk_cabal file in cron.d and open it. there you can see the schedule and change it want time you want.

    If you are not using toast's prer-released files, change the war_start.sh in chk_cabal to your .sh file where the WorldSvr NW list is indicated.
    Last edited by jaguar666; 03-05-13 at 11:08 PM.

  7. #7
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    Quote Originally Posted by jaguar666 View Post
    To make you easy setting the NW schedule, just open the pre-released repack of toast2250 and find the chk_cabal file in cron.d and open it. there you can see the schedule and change it want time you want.

    If you are not using toast's prer-released files, change the war_start.sh in chk_cabal to your .sh file where the WorldSvr NW list is indicated.
    I have start channel, but how it stop? In chk_cabal have not stop channels...

  8. #8
    TheOne jaguar666 is offline
    MemberRank
    Aug 2012 Join Date
    Comfort RoomLocation
    407Posts

    Re: Nation War

    I would strongly suggest that you have to try to use the repack made by toast and put this line to
    chk_cabal:
    0 0,4,8,12,16,20 * * * root /home/cabal/start_war.sh
    Anyway it is easy to restore your current set-up by just copying all .scp files and some .ini files and overwrite it. You can also use your old GlobalMgrSvr.

    Another way to do is copy all .sh files from home/cabal of toast repack and chmod it all by giving a permission to those .sh files

  9. #9
    RaGEZONER toast2250 is offline
    MemberRank
    Sep 2009 Join Date
    CabalLocation
    638Posts

    Re: Nation War

    The credit goes to chumpy (basic knowledge about linux like windows schedule)
    A visual crontab editor - create your custom crontab syntax to use with the cron scheduling application on your Linux server (very helpful, I'm very drunk,.. saw some one fap yesterday on tinychat during forum maintenance,..)

  10. #10
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    Quote Originally Posted by jaguar666 View Post
    I would strongly suggest that you have to try to use the repack made by toast and put this line to
    chk_cabal:
    0 0,4,8,12,16,20 * * * root /home/cabal/start_war.sh
    Anyway it is easy to restore your current set-up by just copying all .scp files and some .ini files and overwrite it. You can also use your old GlobalMgrSvr.

    Another way to do is copy all .sh files from home/cabal of toast repack and chmod it all by giving a permission to those .sh files
    I add in chk_cabal
    Code:
    0 0,4,8,12,16,20 * * * root /etc/cabal/StartWN.sh
    StartWM.sh
    Code:
    logfile=/var/log/cabal/nation_war.log		echo "`date`: Nation War starting" | tee -a $logfile
    		service WorldSvr_01_04 start
    	sleep 1
    		service WorldSvr_01_05 start
    	sleep 1
    		ervice WorldSvr_01_06 start
    	sleep 1
    		service WorldSvr_01_07 start
    	sleep 1
    		service WorldSvr_01_08 start
    No have start

  11. #11
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    In 3PM all war channel start, but when I select war channel I have message: Mission War channel unavailable. Please try again on the next War.

  12. #12
    Member hefajstos is offline
    MemberRank
    Aug 2009 Join Date
    87Posts

    Re: Nation War

    try this
    share file
    TG_system - Download - 4shared
    unpack rar and put to home folder in centos
    run command in terminal:
    chmod -R 0777 /home/cabal/*.*
    next command
    ln -sf /home/cabal/cabal_TG.sh /usr/bin/cabal_TG
    open etc/cron.d/chk_cabal and delete the last line if it is
    Code:
    */1 * * * * root /home/cabal/check_daemon.sh
    */1 * * * * root /home/cabal/netrestart.sh
    * */4 * * * root ntpdate time-a.nist.gov
    * */4 * * * root /home/cabal/check_daemon_mw.sh
    server_list_mw
    Code:
    WorldSvr_01_03
    WorldSvr_01_04
    WorldSvr_01_05
    WorldSvr_01_06
    WorldSvr_01_07
    WorldSvr_01_08
    put terminal : cabal_TG to show info how to use command
    example: cabal_TG status
    [root@localhost ~]# cabal_TG status

    TG scheduled start time 04:20
    TG scheduled start time 10:20
    TG scheduled start time 16:20
    TG scheduled start time 22:20

    Have a nice day
    Last edited by hefajstos; 04-05-13 at 02:23 PM.

  13. #13
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    When starting a Nation War, I do not get the alerts. How I can fix it?

  14. #14
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    Not one cant help me?

  15. #15
    Member hefajstos is offline
    MemberRank
    Aug 2009 Join Date
    87Posts

    Re: Nation War

    WorldSvr_01_01.ini
    # Load of war
    UseLordBroadCastCoolTimeSec=1
    LimitedBroadCastByLord=1

  16. #16
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    After restart CentOS Nation War auto start is broke =\ Why did this happen?

  17. #17
    RaGEZONER toast2250 is offline
    MemberRank
    Sep 2009 Join Date
    CabalLocation
    638Posts

    Re: Nation War

    Enable and start crond, make sure that all of the possible files are in Unix encoding format.

  18. #18
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    Quote Originally Posted by toast2250 View Post
    Enable and start crond, make sure that all of the possible files are in Unix encoding format.
    crond is started... Unix encoding???

  19. #19
    RaGEZONER toast2250 is offline
    MemberRank
    Sep 2009 Join Date
    CabalLocation
    638Posts

    Re: Nation War

    Yes, Windows uses CRLF (\r\n, 0D 0A) line endings while Unix just uses LF (\n, 0A).
    That is why some reported a empty line in the Item or NPC Selling problem.

    What are the differences between Linux and Windows .txt files (Unicode encoding) - Super User

    I have to test, but I have noticed that If my crond file/s is in windows encoding then I have to re-edit/save it. It then works, as a result it gets converted to unix.

    Its not that big of a deal, nice to know tho,..
    (All files must be edited and saved in unix format)

  20. #20
    Proficient Member FarmHitman is offline
    MemberRank
    Mar 2013 Join Date
    186Posts

    Re: Nation War

    Quote Originally Posted by toast2250 View Post
    Yes, Windows uses CRLF (\r\n, 0D 0A) line endings while Unix just uses LF (\n, 0A).
    That is why some reported a empty line in the Item or NPC Selling problem.

    What are the differences between Linux and Windows .txt files (Unicode encoding) - Super User

    I have to test, but I have noticed that If my crond file/s is in windows encoding then I have to re-edit/save it. It then works, as a result it gets converted to unix.

    Its not that big of a deal, nice to know tho,..
    (All files must be edited and saved in unix format)
    Im use your chk_cabal file, but it no work.



Advertisement