Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Adding Maps

Status
Not open for further replies.
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
well i noticed some guy removed his tut so basically i recently wanted 2 maps so i looked into it.

first off you want to config your MatchServer.cfg properly i have the following setting:
Code:
[MasterServer]
masterPort=34000
clientPort=34001
masterCCU=20
serverId=1
supervisorCoolDownSeconds=15

[PermGame2]
map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_West 0 0
data = 164 0 0
name = UGW Server 1

[PermGame3]
map = MAPID_WZ_Cliffside DOESNOTHING GBNET_REGION_US_West 0 0
data = 164 0 0
name = UGW Server 2

notice i use PermGame2 and PermGame3 its because 0 and 1 dont work go from 2+

date 164 = players

now for the code

Go to server Source Find(ctrl + f and select entire soloution in the drop down box):
Code:
case GBGameInfo::MAPID_WZ_Colorado: 
      r3dGameLevel::SetHomeDir("WZ_Colorado"); 
      break;

And Under Place:
Code:
case GBGameInfo::MAPID_WZ_Cliffside: 
      r3dGameLevel::SetHomeDir("WZ_Cliffside"); 
      break;

find:
Code:
enum EMapId
	{
	  MAPID_Editor_Particles = 0,
	  MAPID_ServerTest,
	  MAPID_WZ_Colorado,
And Under that put:
Code:
MAPID_WZ_Cliffside,
be sure to add it above MAPID_MAX_ID,

find:
Code:
if(stricmp(str, "MAPID_WZ_Colorado") == 0)
    return GBGameInfo::MAPID_WZ_Colorado;

under it place:
Code:
  if(stricmp(str, "MAPID_WZ_Cliffside") == 0)
    return GBGameInfo::MAPID_WZ_Cliffside;

now in warz source find:
Code:
case GBGameInfo::MAPID_WZ_Colorado: 
      r3dGameLevel::SetHomeDir("WZ_Colorado"); 
      break;

and under it place:
Code:
case GBGameInfo::MAPID_WZ_Cliffside: 
      r3dGameLevel::SetHomeDir("WZ_Cliffside"); 
      break;
find:
Code:
var[3].SetString(ginfo.mapId == GBGameInfo::MAPID_WZ_Colorado ? "COLORADO" : "DEVMAP");

Replace With:
Code:
	char* MapName;
		switch(ginfo.mapId)
		{
		case GBGameInfo::MAPID_WZ_Colorado:
			MapName = "COLORADO";
			break;
		case GBGameInfo::MAPID_WZ_Cliffside:
			MapName = "Cliffside";
			break;
		}
		var[3].SetString(MapName);

cliffside map with zombies, zombie loot (Place in Bin/Levels/) Over right all files and dont forget to update using rsbuild:

that sums it up enjoy, just do the same as this but with different map names if you want custom
 
Last edited:
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
thanks i added another part at the end mate
 
Master Summoner
Joined
Mar 30, 2013
Messages
543
Reaction score
72
I think WooAf should close this since it is the same code from iKasu's tutorial. idk, just me.
 
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
shut up and check a read the top part of the text in my post jeez jonnytruant u failed to noticed that ikaku's tut is removed and this is not a copy its been done by me and i have never once read his tut your type mate arnt welcome here
 
Banned
Banned
Joined
Apr 4, 2013
Messages
120
Reaction score
25
I think WooAf should close this since it is the same code from iKasu's tutorial. idk, just me.

Johnny YOUR project does not get exclusivity. You need to stop being a fanboy and let others develop. You and Ikasu are becoming a huge thorn in this communities side. All you do is post your developments with no release and talk poop on everyone else who hasnt "achieved your grandmastery". It is getting old fast.

Back on topic, this is a great guide and I greatly thank prox for ACTUALLY HELPING OTHERS, unlike some other assholes I could mention.
 
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
im the owner/single programmer of universe gamers gunz/eurogunz hes kinda underestimating me abit lol.
 
Master Summoner
Joined
Mar 30, 2013
Messages
543
Reaction score
72
Johnny YOUR project does not get exclusivity. You need to stop being a fanboy and let others develop. You and Ikasu are becoming a huge thorn in this communities side. All you do is post your developments with no release and talk poop on everyone else who hasnt "achieved your grandmastery". It is getting old fast.

Back on topic, this is a great guide and I greatly thank prox for ACTUALLY HELPING OTHERS, unlike some other assholes I could mention.
Why wont I release anything? Because no one will credit me.

im the owner/single programmer of universe gamers gunz/eurogunz hes kinda underestimating me abit lol.

No, I just said IMO your code is looking a lot like iKasu's.
 
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
because we all use warz source right ? so its the same u fool lol, and ikasu's tut got removed jeez read please.

and ikasu takes no credit what so ever for this topic so give it a rest mate.
 
Newbie Spellweaver
Joined
Jan 23, 2013
Messages
52
Reaction score
4
Map Invalid ID, can someone help me?

switch(gClientLogic().m_gameInfo.mapId) {
default:
r3dError("invalid map id\n");
case GBGameInfo::MAPID_Editor_Particles:
r3dGameLevel::SetHomeDir("WorkInProgress\\Editor_Particles");
break;
case GBGameInfo::MAPID_ServerTest:
r3dGameLevel::SetHomeDir("WorkInProgress\\ServerTest");
break;
case GBGameInfo::MAPID_WZ_Colorado:
r3dGameLevel::SetHomeDir("WZ_Colorado");
break;
case GBGameInfo::MAPID_WZ_Cliffside:
r3dGameLevel::SetHomeDir("WZ_Cliffside");
break;

}


????
 
Experienced Elementalist
Joined
Apr 10, 2013
Messages
231
Reaction score
148
Just as a notice:
I wrote it too and nobody cares.

Btw - Now you have 1 thing that you need to keep in mind:
If you logout in Colorado at position 7282, 7288
Then you will spawn in the other map at the same position.
If there is Nothing then you die =)

Good Luck =D
 
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
guess you missed this :)

// if no map assigned yet, or new map, or newly created character (alive == 3)
if(loadout.GameMapId == 0 || loadout.GameMapId != ginfo_.mapId || loadout.Alive == 3)
{
GetSpawnPositionNewPlayer(loadout.GamePos, pos, dir);
// move spawn pos at radius
pos->x += u_GetRandom(-_glm_SpawnRadius, _glm_SpawnRadius);
pos->z += u_GetRandom(-_glm_SpawnRadius, _glm_SpawnRadius);
//r3dOutToLog("new spawn at position %f %f %f\n", pos->x, pos->y, pos->z);
return;
}

thats defautly in the source :), yes it does reset the position to a default one when logged in another map
 
Experienced Elementalist
Joined
Apr 10, 2013
Messages
231
Reaction score
148
guess you missed this :)

// if no map assigned yet, or new map, or newly created character (alive == 3)
if(loadout.GameMapId == 0 || loadout.GameMapId != ginfo_.mapId || loadout.Alive == 3)
{
GetSpawnPositionNewPlayer(loadout.GamePos, pos, dir);
// move spawn pos at radius
pos->x += u_GetRandom(-_glm_SpawnRadius, _glm_SpawnRadius);
pos->z += u_GetRandom(-_glm_SpawnRadius, _glm_SpawnRadius);
//r3dOutToLog("new spawn at position %f %f %f\n", pos->x, pos->y, pos->z);
return;
}

thats defautly in the source :), yes it does reset the position to a default one when logged in another map

I know this but what is if you wanna keeep the Position where you are?!
This is what i mean -.-'
 
Rival Gamers Owner
Loyal Member
Joined
Jul 7, 2007
Messages
962
Reaction score
161
ah yeah man well its easy if the users cant add it they don't deserve it :) but ill add it to my server thanks
 
Harro
Joined
Mar 29, 2013
Messages
754
Reaction score
284
Can you guys help me please? im getting INVALID MAP ID !



Go to WarZ.sln then search "invalid map id" and check that out i had this when i first started months back, its cause you messed with that error and something isn't correct.
 
Newbie Spellweaver
Joined
Jun 13, 2013
Messages
12
Reaction score
0
Please help me,im getting INVALID MAP ID Too,i follow all the steps and nothing :/,some one can please help me? Sry bad english :/
 
Status
Not open for further replies.
Back
Top