Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
WoodenCrossbow
A practice wooden crossbow/arbalest in the style of the other original wooden weapons.
By naexn
| Date uploaded | 3 weeks ago |
| Version | 1.0.1 |
| Download link | naexn-WoodenCrossbow-1.0.1.zip |
| Downloads | 33 |
| Dependency string | naexn-WoodenCrossbow-1.0.1 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2351ValheimModding-Jotunn
Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.
Preferred version: 2.30.2README
JötunnModStub
A Valheim mod stub project using Jötunn including build tools and a basic Unity project stub. There is no actual plugin content included, just a minimum plugin class.
Setup Guide
Please see Jötunn Docs detailed documentation and setup.
Post Build automations
Included in this repo is a PowerShell script publish.ps1.
The script is referenced in the project file as a post-build event.
Depending on the chosen configuration in Visual Studio the script executes the following actions.
Building Debug
The compiled dll and a dll.mdb debug file are copied to <ValheimDir>\BepInEx\plugins (or the path set in MOD_DEPLOYPATH).
Building Release
A compressed file with the binaries is created in <JotunnModStub>\Packagesready for upload to ThunderStore.
Dont forget to include your information in the manifest.json and to change the project's readme file.
Developing Assets with Unity
New Assets can be created with Unity and imported into Valheim using the mod.
A Unity project is included in this repository under <JotunnModStub>\JotunnModUnity.
Unity Editor Setup
- Download UnityHub directly from Unity or install it with the Visual Studio Installer via
Individual Components->Visual Studio Tools for Unity - You will need an Unity account to register your PC and get a free licence. Create the account, login with it in Unity Hub and get your licence via
Settings->Licence Management - Install Unity Editor version 2022.3.17f
- Compile the project. This copies all assemblies into
<JotunnModStub>\JotunnModUnity\Assets\Assemblies. Don't open Unity yet before this step, it will remove assembly references. - Warning: These assembly files are copyrighted material and you can theoretically get into trouble when you distribute them in your github repository. To avoid that there is a .gitignore file in the Unity project folder. Keep that when you clone or copy this repository
- Open Unity Hub and add the JotunnModUnity project
- Open the project in Unity
- Install the
AssetBundle Browserpackage in the Unity Editor viaWindow->Package Managerfor easy bundle creation
Debugging
See the Wiki page Debugging Plugins via IDE for more information
Actions after a game update
When Valheim updates it is likely that parts of the assembly files change. If this is the case, the references to the assembly files must be renewed in Visual Studio and Unity.
Prebuild actions
- There is a file called DoPrebuild.props included in the solution. When you set its only value to true, Jötunn will automatically generate publicized assemblies for you. Otherwise you have to do this step manually.
Unity actions
- Copy all
assembly_*.dllfrom<ValheimDir>\valheim_Data\Managedinto<JotunnModStub>\JotunnModUnity\Assets\Assemblies.
Do this directly in the filesystem - don't import the dlls in Unity. - Go to Unity Editor and press
Ctrl+R. This reloads all files from the filesystem and "re-imports" the copied dlls into the project.
CHANGELOG
Changelog
[1.0.3]
Fixed
- Multiplayer: Enforced strict network compatibility (
EveryoneMustHaveMod) to ensure proper item and recipe synchronization across client and server.
[1.0.2]
Documentation
- Updated mod description and documentation details.
[1.0.1]
Documentation
- Added configuration table to README.
- Expanded mod overview and usage instructions.
[1.0.0]
Added
- Initial Release:
- Vanilla-friendly practice wooden crossbow.
- Custom recipe unlock progression tied to early-game materials.
- Vanilla-style visuals and custom blended audio assets.
- Fully configurable item stats and crafting requirements.