Project Zomboid

Project Zomboid

PZ Backup Manager
63 Comments
Taiwanenes 5 Aug @ 9:28am 
Thanks. I always thought the option was in ZomboidBackupManager.exe ^_^
TechnoTim  [author] 5 Aug @ 4:44am 
Just turn off this option in the menu "Every day at 0:00h"
Taiwanenes 5 Aug @ 12:59am 
How can I set it to not save at 12:00 AM? I can't sleep.
TechnoTim  [author] 2 Aug @ 12:02am 
All this I have planned to explain via images and text on a pdf or so.
But as not all features are finished by now and may change in the future, I will do this properly when v1.0.0 is released.
But thanks for explaining, what isnt clear or is self explaining, aswell as you idea to create an instruction video. That helps me make things more userfriendly, which without feedback would be almost impossible. :D
TechnoTim  [author] 1 Aug @ 11:53pm 
then the icons are working as intended. The images arent matching 100% the latest version. (Because the mod is work in progress & I m to lazy to replace the screenshots every update ^^)

if you want the silver icon style, you can just switch to it.
To select the alternativ iconset:
1. Open Radialmenu
2. Select the option "Settings"
3. Then select the option "Radial Menu Settings"
4. Next select the option "Textures"
5. And last step: Select the top right option "Texture Set V2"
TechnoTim  [author] 1 Aug @ 11:46pm 
Ah and I forgot to explain:
The content of the .zip should be a folder "PZBackupManager."
Just put it where you want to. For testing you could just put the folder on you desktop.
then you can eiter open the folder and click the ZomboidBackupManager.exe, or right click it -> create shortcut. The created shortcut you can place on your e.g. desktop.
Ryan 1 Aug @ 11:44pm 
yeah I managed to figure it out. another thing I'm not sure if it's a bug the icons of radial menu ingame don't seem to match the one in screenshot. they are kind of reddish & the bottom left what seems to be question mark in screenshots doesn't have an icon in game. pressing it does nothing either
TechnoTim  [author] 1 Aug @ 11:40pm 
If you still wont get it to work or encounter other problems, you are welcome to ask for more help as much as you want. :)
TechnoTim  [author] 1 Aug @ 11:40pm 
To use the mod with the app, as I said, follow the install instructions. Then you need to start the ZomboidBackupManager.exe and select your gamemode you are playing, as well as the savegame you're playing. (All on the left side of the window)
Note : Project Zomboid can run while you do this, but dont need to. It just doesnt matter until this point. So if its not running, start project zomboid and load your game.
To use the hotkey function, click "Connect" in the top right of the manager app.
A smaller window shows up and a label, that should show your savegames name, if not, select it in the dropdown menu. If its correctly selected, hit the "Start Tracking" button & just minimize the manager app (it will add as a small icon to your taskbar, like e.g. steam does).
When you now trigger the backup hotkey ingame, it should create a backup , instead of showing errors.
TechnoTim  [author] 1 Aug @ 11:39pm 
Yes you are absolutely right, that a instruction or a video would be helpful, but my plan was to add detailed instructions, when the app and mod are feature complete. Until then, I added a step by step instruction, you can find right above this comment area.
Ryan 1 Aug @ 10:02pm 
also it's not clear if I have to manually run the exe then start pz? and do I have to keep it running the whole time? a little more clear instructions would be helpful. perhaps a video
Ryan 1 Aug @ 9:59pm 
@TechnoTim 42.10 shows error backup failed backup manager not responding. Am I supposed to put the downloaded zip to a specific folder or something? That part isn't clear where do I put the zip's contents.
TechnoTim  [author] 27 Jul @ 9:42am 
Thank you even more for your comment. I appreciate your review, as well as you like the mod :D
Commandos 25 Jul @ 8:14pm 
Thanks a lot! You are the best!:steamthumbsup:
Violence Enjoyer 22 Jul @ 11:39am 
I remember asking if this was possible and a bunch of coding people told me I was retarded and lazy
NomNomMaki 17 Jul @ 2:36am 
Ah that makes sense, cause it was working at one point, and then stopped. I'm on 42. :) To test / confirm I'll start from clean and report back. :D
TechnoTim  [author] 16 Jul @ 6:20pm 
Thanks for your detailled report and your kind words. ;)
At first, it is intentional, that the media folder hasn't got the same content as the 42 > media.
The PzBackupManager > media folder is just for compatibility with build 41. As the most content of mod requires stuff from build 42, I had to cut basically everything from the mod to make it barely work with build 41.
Are you on 41 or 42?
If you are on 42 & have similar issues again (or if someone else is having similar problems) try to delete the directory and all files in it @ %USERPROFILE% > Zomboid > Lua > PZBackupManager , as well as this file: %USERPROFILE% > Zomboid > Lua > PZBaManagerHook.ini
Anyway, I'm sorry about that confusion about the new version etc. I hope it is working now properly. ^^
NomNomMaki 16 Jul @ 12:22pm 
The errors just fyi:
```
WARN : Lua f:0, t:1752691877189> LuaManager$GlobalObject.require > require("shared/BackupManagerTimer") failed
WARN : Lua f:0, t:1752691877189> LuaManager$GlobalObject.require > require("BackupManagerWarningUI") failed
WARN : Lua f:0, t:1752691877189> LuaManager$GlobalObject.require > require("BackupManagerInfoUI") failed
LOG : Lua f:0, t:1752691877189> appVer=2505.15 / minAppVer=2505.12
WARN : Lua f:0, t:1752691877190> LuaManager$GlobalObject.require > require("BackupManagerConfig") failed
WARN : Lua f:0, t:1752691877190> LuaManager$GlobalObject.require > require("BackupManagerConfig") failed
NomNomMaki 16 Jul @ 12:22pm 
Thanks, grabbed the old version of the app, but still had an issue. So dug into it a little: it was throwing an error basically saying it couldn't find the `BackupManagerTimer.lua`. When I checked the mod contents, the initial media folder (PzBackupManager > Media) doesn't have the same contents as the PZBackupManager > 42 > Media folder. And it didn't have that particulate .lua file in the lua > shared folder. So I copied the Media folder from 42 > and pasted over the other media folder.
Now the tracking from the app works, and the connection tests from the mod options (and of course the shortcut) work and go through. \o/ So, you might want to double check the files on your end and push a new version of the mod so both media folders are the same.

Also, thanks for making this. After a brutal and unjustified death the other night I went down a backup save rabbit hole! So this is awesome. :D
TechnoTim  [author] 15 Jul @ 10:01pm 
Which version of App do you have installed? In case you downloaded the latest version (v0.6.0), download this version Download [github.com]
The latest version requires an update of this mod, which isn't yet finished. ^^
NomNomMaki 15 Jul @ 3:42pm 
anyone else getting an error when trying to save: backup manager not responding. (Backing up via the desktop mod works fine, and the connection is tracked).
TechnoTim  [author] 3 Jun @ 9:29pm 
Alright, that sounds nice. But this will need some time. I dont have a linux install ready right now, I wan't to finish or at least "feature complete" the manager & I dont even know anything about Linux right now. ^^
If you can't wait until then, feel free trying it yourself. All source files are on github. :)
Ryan 3 Jun @ 9:13pm 
there's also mono for dotnet alternative but with similar functionality all u have to do it support it
Ryan 3 Jun @ 9:11pm 
dotnet does have native linux version maintained by microsoft.
TechnoTim  [author] 3 Jun @ 9:10pm 
Unfortunately not. As I'm pretty new to coding, i chose to work with Microsoft's .Net Framework, which is windows only. Further, the application currently still is in beta or wip.
But I will look into it within the next days. If it is surprisingly easy to get it to linux, I'll do it.
But I expect a lot of rewriting & learning about linux. ^^
Ryan 3 Jun @ 12:22pm 
No linux version?
Johnson1893 3 Jun @ 1:57am 
Thank you sir! o7
Works now.
You're the best!
TechnoTim  [author] 2 Jun @ 7:33pm 
Done for now. It should barely work now, which means, you will be able to use the hotkey function on build 41, nothing more for now. That means also, you won't recieving any notifications when hitting the hotkey. But if the manager is running and connected correctly, the backup process will be executed as normal, just silently. Of course you can check if a backup was successfully made, by taking a look on the manager app.
For now, you just have an option in the menu to "Enable/Disable" the hotkey and a change hotkey option in the general keybind section. Further, if you are on b41, you'll need to install the mod Mod Options (Build 41) Workshop ID: 2169435993.
TechnoTim  [author] 2 Jun @ 3:28pm 
Got it. Can't promise anything, but I will try. :)
Johnson1893 2 Jun @ 2:12pm 
Renaming to 41 does nothing, the mod was not appears in the mod menu. Upgrading to 42 is not an options, cuz a LOT of mods does not updated yet. Could your please add 41 support?
TechnoTim  [author] 30 May @ 4:57pm 
Sorry for the late response.
You'll need to update your game at least to build 42. (42.xx.xx)
Then it should load properly.

If you don't want to, you could try renaming following folder:

SteamLibrary\steamapps\workshop\content\108600\3453009151\mods\PZBackupManager\ 42

To:

SteamLibrary\steamapps\workshop\content\108600\3453009151\mods\PZBackupManager\ 41

But I don't know if that would work...
I highly recommend updating to b42!
sacha16 28 May @ 3:43pm 
hi, great mod but i can't load it to the game. The mod is present in mod steam mods folder but i can't see it in the mod list.
I'm on 41.78.16.
These are the mods in my default.txt:

VERSION = 1,

mods
{
mod = EQUIPMENT_UI,
mod = qdx_item_condition,
mod = ProximityInventory,
mod = SmarterStorage,
mod = ETO_Quality_mode,
mod = BB_FirstAidOverhaul,
mod = grasslands,
mod = BB_Foraging,
mod = BION_PlainMoodles,
mod = SpnCharCustomDetailsHD,
mod = SpnCharCustomDetails,
mod = SpnCharCustom,
mod = SpnCharCustomFaces,
mod = VanillaGearExpanded,
mod = BB_WhereAmI,
mod = BB_CommonSense,
mod = OpenAllContainers,
mod = MoreDamagedObjects,
}

maps
{
}

If i manually add pzbackup manager the file get overwritten and the line deleted.
The game is on C:
Any ideas? Thanks you.
pimatstudio 26 May @ 6:25am 
I've no idea what cloud saving may even be so probably not :P And I'll try to restore a backup while in main menu, I actually figured that you'd rather want to have the game closed during the restore, to avoid potential interference, but maybe it's the opposite since you're suggesting it? Like I said, I may not have read it specifically and it just felt like the game should be closed rather than open.
... Aaaand it worked this time! So either A: I never read the proper instructions to be in main menu whilst restoring backup. B: It was a random bug.
In both situations though, it's still a feedback so there you go and thanks for your help too!
TechnoTim  [author] 25 May @ 3:44pm 
Do you have cloud saving or something enabled? Try to restore the savegame, without closing the game. Just restore while in the main menu and load it after completion.
pimatstudio 25 May @ 2:46pm 
Hey, it's me again ;) Today I wanted to load my backup for the first time. And it kinda didn't work, so I'm wondering if I did something wrong or what. Here's what happened.
I clicked on the "restore" button having highlighted both the appropriate savegame on the left and the desired backup on the right. It said it went OK, so I launched the game and clicked on the "Load" option to see if the thumbnail is matching the backup that I requested. And it did. So it seemed to be going fine. But then I entered it and when the game loaded, it got me to the last save, not to the backup.
It wasn't a life or death situation, fortunately. I got mad because pigs (literally pigs) had destroyed my freezer and rain collector (apparently that's what they do), and I wanted to jump back to the morning that day before I decided to let them loose in my base. Ended up rebuilding the stuff and locking the pigs in their room
TechnoTim  [author] 17 May @ 8:31am 
That's good to hear. :D
pimatstudio 16 May @ 12:45pm 
Scratch that, I'm an idiot and haven't launched the tracker, on the other hand it wasn't that obvious since I admit I barely read the instructions. Users normally don't do that, so if smths important, then it's good to shout :D
TechnoTim  [author] 16 May @ 11:33am 
Alright I need to look into that.
On your picture: Is that the main window or the script hook window, which is like "minimized"
If it is the script hook window:
Do you have the option "Add to taskbar" enabled or disabled?
pimatstudio 16 May @ 10:45am 
Then I tried to minimalize it and come back to play to see if it's working. But when I minimalised it, it didn't disappear but went in the corner of the screen to hide in a funny way [imgur.com].

So just to be safe, I completely rebooted my machine, set everything up again, went in-game, and... still says that it's not responding. Oh actually everything's happening again the same way,
pimatstudio 16 May @ 10:45am 
I've got another bug to report :)
So first of all I wanted to start using the mod itself so I set everything in mod options, including daily backups, but come time, it said it was attempting to backup my save, then it said there was an error and the backup wasn't created cause the manager was not responding.
So I looked on my taskbar and it wasn't open indeed. I launched it, but it said that an instance is already running (so why wasn't it responding?). Since I was confused, I opened ctrl+alt+del and looked a little and there was a process in fact. I right clicked and chose to go to it, and it magiacally appeared on my screen out of nowhere...
TechnoTim  [author] 15 May @ 2:52pm 
Yes, I get the same warning every time I test a release as well. -.- I'm not sure, how & if I will be able to remove that. I will look into stuff like this, when the program is almost at version 1.0.0. ^^

And yes, I already have planned exactly what you mentioned. ;D.
pimatstudio 15 May @ 1:17pm 
Oh, and just so you know, windows does warn [imgur.com] about potential security breach when running your program for the first time (on each new version downloaded).

Thank you for fixing the problems quickily. On a sidenote, I'd consider adding some statistics to the backups as a little boost to the UX, like for example time played, zombies killed, etc. :) your call.
TechnoTim  [author] 15 May @ 9:42am 
oh man... I'm sorry for that, even you said it's not a big deal. :/ I'm curious how that could happen... At the moment, Im working on a custom debug log, which when done, should at least make it possible to trace back those mysterious fails... ^^
I hope 0.0.62 works at least without loosing data or similar. :S
pimatstudio 15 May @ 9:25am 
You're welcome ;)
OK, now I've not yet downloaded the updated version, but now I'm going to update it right away since I see what you might have meant, all of a sudden all of my backups are gone, null, zero. And I did absolutely nothing, no changing the backup folder, nada. That's not a big deal, since them just backups after all :P Made another one right away.

Programming is incredibly frustrating, that one's for sure. I know sth bout it.
TechnoTim  [author] 14 May @ 6:13pm 
Again, thank you for reporting and your kind words in your first post.
I'm sorry that it took that long, but while I investigated the issue you mentioned, I found another, major problem, I don't want to talk about anymore for now :P
Long story short: I (hopefully) managed to solve that issue, as well as the one you reported!
Download is out now.
Version v0.0.62: Download Here [www.github.com]
pimatstudio 14 May @ 9:54am 
one more thing though :P When creating backup nr x, the splash screen indicated there was created backup no. x-1 when indeed the created backup is correctly marked as x
TechnoTim  [author] 14 May @ 12:45am 
Thank you for reporting :)
Hotfix is out. I hope it works now properly. ^^
Download Here [www.github.com]
pimatstudio 13 May @ 11:17pm 
Chapeau Bas!! You indeed now ARE a programmer, or at least a coder. I call myself a programmer even for the sheer fact of knowing the holy web-dev trinity and now also lua thanks to coding my first mod (hope you like it!)

Anyways, there's a problem with your program, here lemme show you [imgur.com] - that's how it looks like on my machine. Happy to help! Good luck onward!
TechnoTim  [author] 22 Apr @ 2:03pm 
Are you sure, you have this mod enabled in your playthrough & not only in the main menu?
That can happen pretty easy when adding a mod to an existing game the wrong way, which even I do sometimes wrong.
You can check easily if a specific mod is definetly loaded in your current playthrough by loading your game as normal, pressing esc to enter the pausemenu & then clicking on the little button at the bottom right ("mods").
Now check, if "PZBackupManager" is present in the list. If it is, I will continue to investigate.
Van Gaming 22 Apr @ 12:22pm 
It works fine to backup during the game, I just can't use the Hotkey (just minimize the game and run from the ZomoidBackup program). Perhaps it is build 42, perhaps it is just me. Either way, it works well enough, thanks for the mod and responses!