Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [MODDING] question: change max book amount in bookcase  (Read 999 times)

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
[MODDING] question: change max book amount in bookcase
« on: December 30, 2019, 07:25:23 am »

just a short one:
can i change the maximum amount of books/scrolls in a bookcase to maybe 10?

it always bugged me that no matter how small i build my library, it will be impossible to fill it up with books.
havin 100 books sounds like a megaproject's goal. so having a giant library with over 100 bookshelves sounds like a mad dwarf's megaproject.
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: [MODDING] question: change max book amount in bookcase
« Reply #1 on: December 30, 2019, 10:31:43 am »

In the raws for the bookshelf (in item_tool.txt in the raw/objects folder) there should be a token along the lines of "container size:x" adjust the variable there as you see fit.
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
Re: [MODDING] question: change max book amount in bookcase
« Reply #2 on: December 30, 2019, 11:57:54 am »

In the raws for the bookshelf (in item_tool.txt in the raw/objects folder) there should be a token along the lines of "container size:x" adjust the variable there as you see fit.
thanks. i'll see if that works.
do i have to do that within the saves too?
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: [MODDING] question: change max book amount in bookcase
« Reply #3 on: December 30, 2019, 12:16:54 pm »

You would, though I don't know if it will take effect immediately or at all
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
Re: [MODDING] question: change max book amount in bookcase
« Reply #4 on: December 30, 2019, 01:16:04 pm »

in my current saves, i haven't built any bookcases yet, so maybe it will work just fine.
i'm thinking of setting it to 5 or 10. in my imagination, such a book is like minimum 70x50x5cm within a massive bookcase so there can't fit too many in them.
also with 10 or less books, a large library might finally make sense as i once started rebuilding candlekeep and it might always have had more bookcases than dorfs.

the original raws are

[ITEM_TOOL:ITEM_TOOL_BOOKCASE]
[NAME:bookcase:bookcases]
[VALUE:10]
[HARD_MAT]
[TOOL_USE:BOOKCASE]
[FURNITURE]
[TILE:35]
[INVERTED_TILE]
[SIZE:1000]
[MATERIAL_SIZE:6]
[CONTAINER_CAPACITY:100000]

( ゚ Д゚)  100000 WTF?!
TOADY, what were you thinking?! ლ( ´Д` ლ)
:D
« Last Edit: December 30, 2019, 03:59:10 pm by Pvt. Pirate »
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: [MODDING] question: change max book amount in bookcase
« Reply #5 on: December 30, 2019, 05:55:11 pm »

Seems to be some issues with bookcase raws:
http://www.bay12games.com/dwarves/mantisbt/view.php?id=11196
Logged

Nahere

  • Bay Watcher
    • View Profile
Re: [MODDING] question: change max book amount in bookcase
« Reply #6 on: December 30, 2019, 06:54:43 pm »

A scroll has a volume of 200, so CONTAINER_CAPACITY:100000 means a bookcase can fit 500 scrolls. That doesn't suit your purposes, but it also doesn't seem that unreasonable for a ceiling height bookcase.
Logged

Pvt. Pirate

  • Bay Watcher
  • Dabbling Linux User
    • View Profile
Re: [MODDING] question: change max book amount in bookcase
« Reply #7 on: December 31, 2019, 07:47:50 am »

oh, then setting it to 10 would make it hold only a tenth of a book :D

i guess i got the correct values now, thanks to your link:
Quote
[ITEM_TOOL:ITEM_TOOL_BOOKCASE]
[NAME:bookcase:bookcases]
[VALUE:10]
[HARD_MAT]
[TOOL_USE:BOOKCASE]
[FURNITURE]
[TILE:35]
[INVERTED_TILE]
[SIZE:100000]
[MATERIAL_SIZE:6]
[CONTAINER_CAPACITY:1000]
« Last Edit: December 31, 2019, 07:54:34 am by Pvt. Pirate »
Logged
"dwarves are by definition alcohol powered parasitic beards, which will cling to small caveadapt humanoids." (Chaia)