Menu

Welcome, Guest. Please login or register.
November 22, 2019, 06:34:17 am

Login with username, password and session length

Author Topic: [RELEASE] [WotLk] Custom Battleground Slaver Valley  (Read 3170 times)

Snoopzz

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 8
    • View Profile
[RELEASE] [WotLk] Custom Battleground Slaver Valley
« on: November 25, 2016, 03:54:10 pm »
Hey guys,

this is my official release of the Battleground i made a year ago.
(See post Custom Battleground to have a look at the Battleground)
in the attached file you'll find the following files:

DOWNLOAD Slavery Valley

- Folder Map: this contains the adt and the wdt files
- Folder Minimap: this are the minimap png's and the map png's (you don't need this folder but i will share it too)
- Folder Patch: here are all the  seperated files from the Patch for the BG (not in mpq Format)
- BattlegroundSV.cpp.txt: this is the C++ .cpp file you should implement in your source code
- BattlegroundSV.h.txt: this is the C++ .h file you schould implement in your soure code
- BattlegroundSV.sql: this contains 3 npcs some npc text and trinity strings
- Patch-S.mpq: this is the Patch for your Client. (Contains the same files like the Patch folder)

So let's start implementing the Battleground. I'm sure i will forget some steps so if you have trouble implementing this just post your fix if you got one or tell me so i can tell you what to do.
The Battleground is for TrinityCore 3.3.5a and for the english Client because this are all english dbc's.

Step 1:

First make a backup of your Server dbc files, than take all the DBC's files from the Patch/DBFilesClient Folder and copy and past it in your Server DBC's.


Step 2:

Execute the SQL File to your database. The file won't overwrite any existing data.


Step 3:

Now starts the C++ part. Get a new blank .cpp and .h file to your Source code. Name it BattlegroundSV.cpp and BattlegroundSV.h. Rebuild and compile your Sourcecode.
Now copy paste the complete BattlegroundSV.cpp.txt and BattlegroundSV.h.txt to your new C++ files.
If you now try to compile you will see, there are some Errors we need to fix.


Step 4:

Go to the SharedDefines.h and insert a new Battleground.

line 3341(new enum)
Code: [Select]
BATTLEGROUND_SV  = 31,  // Slavery Valley
line 3479(new enum)
Code: [Select]
BATTLEGROUND_QUEUE_SV = 11,

Step 5:

Go to the BattlegroundMgr.cpp. Here we need to insert som lines.

line 36(new include):
Code: [Select]
#include "BattlegroundSV.h"
line 403(new case):
Code: [Select]
case BATTLEGROUND_SV:
bg = new BattlegroundSV(*(BattlegroundSV*)bg_template);
break;

line 489(new case):
Code: [Select]
case BATTLEGROUND_SV:
bg = new BattlegroundSV();
break;

line 757(new case):
Code: [Select]
case BATTLEGROUND_SV:
return BATTLEGROUND_QUEUE_SV;

line 797(new case):
Code: [Select]
case BATTLEGROUND_QUEUE_SV:
return BATTLEGROUND_SV;

Step 6:

need to add some code in the language.h you can place it whereever you want in the trinitystrings sector. i placed it next to the other bg Messages.
Code: [Select]
LANG_BG_SV_START_TWO_MINUTES = 1500,
LANG_BG_SV_START_ONE_MINUTE = 1501,
LANG_BG_SV_START_HALF_MINUTE = 1502,
LANG_BG_SV_HAS_BEGUN = 1503,

LANG_BG_SV_TAKEN = 3001,
LANG_BG_SV_DEFENDED = 3002,
LANG_BG_SV_ASSAULTED = 3003,
LANG_BG_SV_ALLY = 3004,
LANG_BG_SV_HORDE = 3005,
LANG_BG_SV_MINE = 3006,
LANG_BG_SV_PRISON = 3007,
LANG_BG_SV_RESTLESSGRAVEYARD = 3008,
LANG_BG_SV_BOSS_INC_1MIN = 3009,
LANG_BG_SV_BOSS_INC_NOW = 3010,

That's it as far as i still knew it. If you compile now there could be some undefined names so check what names are missing but i think this is all what is needed.

To get it completle working you need to Export the map, mmaps and vmaps of the map.
Now you can put the Patch-S.mpq into your data folder of your Client and it should work.

If you use it please give some Feedback of the functionality of the bg and if you use it on a Server please tell me which Server you are using it on so i maybe can take a look ;)

greetings Snoopzz
« Last Edit: December 04, 2016, 02:14:50 pm by Admin »

Ohai

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 172
    • View Profile
Re: [RELEASE] [WotLk] Custom Battleground Slaver Valley
« Reply #1 on: November 28, 2016, 02:50:15 pm »
Nice name Slavery Valley  ;)  You couldve made some screenshots at least, explain what its about :b
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Snoopzz

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 8
    • View Profile
Re: [RELEASE] [WotLk] Custom Battleground Slaver Valley
« Reply #2 on: November 28, 2016, 05:53:34 pm »
I already did a topic it's called Release Custom Battleground... there are some screenshots and how it works. The thread should be 1 or 2 threads after this one :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

staleness89

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 14
    • View Profile
Re: [RELEASE] [WotLk] Custom Battleground Slaver Valley
« Reply #3 on: December 04, 2016, 10:18:32 am »
Does this replace Isle of Conquest?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Snoopzz

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 8
    • View Profile
Re: [RELEASE] [WotLk] Custom Battleground Slaver Valley
« Reply #4 on: December 04, 2016, 01:48:45 pm »
No, i have used the id of isel of conquest when i was developing the bg but just changed the id to 31 so in my Version i changed isel of conquest to 31 and my bg had ID 30 which is the standard Trinity ID of isle of conquest. so i messed up the ids a little bit.. sorry for that... i will take a look and change the id's of isel of conquest back to 30

I also forgot the part of code which is needed to be inserted in SharedDefines.h. I updated the first post with the code and the correct IDs for the Bg.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Poisonleaf

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [RELEASE] [WotLk] Custom Battleground Slaver Valley
« Reply #5 on: December 05, 2016, 05:29:28 pm »
Thank you so much for the release mate, I remember contacting you about this a while back.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

kenneth1690

  • Registred Member
  • MS Paint Freak
  • *****
  • Posts: 4
    • View Profile
Re: [RELEASE] [WotLk] Custom Battleground Slaver Valley
« Reply #6 on: January 10, 2017, 03:37:10 am »
i have error :c
 error C2065: 'SCORE_KILL_POINTS': identificador no declarado
« Last Edit: January 01, 1970, 01:00:00 am by Admin »