Project Zomboid

Project Zomboid

160 betyg
[B42] Background Framework
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
5.446 MB
11 jan @ 4:53
13 jan @ 5:57
4 ändringsnotiser ( visa )

Abonnera för att ladda ner
[B42] Background Framework

Beskrivning
You can open game folder, create folder named "direct" then just drop background.png there and select it from mod options or more...

Main menu Background Framework supports
  • Single image (no more need to split image by tiles)
  • Images will resize, fit and center perfectly at any resolution
  • Any resolution (like ultrawide 3440x1440 or even 4k too)
  • Bonus vanilla image for ultrawide resolution (select it from mods options)
  • Optional lightning image
  • Vanilla like lightning transition (optional, active only if second image provided)
  • Mod menu drop list to select background on the fly (select + apply = done)
  • Image resolution details on drop list items (easy select by your resolution)
  • Possibility to use mulltiple addons to select a background from
  • Select logo: default or none (hide logo)
  • Optional backgrounds randomize (respects aspect ratio of selected background)
  • Optional logo randomize
  • Addons can add custom logos on a list
  • Direct image feed from ProjectZomboid folder (details below)

Direct image feed
Open ProjectZomboid game folder, create folder named "direct" and copy images into it so framework will find them.

How to open game folder:


Make sure that:
  • You created and put files in main game folders /direct sub folder ( ProjectZomboid/direct )
  • Images are .png type (format)
  • Main image is named: background
  • (optional) If you have lightning image you can add image named: background_lightning
  • (optional) if you have logo image you can add image named: logo
  • Make sure logo image sizes are 697 x 456 or menu could be shifted by logo
  • Open Game options -> MODS and select "Direct" image from drop menu
For multiple direct images rules are similar but:
  • Name background files with number at the end (example: background1, background2)
  • (optional) Name background lightning files with accordingly and number after "background" but before "_lightning" (example: background1_lightning, background2_lightning)
  • (optional) Name logo files with number at the end (example: logo1, logo2)
  • Note that files are checked by number one by one ...1,...2,...3 if you skip this order by 10 or more further files won't be read (example with names logo1, logo5, logo16: only logo16 won't be found by framework)
Example:

Full path example: D:/Steam/steamapps/common/ProjectZomboid/direct/background.png

Addons (for content creators)
Here is an example mod how to add one or multible backgrounds via lua
Background Framework Example
If you copy an example make sure that:
  • You changed folders name
  • You changed media/lua/client/backgroundFrameworkAddon.lua to another unique name
  • You changed mod id and name on 42/mod.info
  • You can use your poster.png and preview.png
  • Adding lightning image is optional
  • Add required item on a steam page
  • Put images into media/ui/backgrounds/
  • Use unique file names like ModId_something
The lua part for background addons is simple
Backgroundspictures should be on media/ui/backgrounds/
backgroundFramework:addBackground("DisplayName", "PictureFileName", "PictureFileNameForLightning") -- or if you don't have lightning image variation backgroundFramework:addBackground("DisplayName", "PictureFileName")

The lua part for logo addons
Logo pictures should be on media/ui/logos/
backgroundFramework:addLogo("DisplayName", "logoFileName")

Addons list
  1. Girl background [ultawide]
  2. BM Ultimate Custom Background
  3. Lily's Journal
  4. [BFW] Kirok's Backgrounds add-ons

Incommiiing (future plans)
  • Video background support (limited by .bik and .bk2 formats game does support)

My other mods:



Workshop ID: 3405199543
Mod ID: backgroundFramework
Populära diskussioner Visa alla (2)
24
18 jan @ 8:48
Errors report
UnCheat
4
30 maj @ 6:47
Suggestions
UnCheat
76 kommentarer
DOgeboii2 13 jun @ 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 @ 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 @ 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 @ 7:54 
Feel free to modify the page as needed, clarify points or add more to it
Sir Doggy Jvla 9 mar @ 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 @ 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 @ 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 @ 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 @ 0:28 
Alright, I'll try to tinker with it to possibly add this functionality in
UnCheat  [skapare] 30 jan @ 16:35 
Nope. Out of the game for now.. so may be later after 42 stable