Mods / Elk Materializer

Tags:
QoL Simplification Animals
Author:
Cheeki
Side:
Server
Created:
Jun 9th at 9:55 PM
Last modified:
Jun 11th at 9:05 PM
Downloads:
455
Recommended download (for Vintage Story 1.22.0-pre.1 - 1.22.3):
ElkMaterializerV1.0.2.zip  1-click install

Tracks and keeps elks loaded (and other entities, configurable) by keeping the chunks they are in always loaded when their owner is online, to allow being called with the bone flute from wherever. (Owner check can be turned off)
Allows customizing the bone flute max teleport range.
Has a snapshot system that allows restoring your elk if something goes wrong, gets stuck in limbo or vanishes.
Config can be edited in ModConfig/elkmaterializer.yaml or with Config lib
Tracked entries are persistent through server restarts.

Use .edi or extended debug info and hover over an entity to see their entity name.

Commands
All these are gated behind controlserver privilege.
/emdebug - lists every tracked entity, their id, load state, ownership state, world position, snapshot age.
/emconjure <entityid> - Restores a tracked entity from its snapshot as a brand new entity. Only works if unloaded. Effectively allows cloning, so use wisely. Append "iknowbetter" at the end of the command to force conjuring from loaded entities. If run from server console, it will spawn at the last snapshotted position. If run in game, spawn at caller's position.
/emclear orphan - Removes entries that have no owner and are not currently loaded.
/emclear forreal - Removes all entries from memory and from the save file, disables discovery, a hard reset basically. Requires server restart.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.0.2 elkmaterializer
1.22.0-pre.1 - 1.22.3
332 Jun 11th at 9:05 PM ElkMaterializerV1.0.2.zip 1-click install

fixed issue where elk would snap back to it's original position before being called with the bone flute if it pre-teleport position was ever loaded again after chunk unloading
(technical: removed forced unload of chunks, now they unload normally as the game wishes to unload them. removed keepLoaded flag from loaded chunks, now chunks are refreshed by marking them as fresh instead)
made bad code less bad and more betterer (maybe)

1.0.1 elkmaterializer
1.22.0-pre.1 - 1.22.3
62 Jun 10th at 12:50 PM ElkMaterializerV1.0.1.zip 1-click install

fixed negative snapshot time at world load (oops)
you might see absurd snapshot age times on unloaded entities after updating. worry not, they will be snapshotted instantly once loaded.

fixed minor config issue

1.0.0 elkmaterializer
1.22.0-pre.1 - 1.22.3
61 Jun 9th at 9:56 PM Empty ElkMaterializerV1.0.0.zip 1-click install

29 Comments (oldest first | newest first) (threaded | flat)

datatheta, 5 days ago

huge fan of this mod! but probably not for the reason its intended

I like to do a lot of automation, and this mod lets me actually get chunk loaders, i couldnt find any other supported chunkloader mod

Setej, Jun 18th at 3:24 AM

For anyone using Draconis, make sure to add all of these codes to the config: dragon, drake, wyvern

If you only add in wyvern, then only Maplewings will be tracked

Nicodemus, Jun 17th at 5:09 PM

Seems like it doesn't teleport locusts... : /

Cheeki , Jun 17th at 5:14 PM
@Nicodemus: Seems like it doesn't teleport locusts... : /

No. It does not teleport it by themselves. Just keeps them loaded if there is an item to make them teleport. Just like the bone flute for elks.

Nicodemus, Jun 16th at 11:41 AM

Omg... I'll finally be able to really put Locust Taming to use and use the translocators...
THX!!!

Randompug, Jun 16th at 6:57 AM (modified Jun 16th at 6:58 AM)

For some reason when I load into my game my elk despawns (/emdebug lists it as 'despawned'), no idea what could be causing it? This has been a consistent issue

Cheeki , Jun 16th at 9:07 AM (modified Jun 16th at 9:27 AM)
@Randompug: For some reason when I load into my game my elk despawns (/emdebug lists it as 'despawned'), no idea what could be causing it? This has been a consistent issue

Does it actually despawn or is it just unloaded? If it's just unloaded, stand next to where it is (or should be) and reload the game and check if maybe the entity id changes for whatever reason.
If it despawns, no idea. Shouldn't happen. You can get a saved copy, provided it managed to make a snapshot, with /emconjure
Also, check your server logs.

Randompug, Jun 16th at 8:54 PM
@Cheeki: Does it actually despawn or is it just unloaded? If it's just unloaded, stand next to where it is (or should be) and reload the game and check if maybe the entity id changes for whatever reason.If it despawns, no idea. Shouldn't happen. You can get a save

I don't really know the technical difference between despawned and unloaded (I assume unloaded?) when I used this mod to get him back he DID come back, but his map marker is stuck where he was originally lost. Also what should I be looking for in the log files?

Cheeki , Jun 16th at 10:05 PM
@Randompug: I don't really know the technical difference between despawned and unloaded (I assume unloaded?) when I used this mod to get him back he DID come back, but his map marker is stuck where he was originally lost. Also what should I be looking for in the log

For the marker, just remove the medallion and add it again to the elk. In the log files, check for the word "duplicate", if anything shows up, with tameddelk-whatever-whatever-adult, it could be relevant. Also make sure you are using the latest version of the mod.

Randompug, Jun 12th at 1:37 AM

I'm looking at the config and tbh I might be stupid but I'm having trouble figuring out exactly what values to change to increase the range of the bone flute

YangWenLi, Jun 11th at 10:12 PM

Epic thumb

itsKami, Jun 10th at 7:05 PM (modified Jun 10th at 8:03 PM)

I have an issue, sometimes it just teleports me back where te elk teleported from and gets stuck there, im not able to call him again, ride it normally or even hit him, just gets stuck on place

Cheeki , Jun 10th at 8:57 PM
@itsKami: I have an issue, sometimes it just teleports me back where te elk teleported from and gets stuck there, im not able to call him again, ride it normally or even hit him, just gets stuck on place

I'll look into it but it sounds to me like one of the countless vanilla bug related to elks
is this in multiplayer or single player?

Cheeki , Jun 11th at 10:15 AM
@itsKami: multiplayer

Even with severe artificial latency, while keeping the server very busy, I cannot reproduce this issue.
Sounds to me like a desync issue of some sort.

itsKami, Jun 11th at 11:33 AM
@Cheeki: Even with severe artificial latency, while keeping the server very busy, I cannot reproduce this issue.Sounds to me like a desync issue of some sort.

what i noticed is that if i call him from far it will tp and let me use it normally, when i get close where it came from, it snaps back to its original place and gests stuck there

itsKami, Jun 11th at 11:56 AM
@Cheeki: Huh. i can actually reproduce this. thanks for the info, I'll look into it further

Np, take your time, and look in the console, i think it says something about duplicate entity or something like that, try to do a local server and see it yourself

Cheeki , Jun 11th at 9:05 PM (modified Jun 12th at 8:29 AM)
@itsKami: Np, take your time, and look in the console, i think it says something about duplicate entity or something like that, try to do a local server and see it yourself

Should be fixed now :) 
I expect it to happen once at most, if the elk was forcibly unloaded in a chunk with the previous version then reloading the chunk will dupe the entity (and then the game de-dupes it), due to the chunk not saving.

Logion567, Jun 10th at 2:35 PM

"I'M AT SOUP"

Sparkplug04, Jun 10th at 2:54 AM

that's meant to be a cosplay of Scorpion in the thumbnail, isn't it?
Perfect. If so.

Cheeki , Jun 10th at 7:28 AM
@Sparkplug04: that's meant to be a cosplay of Scorpion in the thumbnail, isn't it?Perfect. If so.

totally accidental. i grabbed whatever clothing looked cool lol

Codyman765, Jun 10th at 12:57 AM (modified Jun 10th at 1:11 AM)

Oh this looks great, I will have to give this a try and play with the config to see if I can get it to work with Draconis and Equus enitys.

EDIT: Seems to work Great actually. Just add "wyvern, tamedwildhorse" to the config for the enity codes. seems to track them nicey, One horse from qeuus and one maplewing from draconis.

TheKremes, Jun 9th at 10:58 PM

Thumbnail of the year 😂

Trojan96, Jun 9th at 10:49 PM

Love the mod photo lol 😀