• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Tutorial] Team map editing

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

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.
 
Experienced Elementalist
Joined
Oct 14, 2015
Messages
267
Reaction score
294
Nice concept, I would love to build on this idea with live editing by both/all parties
 
Back
Top