SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Custom Player Model

VBy VSCustodian

Allows for personal players avatars loaded from players themselves and sycned automatically

Custom Player Model

Description

<p><span style="font-size: 18pt;"><span style="font-size: 14pt;">Requires </span><a href="https://mods.vintagestory.at/playermodellib"><strong><span style="font-size: 14pt;">Player Model lib</span></strong></a></span></p> <p>&nbsp;</p> <p><span style="font-size: 14pt;">Allows for player to have custom player model. Such model is placed in a special folder inside <em>ModConfig </em>folder, and then it becomes available to the player that has it. Alternatively you can download mods with custom player models made for this mod. And every other player can see it, despite not having it on their side.</span></p> <p><span style="font-size: 14pt;">Model can have custom shape, one custom texture and one custom voice sound. They all are synced between all players, but are not saved, so other players cannot easily access it.</span></p> <p><span style="font-size: 14pt;">Config with white lists for player and models will come later.</span></p> <p>&nbsp;</p> <p><span style="font-size: 14pt;">Example of adding custom player model via mod: <a href="https://mods.vintagestory.at/customplayermodelundertale">Custom Player Models: Undertale</a></span></p> <p>&nbsp;</p> <p><span style="font-size: 14pt;">Alternatively, custom model should be placed in <em>ModConfig/custom-player-models</em> folder as folder that contains (final path should look like: <code><span style="color: oklab(0.906424 -0.000235766 -0.0028885); font-family: 'gg mono', 'Source Code Pro', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace; font-size: 13.6px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; background-color: oklab(0.57738 0.0140701 -0.208587 / 0.0784314); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;" data-darkreader-inline-color="" data-darkreader-inline-bgcolor="">C:\Users\&lt;user&gt;\AppData\Roaming\VintagestoryData\ModConfig\custom-player-models\&lt;model-name&gt;\&lt;files&gt;</span></code>):</span></p> <p><span style="font-size: 14pt;">- config.json - config file (supports most of the features from regular custom player models)<br />- custom-shape.json - model shape file<br />- custom-texture.png - custom texture used in shape file, should be referred as <em>custom-texture</em> in shape file<br />- custom-voice.ogg - voice sound file</span></p> <p><span style="font-size: 14pt;">Folder name should contain only lower case character, hyphens or digits</span></p> <p><span style="font-size: 14pt;">Example: <a href="https://github.com/maltiez2/vsmod_customplayermodel/tree/7211b07becbfab0683e8c520540a8aeb31d2a856/examples">https://github.com/maltiez2/vsmod_customplayermodel/tree/7211b07becbfab0683e8c520540a8aeb31d2a856/examples</a></span></p> <p>&nbsp;</p> <p><span style="font-size: 14pt;">You can turn on white list in mod config (when Config lib is installed). White list is stored in ModConfig folder. There are separate white lists for players and for models. Models white list is actually three white lists for model shape, texture and sound. When you add a model to whitelist it is added to these three, and any model that have texture, shape and sound from white list will be allowed. Any change to any of these three files will result in them not matching the white list. You can also turn on white list only for texture, shapes or sounds separately.</span></p> <p><span style="font-size: 14pt;">To add/remove player to/from whitelist use commands: <code>/player &lt;player name&gt; cpmwa</code>&nbsp; and<code> /player &lt;player name&gt; cpmwr</code></span></p> <p><span style="font-size: 14pt;">To add/remove model to/from whitelist use commands: <code>/player &lt;player name&gt; cpmwam &lt;model name&gt; &lt;flags:optional&gt;</code>&nbsp; and<code> /player &lt;player name&gt;&nbsp;</code><code>cpmwrm &lt;model name&gt; &lt;flags:optional&gt;</code>. You can use model name from character selection dialog. You can specify flags to only affect specific lists, for example: <code>/player &lt;player name&gt;&nbsp;</code><code>cpmwrm &lt;model name&gt; -to</code>&nbsp; will remove only texture and sound from the whitelist, but leave the shape. This command needs player as argument, to select only models that are loaded from this player (several players can have different models under the same name).<br />Existing flags:<br />&nbsp;<code>h</code> - shape<br />&nbsp;<code>o</code> - sound<br />&nbsp;<code>t</code> - texture</span></p>

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.