[Client MOD] Herbalism tool

Place for sharing your game modifications for Life is Feudal: Your Own

Kmat
 
Posts: 7
Joined: 10 Aug 2015, 17:42

[Client MOD] Herbalism tool

Post by Kmat » 20 Aug 2015, 09:18

I have created a tool to make herbalism easier. It sorts all the herbs in the inventory to fixed positions. If there are more than one stack of a given herb, they are put next to each other so it will be easy to stack them together.

The code is available on github:
https://github.com/kimmat/lif-herb-tool

The link contains installation instructions.

For sorting the inventory, just open it and press ctrl+s.

In the future I might add herb highlighting, but that is a larger project than just sorting the herbs.

User avatar
Rjmspoel
True Believer
 
Posts: 69
Joined: 01 Oct 2014, 12:44

Re: [Client MOD] Herbalism tool

Post by Rjmspoel » 20 Aug 2015, 11:10

Can you maybe provide a screenshot on how it looks in your inventory before and after it?

Right now I have all Flux/Naphtha/Flavour herbs at an easier spot inside another bag, this works great but still I need to check on the herbs i pick if the image matches, if your tool provides better I will use that, as of now I do not know if it will scramble my work I have done so far to it.


Kmat
 
Posts: 7
Joined: 10 Aug 2015, 17:42

Re: [Client MOD] Herbalism tool

Post by Kmat » 20 Aug 2015, 14:55

Hi!

Here are the screenshots. Each her has a predefined location in the inventory, so they will always be put in tha same spot. If you have multiple stacks of the same herb, the stacks will be put next to each other, so it will be easy to combine them to one stack.

When you press ctrl+s all open containers will be sorted (tested only with the inventory, but the code should work on all containers).

Hpe that answers your questions.

unsorted_cropped.jpg


sorted_cropped.jpg

User avatar
Khan-
Zealous Believer
 
Posts: 1261
Joined: 18 Apr 2015, 15:12
Location: France

Re: [Client MOD] Herbalism tool

Post by Khan- » 20 Aug 2015, 15:50

hmmm i just dont understand how/when i have to write exec("mod//lif-herb-tool/init.cs");

tuto isn't clear...
100% French speaking alliance of Royaume Franc : http://lifeisfeudal-fr.com/
Image
Les Témoins de Mérovée Site - Forum - Me contacter


Kmat
 
Posts: 7
Joined: 10 Aug 2015, 17:42

Re: [Client MOD] Herbalism tool

Post by Kmat » 20 Aug 2015, 16:10

After you have joined a server and selected a character you press ctrl+tilde to get the console. Then you type the command exec("mod//lif-herb-tool/init.cs"); and press enter. Then the mod is loaded.

It it possible to add the command in one of the script files in the game, but I am not sure which one yet. I have to experiment a little bit to find out. Then you don't have to execute the command manualle every time the game starts.

Hope that helped.

User avatar
Rjmspoel
True Believer
 
Posts: 69
Joined: 01 Oct 2014, 12:44

Re: [Client MOD] Herbalism tool

Post by Rjmspoel » 21 Aug 2015, 21:45

So it actually puts them in alphabetical order and that's it ?

User avatar
Victoris666
 
Posts: 84
Joined: 09 Apr 2015, 13:33

Re: [Client MOD] Herbalism tool

Post by Victoris666 » 22 Aug 2015, 10:41

Hello, I have done a video where I teach to install the mod. The video is in Spanish but maybe it can help you to install.



Kmat
 
Posts: 7
Joined: 10 Aug 2015, 17:42

Re: [Client MOD] Herbalism tool

Post by Kmat » 25 Aug 2015, 07:17

Rjmspoel wrote:So it actually puts them in alphabetical order and that's it ?


It puts them in the order that they appear in objects_types.xml, which is the game file defining all the herbs. I guess it would be more convenient for an alphabetical sorting, but this is how it is for now.

Victoris666 wrote:Hello, I have done a video where I teach to install the mod. The video is in Spanish but maybe it can help you to install.


Great :)

Khan-Bjornsen wrote:hmmm i just dont understand how/when i have to write exec("mod//lif-herb-tool/init.cs");


Should be exec("mod/lif-herb-tool/init.cs");

You can also put it in a scropt file, so it loads automatically when the game starts. I put it in scripts/client/init.cs, last in the function loadAllGuiProperty() (line 454 in my file).

User avatar
Khan-
Zealous Believer
 
Posts: 1261
Joined: 18 Apr 2015, 15:12
Location: France

Re: [Client MOD] Herbalism tool

Post by Khan- » 20 Nov 2015, 20:46

any news about automation ? it would be cool to active it at the game launch...

and, does it still work for the new release ? I've been told some mods don't work anymore
100% French speaking alliance of Royaume Franc : http://lifeisfeudal-fr.com/
Image
Les Témoins de Mérovée Site - Forum - Me contacter

User avatar
antonio70
 
Posts: 73
Joined: 20 Aug 2014, 18:17

Re: [Client MOD] Herbalism tool

Post by antonio70 » 21 Nov 2015, 17:14

Khan-Bjornsen wrote:any news about automation ? it would be cool to active it at the game launch...

and, does it still work for the new release ? I've been told some mods don't work anymore

Tried today still works fine.

User avatar
Khan-
Zealous Believer
 
Posts: 1261
Joined: 18 Apr 2015, 15:12
Location: France

Re: [Client MOD] Herbalism tool

Post by Khan- » 25 Nov 2015, 12:42

yep x) I did too, and he also add the setting at launch...
100% French speaking alliance of Royaume Franc : http://lifeisfeudal-fr.com/
Image
Les Témoins de Mérovée Site - Forum - Me contacter


Marcol
 
Posts: 1
Joined: 27 Nov 2015, 14:53

Re: [Client MOD] Herbalism tool

Post by Marcol » 28 Nov 2015, 15:02

How to change modes on the sort of quality herbs ?


Nymity
Zealous Believer
 
Posts: 23
Joined: 24 Jun 2015, 07:00
Location: Toronto, Canada

Re: [Client MOD] Herbalism tool

Post by Nymity » 23 Jan 2016, 14:22

I love this tool. Thank you.

It makes it so much easier to manage an inventory of newly picked herbs, and especially any shared herb stores.

Thank you!
Patience Gadabout
(of the sisters Gadabout: Patience, Atsuko and Jax)
Image


Nymity
Zealous Believer
 
Posts: 23
Joined: 24 Jun 2015, 07:00
Location: Toronto, Canada

Re: [Client MOD] Herbalism tool

Post by Nymity » 29 Jan 2016, 03:55

For anyone else who suddenly had their mod stop working after the last patch.

These directions no longer work as that function name is no longer there.

Add the following line in the file script/client/init.cs. It should be the last line in the function loadAllGuiProperty() (around line 454).


Instead, I placed the line:
exec("mod/lif-herb-tool/init.cs");

In the Life is Feudal Your Own/scripts/client/init.cs file at Line 128.

This is the last line under the heading
// CM_Inventory
in the section called
// Client Scripts

Restarted game and it all works.

Happy herbing all.
Patience Gadabout
(of the sisters Gadabout: Patience, Atsuko and Jax)
Image


Allquixotic
 
Posts: 13
Joined: 14 Jan 2015, 22:22

Re: [Client MOD] Herbalism tool

Post by Allquixotic » 31 Jan 2016, 04:07

Here is a forked version of the sources with alphabetized herbs :)

https://github.com/allquixotic/lif-herb-tool


DoomDrag
Zealous Believer
 
Posts: 1
Joined: 05 Mar 2017, 16:17

Re: [Client MOD] Herbalism tool

Post by DoomDrag » 10 Mar 2017, 20:20

1: Does this mod still work?
If so
2: How do I install (step by step in detail, please)
If not
3: Are there going to be any updates for it?
Or
4: Does anyone know how to get it working?
Or
5: Does anyone know of another mod thats like this?


Ellian810
Mod Developer
 
Posts: 129
Joined: 11 Dec 2016, 12:11

Re: [Client MOD] Herbalism tool

Post by Ellian810 » 12 Mar 2017, 13:19

I can include and maintain this mod in my list of mods if you want based on the sources available on github.
If you like my mods (EllianMod), Support me!
Discord

User avatar
Skandar
 
Posts: 5
Joined: 07 Apr 2017, 00:20

Re: [Client MOD] Herbalism tool

Post by Skandar » 07 Apr 2017, 02:23

As of the patch yesterday 4/5/2017, this mod is no longer working for me.


roerchen
 
Posts: 1
Joined: 21 Feb 2017, 20:09

Re: [Client MOD] Herbalism tool

Post by roerchen » 07 Apr 2017, 20:22

Skandar wrote:As of the patch yesterday 4/5/2017, this mod is no longer working for me.


It works. :)


Malaras
 
Posts: 8
Joined: 01 Oct 2014, 14:15

Re: [Client MOD] Herbalism tool

Post by Malaras » 30 Apr 2017, 15:38

Ellian810 wrote:I can include and maintain this mod in my list of mods if you want based on the sources available on github.


Are you maintaining the mod at all?


Ellian810
Mod Developer
 
Posts: 129
Joined: 11 Dec 2016, 12:11

Re: [Client MOD] Herbalism tool

Post by Ellian810 » 30 Apr 2017, 16:28

I have integrated the mod without any modification in my pack.
If you want some updates I can perform them if needed
If you like my mods (EllianMod), Support me!
Discord

User avatar
Domincahawke
Beta Tester
 
Posts: 3
Joined: 29 May 2015, 18:28

Re: [Client MOD] Herbalism tool

Post by Domincahawke » 12 May 2017, 01:21

Not sure if the original modder has left the game but the file script/client/init.cs no longer has a loadAllGuiProperty function. It works as normal by adding exec("mod/lif-herb-tool/init.cs"); under GUI scripts around line 87.

User avatar
Lilarna
Zealous Believer
 
Posts: 21
Joined: 10 Jan 2016, 04:24

Re: [Client MOD] Herbalism tool

Post by Lilarna » 27 Nov 2017, 19:48

Is there a chance that this could work somehow for the MMO ?
Image


Ellian810
Mod Developer
 
Posts: 129
Joined: 11 Dec 2016, 12:11

Re: [Client MOD] Herbalism tool

Post by Ellian810 » 04 Dec 2017, 20:42

It is working using my mod pack:
post94018/#p94018
If you like my mods (EllianMod), Support me!
Discord


Ellian810
Mod Developer
 
Posts: 129
Joined: 11 Dec 2016, 12:11

Re: [Client MOD] Herbalism tool

Post by Ellian810 » 11 Feb 2018, 16:17

The herb tool mod has been fully included in the Inventory mod:
http://lifeisfeudal.com/forum/ellianmod-inventoryorganizer-t22331/

A configuration file is provided to tune the sorting of the herbs.
If you like my mods (EllianMod), Support me!
Discord


Seacreasgames
 
Posts: 4
Joined: 28 Feb 2018, 04:46

Re: [Client MOD] Herbalism tool

Post by Seacreasgames » 28 Feb 2018, 04:49

Ellian810 wrote:It is working using my mod pack:
post94018/#p94018



Your mods do not work for the live servers though. This script does

Nevermind, its just where you say to install it is wrongr the live servers though. This script does
Last edited by Seacreasgames on 28 Feb 2018, 05:28, edited 1 time in total.


Seacreasgames
 
Posts: 4
Joined: 28 Feb 2018, 04:46

Re: [Client MOD] Herbalism tool

Post by Seacreasgames » 28 Feb 2018, 05:06

Kmat wrote:I have created a tool to make herbalism easier. It sorts all the herbs in the inventory to fixed positions. If there are more than one stack of a given herb, they are put next to each other so it will be easy to stack them together.

The code is available on github:
https://github.com/kimmat/lif-herb-tool

The link contains installation instructions.

For sorting the inventory, just open it and press ctrl+s.

In the future I might add herb highlighting, but that is a larger project than just sorting the herbs.



Can you change the code on this for other items such as food,materials, edibles?? PLEASE!!!


Halvdal
 
Posts: 107
Joined: 20 Jan 2016, 13:36

Re: [Client MOD] Herbalism tool

Post by Halvdal » 28 Feb 2018, 06:51


Return to Game mods

cron