Timberborn-Modding-Central / TimberAPI

The one and only
https://timberapi.com
GNU Lesser General Public License v2.1
34 stars 17 forks source link

I can't manage to create a mod. Instructions not soo clear #78

Closed ghost closed 1 year ago

ghost commented 1 year ago

Can't install the TimerAPI on NutGet

Severity    Code    Description Project File    Line    Suppression State
Warning NU1701  Package 'Lib.Harmony 2.2.2' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework '.NETStandard,Version=v2.1'. This package may not be fully compatible with your project.  CreativeMode    C:\Users\Marian\source\repos\CreativeMode\CreativeMode\CreativeMode.csproj  1   
Error       Package restore failed. Rolling back package changes for 'CreativeMode'.                
Error   NU1101  Unable to find package Timberborn.GameLibs. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org    CreativeMode    C:\Users\Marian\source\repos\CreativeMode\CreativeMode\CreativeMode.csproj  1   
Error   NU1101  Unable to find package Unity.InputSystem. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org  CreativeMode    C:\Users\Marian\source\repos\CreativeMode\CreativeMode\CreativeMode.csproj  1   
Error   NU1101  Unable to find package UnityEngine.Modules. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org    CreativeMode    C:\Users\Marian\source\repos\CreativeMode\CreativeMode\CreativeMode.csproj  1   

Where says how to install the GameLib or to create it?

The NuGet package Timberborn.GameLib you installed earlier allows you to see the general structure of the game. 
KYPremco commented 1 year ago

The Timberborn.GameLib is included in the TimberApi nuget packages, but this only works with pre setup from bepinex and has not been mentioned. It seems the docs have been outdated quite some bit. The docs will get an update as next thing.

This mod is very minimal with a full setup that might help you out: https://github.com/Timberborn-KyP-Mods/CustomNameList For detail help you can always join the Timberborn discord: https://discord.com/invite/timberborn.

This part is required to install the missing parts: https://github.com/Timberborn-KyP-Mods/CustomNameList/blob/main/NuGet.Config

ghost commented 1 year ago

Thanks. I can close for now.

IngoKnieto commented 10 months ago

The fact that you need to add Bepinex as additional nuget source is still not mentioned in the guide - took me a while to find this solution here. I followed this guide: https://timberapi.com/making_mods/