Navigation

    萨雷安の迦巴勒幻想大图书馆

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [插件开发]FAQ上的SamplePlugin加载不了是为啥呢?

    问答与求助
    1
    2
    59
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      ICECAT last edited by ICECAT

      最开始拉下来在VS2022里的依赖项全都不可用。
      加了NuGet源之后DalamudPackager正常了,但是几个dll引用还是缺失。于是把项目文件里的

          <DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
      

      替换为本地路径 D:\Dalamud.Updater.exe_v1.0.4.3\addon\Hooks\dev
      于是项目可以正常build了,但在游戏里加载不了……
      有什么解决办法吗?(C#项目没什么经验,如果问题很白痴还请见谅……)

      补一个项目传送门:https://github.com/goatcorp/SamplePlugin

      1 Reply Last reply Reply Quote 0
      • I
        ICECAT last edited by

        已解决……
        看log报错说没有找到DalamudPluginInterface.get_AssemblyLocation()方法,于是改了源代码

        //var imagePath = Path.Combine(PluginInterface.AssemblyLocation.Directory?.FullName!, "goat.png");
        var imagePath = "D:\SamplePlugin-master\SamplePlugin\bin\x64\Release\goat.png"
        

        问题就解决了,神奇的是加载成功之后我再改回来也没报错了?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by N(ode).B.B | Contributors
        粤ICP备20037988号