[Tutorial] Team map editing

Results 1 to 2 of 2
  1. #1
    Harro Syxn is offline
    MemberRank
    Mar 2013 Join Date
    767Posts

    [Tutorial] Team map editing

    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

    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.


  2. #2
    Account Upgraded | Title Enabled! GetRektBambi is offline
    MemberRank
    Oct 2015 Join Date
    268Posts

    Re: [Tutorial] Team map editing

    Nice concept, I would love to build on this idea with live editing by both/all parties



Advertisement