Harro
- Joined
- Mar 29, 2013
- Messages
- 754
- Reaction score
- 284
This tutorial will show you how to have team map editting by this i mean if more then 1 person was working on a level you will no longer need to send the other person you're version of the level this will allow you to both edit the level
Note: If you both edit at same time last person to do the save will overwrite everything also make sure to untoggle the original save level's folder for live servers else you will run into problems also when you download and install dropbox make sure to move its location to you're levels folder directory like so "Levels\Dropbox\dropboxfoldername\yourdropboxlevelsfolder" you're other mappers will also need to do this as well and you will have to add you're level you're wanting to edit there as well.
Download:
Open warz.sln search for this
then replace this
Replace that to this
Then make sure to edit the editor levels one to be like this as well
now search for this
replace this
to this
Anyways that's it pretty easy enjoy hf.
Note: If you both edit at same time last person to do the save will overwrite everything also make sure to untoggle the original save level's folder for live servers else you will run into problems also when you download and install dropbox make sure to move its location to you're levels folder directory like so "Levels\Dropbox\dropboxfoldername\yourdropboxlevelsfolder" you're other mappers will also need to do this as well and you will have to add you're level you're wanting to edit there as well.
Download:
You must be registered to see links
Open warz.sln search for this
Code:
const static char* list[3] = { "LIVE MAPS", "EDITOR MAPS", "CREATE MAP"};
then replace this
Code:
const static char* list[3] = { "DROPBOX MAPS", "EDITOR MAPS", "CREATE MAP"};
Code:
case 0: // LIVE MAPS
{
static float offset = 0.f ;
imgui_FileList(r3dRenderer->ScreenW/2-240, r3dRenderer->ScreenH/2-140+2, 360, 330, "Levels\\*.", LevelEditName, &offset );
if (LevelEditName[0] && stricmp(LevelEditName, "workinprogress")!=0) // syxn / dragonttk
if (imgui_Button(r3dRenderer->ScreenW/2+250-150, r3dRenderer->ScreenH/2+200+5,150,30, "Load Level", 0))
released_id = bEditor;
}
break;
Replace that to this
Code:
case 0: // DROPBOX MAPS
{
static float offset = 0.f ;
imgui_FileList(r3dRenderer->ScreenW/2-240, r3dRenderer->ScreenH/2-140+2, 360, 330, "Levels\\Dropbox\\Survive\\Levels\\*.", LevelEditName, &offset );
if (LevelEditName[0] && stricmp(LevelEditName, "workinprogress")!=0)
if (imgui_Button(r3dRenderer->ScreenW/2+250-150, r3dRenderer->ScreenH/2+200+5,150,30, "Load Level", 0))
released_id = bEditor;
}
break;
Then make sure to edit the editor levels one to be like this as well
Code:
case 1: // EDITOR MAPS
{
static float offset = 0.f ;
imgui_FileList(r3dRenderer->ScreenW/2-240, r3dRenderer->ScreenH/2-140+2, 360, 330, "Levels\\Dropbox\\Survive\\Levels\\*.", tempName, &offset );
if (tempName[0])
{
sprintf(LevelEditName, "Levels\\Dropbox\\Survive\\Levels\\%s", tempName);
if (imgui_Button(r3dRenderer->ScreenW/2+250-150, r3dRenderer->ScreenH/2+200+5,150,30, "Load Level", 0))
released_id = bEditor;
}
}
break;
now search for this
Code:
void r3dGameLevel :: SetHomeDir(const char* MapName)
replace this
Code:
sprintf(HomeDirectory, "Levels\\%s", MapName);
to this
Code:
sprintf(HomeDirectory, "Levels\\Dropbox\\Survive\\Levels\\%s", MapName); // Dragonttk
Anyways that's it pretty easy enjoy hf.