This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TUTORIAL] Truly Mandatory Custom Patches  (Read 5196 times)

amberwell

  • Contributors
  • GM Isle Explorer
  • *****
  • Posts: 15
    • View Profile
[TUTORIAL] Truly Mandatory Custom Patches
« on: February 27, 2014, 06:06:38 am »
Hello! Do you happen to be working on a project with a "mandatory" custom .MPQ patch? Do you worry that players will forget to download it and therefore log onto a server and see broken content? Well, fear no more!

This tutorial will instruct you on how to use custom timezones to ensure that players can only access your server if they have your custom patch. This involves editing your client-side DBC files as well as your server's configuration files. Of course, in order to do this you will need a decent DBC editor. (I strongly recommend MyDBCEditor.)

First and foremost, we will need to extract a DBC file called Cfg_Categories.dbc. Use an MPQEditor and navigate your way to your Data folder, and then into the locale folder (called enUS/enGB/enQQ etc), and open a file called patch-(locale)-2.MPQ. Within this file you should see Cfg_Categories.dbc. Extract this file and then proceed to open up your DBC Editor and open the file.

When you have opened up the file, you should see this:


Referring to the wiki, we can deduce what data the different columns represent and what to put in them.
Proceed to insert a new line and then insert a new ID. You may find it more organised to use the number directly after the last data entry. The last entry ID is 37, so I will have 38 as my ID.

    #1 - This is the ID you've just entered.
    #2 -
localeMask. This refers the general location of your realm and the language you want it to use. Enter '205' if you want your server to use an EU locale, '256' for a Russian locale and 0 for any other locale.
#3 - charsetMask. This refers directly to the language players on your realm will use and the characters they will use. Enter '0' for a 'Development' charset. This refers to all languages and allows for all languages. Enter '1' to use an Engish-speaking charset, '4' for a Russian charset, '10' for a Korean charset and '17' for a Chinese or Taiwanese charset.
#4 - flags. This is used for setting special rules for your server. At the moment, the only rules that exist concern Tournament servers and accounts. Leave this as '0' for a normal server, or if you want, set it as '1' if you want to set up a Tournament server.
#5 - Name. Simply put, the name of your custom timezone and realmlist. This may show up on the tabs at the bottom of the realm list when logging in, so ensure that your name is appropriatr.
#21 - NameFlags. Copy '16712190' into this column, as this is the same as the other timezones. This isn't documented in the wiki, and I have no idea of what it refers to.
[/list]

Once you have completed filling in your row, you should have some data that looks like this:


Now that you have your custom timezone, you should save your DBC file and pack it into a custom .MPQ patch and then place this patch within your Data folder. You should also move the edited DBC file into your server's 'dbc' directory, which should be found in the main folder where your compiled server is:





Now, at last, to the server-side part of this tutorial. In order to 'activate' your custom timezone, you must alter the configuration of your server. I am using TrinityCore, so the configuration file I would use is worldserver.conf, which is found in the main folder with the compiled server.



Open this file in Notepad or otherwise. In Trinity, the rule we are looking for is called 'RealmZone'. However, this may be different in the configuration of other servers. Use CTRL+F to find 'RealmZone' in your config file. Once you have found it, change the ID to the ID of your custom timezone. For example, I would change mine from 8 to 38:



Now that you have done this, all you need to do is save your config file and start up your server!  :lol:

<-- A video displaying how custom timezones can be used in order to prevent players without a custom patch from entering your server.
« Last Edit: February 27, 2014, 08:08:07 am by Admin »

Skarn

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 807
    • View Profile
    • http://skarn-project.net
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #1 on: February 27, 2014, 08:07:11 am »
Thank you for this tutorial. I also use this protection system on my server.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Milly

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 503
    • View Profile
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #2 on: February 27, 2014, 08:21:56 am »
This is really clever. Nice tutorial :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #3 on: February 27, 2014, 09:41:09 am »
This is pretty snazzy and simple, I like it.  

Sometimes the simplest things are the most powerful.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

amberwell

  • Contributors
  • GM Isle Explorer
  • *****
  • Posts: 15
    • View Profile
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #4 on: February 27, 2014, 05:27:02 pm »
Quote from: "deep6ixed"
This is pretty snazzy and simple, I like it.  

Sometimes the simplest things are the most powerful.

I couldn't agree more.  ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Dottore

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 114
    • View Profile
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #5 on: March 05, 2014, 06:35:29 pm »
I followed all these steps, i have the modified the DBC file in my server and I changed realmzone to 38 but i can
still log in without the custom patch..
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Valkryst

  • Moderators
  • Model Change Addict
  • *****
  • Posts: 224
    • View Profile
    • http://valkryst.com/blog/
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #6 on: April 14, 2014, 06:37:07 pm »
Quote from: "Fekete95"
I followed all these steps, i have the modified the DBC file in my server and I changed realmzone to 38 but i can
still log in without the custom patch..

Confirming that this doesn't lock you out if you do not have the patch.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
MY BLOG IS NOW HERE.

Nirelz

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 7
    • View Profile
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #7 on: April 14, 2014, 09:47:51 pm »
Sadly it will just make new players think the server is down as it dosnt show up on the realmlist...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [TUTORIAL] Truly Mandatory Custom Patches
« Reply #8 on: October 18, 2015, 05:57:53 pm »
Great tutorial! I love the simplicity of the idea!
Is there a similar way to ensure that players have multiple custom patches?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.