Changing Recipes for materials in server?

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Elijah
Zealous Believer
 
Posts: 8
Joined: 16 Apr 2017, 22:14

Changing Recipes for materials in server?

Post by Elijah » 14 Dec 2019, 18:09

Hello,

Im currently trying to modify some of the recipes in the game so some materials are quicker to make by requiring less items to create them.

For example -- the default game recipe for 1 Simple Rope requires 10 Plant Fiber, I would like to make it so 1 Simple Rope requires only 1 Plant Fiber.

I have been looking on the forums, google, and the forums for any help on how to do this, so far.

change-simple-rope-and-bone-glue-t48338/

and

modding-guide-part-one-t4811/

have been the most help, however when I make the edits to dump.sql nothing is changing in game, also when I make the edits to recipe_requirement.xml the changes take effect on a local game but not in my multiplayer server. Im currently using heidisql to manage the database and am unsure how to edit the tables properly. Can someone help me out or give a more detailed explanation of how this can be achieved?

User avatar
KuraiSeraph
 
Posts: 39
Joined: 27 Mar 2017, 12:30

Re: Changing Recipes for materials in server?

Post by KuraiSeraph » 15 Dec 2019, 19:52

Hi,

for the server u must edit the dump.sql on your multiplayer server

for the client u must edit the recipe_requirement.xml

every player who want this change must have your
edit recipe_requirement.xml file.

if u edit the tables on the database than u must rename the dump.sql becouse on server restart the database load the dump.sql

Kurai

User avatar
Elijah
Zealous Believer
 
Posts: 8
Joined: 16 Apr 2017, 22:14

Re: Changing Recipes for materials in server?

Post by Elijah » 16 Dec 2019, 01:22

Thank you for the information I will try this now!

User avatar
Elijah
Zealous Believer
 
Posts: 8
Joined: 16 Apr 2017, 22:14

Re: Changing Recipes for materials in server?

Post by Elijah » 16 Dec 2019, 01:40

KuraiSeraph, in the client recipe_requirement.xml how can I tell which recipe corresponds with which item. I tried looking up the ID for Simple Rope on google and came up with 1356 when I look up the ID in the recipe_requirement.xml I come across this

<row>
<ID>995</ID>
<RecipeID>289</RecipeID>
<MaterialObjectTypeID>1356</MaterialObjectTypeID>
<Quality>0</Quality>
<Influence>20</Influence>
<Quantity>1</Quantity>
<IsRegionItemRequired>0</IsRegionItemRequired>
</row>

However I dont see any value of plant fiber 10 for 1 simple rope so I can change it from the default of 10 to 1 plant fiber = 1 simple rope.

User avatar
KuraiSeraph
 
Posts: 39
Joined: 27 Mar 2017, 12:30

Re: Changing Recipes for materials in server?

Post by KuraiSeraph » 16 Dec 2019, 13:30

Hi there,

look in the recipe.xml for your Item (simple rope).

It has the ID 872. Now open the recipe_requirement.xml and search
there for <RecipeID>872</RecipeID> than change <Quantity>10</Quantity> to <Quantity>1</Quantity> and remember
<ID>2946</ID>

In the dump.sql go to the Headline: -- Dumping data for table `recipe_requirement`

and search the row with the number 2946.
Change (2946,872,471,0,50,10,0),
to (2946,872,471,0,50,1,0),

and you are done.

Kurai

User avatar
Elijah
Zealous Believer
 
Posts: 8
Joined: 16 Apr 2017, 22:14

Re: Changing Recipes for materials in server?

Post by Elijah » 17 Dec 2019, 00:30

Thanks again Kurai I was able to get it working with your help :)


Diegobh
 
Posts: 16
Joined: 25 Jul 2015, 00:27

Re: Changing Recipes for materials in server?

Post by Diegobh » 30 Dec 2019, 17:52

Good!

And if i want to remove some materials for crafting, please?

I want to remove Metal Band requirement to craft Barrel.

recipe.xml:
Code: Select all
Barrel ID = 32


objects_types.xml:
Code: Select all
Metal Band ID = 282


recipe_requirement.xml:
Code: Select all
   <row>
      <ID>105</ID>
      <RecipeID>32</RecipeID>
      <MaterialObjectTypeID>282</MaterialObjectTypeID>
      <Quality>0</Quality>
      <Influence>15</Influence>
      <Quantity>2</Quantity>
      <IsRegionItemRequired>0</IsRegionItemRequired>
   </row>


dump.sql:
Code: Select all
(105,32,282,0,15,2,0),


So my questions are:

1) Could I replace the recipe_requirement.xml to:
Code: Select all
   <!--
   <row>
      <ID>105</ID>
      <RecipeID>32</RecipeID>
      <MaterialObjectTypeID>282</MaterialObjectTypeID>
      <Quality>0</Quality>
      <Influence>15</Influence>
      <Quantity>2</Quantity>
      <IsRegionItemRequired>0</IsRegionItemRequired>
   </row>
   -->


2) In dump.sql, could i DELETE all the line:
Code: Select all
(105,32,282,0,15,2,0),

And add at the end of file the query:
Code: Select all
DELETE FROM `recipe_requirement` WHERE RecipeID = 32 AND MaterialObjectTypeID = 282;


Are those changes all right, plese?

Thank you very much!!!

Return to Game mods

cron