LS 25 Add Store Categories v1.0.0.0

LS 25 Other



LS 25 Add Store Categories v1.0.0.0

Script that allows you to add custom categories to vehicle and construction stores. Script is built into your mod and you set the name and icon for your category by yourself.

Instructions for Adding Your Category in moddesk.xml

Open the moddesk.xml file:
Use a text editor (such as Notepad++ or Visual Studio Code) to open the moddesk.xml file located in your mod’s folder.

Adding the <extraSourceFiles> section:
Ensure that your file contains the <extraSourceFiles> section. If it does not exist, add the following code before the closing </modDesc> tag:

<extraSourceFiles>
<sourceFile filename=”addStoreCategory.lua” />
</extraSourceFiles>

Adding the <storeCategories> and <constructionCategories> sections:
You need to add the <storeCategories> and <constructionCategories> sections to the file if they do not already exist. Insert the following code before the closing </modDesc> tag:

<storeCategories>
<!– Your categories will go here –>
</storeCategories>

<constructionCategories>
<!– Your construction categories will go here –>
</constructionCategories>

Adding a new category in <storeCategories>:
Inside the <storeCategories> section, add your category using the following template:

<storeCategory type=”YOUR_CATEGORY_TYPE” name=”YOUR_STORECATEGORY_NAME” title=”Your Title” image=”path/to/image.png”/>
Replace YOUR_CATEGORY_TYPE with the category type (e.g., DRIVABLES, TRAILERS, etc.), YOUR_STORECATEGORY_NAME with a unique name for your category, Your Title with the name that will be displayed in the game, and path/to/image.png with the path to the image for your category.

Example:
<storeCategory type=”MISC” name=”my_custom_category” title=”My Custom Category” image=”my_custom_image.png”/>

Adding a new category in <constructionCategories> (if necessary):
Inside the <constructionCategories> section, add your construction category using a similar template:

<constructionCategory type=”YOUR_CONSTRUCTION_TYPE” name=”YOUR_CONSTRUCTIONCATEGORY_NAME” title=”Your Title”/>
Replace YOUR_CONSTRUCTION_TYPE with the category type (e.g., buildings, production, etc.), YOUR_CONSTRUCTIONCATEGORY_NAME with a unique name for your construction category, and Your Title with the name that will be displayed in the game.

Example:
<constructionCategory type=”buildings” name=”my_custom_building_category” title=”My Custom Building Category”/>

Save the changes:
After making all the changes, save the moddesk.xml file.

Testing in the game:
Launch the game and check if your new category appears in the store and construction menu.
Ensure that all items are displayed correctly and function without errors.

Debugging (if necessary):
If your category does not appear, check the console for errors. Make sure that all category and item names are spelled correctly and do not contain typos.

Conclusion
Now you know how to add your category in moddesk.xml for Farming Simulator 25. If you have any further questions or issues, feel free to ask for help!

Credits:
Average Enjoyer
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)


Why to use Farming Simulator 19 mods | Farming Simulator 22 mods?
Even though Farming Simulator 2019 / Farming Simulator 2022 is a great game, you can make it even more astonishing by installing Farming Simulator 19 mods / Farming Simulator 22 mods. There are plenty of mods for every part of the game so you can change or integrate whatever you like. All the FS 19 mods / FS 22 mods are absolutely costless, so you won’t spend anything trying to change the game according to your own wishes. Our main goal is to keep Farming Simulator 19 / Farming Simulator 22 community happy where everyone has a possibility to implement their ideas and enjoy playing a perfect game. If something looks disturbing, bothers you or maybe you just need to integrate more tools and supplements, simply use FS 2019 mods / FS 2022 mods. Not many games provide an opportunity to change it by individual needs, but Farming Simulator is different. You can do whatever you want just by installing LS 19 mods/ LS22 mods so it’s time for you to take action and fulfill even craziest ideas!



You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *