how to install a new warz map on a privat server?
now i have colorado but i will play cliffside.
need help to change it :blush:
Printable View
how to install a new warz map on a privat server?
now i have colorado but i will play cliffside.
need help to change it :blush:
to with same problem
Here is how.
Search for this:
then under you will see the mapping replace it with thisQuote:
var[2].SetString("GAMEWORLD");
Now search for thisQuote:
switch (ginfo.mapId)
{
case GBGameInfo::MAPID_WZ_Colorado:
var[3].SetString("COLORADO");
break;
case GBGameInfo::MAPID_WZ_MAPNAME:
var[3].SetString("MAPNAME");
break;
default:
var[3].SetString("DEVMAP");
break;
}
Under coloradoQuote:
switch(gClientLogic().m_gameInfo.mapId)
Add thisQuote:
case GBGameInfo::MAPID_WZ_Colorado:
r3dGameLevel::SetHomeDir("WZ_Colorado");
break;
Now search for thisQuote:
case GBGameInfo::MAPID_WZ_MAPNAME:
r3dGameLevel::SetHomeDir("WZ_MAPNAME");
break;
Above addQuote:
sscanf(xmlItem.attribute("GamePos").value(), "%f %f %f %f", &w.GamePos.x, &w.GamePos.y, &w.GamePos.z, &w.GameDir);
Now compile your WarZ.sln you will get errors once its completed Open WarZ_server.slnQuote:
if (w.GameMapId == 3)
sscanf(xmlItem.attribute("GamePos2").value(), "%f %f %f %f", &w.GamePos.x, &w.GamePos.y, &w.GamePos.z, &w.GameDir);
else if (w.GameMapId == 4)
sscanf(xmlItem.attribute("GamePos3").value(), "%f %f %f %f", &w.GamePos.x, &w.GamePos.y, &w.GamePos.z, &w.GameDir);
else
Then search for
Now under colorado addQuote:
static int StringToGBMapID(char* str)
Now search for thisQuote:
if(stricmp(str, "MAPID_WZ_MAPNAME") == 0)
return GBGameInfo::MAPID_WZ_MAPNAME;
Under colorado addQuote:
r3dGameLevel::SetHomeDir("WZ_Colorado");
Now search for thisQuote:
case GBGameInfo::MAPID_WZ_MAPNAME:
r3dGameLevel::SetHomeDir("WZ_MAPNAME");
break;
Small tutorial on how to add maps, i won't be helping if you get errors just letting you all know.Quote:
enum EMapId
Under
Add the followingQuote:
MAPID_Editor_Particles = 0,
Now search for thisQuote:
MAPID_ServerTest = 4,
MAPID_WZ_Colorado = 2,
MAPID_WZ_MAPNAME = 3,
Under SessionID add thisQuote:
CWOBackendReq req("api_SrvCharUpdate.aspx");
Now build WarZ_server.sln and you should have no errors then go back to WarZ.sln and re-build you will then have no errors, now go to your backend (API)Quote:
req.AddParam("map", slot.GameMapId);
Open api_SrvCharUpdate.aspx.cs
And under CustomerID add
Now save and then open api_GetProfile1.aspx.csQuote:
sqcmd.Parameters.AddWithValue("@in_MapID", web.Param("map"));
Under gamepos add the following
Now build in Debug mode and then publish API and replace, now we will move on to the SQLQuote:
xml.Append(xml_attr("GamePos2", reader["GamePos2"]));
xml.Append(xml_attr("GamePos3", reader["GamePos3"]));
Open WZ_Char_SRV_SetStatus
And make it look like this
http://pastebin.com/raw.php?i=HwWCE5pW
This should work enjoy, credits to iKasu/Duong Phan for reshare.
dragon, which is the file I should open q to make the first steps? and where they are bound.
what is bug of map-cliffside ?
- - - Updated - - -
DragonKon, This code work for DNC or INVASION ?