-
Posts
488 -
Joined
-
Last visited
-
Days Won
8
Content Type
Profiles
Forums
Blogs
News
Store
Everything posted by Spear and Fang
-
Harmony is in fact stable, and the only good way to manipulate that UI Many mods use harmony for all kinds of things.
-
Many search engines mostly just suck. In this case, both the modDB and Wiki are awful. Google Site Search might help...a lot. I use it almost exclusively for the wiki, but rarely have a need to search the modDB. i.e. site:https://mods.vintagestory.at crafting site:https://wiki.vintagestory.at crafting https://developers.google.com/search/docs/monitor-debug/search-operators/all-search-site I would argue that both sites should have their search boxes removed and replaced with google site search widgets (if there is no intention on improving them any time soon).
-
most of this would require a fairly deep dive to understand (not something I've ever looked into), and surely some monkey patching (aka harmony) to implement. https://wiki.vintagestory.at/Modding:Monkey_patching On the crafting station front, you could look and see how this modder did it. There's a "Source" button at the top of the page. https://mods.vintagestory.at/craftingtable
-
What makes a client side mod client side?
Spear and Fang replied to nilsso's topic in [Legacy] Mods & Mod Development
it is often difficult to distinguish between what is client side and what is server side. In the case of Juicy Ores though, when I run it and look at the client-debug.log, it provides some clues note the "This asset is usually only loaded Server side" messages below. To improve the mod (as in, suppress those messages), those patches would all have another entry "side": "server", which would also immediately tell you when looking at those files that they are server side patches. 29.7.2025 09:38:38.844 [VerboseDebug] Patch 0 in juicyores:patches/survival-blocktypes-stone-ore-gem.json: File game:blocktypes/stone/ore-gem.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 1 in juicyores:patches/survival-blocktypes-stone-ore-gem.json: File game:blocktypes/stone/ore-gem.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 2 in juicyores:patches/survival-blocktypes-stone-ore-gem.json: File game:blocktypes/stone/ore-gem.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 3 in juicyores:patches/survival-blocktypes-stone-ore-gem.json: File game:blocktypes/stone/ore-gem.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 4 in juicyores:patches/survival-blocktypes-stone-ore-gem.json: File game:blocktypes/stone/ore-gem.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 0 in juicyores:patches/survival-blocktypes-stone-ore-graded.json: File game:blocktypes/stone/ore-graded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 1 in juicyores:patches/survival-blocktypes-stone-ore-graded.json: File game:blocktypes/stone/ore-graded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 2 in juicyores:patches/survival-blocktypes-stone-ore-graded.json: File game:blocktypes/stone/ore-graded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 3 in juicyores:patches/survival-blocktypes-stone-ore-graded.json: File game:blocktypes/stone/ore-graded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 4 in juicyores:patches/survival-blocktypes-stone-ore-graded.json: File game:blocktypes/stone/ore-graded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.844 [VerboseDebug] Patch 5 in juicyores:patches/survival-blocktypes-stone-ore-graded.json: File game:blocktypes/stone/ore-graded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.845 [VerboseDebug] Patch 0 in juicyores:patches/survival-blocktypes-stone-ore-ungraded.json: File game:blocktypes/stone/ore-ungraded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.845 [VerboseDebug] Patch 1 in juicyores:patches/survival-blocktypes-stone-ore-ungraded.json: File game:blocktypes/stone/ore-ungraded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.845 [VerboseDebug] Patch 2 in juicyores:patches/survival-blocktypes-stone-ore-ungraded.json: File game:blocktypes/stone/ore-ungraded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.845 [VerboseDebug] Patch 3 in juicyores:patches/survival-blocktypes-stone-ore-ungraded.json: File game:blocktypes/stone/ore-ungraded.json not found. Hint: This asset is usually only loaded Server side 29.7.2025 09:38:38.845 [VerboseDebug] Patch 4 in juicyores:patches/survival-blocktypes-stone-ore-ungraded.json: File game:blocktypes/stone/ore-ungraded.json not found. Hint: This asset is usually only loaded Server side Something like that. -
How to properly register new entities?
Spear and Fang replied to Kionashi's topic in [Legacy] Mods & Mod Development
looks like you are close. Look at this example https://github.com/SpearAndFang/primitive-survival/blob/40ac5de8339559bcde3964b3a09286eb957654ec/PrimitiveSurvival/ModSystem/blockbehavior/rightclickpickupspawnworm.cs#L55-L69 assetlocation came from here https://github.com/SpearAndFang/primitive-survival/blob/40ac5de8339559bcde3964b3a09286eb957654ec/PrimitiveSurvival/assets/primitivesurvival/entities/land/snake-pitviper.json#L2 I know it's a creature above, but assetlocation and spawning is the same. The spawning I basically sourced from here https://github.com/anegostudios/vssurvivalmod/blob/f08bd70b70c49c761aa690bff25776f5831c3a71/Item/ItemArmorStand.cs#L35-L55 -
Map Waypoint Name tied to Color
Spear and Fang replied to IAmMallow's topic in [Legacy] Mods & Mod Development
probably this https://github.com/anegostudios/vsessentialsmod/blob/2fa9f1f041a13502cafc24ae34ae8833c7d37341/Systems/WorldMap/WaypointLayer/GuiDialogAddWayPoint.cs#L113 in conjunction with the wpSuggestion- entries in the lang file (i.e. en.json) also icon names might help (or not) https://wiki.vintagestory.at/VTML/en -
so far so good! Wanting you to throw away your old assets and grab fresh ones from the creative inventory (or start a brand new world to test) was stressful to watch, but you figured it out more or less.. Congrats!
-
vsmodtools.exe 'setup' command error
Spear and Fang replied to Wysl's topic in [Legacy] Mods & Mod Development
pretty sure that vsmodtools has been outdated for a long time now. I'm curious where you found that. -
I Accidentally Saved over a File
Spear and Fang replied to jun1per's topic in [Legacy] Mods & Mod Development
cider.json -
no animals were harmed Primitive Survival
Spear and Fang replied to Spear and Fang's topic in Mod Releases
It's probably cured already. Just eat it. You can only cook it before it naturally cures. -
no animals were harmed Primitive Survival
Spear and Fang replied to Spear and Fang's topic in Mod Releases
Only ethereal gears should be consumed, and only when an altar is activated. You get gold from the other configurations only, involving temporal or astral gears. The necronomicon provides a relatively vague clue about how to set those up. -
doubtful that it works. No plans on uploading. 100% abandoned.
-
ideally I guess you json patch in a brand new "behaviors" (and then write that new behavior in c# and register it), although your results may vary... https://wiki.vintagestory.at/Modding:JSON_Patching or find an appropriate place in the code to intercept the existing action and monkey patch it (surely a prefix or postfix patch will suffice) https://wiki.vintagestory.at/Modding:Monkey_patching last resort: depending on the "thing" you are patching and the difficulty level, it may instead involve replacing a "class" (or adding a brand new one) via a json patch.
-
Help with lang files
Spear and Fang replied to Lucas Alexander's topic in [Legacy] Mods & Mod Development
here I have lots of spares laying around ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, -
A wise man once told me not to worry about things that were outside of my control.
-
no, it's just you
-
Necklaces are a bit different for sure, but here's my "clean pants" mod that I shared with someone recently. A complete mod that adds one pair of clean pants to the game, no more, no less. I made this mod with no prior knowledge of clothing mods - by taking the vanilla "lowerbody.json", bringing it into my own mod, then stripping it down to its bare essentials. And tweaking it a bit to meet my needs. Quite sure lowerbody.json only applies to pants though so you'll be looking for a different file in about the same location as this one. There isn't a shape in the mod (I use a vanilla shape and then retexture it via the mod) but I did have a shape folder all prepped and ready for my very own shape file. cleanpants_0.0.2.zip
-
Fresh water vs salt water
Spear and Fang replied to Micah Holmes's topic in [Legacy] Mods & Mod Development
Me again there is indeed a unique item for saltwater "item-waterportion": "Water", "item-boilingwaterportion": "Hot water", "item-saltwaterportion": "Sea water", as well as a unique block and bucket (containing seawater) boiling it may be tricky though because cooking mechanics (especially liquid related) are kinda borked. I suspect that both of the "thirst" mods have come up with a solution, but I imagine they both used c# code to make that happen. I highly recommend joining the official Vintage Story Discord where you can get help with such things from people that are more experienced in such areas. Not many modders come over to the forums anymore, myself included. -
just keep an eye on your logs/server-main.txt and logs/client-main.txt while modding 2.11.2024 15:51:16 [Warning] Entity with code piranha:piranha has defined InsideBlockCodes for its spawn conditions, but none of these blocks exists, entity is unlikely to spawn. This is just telling you to fix your spawn conditions at the bottom of your entity.json. Since water blocks are vanilla, you need the "game:" prefix in a couple of places. insideBlockCodes: ["game:water-*"],
-
I couldn't tell which one was the latest version, so I downloaded the bottom one. Tested it in game and it seems to be working perfectly. congrats One issue I ran into was in my Creature.Json I have to have a "Skin: base" This is fine. The game is expecting something there. I think "all" is often used rather than "skin" in these cases, but it shouldn't matter Other issue is of course the fish acts like an item and not a entity when i add it in game via creative. You will never have an "entity" in an inventory. It's always an item in these cases. So if you throw it on the ground it's an item, if you right click place it it magically becomes an entity.