[MOD][CLIENT]Books for the people! - proof of concept mod

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

[MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 19 Jan 2018, 12:27

A new and actually usable version is ready now

This is a very simple client mod that allows you to turn your name-able containers (bags, pouches etc) into... books!

How do you do that?

Image

Image

Image

Image

Image

Installation:

1)Download the latest release here

2) Unpack the archive and copy the contents of a folder inside it to:

- For EU servers: <LiF game folder>\game\eu\art\mod
- For NA servers: <LiF game folder>\game\na\art\mod

3) Launch the game.


Some notes
- if you have a materials.cs.dso in your mod folder, rename it to _materials.cs.dso
- you can use markdown markup in your books
- The first line of your book will be it's title

Ok it's the very first thing i ever did in torquescript and was learning in the process of making it, so bugs, memory leaks, and stuff like that are to be expected.

Any feedback is appreciated.
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages


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

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Halvdal » 22 Jan 2018, 17:21

Nice mod!
But with your new release it doesn't work anymore :D

The game doesn't load the materials.cs (its the only one in that folder). Here are some issus that shows up in console:

1.
Code: Select all
ERRR 2018-01-22 18:14:24.355 {01} <ConsoleEntry::eval> [86619] 1: Cannot re-declare object [PasteProvider].
ERRR 2018-01-22 18:14:24.367 {01} <ConsoleEntry::eval> [86619] 1: Cannot re-declare object [pastebin_provider].
ERRR 2018-01-22 18:14:24.367 {01} <ConsoleEntry::eval> [86619] 1: Cannot re-declare object [lifbookservice_provider].
ERRR 2018-01-22 18:14:24.368 {01} <ConsoleEntry::eval> [86619] 1: Cannot re-declare object [book_mod].
ERRR 2018-01-22 18:14:24.380 {01} <ConsoleEntry::eval> [86619] exec: invalid script file name 1.


2.
Code: Select all
WARN 2018-01-22 18:15:13.994 {01} <GuiInventoryItem::onMouseEnter> [88527] art/mod/booksforthepeople/init.cs (0): Unable to find object: 'Parent' attempting to call function 'onMouseEnter'
WARN 2018-01-22 18:15:14.018 {01} <GuiInventoryItem::onMouseLeave> [88528] art/mod/booksforthepeople/init.cs (0): Unable to find object: 'Parent' attempting to call function 'onMouseLeave'
WARN 2018-01-22 18:15:14.087 {01} <GuiInventoryItem::onMouseEnter> [88531] art/mod/booksforthepeople/init.cs (0): Unable to find object: 'Parent' attempting to call function 'onMouseEnter'
WARN 2018-01-22 18:15:14.111 {01} <GuiInventoryItem::onMouseLeave> [88532] art/mod/booksforthepeople/init.cs (0): Unable to find object: 'Parent' attempting to call function 'onMouseLeave'
WARN 2018-01-22 18:15:14.153 {01} <GuiInventoryItem::onMouseEnter> [88534] art/mod/booksforthepeople/init.cs (0): Unable to find object: 'Parent' attempting to call function 'onMouseEnter'


3. is spamming over and over again in console
Code: Select all
ECHO 2018-01-22 18:15:11.343 {01} <BookMod::modifyInventories> [88416] Setting book names
ECHO 2018-01-22 18:15:11.415 {01} <BookMod::modifyInventories> [88419] Setting book names
ECHO 2018-01-22 18:15:11.891 {01} <BookMod::modifyInventories> [88438] Setting book names
ECHO 2018-01-22 18:15:11.945 {01} <BookMod::modifyInventories> [88440] Setting book names
ECHO 2018-01-22 18:15:12.141 {01} <BookMod::modifyInventories> [88448] Setting book names
ECHO 2018-01-22 18:15:12.338 {01} <BookMod::modifyInventories> [88456] Setting book names



Anyways, thank you for this great work. Hope you can fix it soon. :)

User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 22 Jan 2018, 17:29

Oh, thanks for your response.

Can you contact me via discord?
https://discord.gg/XBmxc6Q
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages

User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 24 Jan 2018, 06:56

A new version is ready - no more console spam.
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages


Teleon
Mod Developer
 
Posts: 21
Joined: 22 Oct 2016, 09:42
Location: Germany

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Teleon » 24 Jan 2018, 09:22

Hey :)

Tried ur Mod in YO - but it doesnt work fully.

Can create a new Book while pressing ctrl+p on a Pouch, Webbrowser opens - I can give the Book a title, and rename the pouch on the given "Name", but then the Pouch disapears, only the title of the book is left in the Inventory - and u cant click on it, when u try to open it with ctrl+p i get a webbrowser for a new book!

*EDIT

I can add text to a book, but it's bit tricky - when I open my inventory the book is 1-2s the old pouch and i can click on it, when i got that and press ctrl+p - i can add text to the book. but only then!

Image

But at least great work! Hope u fix it :)

Teleon
Image
Image

User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 24 Jan 2018, 09:53

Hmm i only did tests in a mmo, probably the image i use for "books" doesn't exist in YO version. Will need to install YO and try it there, hope will fix this tomorrow - my internet connection is awfully slow.
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages


Teleon
Mod Developer
 
Posts: 21
Joined: 22 Oct 2016, 09:42
Location: Germany

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Teleon » 24 Jan 2018, 10:20

Got it, just copy the "pages.png" out of the MMO Art folder into the YO folder :)

Image

:beer:
Image
Image


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

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Halvdal » 24 Jan 2018, 16:24

Would be great if we can trade this with other people. Is this possible? Because everytime i give a book/letter to another player he only get a empty pouch. And of course he has this mod too.

User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 24 Jan 2018, 16:42

Halvdal wrote:Would be great if we can trade this with other people. Is this possible? Because everytime i give a book/letter to another player he only get a empty pouch. And of course he has this mod too.


This is weird, the mod is strictly client-side and as long as the pouch has a correct name, it should be seen as a book. So yes, it is absolutely possible to trade them.

I see only two reasons why this might be happening: either your friend's mod is installed incorrectly, or for some reason the book service is blocked for him. Can he see a book creation page after pressing ctrl+p? Does the ingame browser open at all?
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages


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

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Halvdal » 24 Jan 2018, 21:37

Mod works great so far and other people can read it. BUT you can't trade it from player to another. We have to put in in a chest/barrel etc. otherwise it is a normal bag/pouch

User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 24 Jan 2018, 23:05

Halvdal wrote:Mod works great so far and other people can read it. BUT you can't trade it from player to another. We have to put in in a chest/barrel etc. otherwise it is a normal bag/pouch


Unfortunately when you trade a container it's name is reset to default, with or without the mod. There is just no way around it untill this is fixed.
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages


Teleon
 
Posts: 1
Joined: 13 Dec 2017, 19:32

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Teleon » 25 Jan 2018, 10:12

Yeah thats a Bug from the Dev's - Pouches loses their name when traded over the normal trading window...maybe that's why they disabled to trade them in the mmo complete ^^

Throw them on the ground or in a chest/barrel, that works fine!


Teleon
Mod Developer
 
Posts: 21
Joined: 22 Oct 2016, 09:42
Location: Germany

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Teleon » 25 Jan 2018, 10:29

Yeah thats a Bug from the Dev's - Pouches loses their name when traded over the normal trading window...maybe that's why they disabled to trade them in the mmo complete ^^

Throw them on the ground or in a chest/barrel, that works fine!
Image
Image

User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 26 Jan 2018, 09:51

Update: if you're writing a letter to someone, you can now seal it to make sure the addressee will be the only one (or, at least, the first one) to read it. This is a webapp update, so you don't need to reinstall the mod.
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages


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

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Halvdal » 26 Jan 2018, 15:51

Hi Tashka,

is it possible to increase the text length of the title?

User avatar
Tashka
 
Posts: 227
Joined: 02 Dec 2017, 17:00

Re: [MOD][CLIENT]Books for the people! - proof of concept mod

Post by Tashka » 26 Jan 2018, 16:20

Halvdal wrote:Hi Tashka,

is it possible to increase the text length of the title?


The visible title length is limited by width of the book icon (just like for nameable containers). If you someone could find an image that is wide enough and still looks nice it would be great.

I'm still to find a way to change the tooltip (the one that pops up when you hover over the item) to book title, hope it will be easier this way.
Shadow queen, tyrant, crooked whore, bloody goddess, Princess of Verna, self-proclaimed Queen in Kingdom of the North (Epleland)

Books for the people! - a client mod to let you write books and messages

Return to Game mods