#Mod Tools

1 messages ยท Page 1 of 1 (latest)

minor cobalt
#

breakdance If one of the posted links helped you in any ways please react to that post. breakdance
glytch3r_old glytch3r_new

check out mod resources for more links
#1070852229654917180 message

#
GitHub

Community API is a team effort to centralize & give mod creators optimized tools for creating quality mods. - GitHub - Konijima/PZ-Community-API: Community API is a team effort to centraliz...

GitHub

Project Zomboid Community Modding. Contribute to Project-Zomboid-Community-Modding/pz-community-modding development by creating an account on GitHub.

minor cobalt
minor cobalt
#
minor cobalt
minor cobalt
minor cobalt
minor cobalt
#
minor cobalt
minor cobalt
minor cobalt
minor cobalt
minor cobalt
minor cobalt
#

Glytch3r's Photoshop Action For resizing Icons:
(just select the thing you want to resize then click on the action)

minor cobalt
#

Mod Tools

minor cobalt
minor cobalt
lilac acorn
#

function to nice view print for java arrays/lua tables (just to use advance_print instead default print)

local tbl = {
    ["abc"] = {
        true,
        123,
        ArrayList.new()
    },
}

local array = ArrayList.new()
array:add(tbl)
array:add("abc")
array:add("blah")

advance_print({true, false, 777, array})
--[[ output
{
    1  =  true,
    2  =  false,
    3  =  777,
    4  =  [
        1  =  {
            abc  =  {
                1  =  true,
                2  =  123,
                3  =  [
                ],
            },
        },
        2  =  "abc",
        3  =  "blah",
    ],
}
]]
minor cobalt
minor cobalt
minor cobalt
inner cloud
paper wyvern
#

to get tileset name, you need to open and count
example: appliances_com_01_32

paper wyvern
#

basic 101 2d art

tiles: step by step 10 that any newones of #mapping must see,
want to place a png as a tile in game?

item sprite or radial icons:
if is an item sprite (used in item world, item inventory, or in radial items) doesnt need this 10 steps, just place png inside texture folder and use it on code by getTexture(path_to_your_yourpngfile)

#mapping message

https://pzwiki.net/wiki/New_Tiles

minor cobalt
minor cobalt
paper wyvern
inner cloud
paper wyvern
minor cobalt
#

The result will be a dynamic timestamp that displays differently for everyone based on their own timezone.

inner cloud
minor cobalt
#

Nice dark theme

minor cobalt
#

removed

#

thnx

minor cobalt
minor cobalt
minor cobalt
#

Bypass Fragmotion Limitations:
Glytch3r's Anti Prayer tool


Bypass Fragmotion's trial requirements 
fragmotion asks us to word by word type a prayer
which is pretty lengthy and takes so much time

use this tool by running it
then click on the textbox
wait for the countdown 
then violla it will type the thing for you
I hope this helps the mod community

if it doesnt work then you might need to install autohotkey

source code to show the file is clean


#SingleInstance, Force
Process,Priority,,Realtime

msgbox, from Glytch3r to PZ modding community
msgbox, after closing this window tap on fragmotion text box
tooltip, 3
sleep, 1000
tooltip, 2
sleep, 1000
tooltip, 1
sleep, 1000
tooltip
SendInput, {Backspace}
SendInput, {Backspace}
SendInput, {Backspace}
SendInput, {Backspace}
SendInput, {Backspace}
SendInput, {Backspace}
SendInput, {Backspace}
tooltip, 3
sleep, 500
tooltip, 2
sleep, 500
tooltip, 1
sleep, 500
tooltip
sendinput, Ourfatherwhoartinheavenhallowedbethynamethykingdomcomethywillbedoneonearthasitisinheavengiveusthisdayourdailybreadandforgiveusourtrespassesasweforgivethosewhotrespassagainstusandleadusnotintotemptationbutdeliverusfromevilforthineisthekingdomandthepowerandthegloryforeveramen

exit
paper wyvern
#

it is a fast-load map, it loads 3.9 seconds (ยฑ0.39) vs (without mod) 7.1 seconds (ยฑ1.323) in vanilla map
with this map version 1, it runs x1.82 (ยฑ2.01) faster than vanilla

i get this numbers with this specs, expect better numbers on yours
loading time on my 8gb ram, i5, no video card, laptop, no ssd, windowned, on existing save,

i release a map to speed up development overall and high usage effectiveness to MP mods, because it speeds up restarts from client and server, for debugging purposes

Lightweight Map for Debugging
https://steamcommunity.com/sharedfiles/filedetails/?id=2953622735

minor cobalt
minor cobalt
minor cobalt
minor cobalt
minor cobalt
#

Glytch3r's Lua File Registry:
run this on your windows pc to add lua on the "New" tab
this will save time whenever you need to create a lua file. instead of changing a txt file or save as .lua
its just a way to speed things up

minor cobalt
inner cloud
#

Cloud decompiler for Java classes, so you don't have to suffer with gradle, IntelliJ, Eclipse, and other awful Java tools JUST to look at source code.
http://www.javadecompilers.com/

minor cobalt
inner cloud
#

To have the ability to compile PZ java class files, you need the javac compiler from Azul Zulu OpenJDK 17, which is not included with Project Zomboid
Official site for download: https://www.azul.com/downloads/#zulu

minor cobalt
minor cobalt
ivory sun
#

Well in a near future, it's not ready for testing really

languid hull
willow patio
#

found it

mortal widget
#

Is there a Windows version with .exe file to run the programs ๐Ÿ˜„ ?

#

And another question - I'm looking for this program, anyone knows where i can find it?

languid hull
minor cobalt
minor cobalt
minor cobalt
stoic quarry
#

Hey!
Since there is no channel for publishing programs for the game, I found this thread! ๐Ÿ™‚
Project Zomboid Mod Updater/Downloader 1.1.3
Instructions:

  • download and extract the archive preferably into your PZ installation folder.
  • if "mods" folder doesn't exist (weird...) in your PZ installation, do create it.
  • if C:\Users\yourusername\Zomboid\Mods folder doesn't exist, please run the game once just to create the settings environment.
  • run with PZModUpdater.exe
  • minimum screen resolution required 1600x900

Update 1.1.4:

  • updated SteamCMD executable.
  • adapted to Project Zomboid Build 42 which changed mod package structure.
  • some code refactoring, adjusting messages, comments and such.
  • no need to remove examplemod folder manually, it's automatically being removed now.
  • choosing game path now relevant for something, although mods folder still hardcoded. (it shouldn't be changed anyways if you placed in PZ install folder)
  • fixed old/obsolete sub mods not being removed after downloading/updating mods.

If you have any feedback/bug reports/good vibes, do tell and share...
https://drive.google.com/file/d/1_yCDaG3yRhWBo6Vdz6LH6rz8PJCUjs4S/view?usp=sharing

hollow stratus
stoic quarry
#

Hey, do share the log.txt file

hollow stratus
stoic quarry
#

not the right one, it's log.txt in the same folder where my program exe is

hollow stratus
#

Tested and tried to update 2 mods again (one is a vehicle mod, another one is a map mod), but it seems like any updated mod still doesn't appear in B42's mod list

stoic quarry
#

uhh, the mod is fine... and parsed fine... you know it's for B41 right?

#

same with the map mod

#

those mods are for B41

hollow stratus
stoic quarry
#

๐Ÿคทโ€โ™€๏ธ

#

you could do it yourself, simple as creating two folders, "41" and "common", and moving all the files to folder 41.

#

but, if the author didn't update the mod for b42, you should play with b41 with b41 mods

minor cobalt
minor cobalt
lone oak
minor cobalt
fallow dove
lone seal
minor cobalt
#

Glytch3r's Symlink .bat

creates a symlink version of your mods it will speed things up when youre creating mods for b42
note this is only useful if your mod doesnt have any difference between versions
cuz it will basically create images of your folder
this will help save storage space as well as provide comfort during coding proccess since you dont have to keep copy pasting files

configure the directory based on your game files directories

jovial nacelle
neon prawn
#

I like to create my files fast.
Just thought about sharing this with you (maybe helpful)

All it does is executing this command:

C:\\Windows\\System32\\cmd.exe /V /C @echo on && set /p name=Filename: & echo > !name!
fallow dove
#

Mainly because someone asked me to, since the original wasn't getting updates, requires pinkslip items for every vehicle, and doesn't have the features I want

#

so mine you dont need a pinkslip item for every vehicle (no more patch mods like for Carwanna KI5 cars etc)

minor cobalt
#

damn if i knew this earlier then it could have saved me time when i madr the car dealer mod
@fallow dove

minor cobalt
minor cobalt
minor cobalt
minor cobalt
stoic quarry
minor cobalt
#

ConsoleTrimmer.cmd

open notepad or whatever text editor
paste the script below
save this as ConsoleTrimmer.cmd file
it will ask for the path of the console you want to trim
it will remove noise such vanilla warnings, overwrites, etc. providing you a cleaner version of the server console .
helps you find problems faster by reducing irrelevant info

@echo off
setlocal enabledelayedexpansion

REM Ask for the log file path
set /p LOG_FILE=Enter full path of console.txt: 

if not exist "%LOG_FILE%" (
    echo [ERROR] File not found: %LOG_FILE%
    pause
    exit /b
)

REM Ask for output file path
set /p OUTPUT_FILE=Enter output file path (leave blank for same folder): 

if "%OUTPUT_FILE%"=="" (
    for %%I in ("%LOG_FILE%") do set "OUTPUT_FILE=%%~dpIconsole_trimmed.txt"
)

echo [INFO] Trimming logs...
echo.

REM Run PowerShell with proper escaping
powershell -NoLogo -NoProfile -Command ^
  "$content = Get-Content -Raw '%LOG_FILE%';" ^
  "$pattern = '(?m)^(.*(LOG  : General|LOG  : Mo|LOG  : Network|DEBUG: General|WARN : Script|WARN : Recip|LOG  : Lua|AnimationAssetManager\.loadCallback|balObject\.require|AnimationPlayer\.play> Anim Clip not found|ImportedSkeleton\.collectBoneFrames> Could not find bone index for node name|DEBUG: Multiplayer|DEBUG: Voice|no GameSound|VehicleType\.initNormal> vehicle typ|no such function|Workshop: item state CheckItemState|ZomboidFileSystem\.loadModTileDefPropertyStrings|ZomboidFileSystem\.loadModTileDefs).*)$';" ^
  "$content -split '\r?\n' | Where-Object {$_ -notmatch $pattern} | Set-Content '%OUTPUT_FILE%';"

if %errorlevel% neq 0 (
    echo [ERROR] Failed to trim logs.
) else (
    echo [DONE] Trimmed logs saved to: %OUTPUT_FILE%
)

pause

minor cobalt
minor cobalt