Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

Adding Maps

Status
Not open for further replies.
Joined
Jul 7, 2007
Messages
962
Reaction score
161
Location
Hell
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:
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 shit 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.
 
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 shit 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.
 
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;

}


????
 
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
 
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
 
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 -.-'
 
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.
 
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