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:
dropbox
Open warz.sln search for this
then replace thisCode:const static char* list[3] = { "LIVE MAPS", "EDITOR MAPS", "CREATE MAP"};
Code:const static char* list[3] = { "DROPBOX MAPS", "EDITOR MAPS", "CREATE MAP"};Replace that to thisCode: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;
Then make sure to edit the editor levels one to be like this as wellCode: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;
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
replace thisCode:void r3dGameLevel :: SetHomeDir(const char* MapName)
to thisCode:sprintf(HomeDirectory, "Levels\\%s", MapName);
Code:sprintf(HomeDirectory, "Levels\\Dropbox\\Survive\\Levels\\%s", MapName); // Dragonttk
Anyways that's it pretty easy enjoy hf.


Reply With Quote![[Tutorial] Team map editing](http://ragezone.com/hyper728.png)

