Giter Site home page Giter Site logo

taiwu_mods's Introduction

#Taiwu_mods #太吾绘卷游戏Mod

Build Status


编译依赖

  • Visual Studio 2017/2019
  • .NET Framework 3.5/4.x
  • 游戏本体
  • 修改genvsproj.cmd,将里面的STEAMDIR设置为本机太吾绘卷安装目录
  • 如果没有cmake,安装 cmake最新版本 (若要支持VS2019请下载cmake 3.14.3或更新版本)并将cmake加入环境变量PATH
  • 命令行运行 genvsproj.cmd, 会自动下载依赖的dlls,并生成Visual Studio的解决方案Taiwu_Mods.sln到build目录下
  • mod目录下的.cs会自动加入工程,.dll会自动作为依赖,其他的文件如 .md,.txt等会自动拷贝到游戏的Mod路径(如果不想复制,则在.modignore中添加忽略)
  • cmake会自动为工程添加post build事件,build成功后,如果游戏mod目录下存在mod同名文件夹,则自动复制dll到 游戏mods目录下对应mod目录内

新建 Mod流程

  1. 新建目录,将你的mod的 .cs文件放入
  2. 在此目录下放入 Info.json (注意大小写,编码为utf8 with bom)文件,格式类似:
{
    "Id": "HerbRecipes",
    "DisplayName": "药引烹饪配方精制材料说明",
    "Author": "phorcys",
    "Version": "2.3.0",
    "AssemblyName": "HerbRecipes.dll",
    "EntryMethod": "HerbRecipes.Main.Load",
    "Requirements": ["BaseResourceMod"]
}
  1. 除 最后一行 Requirements 外,其他为必填
  2. 在太吾游戏路径下的Mods文件夹中,新建一个文件夹存放你的mod,如:E:/SteamLibrary/steamapps/common/The Scroll Of Taiwu/Mods/HerbRecipes/
  3. 运行genvsproj.cmd 生成工程,开始mod开发
  4. Windows下支持.modignore文件,用于拷贝文件到mod目录时忽略一些文件(默认包括.cs .dll .modignore,这三个毋需添加) (只支持 * 和 ? 匹配,不支持 ** 匹配)

注意事项

##Mods 开发辅助工具 repo:

https://github.com/phorcys/Taiwu_Mods_Tools.git

taiwu_mods's People

Contributors

sth4nothing avatar phorcys avatar fenghou1st avatar ciwei100000 avatar gdjyhjs avatar linkaixiang4883 avatar hy-leung avatar ignaz-chou avatar litfal avatar zqzhang1996 avatar vallind avatar xyzkljl1 avatar inpayhuang avatar koketsusp avatar future-r avatar xyq565861 avatar sisterliu avatar lucky83 avatar xiaoye97 avatar logicor-cn avatar loboho avatar yyuueexxiinngg avatar saharaqie avatar vizv avatar frefreak avatar herrydai avatar towenyu avatar morbilio avatar andsora avatar laurencee avatar

Stargazers

GuiPeng avatar  avatar  avatar  avatar  avatar  avatar Arthur Wang avatar  avatar  avatar  avatar 黄之翌 avatar Albert_Wang avatar  avatar Qiuyuan Chen avatar River.nate avatar Jiang Yang avatar  avatar  avatar zhouchengji avatar 蛋炒饭不要蛋 avatar  avatar  avatar  avatar BenYip avatar  avatar

Watchers

 avatar lu0x1a0CSE avatar  avatar

taiwu_mods's Issues

VillageHeadOfTaiwu 1.2.4 "Parameter "time" not found in method UIDate.AddBackManpower"

Hello i'm currently unable to load VillageHeadOfTaiwu 1.2.4 with the latest steam version of the game.
The .AddBackManpower function in Harmony Patch seems to be commented out? I've included my log. Thanks.

您好,我目前无法使用最新的Steam版本加载VillageHeadOfTaiwu 1.2.4。
和谐补丁中的.AddBackManpower函数似乎已被注释掉? 我已经包括了我的日志。

您好,我目前無法使用最新的Steam版本加載VillageHeadOfTaiwu 1.2.4。
和諧補丁中的.AddBackManpower函數似乎已被註釋掉? 我已經包括了我的日誌。

Exception: Parameter "time" not found in method UIDate.AddBackManpower(System.Int32, System.Int32, System.Int32)
at Harmony12.MethodPatcher.EmitCallParameter (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Boolean allowFirsParamPassthrough) [0x00490] in <455e5c1456634e14910c281b79c6c325>:0 at Harmony12.MethodPatcher+<>c__DisplayClass19_0.<AddPrefixes>b__0 (System.Reflection.MethodInfo fix) [0x00001] in <455e5c1456634e14910c281b79c6c325>:0 at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x00024] in <e1319b7195c343e79b385cd3aa43f5dc>:0 at Harmony12.MethodPatcher.AddPrefixes (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Reflection.Emit.Label label) [0x0002b] in <455e5c1456634e14910c281b79c6c325>:0 at Harmony12.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.List1[T] postfixes, System.Collections.Generic.List1[T] transpilers) [0x00123] in <455e5c1456634e14910c281b79c6c325>:0
Rethrow as Exception: Exception from HarmonyInstance "VillageHeadOfTaiwu"
at Harmony12.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.List1[T] postfixes, System.Collections.Generic.List1[T] transpilers) [0x0030d] in <455e5c1456634e14910c281b79c6c325>:0 at Harmony12.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony12.PatchInfo patchInfo, System.String instanceID) [0x00028] in <455e5c1456634e14910c281b79c6c325>:0 at Harmony12.PatchProcessor.Patch () [0x000d8] in <455e5c1456634e14910c281b79c6c325>:0 at Harmony12.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x0002c] in <455e5c1456634e14910c281b79c6c325>:0 at Harmony12.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action`1[T] action) [0x0001b] in <455e5c1456634e14910c281b79c6c325>:0
at Harmony12.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00007] in <455e5c1456634e14910c281b79c6c325>:0
at Sth4nothing.VillageHeadOfTaiwu.Main.Load (UnityModManagerNet.UnityModManager+ModEntry modEntry) [0x00083] in <59c56ec0c33a449296a92ebfb75c291f>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in :0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in :0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0
at UnityModManagerNet.UnityModManager+ModEntry.Invoke (System.String namespaceClassnameMethodname, System.Object& result, System.Object[] param, System.Type[] types) [0x00011] in <9bd321bc92204e70832afd354616125d>:0
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityModManagerNet.ModEntry:Invoke(String, Object&, Object[], Type[])
UnityModManagerNet.ModEntry:Load()
UnityModManagerNet.UnityModManager:Start()
DateFile:Awake()

(Filename: <455e5c1456634e14910c281b79c6c325> Line: 0)

[VillageHeadOfTaiwu] Not loaded.
[Manager] FINISH. FOUND 18 MODS. SUCCESSFUL LOADED 17 MODS.
output_log.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.