Skip to content

Commit

Permalink
Merge pull request #10 from kents00/master
Browse files Browse the repository at this point in the history
Update Fixing and Evolved Block | Build 41.72
  • Loading branch information
FWolfe authored Jul 25, 2022
2 parents a33cefa + 9e3b871 commit 4a0977a
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 14 deletions.
75 changes: 75 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,84 @@ Here you can see the ingredients are a knife and a fish. `keep` is declared befo

----------------------------------------
### The evolvedrecipe block
The evolved recipe is divided into two parts: the ```thing to be transformed``` and the ```result of the transformation```; we need to create 2 items to do that.

Example, making sandwich using breadslices:
```
module Base {
item BreadSlices
{
DisplayName = Bread Slices,
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = BreadSlices,
DaysFresh = 3,
DaysTotallyRotten = 6,
HungerChange = -10,
Calories = 177,
Carbohydrates = 33,
Lipids = 2.22,
Proteins = 5.9,
WorldStaticModel = BreadSlices,
}
item Sandwich
{
DisplayName = Sandwich,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = Sandwich,
DaysFresh = 3,
DaysTotallyRotten = 6,
HungerChange = -10,
Calories = 360,
Carbohydrates = 42,
Lipids = 8.5,
Proteins = 5.8,
StaticModel = Sandwich,
WorldStaticModel = CheeseSandwich,
}
}
```

Evolved into Sandwich:

```
module Base {
evolvedrecipe Sandwich
{
BaseItem:BreadSlices,
MaxItems:4,
ResultItem:Sandwich,
Name:Make Sandwich,
}
}
```

The ```ResultItem``` is the outcome of constructing Sandwiches with BreadSlices, and ```MaxItems``` is the total number of items made. ```BaseItem``` is the require item ( BreadSlice ) to make an Sandwich.

----------------------------------------
### The fixing block
When fixing an item in Project Zomboid Build 41.72, you just need the ```repair item``` and the ```fixer```; the template example as follows:
```
fixing Fix Baseball Bat
{
Require : BaseballBat,
Fixer : Woodglue=2; Woodwork=2,
Fixer : DuctTape=2,
Fixer : Glue=2,
Fixer : Scotchtape=4,
}
```

```Require``` an item needs to repair. ```Fixer``` requirements to fix your item

----------------------------------------
### The sound block
Expand Down
32 changes: 21 additions & 11 deletions structure/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
## Contents
* [Back to Main](../../..)

* [Overview](#overview)
* [Overview](#overview)
* [mod.info](#modinfo)
* [media/](#media)
* [media/scripts/](#mediascripts)
* [media/models/](#mediamodels)
* [media/textures/](#mediatextures)
* [media/sound/](#mediasound)
* [media/lua/](#medialua)
* [media/lua/shared/](#medialuashared)
* [media/lua/client/](#medialuaclient)
* [media/lua/server/](#medialuaserver)

----------------------------------------
## Overview
This section contains a brief description of the file and folder structure that makes up a mod. Your mod may include other folders in addition to these, but these ones are the most common.

#### mod.info
##### ```mod.info```
This file can be created/edited with any text editor. It contains details like your mod's ID, name, description, preview image etc.
```
name=My First Mod
Expand All @@ -17,30 +27,30 @@ description=Basic example mod
url=https://theindiestone.com/forums/
```

#### media/
##### ```media/```
The actual content of your mod will be placed in subfolders of the `media` folder

#### media/scripts/
##### ```media/scripts/```
This folder contains text files with item, vehicles and recipe definitions. See the section on Scripts for more information.

#### media/models/
##### ```media/models/```
Used for 3d models of weapons, vehicles etc.

#### media/textures/
##### ```media/textures/```
Icons, 3d model textures and the like go in here, in `.png` format. Pay attention to the naming scheme: Item icons should use the `Item_` prefix.

#### media/sound/
##### ```media/sound/```
Sound files go in here, in `.wav` or `.ogg` format.

#### media/lua/
##### ```media/lua/```
If your mod includes any .lua scripts, you will need this folder as well as at least one of the subfolders listed below. Any .lua files need to go in the subfolders, not directly in this one.

#### media/lua/shared/
##### ```media/lua/shared/```
Used for lua scripts shared by client and server-side logic. These are the first Lua scripts that get loaded.

#### media/lua/client/
##### ```media/lua/client/```
Used for client-side scripts. UI elements, context menus timed actions and the like. These get loaded after any 'shared' lua scripts.

#### media/lua/server/
##### ```media/lua/server/```
Used for server-side scripts. Item spawning, core farming, weather and other server-side events. These only get loaded when the game is actually started (loading a save, starting a server, etc).

6 changes: 3 additions & 3 deletions translations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* [Folder Structure](#folder-structure)
* [Functionalities](#functionalities)
* [Folders](#folders)
* [Be Careful](#be-careful)
* [Warning](#warning)
* [Testing Translations Locally](#testing-translations-locally)

----------------------------------------
Expand Down Expand Up @@ -143,11 +143,11 @@ This file contains the language, what version and the encoding

This file contains credits the to authors.

## Be Careful
## Warning
Writing and modifiying the indiviual txt files you should replace the ```[ Translation Name ]``` into two words such as: EN ( English ), PH ( Philippines )

And also modify inside in file Example:
It should change the "'PH"' to a language associated with the file name _[Translation Name].txt.
It should change the "'PH"' to a language associated with the file name ```_[Translation Name].txt```
```
Challenge_PH = {
..................
Expand Down

0 comments on commit 4a0977a

Please sign in to comment.