Results 1 to 5 of 5
  1. #1
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14

    [Fab] Smartest way to do /updates

    Alright so this command is quite useful considering it uses a txt file to grab the text and you can update the list without restarting the server!
    First locate AdminCommands.cs and add this command:
    Code:
        internal class UpdatesCmd : Command
        {
            public UpdatesCmd()
                : base("updates", 0)
            {
            }
    
            protected override bool Process(Player player, RealmTime time, string[] args)
            {
                string[] txt = System(dot)IO.File.ReadAllLines("updates.txt");
                string text = string.Join(", ", txt);
                player.SendInfo(text);
                return true;
            }
        }
    For some reason mpgh is being weird so make sure you replace (dot) with a period!!!
    Now go into your server files and locate bin/debug and add a new txt file named updates
    Follow this format to add new things:
    Code:
    Update1
    Update2
    Update3
    Etc...
    It should work flawlessly! If you have any issues let me know I'll be happy to help (:

  2. The Following User Says Thank You to Caesar1928 For This Useful Post:

    HoffHorn (12-19-2015)

  3. #2
    Stellar Spark's Avatar
    Join Date
    Jun 2013
    Gender
    female
    Posts
    724
    Reputation
    35
    Thanks
    799
    This looks nice, but its actual effectiveness is cut short by the fact that most if not all server updates require a restart to begin with.

    If servers had a more modular script-loading structure I could see a lot of updates being made with zero-downtime.

  4. #3
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by Roxy Lalonde View Post
    This looks nice, but its actual effectiveness is cut short by the fact that most if not all server updates require a restart to begin with.

    If servers had a more modular script-loading structure I could see a lot of updates being made with zero-downtime.
    Yeah that's true but this was kind of meant to open more opportunities to people because txt files can be quite useful in things like prices...

  5. #4
    noone2016's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    164
    My Mood
    Amused
    nice tut bit useless tho

  6. #5
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14
    Quote Originally Posted by noone2016 View Post
    nice tut bit useless tho
    Quote Originally Posted by Caesar1928 View Post
    Yeah that's true but this was kind of meant to open more opportunities to people because txt files can be quite useful in things like prices...
    Please read next time ^^^

Similar Threads

  1. [Help Request] Best way to find updated class names
    By evilcitrus in forum Realm of the Mad God Help & Requests
    Replies: 0
    Last Post: 10-14-2013, 10:10 PM
  2. Is there a way to get back the previous update ?
    By Golay in forum Borderlands 2 Hacks
    Replies: 8
    Last Post: 11-15-2012, 02:44 AM
  3. Any way to get unbanned from alteriw after the new update?
    By benike1 in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 48
    Last Post: 07-09-2011, 09:46 PM
  4. New way of Updating?
    By Jailbroken671 in forum Combat Arms Discussions
    Replies: 11
    Last Post: 08-26-2010, 09:02 AM
  5. Theres a way to fake the hshield update!!!
    By hi9110 in forum Combat Arms Discussions
    Replies: 24
    Last Post: 09-13-2009, 09:51 AM

Tags for this Thread