Mods / Leaf Lantern Lining

Category: #Crafting #Furniture
Author: OpPointBaker
Side: Both
Created: Jan 8th 2023 at 6:41 PM
Last modified: Apr 24th 2023 at 11:32 AM
Downloads: 924
Follow Unfollow 25

Latest file for v1.18.1:
leaflanternlining1.1.1.zip 1-click install


What this does: allows players to make sheets of gold or silver leaf for lining lanterns during their initial construction.

What this does not do: Allow leaf sheets to be added to already made lanterns. You will still need to use an entire plate per lantern for that.

What this isn't meant to be: A realistic way of crafting metal leaf or applying it to lanterns. That would require C# coding that is well beyond my capapbilities. [For any modder who is into hard core realism, I encourage you to make a more realistic mod. You won't be stepping on my toes. ;) ]

"Isn't this way too cheap?" According to the Wikipedia article on gold leaf, a single nugget of gold measuring 5 mm in diamiter will yeild half a square meter of gold leaf that is usually around a thenth of a micron thick [or 100 nanometers thick] using technology that has been mostly unchanged since the Egyptians were crafting it millenia ago. So, no, it is still an agreagous waste of metal, but again, this is supposed to be cheaper, not realisitic. ;)

A note on updates, this mod should be fairly update-proof. Until there is a vanilla way to make sheets, a change in lantern, nugget, plate, or ingot recipes, updates shouldn't break this mod. That said, feel free to post any issues I will address them as soon as I can.

Huge Thanks to JapanHasRice for helping my correct my bad syntax and to Spear and Fang for reworking the file structure so that it actually works now. 

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.1.1 487 Apr 24th 2023 at 11:32 AM Show leaflanternlining1.1.1.zip Install now
v1.1.0 139 Apr 23rd 2023 at 3:28 PM Show leaflanternlining1.1.0.zip Install now
v1.0.0 298 Jan 8th 2023 at 6:44 PM Show leaflanternlining1.0.0.zip Install now

15 Comments (oldest first | newest first)

💬 OpPointBakerAuthor, Apr 25th 2023 at 4:55 PM

Yeah, to my knowledge, to be able to add the leaf to already crafted lanters would require C# skills that I do not have. 😅

💬 AzuliBluespots, Apr 25th 2023 at 4:43 PM

Alright, NOW this mod works - The leaf sheets can be crafted and the lanterns can be created with them. They just can't be applied by right-clicking with them on the lanterns like the plates allow you to. 

💬 AzuliBluespots, Apr 24th 2023 at 11:56 AM

I'll try the new update out later today 🤔

💬 AzuliBluespots, Apr 23rd 2023 at 4:03 PM

I just tried the new version and it's still the same. The recipes for sheets of metal leaf are nowhere to be found and I can't just place the leaf in an already made lantern. I'd have to try and see if it can be used in the build process, but nope, not working.

Maybe other mods are interfering with it or maybe the language setting is interfering... 

The only thing I found with ZERO MODS loaded besides this is that the recipe for a lined lantern uses sheet instead of plate now. We still can't find the sheet recipe in any version.
imgur.com/a/MwdwGoz

💬 OpPointBakerAuthor, Apr 23rd 2023 at 3:29 PM

This is now working on my fresh instal of 1.18.1. I can't get the lang file to patch but otherwise it all works as best as I can tell from my own testing.

💬 AzuliBluespots, Apr 22nd 2023 at 11:44 PM

So this mod wasn't working on 1.17.10 anymore for some reason, and isn't working on 1.18 either. Would be great to have this fixed.
Meanwhile, just go get "Cheaper Lantern Lining" that at least does something similar and is still working even on 1.18

💬 Pervy_Sage, Jan 26th 2023 at 12:13 AM

OpPointBaker Hmm so my log files were showing all 0 KB and didn't update until I actually opened one. That's weird... I'll reload the mod and see what's up.

EDIT: Ok I've found 2 errors "25.1.2023 16:15:20 [Error] Patch 0 (target: game:lang/en.json) in leaflanternlining:patches/game-lang-en.json failed because supplied path /block-metalsheet-gold-* is invalid: The json path /block-metalsheet-gold-* was not found. No such element 'block-metalsheet-gold-*' at the root path
25.1.2023 16:15:20 [Error] Patch 1 (target: game:lang/en.json) in leaflanternlining:patches/game-lang-en.json failed because supplied path /block-metalsheet-silver-* is invalid: The json path /block-metalsheet-silver-* was not found. No such element 'block-metalsheet-silver-*' at the root path"

Is there a dependancy for this mod? I do see the gold and silver sheets but they are only made from a gold or silver plate, and they only yield one sheet for one plate.

💬 OpPointBakerAuthor, Jan 25th 2023 at 7:14 PM

@Pervy_Sage The mod that adds that information is Survival Cagegories. mods.vintagestory.at/show/mod/67

Is nothing still showing up in the handbook if you search for just 'gold sheet' or 'silver sheet'?

And there is nothing showing in any logs like:

22.1.2023 10:14:11 [Warning] [leaflanternlining] Failed parsing version string '1.0' at index 3: Expected PATCH version, found end of string (best guess: 1.0.0)

or

22.1.2023 10:14:13 [Error] Patch 0 (target: game:lang/en.json) in leaflanternlining:patches/game-lang-en.json failed because supplied path /block-metalsheet-gold-* is invalid: The json path /block-metalsheet-gold-* was not found. No such element 'block-metalsheet-gold-*' at the root path

Because those are errors I'm getting in the server-main log file.

Log files can be found in %AppData%\Roaming\VintagestoryData\Logs.

💬 Pervy_Sage, Jan 25th 2023 at 7:40 AM

OpPointBaker Turned them all off, as per my 'Edit 2:' and still couldn't find anything. It's been several days I'll try again. That mod are you running that shows the mods an item comes from. Also why is it showing "Mod: Essentials (@game)" instead of the name of your mod?

EDIT: Still nothing showing up, and with a fresh download. And this is with a new world and no mods but yours.

💬 OpPointBakerAuthor, Jan 25th 2023 at 2:03 AM

@Pervy_Sage sorry for the delays, I've been dealing with a second bout of COVID. I can't seem to reproduce the problem. My logs are showing an error with the language files and I will need to update the mod for that. But by searching "sheet" in the handbook I am able to find both the gold and silver sheets with their recipies. I can make them and craft lanterns with them. Are there any mods that you are using? It could be from a mod conflict.

💬 Pervy_Sage, Jan 14th 2023 at 12:22 AM

Thanks.

💬 OpPointBakerAuthor, Jan 13th 2023 at 6:49 PM

Okay. I'm still on 1.17.9. I'll update to .10 later and see if I can reproduce the issue.

💬 Pervy_Sage, Jan 13th 2023 at 5:53 PM

I'm running 1.17.10 in English. Searching 'sheet' was the first thing I tried, and literally nothing from the mod shows up. Idk which log to search for errors, I'll try looking and get back to you.

Edit: The only log I show having any updates is the crash log and the latest of those was on the 5th, which was too early. I have quite a lot of mods running. I'll trying running the mod by itself and see if it works then.

Edit 2: I turned off all other mods and still not seeing the leaf sheet show up in the handbook when I click gold plates or gold nuggets like in the pics. Searching "sheet of" or "leaf" also shows nothing in the handbook.

💬 OpPointBakerAuthor, Jan 13th 2023 at 5:46 PM

Huh. Odd. do your logs show any errors? Which language are you using? Try searching 'sheet' and see if they come up.

Which version are you running? 1.17.9 or 1.17.10?

💬 Pervy_Sage, Jan 12th 2023 at 7:22 PM

This isn't working at all for me. I don't even see an entry for "leaf" at all in my handbook or in the creative menu. I even checked to make sure I have the zip in my mods folder. And it's showing up on my mods list, so I 'installed' it correctly.

(edit comment delete)