Project Zomboid

Project Zomboid

[B42] Background Framework
76 Comments
DOgeboii2 13 Jun @ 5:45am 
I made one for the Anime lovers out there, with 25 images, some already recognizable to the community Check it out!

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3498201101
RAVE--PMW 31 May @ 10:42am 
I have made a HD Main Menu Suite using this mod, please check it out here:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3490948057

Mr UnCheat thank You for this! Exactly what I needed for the Main Menu Suite :D Take my points!
QS 21 Apr @ 3:13am 
What do I do if I have black screen when choosing "direct"?
I've created the direct folder and placed the "background.png" there but it doesn't work, a black screen instead of my picture.
Sir Doggy Jvla 9 Mar @ 7:54am 
Feel free to modify the page as needed, clarify points or add more to it
Sir Doggy Jvla 9 Mar @ 7:53am 
Hello, I currently lead the Project Modding for the official wiki for the game and I made a page to document your framework for other modders to be able to easily find it:
https://pzwiki.net/wiki/Background_Framework
TacticalKitten 27 Feb @ 3:39pm 
The main menu changes to a black screen when I use my direct custom image, the default ones work fine.
TacticalKitten 27 Feb @ 3:33pm 
I am able to change the icon perfectly fine but when I go to change the background it does not work. I have all my mods disabled except this one and it still does not work. I have named it background.png
RayPlayST 26 Feb @ 12:48am 
最近遇到画面闪烁的问题 不知是不是原版还是mod造成的........喜欢你的模组 ~
Recently, I encountered a problem of screen flickering. I don't know if it is caused by the original version or a mod... I like your mod.
Sir Doggy Jvla 31 Jan @ 12:28am 
Alright, I'll try to tinker with it to possibly add this functionality in
UnCheat  [author] 30 Jan @ 4:35pm 
Nope. Out of the game for now.. so may be later after 42 stable
Sir Doggy Jvla 30 Jan @ 2:46pm 
Hey ! I used your framework to add backgrounds for my mod, which I had already done before with single mods that need to be activated, reloading the game etc and your framework is great !

We did discuss that animated main menu backgrounds are possible and I plan on making one, have you added the ability to use the .bik videos ?
Dark Thoughts 30 Jan @ 7:52am 
UnCheat  [author] 30 Jan @ 7:22am 
Well that's a game API problem not a mods then...
Dark Thoughts 30 Jan @ 6:38am 
Alright, I found the issue. Your mod (along some others) try to write into & consequently create a modOptions.ini instead of the intended ModOptions.ini. This confuses PZ and breaks the mod menu on case sensitive file systems (basically everything but Windows file systems).
UnCheat  [author] 30 Jan @ 4:50am 
Oh well, might be update changed something. I do not play PZ anymore for some time so can't tell..
Dark Thoughts 29 Jan @ 4:36am 
@UnCheat That does not answer my question. None of the mod options actually save. The moment I restart the game they're all reset to their defaults.
UnCheat  [author] 29 Jan @ 12:09am 
@Dark Thoughts
It utilizes new vanila mod options api and saves config file for all mods via api
UnCheat  [author] 29 Jan @ 12:08am 
@Blessed Mother
Well game engine does not accept JPG files...
But any size will fit and reside to any resolution
Blessed Mother 28 Jan @ 2:33pm 
Oh, also, is it possible to make it so JPG images are recognized instead of PNG? JPG file size is a lot smaller than PNG, so it would be really helpful if we can use JPG instead. :)
Blessed Mother 28 Jan @ 2:30pm 
If someone has a 4K monitor and they use a 1920x1080p image, will that image fill their entire screen?
Dark Thoughts 28 Jan @ 1:29pm 
Sorry if I missed it, but how does one save the mod options permanently so that they do not reset every time the game starts?
somewhatfrog 17 Jan @ 3:29pm 
Thank you! :spiffo:
Blessed Mother 17 Jan @ 1:59pm 
Thank you for the updates! :)

Is it possible to have the backgrounds images cycle every X seconds with a somewhat-slow fade between each image?

Also, I uninstalled my PZ game, and deleted a bunch of left-over folders, and re-installed the game, but the lightning strike still does not work for me. Maybe another mod I am subscribed to is conflicting?
UnCheat  [author] 14 Jan @ 10:01am 
@Ashadar Re'souley :steamthumbsup:
Ashadar Re'souley 14 Jan @ 9:53am 
@UnCheat alright thanks for clearing up my confusion on where to put the direct file
UnCheat  [author] 14 Jan @ 9:28am 
Stay tuned ^_^
Sir Doggy Jvla 14 Jan @ 9:16am 
I think I'll use your framework to make my addon for main menus instead of proposing one mod for one main menu, here it sounds way better for users to just have a pack of backgrounds related to my TLOU infected mod

And if you ever add video support, maybe I'll be able to fuck around with it and add animations to my clickers in the background for example
Sir Doggy Jvla 14 Jan @ 9:14am 
Nice !
UnCheat  [author] 14 Jan @ 9:04am 
@Sir Doggy Jvla
Thanks for the idea! It was interesting to dig it :)
UnCheat  [author] 14 Jan @ 9:03am 
So it's currently WIP but most likely that I'll add video support to addons on a weekend ;)
UnCheat  [author] 14 Jan @ 9:02am 
So experimenting with videos:
1. Must know perfect video resolution or it'll rended badly:
perfect: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3407481437
badly: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3407481532
2. Looks like game supports .bik and .bk2 video formats

1st issue is not bad for addons where width and height could be set explicitly via api but is abd for direct where we can workaround it with adding image(screenshot or empty) of video with perfect sizes as video
UnCheat  [author] 14 Jan @ 8:39am 
There is also restriction to put video files on media/videos/ folder but possible to add into subfolder media/videos/direct
UnCheat  [author] 14 Jan @ 8:21am 
It does
Sir Doggy Jvla 14 Jan @ 8:05am 
Check out the videos the game uses, if it does indeed uses that format then go for it
UnCheat  [author] 14 Jan @ 7:55am 
Well that format is an only option to feed to java via lua :P
Sir Doggy Jvla 14 Jan @ 7:50am 
I'm not familiar with what format the videos use
UnCheat  [author] 14 Jan @ 7:50am 
Only one not user friendly thing is .bik format, are you ok with that?
UnCheat  [author] 14 Jan @ 7:49am 
Thanks but I don't use discord. I figured it out )
UnCheat  [author] 14 Jan @ 7:49am 
Ok there is a format called .bik and it could be rendered frame by frame (every background render call)
So it's possible
Sir Doggy Jvla 14 Jan @ 7:48am 
The game has native abilities to play videos in the game, I believe it was Skizot who did it
UnCheat  [author] 14 Jan @ 7:42am 
Videos?
Interesting I'll check the possibility and performance and will add it if it's possible and reasonable :)
Sir Doggy Jvla 14 Jan @ 6:37am 
Hey, I know I had seen someone manage to have videos as backgrounds too, perhaps that could be implemented in your framework too
UnCheat  [author] 13 Jan @ 10:46pm 
@Jakób .png only. It's limited by java side
UnCheat  [author] 13 Jan @ 10:28pm 
And you've to create that "direct" folder
UnCheat  [author] 13 Jan @ 10:26pm 
steamapps/common/ProjectZomboid/direct/background.png
Ashadar Re'souley 13 Jan @ 1:22pm 
do i put the direct file in "steamapps,common,ProjectZomboid"? or is that the wrong file
Coby 13 Jan @ 10:06am 
would I be able to add .gif file as a background or is it for .png only?
UnCheat  [author] 13 Jan @ 6:02am 
Sorry for the inconvenience if you used direct game folder before, but before this framework grows up better do all right way
UnCheat  [author] 13 Jan @ 6:00am 
Updated:
-- Direct feed changed to /direct folder
-- New multiple direct images feed possibility

Resub to force an update