added a new map, I go to the server and then I come not to spawn point and under Terrari
Printable View
added a new map, I go to the server and then I come not to spawn point and under Terrari
fix by add data
add data?hmm??more information plz
@java97 please leave more detailed explanations.
I appreciate your helpfulness, but would appreciate even more if you could start leaving longer replies (at least a little more detail such as file names, area of code, something to show everyone where to go)
Thank you
full detail
-- open WZ\bin\Levels\WZ_XXXX\LevelData.xml
-- find <object className="obj_Building" by notepad++
-- compare file with WZ\bin\Data\ObjectsDepot (one by one)
-- find a missing file.....
WZ_XXXX = custommap
- - - Updated - - -
then unpack data by other private server for new data
lol?its not a problem!!i copy my standart Colarado map and change name and add all new name map ther are too dont spawn me normal!.
- - - Updated - - -
@DNC do you know what is this ?
@Arman Avetisyan
I didn't add the custom maps in that fashion for 2 reasons.
1. There is code related to a few maps that will kill a player in "specifically hard coded locations". RaccoonCity for one (believe there 1 or 2 others).
2. There are hard coded "height displacements" inside the code.
Which brings me to why I don't support custom maps at this time. In the future on the version in development, but not on the current or previous releases.
-------
@javaz97
The post with the detailed explanation, was exactly what I was hoping you would do.
Thank you for taking the time to detail the steps required, it made reading it much easier to follow along with.
;0)
ther tut not working...
Ok, that was freaking helpful. And PM'ing me -->LOL<-- in a subject about this issue, wont make it funnier when I get upset.
Now, lets talk about detailed replies?
Whose tutorial? What linked thread page? We (the few of us replying, which we might not if I keep seeing LOL everywhere), would like to continue helping. But first, you have to help yourself, by helping us to better understand what it is you are really trying to say.
Notice the in-depth sentences? That actually state what I'm trying to convey?
Monkey see, Monkey do... Repeat my method and reply without an LOL this time.
Now, if @pablos1234 would be kind enough to share (without your PM'ing him) his video on how he managed to add a map successfully.
That would be wonderful.
*edited my post*
I've PM'd pablos1234 and requested he post the video here, hopefully he will.
I would prefer to find a solution for everyone, as quickly as possible.
Thank you
https://www.youtube.com/watch?v=7za3Rtb8s5Y
https://www.youtube.com/watch?v=UzXxTz9GW6k
Arman give breathe for @DNC, I published how I adding maps.
Second think, after see your screen i think you must something wrong add Like some elements to Data object, check you redlog all times,
If you have error, check r3dlog, something not work ?, check r3dlogs, and logs your.. then you will be have answer for many question.
When you review the video and if you have an issue with MAPID's.
Pay close attention.
Example code:
NetPacketsGameInfo.h Example location follows:
If your map name is not in the Proper Order in the above snippet of code, the MAPID, will not match properly.Code:struct GBGameInfo
{
enum EMapId
{
MAPID_Editor_Particles = 0,
MAPID_ServerTest,
MAPID_WZ_Colorado,
-----> THERE WILL BE OTHERS HERE <-----
-----> Your Map Goes Here <-----
MAPID_WZ_TestMap, <----- Example WZ_TestMap entry
// NOTE: do *NOT* add maps inside current IDs, add ONLY at the end
// otherwise current map statistics in DB will be broken
MAPID_MAX_ID,
};
Then make sure you put the "new map entry" as in the video at the Bottom of the listing:
Every time you add a map entry, it must be the LAST ONE above the Default "Case Statement"
ServerGame.cpp Example location follows:
Code:void PlayGameServer()
{
r3d_assert(gServerLogic.ginfo_.IsValid());
switch(gServerLogic.ginfo_.mapId)
{
default:
r3dError("invalid map id\n");
break;
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;
-----> THERE WILL BE OTHERS HERE <-----
case GBGameInfo::MAPID_WZ_TestMap: <---------- Whatever your map is (my example WZ_TestMap)
r3dGameLevel::SetHomeDir("WZ_TestMap"); <---------- Whatever your map is (my example WZ_TestMap)
break;
}
Follow the video as there are Multiple locations.
void ServerGameLogic::GetStartSpawnPosition
....
....
// Alive and logging back in game
if(loadout.GameMapId && (loadout.GameMapId == ginfo_.mapId) && loadout.Alive == 1)
{
*pos = loadout.GamePos;
*dir = loadout.GameDir;
loadout.GamePos;
return;
}
// Early Revive Spawn at location of Death
if(loadout.GameMapId && loadout.Alive == 2)
{
*pos = loadout.GamePos;
*dir = loadout.GameDir;
loadout.GamePos;
return;
}
** spawn point **
i am test it wait.
- - - Updated - - -
yes i added alll.