[Mod] Books Redux [books_rx]

Post Reply
User avatar
sorcerykid
Member
Posts: 1847
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

[Mod] Books Redux [books_rx]

by sorcerykid » Post

Books Redux Mod v1.0
books (by sorcerykid)

Books Redux is full rewrite of default books from Minetest Game, offering players a rich selection of books and papers for highly personalized in-game communication.
  • Choose from 4 different cover and page styles for books
  • Choose from 12 different page styles for papers
  • Choose from a wide variety of background color schemes
  • Page sizes can range from small, large, wide, and tall
  • Bookmarks can be added, removed, or recalled on-the-fly
  • Edits to books and papers can be previewed before saving
  • Simple page navigation for editing and viewing books
  • All content is encrypted using a 128-bit block cipher
  • Legacy books can still be viewed in compatibility mode
Image

Image

Even better still, books and papers are both easily craftable using the same traditional recipes as before: 3 papyrus for one paper, and 3 paper for one book.

With so many possible combinations of sizes, colors, and styles, the design possibilities are virtually endless! Moreover, custom layout and formatting of text is also possible using the Bedrock Markup Language. In fact, the editor for books and papers should be very familiar to those accustomed to the Signs Redux mod

Of course, plain-text messages are acceptable as well, as they will render exactly as they are input, without any fancy colors or styles. Then again, that would be boring ;)

Now for an important word about security....
  • Last year one of my more vigilant players made me aware that it is possible for anyone to inspect locked chests on servers with only basic CSM knowledge. This means that confidential information in written books is vulnerable to intrusion.

    Fortunately, Books Redux addresses this very concern by encrypting the content of all written books and written papers via the Simple Cipher mod. This means that if anyone gains access to a copy of the map, without the server operator's private key, they won't be able to examine the personal correspondence of other players.
Currently there is no way to automatically convert legacy books to the new format. It must be done manually by copying and pasting text into a new book.

I will try to put together a tutorial video in the coming weeks that explains how to create and edit books. So stay tuned!

Repository:

https://bitbucket.org/sorcerykid/books_rx

Download Archive (.zip)
Download Archive (.tar.gz)

Dependencies:

Default Mod (required)

ActiveFormspecs Mod (required)

Bedrock Markup Language Mod (required)

Simple Cipher Mod (required)

Source Code License:

GNU Lesser General Public License v3 (LGPL-3.0)

Multimedia License:

Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

Image

User avatar
sorcerykid
Member
Posts: 1847
Joined: Fri Aug 26, 2016 15:36
GitHub: sorcerykid
In-game: Nemo
Location: Illinois, USA

Re: [Mod] Books Redux [books_rx]

by sorcerykid » Post

As promised, I made is a step-by-step guide for using Books Redux, which covers all the basics of viewing and editing books and papers. Sometimes being able to follow along with a video makes it so much easier. I hope it is helpful!

Image
Demonstration of Books Redux
https://vimeo.com/401725158

User avatar
TenPlus1
Member
Posts: 3728
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] Books Redux [books_rx]

by TenPlus1 » Post

Nicely done :) these books are a lot better than default...

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [Mod] Books Redux [books_rx]

by PolySaken » Post

Ack no you've killed me ahg
My guidebooks mod is useless now ;(
Edit: unless people want a standalone mod lol
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
v-rob
Developer
Posts: 971
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: [Mod] Books Redux [books_rx]

by v-rob » Post

Now all it needs is spellcheck. caragaeous? :P
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

medienfux
New member
Posts: 6
Joined: Thu Dec 31, 2020 03:03
GitHub: medienfux gGmbH
IRC: medienfux gGmbH
In-game: medienfux

Re: [Mod] Books Redux [books_rx]

by medienfux » Post

Hello... I try to use Books Redux on minetest-server but I get this error-message:

2020-12-31 03:59:50: ERROR[Main]: ModError: Failed to load and run script from /var/games/minetest-server/.minetest/worlds/minetest4educators/worldmods/cipher/init.lua:
2020-12-31 03:59:50: ERROR[Main]: Mod security: Blocked attempted read from /var/game/minetest-server/.minetest/worlds/minetest4educators/worldmods/bitwise/init.lua
2020-12-31 03:59:50: ERROR[Main]: stack traceback:
2020-12-31 03:59:50: ERROR[Main]: [C]: in function 'dofile'
2020-12-31 03:59:50: ERROR[Main]: ...test/worlds/minetest4educators/worldmods/cipher/init.lua:11: in main chunk


I have no glue ... what to do ... already changed the path from home to the server worldmods ... but what to do now?

Dragonop
Member
Posts: 1233
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop
Location: Argentina

Re: [Mod] Books Redux [books_rx]

by Dragonop » Post

medienfux wrote:
Thu Dec 31, 2020 03:33
Hello... I try to use Books Redux on minetest-server but I get this error-message:

2020-12-31 03:59:50: ERROR[Main]: ModError: Failed to load and run script from /var/games/minetest-server/.minetest/worlds/minetest4educators/worldmods/cipher/init.lua:
2020-12-31 03:59:50: ERROR[Main]: Mod security: Blocked attempted read from /var/game/minetest-server/.minetest/worlds/minetest4educators/worldmods/bitwise/init.lua
2020-12-31 03:59:50: ERROR[Main]: stack traceback:
2020-12-31 03:59:50: ERROR[Main]: [C]: in function 'dofile'
2020-12-31 03:59:50: ERROR[Main]: ...test/worlds/minetest4educators/worldmods/cipher/init.lua:11: in main chunk


I have no glue ... what to do ... already changed the path from home to the server worldmods ... but what to do now?
Seems to be an issue with the 'cipher' and 'bitwise' mods relating to Mod Security rather than 'books_rx' mod... which is still weird regardless, since these two mods don't require you to list them as trusted mods afaik. Did you download both 'cipher' and 'bitwise' from their respective repositories?

medienfux
New member
Posts: 6
Joined: Thu Dec 31, 2020 03:03
GitHub: medienfux gGmbH
IRC: medienfux gGmbH
In-game: medienfux

Re: [Mod] Books Redux [books_rx]

by medienfux » Post

yes, i did and i wrote them into the security-thingy in minetest.conf ... nothing worked out :(

edit ... installed it now by single steps + counter check and it looks like the cipher mod causes the issues.

User avatar
Wuzzy
Member
Posts: 4804
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

Re: [Mod] Books Redux [books_rx]

by Wuzzy » Post

The good:
  • I absolutely obsessed over books in JT2 and wrote so so many of them. So they have an appeal. As you know, I built a giant library filled with books on the New World of JT2. Note to server owners: You still need a way for players to show off books to other players without giving them away.
  • Books from other players are also fun to read.
  • Lots of styles to choose from. Gives books some individuality. Nice paper and book cover styles.
  • Writable papers! Good for simple, short messages or letters when books would be overkill.
  • Colored text! Images! Bedrock Markup Language has some nice features.
  • Really good for servers for players to share their stories or whatever, as evidenced by JT2.
  • Encryption. Although I want to bet if someone tries hard enough it will be broken. ;) IMHO you should never trust sensitive information to a Minetest server.
The bad:
  • While reading an already-written book is nice and fun, writing a book is very painful. And that's my biggest criticism of the mod. If you want to write longer texts, you have to carefully find the hard cut-off points for each page and constantly shift text around. There's no automation for that whatsoever. This is also quite dangerous as you can destroy all your data that way if you accidentally Esc out. I know from experience on JT2 that writing any longer book is really painful to do. What I usually did is write all the text in an external text editor first and then copy it bit by bit into the book so I don't lose it all by one unlucky keypress. Not nice, but much safer.
  • On top there is the overall buggyness of the 0.4.17 text field in Minetest but that's not your fault.
  • The error message when your text is too long doesn't tell me how much I was above the limit, making finding the correct length hard.
  • Getting tables to align right is hard. If you add 1 simple 2×2 table, the texts will stretch out all over the page. And a large crammed table has a chance to overflow and cut off texts.
  • Alignment in general is hard, I often end up with text going to places where I don't want to. Probably a problem with Bedrock Markup Language?
  • Players have no guarantee their text is readable to everyone. It depends on your screen size. Crammed pages are likely to be cut off at some point. But you might not notice it if you have a large screen, as only players with small screens will notice the cut-off. That's the inherent downside of having pages. That's where the uglier but more simple "one big scrollable text area" approach of MTG is actually superior to books_rx, sad as it may sound, because at least the MTG books guarantee the full text can always be read.
  • Depends on default.
The ugly:
  • Inventory items are always "Book With Text", the tooltip doesn't change. (I believe per-item item descriptions are available even in 0.4.17.)
    Although you can change the book color, the inventory image is always brown.
  • Some text colors are hard to read on some backgrounds.
    Bookmarks seem pointless. I never used them seriously. In practice, books can't really be much longer than only 10 pages or so as you ususally hit the length limit at that point already. So the bookmarks are basically just UI clutter that could be removed safely IMHO.
  • Minetest's default gray buttons are ugly and ruin the style. Not your fault tho as you have to be compatible with 0.4.17. (or maybe image buttons could come to the rescue? idk)
The buggy:
  • If you get "Your content is too long", your book will save anyway, possibly leading to a series of even more hilarious bugs. And the reason seems obvious, there's no return statement ...
  • Not sure if it's fixed already, but the text color on the left page looksd different than on the right page.
  • If you flip the page, you go only 1 page forward instead of 2. That's not how books work, lol.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Books Redux [books_rx]

by runs » Post

Oh a hidden gem aroused:-)

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests