Pro V1.3.4.un... — Multiplayer Stp Survival Template

Version 1.3.4 moves from a feature-complete beta to a release candidate for production. Key changes include:

A requested feature not natively included (but easily added via STP’s StateBroadcaster):

public class WeatherSystem : STPSystemBehaviour
[Networked] public float rainIntensity  get; set; 
    [Networked] public int currentSeason  get; set; 
[Server]
void Update() 
    rainIntensity = Mathf.PerlinNoise(Time.time * 0.01f, 0) * 0.8f;
    BroadcastStateChange();

Place this script on your WorldManager object — STP auto-replicates [Networked] fields to all clients with zero extra RPCs.


Even with v1.3.4, developers run into issues:

Problem: "Clients see other players stuttering."
Solution: Increase snapshotInterval in Network Manager to 0.033 (30Hz). Also ensure Interpolation is enabled in the NetworkTransform child component. Multiplayer STP Survival Template PRO v1.3.4.un...

Problem: "I can't place building foundations on uneven terrain."
Solution: The template includes a GroundSnapper script. Edit MaxAngle = 30 degrees in BuildingSystem.cs. For steeper hills, set AllowClipping = true (risks exploits).

Problem: "Items duplicate when reconnecting after death."
Solution: This is a known edge case in v1.3.4. Hotfix: in PlayerLoot.SaveInventory(), call ClearSaveOnDeath() before saving the new state. Patch available on the developer’s Discord.


[Command]
public void CmdHarvest(GameObject node)
node.GetComponent<STP_Harvestable>().TakeDamage(10);

  • Project Setup

  • Steam Setup (Optional)
    Add your App ID in SteamManager.cs. For LAN-only, disable USE_STEAM define in Player Settings.


  • The default recipe system uses JSON in StreamingAssets/crafting_defs.json. For v1.3.4, you can hot-reload recipes by typing /craft_reload in the server console — no restart needed.