Jump to content

Search the Community

Showing results for tags 'Modular'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. -------------------Credits to Brybry and Blindcoder for help with getting started------------------- ------------------If I forgot anyone who helped me get this done, Let me know.------------------- 1.2: Updated Hydrocraft support to 3.4. Overwriting other CustomCategory modules is now possible.1.1: This mod is now Modular. Anyone who wishes to make use of this mod for their own mod can do so!Instructions at end of post. If someone makes use of this for their mod, It would still be recommended to leave this out of your mod, in case some people do not wish for the extra categories.--------If anyone finds any items that do not fit in the category assigned, or found that I have missed something, please let me know.------ This mod aims to add new categories to vanilla and mod items for better organization. The mod adds the following categories: Ammunition, Carpentry, Cleaning, Comfort, Critters, Drinkable, Fillable, Edible(Perishable), Non-Perishable, Sealed, Electronics, Engineering, Farming, Fishing, Fuel, Hunting(includes Trapping-related items), Ingredient, Instruction Manual(Skill + Recipe books), Kitchenware, Martial Arts(Reserved for Custom Animations), Medical, Office, Painting, Recreation, Repair, Seeds, Smokable(Cigarettes), Survival, Terraforming, Weapon Upgrade. With the inclusion of Hydrocraft, the following were also added: All-Purpose, Animal, Animal - Caged, Animal Care, Animal - Dead, Automotive, Bones, Brewing, Chemistry, Clothcraft, Container - Component, Container - Packed, Critters - Tools, Critters - Jarred, Currency, Dog, Holiday, Illumination, Material Working,Pack Dog, Pottery, Stone Working, Vehicle. Melee Weapon Categorization takes on a slightly different approach. They are categorized first by weapon length, then damage type, and then finally a category from above: Sledgehammer: Long Blunt Weapon - Carpentry Axe: Long Blade Weapon - Carpentry Fork: Stabbing Kitchenware Ranged Weapon Categorization is also slightly different. Pistol: Ranged - Gun Shotgun: Ranged - Long Gun LongBow: Ranged - Archery Potato Cannon: Ranged - Improvised Molotov: Ranged - Thrown Firebomb This is what the game looks like using this mod. (Hydrocraft loaded in image) Instructions on how to make your own mod's categories. For other examples, see: CustomCategories\media\lua\client\CustomCategories_Base.lua In order to make use of CustomCategories for your mod, you will need to begin your new LUA file with: if getActivatedMods():contains("CustomCategories") then require("CustomCategories_Core"); require("CustomCategories_Base"); --Add if you need to overwrite a Base Item. else return end --"Add a check like the following for any mod's CustomCategories module you wish to override." Example: Hydrocraft. if getActivatedMods():contains("Hydrocraft") then require("CustomCategories_Hydrocraft"); endOnce initialized, for each item to modify follow the syntax: CustomCategories.Database["MODULE.ITEMID"] = "CATEGORYID";Breakdown: MODULE.ITEMID Example -> Base.AxeBreakdown: CATEGORYID Example -> WoodWorking, ArtsAndCraftsTo add the visible text in game, you will need to go to/create lua/Shared/Translate/EN/IG_UI_EN.txt If this file did not exist already, you can initialize your own using: IGUI_EN = { ALL_CONTENTS_HERE } Now that you have the file open/set up, you will need to create your Category Definition IGUI_ItemCat_CATEGORYID = "Visible String in game", Breakdown: CATEGORYID Example -> WoodWorking, ArtsAndCraftsBreakdown: "Visible String in game" Example -> "Woodworking", "Arts and Crafts"-------------------------------WORKING EXAMPLE--------------------------------------------------------To make the Base Item - Plank have a display category of "Awesome Pants Man"in your LUA file, you would assign it CustomCategories.Database["Base.Plank"] = "AwesomePantsMan";Inside lua/Shared/Translate/EN/IG_UI_EN.txt, you would then create your display category. IGUI_ItemCat_AwesomePantsMan = "Awesome Pants Man",That should be all there is to it.The list of CATEGORYIDs already added are in this mod's IG_UI_EN.txt.Use them as you see fit. If you see one that doesn't fit, Simply make your own in your own mod's IG_UI_EN.txt!CustomCategories 1.0.zip CustomCategories 1.1.zip CustomCategories 1.2.zip
×
×
  • Create New...