3.7 KiB
3.7 KiB
Project Zomboid Build 42 Mod Handoff
Current State
- Desktop Git project:
C:\Users\Ben Fisher\Desktop\MyRandomMusicMod(the folder name is historical). - Install/upload copy:
%UserProfile%\Zomboid\Workshop\WorldAtmospherePack. - Git
maintracksorigin/main. The initial mod commit was4a2c215(Add Build 42 World Atmosphere Pack mod), verified pushed on 2026-10-20; checkgit log -1for the current HEAD. - Remote:
https://git.sup760.us/steav310/Project_Zomboid_Random_Music_Mod.git. - Workshop listing name and in-game mod name:
World Atmosphere Pack; mod ID:WorldAtmospherePack. The neutral name is intentional for a friends-only prank. workshop.txthasvisibility=1(friends-only template). There is no known Steam Workshop item ID or confirmed upload yet.
What It Does
Contents/mods/WorldAtmospherePack/42/media/lua/client/WorldAtmospherePack.luaschedules one random song per client 30-60 real-time minutes after joining and again 30-60 minutes after the previous song finishes. It does not synchronize playback among players or emit world sound.Contents/mods/WorldAtmospherePack/42/media/scripts/WorldAtmosphereSounds.txtdefinesWorldAtmosphereCuewith 15 random clips undermedia/sound/WorldAtmospherePack/track1.oggthroughtrack15.ogg.- Playback uses the UI emitter, explicitly sets each instance to 2D, and updates its volume from
getCore():getOptionMusicVolume() / 10once per second. While a custom song plays, it temporarily mutes the native music mixer withgetSoundManager():setMusicVolume(0)and restores it to the current slider value when the song finishes or the player returns to the menu/disconnects. - The bundled tracks are Ogg Vorbis, 44.1 kHz stereo, 192 kbps nominal (about 193 kbps actual average).
preview.pngis 256x256. The user confirmed permission to redistribute both audio and artwork.
Tested And Caveats
- The user play-tested random playback, spacing without back-to-back starts, responsive Music-slider control, 2D sound, and native music muting on their Build 42 installation. The renamed mod identity was not separately play-tested after the rename; it should be enabled as
WorldAtmospherePackin the game or save's mod settings. SoundManager:StopMusic()does not silence Build 42'sMusicCombinedFMOD event. The working approach mutes its music VCA while custom audio plays. Do not restore the earliersoundManager.allowMusic = falseexperiment: assigning a Java field in this Lua context threwattempted index of non-tableand skipped the 2D call.- The Desktop source and local Workshop install are separate copies; editing one does not update the other. Keep them in sync before uploading or committing. Both currently use the production 30-60 minute interval; prior quick tests used 1-2 minutes only in the installed copy.
- The Git repository's URL explicitly mentions random music. If friends can browse the Git server, that URL could reveal the prank despite the neutral Workshop title.
Remaining Steps
- Confirm the renamed mod loads in-game and still plays normally. The 30-60 minute interval is configured in both copies; temporarily shorten only the installed copy for quick tests and restore it afterward.
- Upload
%UserProfile%\Zomboid\Workshop\WorldAtmospherePackthrough Project Zomboid's Workshop UI, retain the numeric Workshop ID, and choose the desired listing visibility. SeeSETUP.txtfor details. - Add
WorkshopItems=<numeric ID>andMods=WorldAtmospherePackto the private server'sZomboid/Server/<servername>.ini(semicolon-separate existing values), restart the server, and verify a friend receives the Workshop download.
This handoff was written after the initial mod commit. Check Git status and log for any changes made since this snapshot.