Jump to content

Farming Mod Support Extension


MrDingbat

Recommended Posts

This mod doesn't add any new crops. This mod makes integrating new farming crops into the game easier. I have changed very few of the base functions in a way that would allow modders to add their own crops into the game. This is for build 40. I don't know if these limitations have been remedied for the IWBUMS build.

 

in farming_vegetableconf.lua, I have added a table which stores information about plants which is used by the soon to be mentioned functions.

 

the file can be found with the path below:

media/lua/server/Farming/farming_vegetableconf.lua

 

The following functions have been changed-:

media/lua/server/Farming/SFarmingSystem.lua:

SFarmingSystem:growPlant(luaObject, nextGrowing, updateNbOfGrow)

 

media/lua/server/Farming/SPlantGlobalObject.lua:

SPlantGlobalObject:rottenThis()

 

media/lua/client/Farming/ISUI/IsFarmingMenu.lua:

ISFarmingMenu.doFarmingMenu2(player, context, worldobjects, test)

ISFarmingMenu.haveSeed(player)

 

pz_farming_mod(functions_only).zip    ----    contains only the code I edited and added into their respective files each.

 

pz_farming_mod.zip    ----     Edited versions of the base games original farming code with my code on top of it. This is to make it easier for staff to perhaps patch this into build 40. 

 

 

pz_farming_mod(functions_only).zip pz_farming_mod.zip

Edited by MrDingbat
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...