[How To] Implement New Maps - Custom Positions

Status
Not open for further replies.
here work 2 maps fine but back to menu in 2 in 2 minutes ?
gameserver dont crash only back to menu

Because you failed at aspx part, check your aspx and store procedure match, client send but server don't understand, i bet in your log must have SQL error.

Fixed: Adding Player Spawn Point, set player spawn to not null
 
Last edited:
WEWPS!

Okay the First thing we do is Open our Client Source (WarZ\src

\EclipseStudio\WarZ.sln)
In this File you need to open FrontEndWarZ.cpp

Go to the Line: 3050 - here you should find this:

Okay - 1 line AFTER var[2] will be var[3] where it does a little

check,
remove the whole var[3] Line!!!

Then you need to add a little switch Statement:


You will see that i added: GBGameInfo::MAPID_NEWMAP <-
This "MAPID_NEWMAP" is our "defined Map"
The line "var[3].SetString("NEWMAP"); contains the Little
Name which is Shown under MAP in the Client.

Okay if you did this go to File: MainNetwork.cpp
In this File go ahead to Line: 307


Here we need another case for out New Map. Put it UNDER! the above

Case!


As you can see i added again "GBGAmeInfo::MAPID_NEWMAP" <-
THis is again our "defined MAPID"
The SetHomeDir Contains the "Levels\MAP" Name. So if you named your
Map "Freeeeeky" then you should add "Freeeeeky" there.
(Check your Levels Folder - there are the Whole Maps, so you will

see how your
map is named xD)

Now you need to modify the File: UserProfile.cpp
Go to arround Line: 240


Under the "w.GamePos = r3dPoint3D(0,0,0);" you will find this:


There you need to add a little If Statement:


Okay thats all what we need to do in the Client.

Let's go to the Server Part. Open Up the Server Source (WarZ\bin

\server\WarZ_Server.sln)
There you need to modify following file: MasterServerConfig.cpp
Here you need to go Line 140



Here you need to add another If Statement UNDER! the "return

GBGameInfo"


Now you need to Edit: ServerGame.cpp
Go to Line: 65.


Here you need to add another case too:

Again: MAPID_NEW is our defined Mapid and NEW is the Map Name which

is in the LEVELS Folder.

Now you need to modify: NetPacketsGameInfo.h
Go to line: 30

After the MAPID_WZ_Colorado, you need to add our new MAPID_NEW:


Now you need to modify the File: AsyncFuncs.cpp
Go To Line: 475

Here you need to add a new req.AddParam under the

req.AddSessionInfo:


Okay now we need to look into our Backend: (\WarZ\src\Scripts

\WZBackend-ASP.NET)
Open the File: api_SrvCharUpdate.aspx.cs
Go to Line 20:

Here you need another Parameter so lets do it:


Okay now we need to edit: api_GetProfile1.aspx.cs
Go to line: 31


Here you need to add another xml.append:


Publish this Website now to your API Webfolder and go to the next

little set :)
Open UP SQL Management Studio, Connect to your Server and open
the Database "WarZ" and there you open the Tables:


Rightclick on the Table: dbo.UsersChars and click on "Design"


Here you need to add a New Entry:


Okay - Press Cntr+S and go to the Stored Procedures:



Rightclick on the Procedure: dbo.WZ_CHAR_SRV_SetStatus and click

modify


You will see something like this:


Under the "@in_CustomerID int, " add following:

Okay now you need to go a fewww lines down:


Delete this Whole Part and add an If Statement:


Now click on the Execute Button:

:) One love.
 
Every "solution" to this problem that has been posted in here is a terrible way of doing it. Maybe I will post what I did to solve this, or maybe I will post an alternate solution that doesnt force hardcoded values into the exes. Tho here is a hint, (Changing the MasterServer config, and the parsing of the PermGames to read in extra data)
 
Every "solution" to this problem that has been posted in here is a terrible way of doing it. Maybe I will post what I did to solve this, or maybe I will post an alternate solution that doesnt force hardcoded values into the exes. Tho here is a hint, (Changing the MasterServer config, and the parsing of the PermGames to read in extra data)

Wait wait.... you tell me your able to read strings from File Oo
WOOOOT Okay xD Nothing special xD
 
Wait wait.... you tell me your able to read strings from File Oo
WOOOOT Okay xD Nothing special xD

that obviously isn't the entirety of it, that is just one small portion. It is merely a way you can get data you want into the server so you can do things with it. If you think that just reading in a couple extra bits of data from a file magically makes it so you can have multiple maps easily without hardcoding data values then you need to seriously re-examine your brain, because it seems to be broken.
 
Wait wait.... you tell me your able to read strings from File Oo
WOOOOT Okay xD Nothing special xD

Yeah, that's totally what he was talking about. iKasu. Sigh. You know better than that. He was talking about implementing serverside logic per-map via an entirely new system, not just reading 'strings from a file'. By the way, 'strings' is the wrong terminology.

In case you missed it, here's the part you overlooked while you were thinking everyone on RaGEZONE is a retard:
or maybe I will post an alternate solution that doesnt force hardcoded values into the exes.

How else would you efficiently store data that changes not often enough to matter? SQL databases aren't as effective for data that doesn't require changing that often. A configuration file (such as an ini or xml) outweighs the other option (SQL database) for setting a simple variable when the server is loaded. It's called memory, you should google a tutorial on basic operating system functions if you are unsure of how memory works.
 
Yeah, that's totally what he was talking about. iKasu. Sigh. You know better than that. He was talking about implementing serverside logic per-map via an entirely new system, not just reading 'strings from a file'. By the way, 'strings' is the wrong terminology.

In case you missed it, here's the part you overlooked while you were thinking everyone on RaGEZONE is a retard:


How else would you efficiently store data that changes not often enough to matter? SQL databases aren't as effective for data that doesn't require changing that often. A configuration file (such as an ini or xml) outweighs the other option (SQL database) for setting a simple variable when the server is loaded. It's called memory, you should google a tutorial on basic operating system functions if you are unsure of how memory works.

Who paid you to tell me this now?

My Maps are loaded from the Database without Hardcoded stuff.
But yeah, since you work for DeadZ i don't talk about it :)
 
Who paid you to tell me this now?

My Maps are loaded from the Database without Hardcoded stuff.
But yeah, since you work for DeadZ i don't talk about it :)

No one paid me to tell you that. You insulted my developer, thus, you get an ass-ramming of your own medicine.

Since you work for iPlayWarZ, you're in a bad position anyways.
 
No one paid me to tell you that. You insulted my developer, thus, you get an ass-ramming of your own medicine.

Since you work for iPlayWarZ, you're in a bad position anyways.

iPlayWarZ? KKKKKKKKKKKKKKKKKKKK BRBRBRBRBRBRBRBR man, he works for WarZED. WarZED did exist before iPlayWarZ was sold to GameZED! Search before you post ****.
 
Status
Not open for further replies.
Back