Project Zomboid

Project Zomboid

[B42] Background Framework
76 kommentarer
DOgeboii2 13. juni kl. 5:45 
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. maj kl. 10:42 
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. kl. 3:13 
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. kl. 7:54 
Feel free to modify the page as needed, clarify points or add more to it
Sir Doggy Jvla 9. mar. kl. 7:53 
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. kl. 15:39 
The main menu changes to a black screen when I use my direct custom image, the default ones work fine.
TacticalKitten 27. feb. kl. 15:33 
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. kl. 0:48 
最近遇到画面闪烁的问题 不知是不是原版还是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. kl. 0:28 
Alright, I'll try to tinker with it to possibly add this functionality in
UnCheat  [ophavsmand] 30. jan. kl. 16:35 
Nope. Out of the game for now.. so may be later after 42 stable
Sir Doggy Jvla 30. jan. kl. 14:46 
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. kl. 7:52 
UnCheat  [ophavsmand] 30. jan. kl. 7:22 
Well that's a game API problem not a mods then...
Dark Thoughts 30. jan. kl. 6:38 
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  [ophavsmand] 30. jan. kl. 4:50 
Oh well, might be update changed something. I do not play PZ anymore for some time so can't tell..
Dark Thoughts 29. jan. kl. 4:36 
@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  [ophavsmand] 29. jan. kl. 0:09 
@Dark Thoughts
It utilizes new vanila mod options api and saves config file for all mods via api
UnCheat  [ophavsmand] 29. jan. kl. 0:08 
@Blessed Mother
Well game engine does not accept JPG files...
But any size will fit and reside to any resolution
Blessed Mother 28. jan. kl. 14:33 
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. kl. 14:30 
If someone has a 4K monitor and they use a 1920x1080p image, will that image fill their entire screen?
Dark Thoughts 28. jan. kl. 13:29 
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. kl. 15:29 
Thank you! :spiffo:
Blessed Mother 17. jan. kl. 13:59 
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  [ophavsmand] 14. jan. kl. 10:01 
@Ashadar Re'souley :steamthumbsup:
Ashadar Re'souley 14. jan. kl. 9:53 
@UnCheat alright thanks for clearing up my confusion on where to put the direct file
UnCheat  [ophavsmand] 14. jan. kl. 9:28 
Stay tuned ^_^
Sir Doggy Jvla 14. jan. kl. 9:16 
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. kl. 9:14 
Nice !
UnCheat  [ophavsmand] 14. jan. kl. 9:04 
@Sir Doggy Jvla
Thanks for the idea! It was interesting to dig it :)
UnCheat  [ophavsmand] 14. jan. kl. 9:03 
So it's currently WIP but most likely that I'll add video support to addons on a weekend ;)
UnCheat  [ophavsmand] 14. jan. kl. 9:02 
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  [ophavsmand] 14. jan. kl. 8:39 
There is also restriction to put video files on media/videos/ folder but possible to add into subfolder media/videos/direct
UnCheat  [ophavsmand] 14. jan. kl. 8:21 
It does
Sir Doggy Jvla 14. jan. kl. 8:05 
Check out the videos the game uses, if it does indeed uses that format then go for it
UnCheat  [ophavsmand] 14. jan. kl. 7:55 
Well that format is an only option to feed to java via lua :P
Sir Doggy Jvla 14. jan. kl. 7:50 
I'm not familiar with what format the videos use
UnCheat  [ophavsmand] 14. jan. kl. 7:50 
Only one not user friendly thing is .bik format, are you ok with that?
UnCheat  [ophavsmand] 14. jan. kl. 7:49 
Thanks but I don't use discord. I figured it out )
UnCheat  [ophavsmand] 14. jan. kl. 7:49 
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. kl. 7:48 
The game has native abilities to play videos in the game, I believe it was Skizot who did it
UnCheat  [ophavsmand] 14. jan. kl. 7:42 
Videos?
Interesting I'll check the possibility and performance and will add it if it's possible and reasonable :)
Sir Doggy Jvla 14. jan. kl. 6:37 
Hey, I know I had seen someone manage to have videos as backgrounds too, perhaps that could be implemented in your framework too
UnCheat  [ophavsmand] 13. jan. kl. 22:46 
@Jakób .png only. It's limited by java side
UnCheat  [ophavsmand] 13. jan. kl. 22:28 
And you've to create that "direct" folder
UnCheat  [ophavsmand] 13. jan. kl. 22:26 
steamapps/common/ProjectZomboid/direct/background.png
Ashadar Re'souley 13. jan. kl. 13:22 
do i put the direct file in "steamapps,common,ProjectZomboid"? or is that the wrong file
Coby 13. jan. kl. 10:06 
would I be able to add .gif file as a background or is it for .png only?
UnCheat  [ophavsmand] 13. jan. kl. 6:02 
Sorry for the inconvenience if you used direct game folder before, but before this framework grows up better do all right way
UnCheat  [ophavsmand] 13. jan. kl. 6:00 
Updated:
-- Direct feed changed to /direct folder
-- New multiple direct images feed possibility

Resub to force an update