Forum > Development and Presentation

[RELEASE] [WotLk] Custom Battleground Slaver Valley

(1/2) > >>

Snoopzz:
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: ---BATTLEGROUND_SV  = 31,  // Slavery Valley
--- End code ---

line 3479(new enum)

--- Code: ---BATTLEGROUND_QUEUE_SV = 11,
--- End code ---


Step 5:

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

line 36(new include):

--- Code: ---#include "BattlegroundSV.h"
--- End code ---

line 403(new case):

--- Code: ---case BATTLEGROUND_SV:
bg = new BattlegroundSV(*(BattlegroundSV*)bg_template);
break;

--- End code ---

line 489(new case):

--- Code: ---case BATTLEGROUND_SV:
bg = new BattlegroundSV();
break;

--- End code ---

line 757(new case):

--- Code: ---case BATTLEGROUND_SV:
return BATTLEGROUND_QUEUE_SV;

--- End code ---

line 797(new case):

--- Code: ---case BATTLEGROUND_QUEUE_SV:
return BATTLEGROUND_SV;

--- End code ---

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: ---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,

--- End code ---

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

Ohai:
Nice name Slavery Valley  ;)  You couldve made some screenshots at least, explain what its about :b

Snoopzz:
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 :)

staleness89:
Does this replace Isle of Conquest?

Snoopzz:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version