Jump to content
Sign in to follow this  

How to connect empty storage image with overlay image?

Recommended Posts

I'm trying to make additional furniture mod.

And I made few images for mod.

But when I try to do some programming thing with TileZed. I couldn't connect empty storage image with inside stuff image...

Can I get some help...?


Share this post

Link to post
Share on other sites

Soooo I figured this out.
Ill try to explain it.

1. Draw tiles
2. Save tiles as .png file in: DRIVE:\Steam\steamapps\common\Project Zomboid Modding Tools\Tiles\2x
3. Open Tiled
4. Up top click tools -> Tilesets
5. Click the "Add Tilesets" button In this new screen it should also direct to where step 2 is pointing.

6. check the boxes for the new tilesets that you want to add to your map. (even for just adding tilesets I'd recomend adding them to a map for now) and press OK
7. Good job, they should now be in the list. If you click on them they should show you the tileset
8. close this screen

Now you will need to give properties to your tile set
9. Up top click tools -> Tile properties
10. Here we are going to define what your tiles do in game. I'de recommend opening Tiled twice for the following
11. Open the .tiles file that is in your DRIVE:\Steam\steamapps\common\Project Zomboid Modding Tools\Tiles by default. Mine was called "newtiledefinitions" This will be your reference
12. In your other tiled also open the tile properties screen but now instead make a new file
13. Click the + icon on the bottom and select your tilesets. (if you want to update this later it is important that you do not delete these sets if they are being used in maps/mods/whatever, the number will be different and it will break stuff)
14. Click on the tile you want to give properties to, open the reference tiled and navigate to an object similar to the one you are adding
15. copy the settings and change them to your need, most stuff is self explenatory
16. sweet, now your tiles have properties.
17. close the tile properties screen

18. Go to tools -> .pack files -> create .pack file
19. Fill in the required steps.

Now we will need to create a mod for you to be able to load your items in-game
Eventhough I have the game on steam and it has its own mod folder their for some reason where it loads my mods from is: DRIVE:\Users\Username\Zomboid\mods
20. Copy the "examplemod" and name it whatever you want

21. open the folder and open the "mod" .info
22. change the name, ID, Description
23. save and close the file
24. In your media folder inside of your mod folder create a folder named "texturepacks" in here you will put the .pack file you created in step 19 (\Zomboid\mods\MODNAME\media\texturepacks)
25. back in the media folder you will put the tile definition file
26. Open up the "mod" .info file again in your main mod folder

Awesome, now we will need to fix the container overlay. You can fix this for yourself locally OR you can add it to the mod so that others can enjoy it as well.
28. navigate to DRIVE:\Steam\steamapps\common\ProjectZomboid\media\lua\server\Items
29. Here is a worldfiller.lua file, copy it
30. past it in your mod folder in MODNAME\media\lua\server\items (the "server" and "items" folder does probably not exist yet, create those)
31. Now open the worldfiller.lua file you just pasted there (I use notepad++, its free and easy to work with)
32.Now afer opening this file there will be a bunch of lines, these are all the existing container overlays in the game. For as far as I experienced you will need to keep those in addition to what you will add. Upon loading your mod this file will be used instead of the default one. If you don't keep the existing stuff it will no longer work in your map

Adding new things
33. Now for example you have the line


"overlayMap["location_shop_zippee_01_11"] = {{ name = "other", tiles = {"food_01_10", "food_01_18"} }, { name = "other", tiles = {"food_02_10", "food_02_18"} }}"

in here location_Shop_zippee_01 is the name of the texture that its refering to. the _11 after that is the position on the texture, simply counting left to right and then continue on the next layer. there are 2 links after that, one for when its full and when for when its partially full.  so "food_01_10" is when its full and "food_01_18" when it is partially full. 

Now what you want to do is copy-paste this line and edit it so that it will use your own overlays on your own tiles.
"overlayMap["ThisIsMyNewTileSetName_11"] = {{ name = "other", tiles = {"ThisIsMyNewOverlayName_10", "ThisIsMyNewOverlayName_01_18"} }, { name = "other", tiles = {"food_02_10", "food_02_18"} }}"

I hope this helps

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...