### Configure Valheim Server Startup (Bash) Source: https://github.com/grantapher/valheimplus/blob/main/README.md Shell commands for setting up a Valheim Plus server on Linux/Unix. This includes making the start script executable and changing ownership of files to the server user. ```bash chmod u+x start_server_bepinex.sh chown -R steam:steam ./valheim/ ``` -------------------------------- ### Setting Environment Variable for Valheim Install Source: https://github.com/grantapher/valheimplus/blob/main/CONTRIBUTING.md This command sets the VALHEIM_INSTALL environment variable to the Valheim installation directory. This is a crucial step for development setup, allowing tools and scripts to locate the game files. ```bash setx VALHEIM_INSTALL "C:\Program Files\Steam\steamapps\common\Valheim" /M ``` -------------------------------- ### Install Valheim Plus Game Client (Bash) Source: https://github.com/grantapher/valheimplus/blob/main/README.md Commands to back up the existing Valheim game folder, extract the Valheim Plus mod package, and set execute permissions for the game startup script. This is for Linux/Unix game clients. ```bash mkdir $my_path/../Valheim.`date +%Y-%m-%d` && cp -br $my_path/* $_ && echo "backup created" unzip -o ~/Downloads/UnixServer.zip -d $my_path chmod u+x $my_path/start_game_bepinex.sh ``` -------------------------------- ### Configure Grid Alignment and Placement Source: https://context7.com/grantapher/valheimplus/llms.txt Settings to enable global grid snapping and custom rotation controls for building pieces. These configurations allow for more precise construction and flexible piece orientation. ```ini [GridAlignment] enabled=true align=LeftAlt alignToggle=F7 changeDefaultAlignment=F6 [FreePlacementRotation] enabled=true rotateY=LeftAlt rotateX=C rotateZ=V copyRotationParallel=F copyRotationPerpendicular=G ``` -------------------------------- ### Harmony Patching Class Structure in C# Source: https://github.com/grantapher/valheimplus/blob/main/CONTRIBUTING.md Demonstrates the standard structure for creating Harmony patches in C#. It shows how to define patch classes that target specific methods within game classes, including the use of Prefix and Postfix methods. ```csharp // File of patch == GameClass.cs file Class structure: [HarmonyPatch(typeof(GameClass), "MethodName")] {modifiers} class GameClass_MethodName_Patch { bool Prefix... void Postfix... // Etc... } ``` -------------------------------- ### Configure Production Buildings Source: https://context7.com/grantapher/valheimplus/llms.txt Settings for automated production structures including Kilns, Furnaces, Beehives, Fermenters, and Windmills. These configurations manage production speed, capacity, and automated resource handling. ```ini [Kiln] enabled=true maximumWood=50 productionSpeed=10 autoDeposit=true autoFuel=true [Furnace] enabled=true maximumOre=20 maximumCoal=40 productionSpeed=20 autoDeposit=true autoFuel=true [Beehive] enabled=true honeyProductionSpeed=600 maximumHoneyPerBeehive=6 autoDeposit=true [Fermenter] enabled=true fermenterDuration=1200 fermenterItemsProduced=8 autoDeposit=true autoFuel=true [Windmill] enabled=true maximumBarley=100 productionSpeed=5 ignoreWindIntensity=true autoDeposit=true autoFuel=true ``` -------------------------------- ### Configure World Time Source: https://context7.com/grantapher/valheimplus/llms.txt Manages the day/night cycle duration and allows for freezing the time of day. ```ini [Time] enabled=true forcePartOfDay=false forcePartOfDayTime=0.5 totalDayTimeInSeconds=2400 nightPercent=25 ``` -------------------------------- ### Configure Map and Server Settings Source: https://context7.com/grantapher/valheimplus/llms.txt Global settings for map exploration sharing, server player limits, and mod enforcement. These settings are critical for multiplayer consistency and server-wide gameplay rules. ```ini [Map] enabled=true shareMapProgression=true exploreRadius=150 shareAllPins=true displayCartsAndBoats=true [Server] enabled=true maxPlayers=20 enforceMod=true serverSyncsConfig=true ``` -------------------------------- ### Configure Game Difficulty and Camera Source: https://context7.com/grantapher/valheimplus/llms.txt Adjustments for multiplayer difficulty scaling, portal behavior, and camera view settings. These allow for customized gameplay experiences and first-person perspective toggles. ```ini [Game] enabled=true gameDifficultyDamageScale=4 gameDifficultyHealthScale=30 disablePortals=false disableFog=true [Camera] enabled=true cameraMaximumZoomDistance=10 cameraFOV=75 [FirstPerson] enabled=true hotkey=F10 defaultFOV=75 ``` -------------------------------- ### Configure Ward and Workbench Ranges Source: https://context7.com/grantapher/valheimplus/llms.txt Defines the effective radius for Wards and Workbenches, including enemy spawn prevention and placement rules. ```ini [Ward] enabled=true wardRange=30 wardEnemySpawnRange=0 [Workbench] enabled=true workbenchRange=30 workbenchEnemySpawnRange=0 workbenchAttachmentRange=8 disableRoofCheck=true ``` -------------------------------- ### Validate Valheim Game Path (Bash) Source: https://github.com/grantapher/valheimplus/blob/main/README.md This script snippet validates if the provided path points to a valid Valheim game directory by checking for the existence of 'valheim_Data'. It outputs whether the path is valid or invalid. ```bash my_path=/replace/with/your/path/to/common/Valheim/ test -e $my_path/valheim_Data && echo "$my_path is valid!" || echo "$my_path is invalid :(" ``` -------------------------------- ### Configure Tameable Creatures and Breeding Source: https://context7.com/grantapher/valheimplus/llms.txt Adjusts settings for creature taming, mortality, and procreation. These settings allow users to modify taming speed, offspring growth, and breeding mechanics. ```ini [Tameable] enabled=true animalTypes=all mortality=1 ownerDamageOverride=true stunRecoveryTime=10 stunInformation=true tameTimeMultiplier=-50 ignoreHunger=false [Procreation] enabled=true animalTypes=all loveInformation=true offspringInformation=true pregnancyChanceMultiplier=50 pregnancyDurationMultiplier=-50 maturityDurationMultiplier=-50 ignoreHunger=false ``` -------------------------------- ### Configure HUD and Game Clock Source: https://context7.com/grantapher/valheimplus/llms.txt Modifies the user interface and the in-game clock display. Settings include toggling notifications, damage flashes, and customizing the appearance of the game clock. ```ini [Hud] enabled=true showRequiredItems=true experienceGainedNotifications=true removeDamageFlash=true displayBowAmmoCounts=2 [GameClock] enabled=true useAMPM=false textFontSize=34 textRedChannel=248 textGreenChannel=105 textBlueChannel=0 textTransparencyChannel=255 ``` -------------------------------- ### Configure Gathering and Loot Drops Source: https://context7.com/grantapher/valheimplus/llms.txt Controls resource gathering multipliers and loot drop rates for monsters and pickable items. This section is primarily used to adjust the game's grind level. ```ini [Gathering] enabled=true dropChance=50 wood=50 fineWood=50 coreWood=50 elderBark=50 yggdrasilWood=50 blackwood=50 stone=50 copperOre=100 tinOre=100 ironScrap=100 silverOre=100 flametalOre=100 [Pickable] enabled=true edibles=100 flowersAndIngredients=100 materials=50 valuables=100 surtlingCores=100 blackCores=100 [LootDrop] enabled=true lootDropAmountMultiplier=50 lootDropChanceMultiplier=50 ``` -------------------------------- ### Configure Durability and Armor Source: https://context7.com/grantapher/valheimplus/llms.txt Adjusts durability modifiers for tools and equipment, as well as armor values and shield block ratings. ```ini [Durability] enabled=true axes=100 pickaxes=100 hammer=100 cultivator=100 hoe=100 weapons=50 armor=50 bows=50 shields=50 torch=200 [Armor] enabled=true helmets=25 chests=25 legs=25 capes=25 [Shields] enabled=true blockRating=25 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.