Mods / More Cave Art

Category: #Cosmetics #Other #Tweak
Author: Kosher
Side: Both
Created: Oct 15th 2023 at 2:10 PM
Last modified: Oct 15th 2023 at 2:11 PM
Downloads: 1285
Follow Unfollow 39

Latest file for Various v1.18.x:
more-cave-art-1.0.zip 1-click install


More Cave Art Icons

You want it?

You have it! [2]

This mod adds more icons to the Cave Art system (drawing on blocks with charcoal and other materials).

Basically a continuation of my https://mods.vintagestory.at/moremapicons, which will hopefully lay base for other mod developers to add more and more new icons for this system.

Thank you for the attention and have a good game :D 


Known issue:

If your world was created prior to this mod instalation - game will draw not the icon which you've selected thru the UI.

This issue occurrs due to the bug in game source code and was reported in bug-reports channel (https://discord.com/channels/302152934249070593/1164876523677962272) please upwote this issue, it will help me and other modders to add more Cave Art Icons into the game)

 

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.0.0 1285 Oct 15th 2023 at 2:11 PM Show more-cave-art-1.0.zip Install now

15 Comments (oldest first | newest first)

💬 KosherAuthor, Dec 21st 2023 at 8:10 PM

Annastasija 

At this moment - devs ignoring my questions and tickets in discord for already 3 months, so I've swapped to Project Zomboid moding, since VS is great game, but dev comunity, updates content and backward compatibility is killing any will do work on mods for it.

Maybe one day I will play and develop mods again, but not now given this experience of total ignore (and yeah, codebase is totall mess)

💬 Annastasija, Nov 25th 2023 at 9:43 AM

Really would be nice if this was patched

💬 Teknik, Oct 25th 2023 at 10:38 PM

 

Try to make 6 x 12  and create 1 - 2 - 3 - 4 .png ^^

Row work but Col shift +1 for each new line

 

💬 Kara, Oct 24th 2023 at 1:19 PM

Kosher sorry about my ehhh confusing as all hell pic to follow. i tried to change up colors to prevent a lot of overlap lol

💬 KosherAuthor, Oct 24th 2023 at 10:52 AM

Kara

Yeah, I was also like "What?" but, already found source of an issue - it's missing part of the logic in game code, I've reported it as a bug, and also posted solution for VS developers, please upwote this thread on forum to speed up resolution

https://discord.com/channels/302152934249070593/1164876523677962272 :) 

💬 Kara, Oct 23rd 2023 at 5:06 AM

interesting. these seem to work... although everything is oddly shifted like one over to the side. 

image everything boxed in red works as intended. everything else on the otherhand... works as.... WHY xD 

💬 KosherAuthor, Oct 20th 2023 at 10:49 AM

Reported an issue in VS discord, please upwote it to speedup resolution :3

discord.com/channels/302152934249070593/1164876523677962272

💬 KosherAuthor, Oct 16th 2023 at 4:03 PM

Teknik

Got it, welp, I've gave up, downloaded vssurvivalmod source code and just finished configuring it for debug

So hopefully in that way I will be able to find root cause, just need to find enough time in between work and depression :D

And after 10 minutes of investigation found root cause - Block[] blocks = api.World.SearchBlocks(loc); returns blocks in invalid order which is not equals to tool modes order, and as result DrawCaveArt() picks wrong block.

I witsh there would be just one freaking line with .sort() 

💬 Teknik, Oct 16th 2023 at 3:55 PM

Kosher

if i remember correctly before i abandonned trying to do it, i managed to get it working on existing worl by creating  chalk2.png,  chalk3.png, chalk4.png and the same for each pigment but it was very dirty and it was working only for each first pigment... always the last one was buggy and making stranke texture ^^

image

image

 

 

💬 KosherAuthor, Oct 16th 2023 at 12:52 PM

Teknik

I've investigated it a bit - and found that when I select 7th icon of the first row - game draws 1st icon in the 2nd rows.

So it looks like there is one-dimential array somewhere in the save file that remembers ordinals of all cave art icons at the moment world was created. And that's why on new world it works ok.

I've read thru all https://github.com/anegostudios/vssurvivalmod/blob/d1fed2053587ad4bec1fe4a6771d42d5cb29e760/CollectibleBehavior/BehaviorArtPigment.cs#L246 code and there are couple suspicios places, but none of them has public variables or constants which can be changed to adjust this behavior.

Also I can't find any mention of this cache --_-- nor where it's stored nor how to clean it.

The only mention of caveart in "migration" files - is whan they've changed naming frow "drawing" to the "caveart" but in both cases sprite name is stores as two-dimential map (caveart-material-row-column), like what the hell... At this moment the only option which I see is to download survival mod from git and start debugging it, but it's really time consuming, so if someone has any idea why the hell game has icons cache as one-dimentional map, and how to clean it - that would be werry helpfull

💬 Teknik, Oct 15th 2023 at 11:33 PM

My good ! I have try to do a similar mod but always i got it bugged i always testing it on existing world 🤣 ! So good job !

💬 KosherAuthor, Oct 15th 2023 at 5:56 PM

Fractomedus

That actually should be really simple :D 

Once I'm done with core issue here, can take a look

💬 Fractomedus, Oct 15th 2023 at 3:57 PM

Nice, but actually I need a mod that adds like at least +50 more wallpaper patterns or custom paintings. Could you make more wallpapers mod please? :)

💬 KosherAuthor, Oct 15th 2023 at 2:20 PM

Sooooooo, I've finished work on the code and to my surprise found an interesting bug - game draws totally not the icon which you've chosen thru the UI 0_o.

Trying to handle this issue (it occurres only if you add mod to existing world, on new worlds works as a charm)

P.S.: Oh, I love Vintage Story code base sooooo much

(edit comment delete)