1. Hey, how would you be able to make a map go to a older version of it.
    Example: Map1(Being in use), Map2(Backuped map, where it will be coped and the restarted to use a defaulted map by coping it over)

    Because, I want it to never save peoples crap on the world.

    Please don't give me, "why should you do this?"
    Thanks!
    [DOUBLEPOST=1451439482][/DOUBLEPOST]Basically it resets after restart.
    [DOUBLEPOST=1451440401][/DOUBLEPOST]If it involves coding it, which most likely it will... I'm using lua, and that's the only language i can use on the server. or my server glitches up.
     
  2. So you want to wipe everything when you restart your server?
     
  3. Yes. I like to do a complete wipe every time the server restarts. And maybe even better loading a existing backup map automatically. And the server automatically backs up a new one before any players join.
     
  4. You can do it with a batch script

    Save your desired defaut save as autosave_DiemensLand.plr.backup and autosave_DiemensLand.wld.backup
    using oxide default batch it would be something like (not tested):
    Code:
    @echo off
    cls
    :startxcopy autosave_DiemensLand.plr.backup autosave_DiemensLand.plr /-Y
    xcopy autosave_DiemensLand.wld.backup autosave_DiemensLand.wld /-Y
    Hurtworld -batchmode -nographics -exec "host 12871;queryport 12881;maxplayers 10;servername My Oxide Server"@echo.
    @echo Restarting server...
    @echo.
    goto start
     
  5. Thanks, let me try that out. I will need to change some of it, to work with the Rust server.
    But thanks!
    [DOUBLEPOST=1451442362][/DOUBLEPOST]That is a awesome way to temporary setup that problem. But I like setup it in lua, so it automatically works. But also works on company hosted server.
    and not just home hosted server.
     
  6. oohh sorry, don't know why i was thinking it was posted in the Hurtworld forum. but i guess you got meaning of it

    The files you need to restore are:
    \server\id\UserPersistence.db
    \server\id\Storage.db
    \server\id\save\Procedural Map_xxxx\0.sav

    edit: I don't think it would be possible to do this with an oxide script, since it might not have the permissions to manipulate theses files and server is locking theses files at launch, but i might be wrong
     
    Last edited by a moderator: Dec 30, 2015
  7. Yeah..
    But i kinda ran into an issue, File isn't there where the .bat is. So.. it can't grab and go, and i haven't messed with batch for a long time..
    Would i do:
    Code:
    xcopy %CD%/server/myidentity/save/Mapbackup %CD%/server/myidentity/save/Map /-Y
    
    Something like that?
    [DOUBLEPOST=1451442913][/DOUBLEPOST]Hm
    Idea.
    Code:
    erase %CD%/server/id/save/Map
    erase %CD%/server/id/Storage.db
    erase %CD%/server/id/UserPersistence.db
    
    Sense it builds it, why doesn't it cover restoring huh?
     
  8. this should work, just tested
    Code:
    xcopy "%~dp0server\Kortal\save\Procedural Map_6000_8008135\backup.sav" "%~dp0server\Kortal\save\Procedural Map_6000_8008135\0.sav" /y
     
  9. Ah
    Thanks
    [DOUBLEPOST=1451443960][/DOUBLEPOST]So...
    I put:
    Code:
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\0.sav" "%~dp0server\id\save\Procedural Map_4000_12345\0.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\1.sav" "%~dp0server\id\save\Procedural Map_4000_12345\1.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\2.sav" "%~dp0server\id\save\Procedural Map_4000_12345\2.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\3.sav" "%~dp0server\id\save\Procedural Map_4000_12345\3.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\4.sav" "%~dp0server\id\save\Procedural Map_4000_12345\4.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\5.sav" "%~dp0server\id\save\Procedural Map_4000_12345\5.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\6.sav" "%~dp0server\id\save\Procedural Map_4000_12345\6.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\7.sav" "%~dp0server\id\save\Procedural Map_4000_12345\7.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\8.sav" "%~dp0server\id\save\Procedural Map_4000_12345\8.sav" /y
    xcopy "%~dp0server\id\save\Procedural Map_4000_12345_backup\9.sav" "%~dp0server\id\save\Procedural Map_4000_12345\9.sav" /y
    xcopy "%~dp0server\id\UserPersistance_backup.db" "%~dp0server\id\UserPersistence.db" /y
    xcopy "%~dp0server\id\Storage_backup.db" "%~dp0server\id\Storage.db" /y
    
    But the Storage and UserPersistance didn't want to copy over, and yes i copied the files and set the names correctly, and everything is there.. its just can't find it some reason.
    [DOUBLEPOST=1451443997][/DOUBLEPOST]Oh its working now, nvm.
    XD