![]() |
Здравствуйте, гость ( Вход | Регистрация )
![]() |
![]()
Сообщение
#1
|
|
Level 5 ![]() Класс: Обыватель Характер: Lawful Neutral Раса: Человек NWN: Модмейкер Проклятие Левора Порядок Времени ![]() |
сабж
тутор (англ) по написанию плагинов на C# Установка Плагинов: - переместите все *.dll файлв в папку NWN2Toolset/Plugins - В тулсете поменяйте настройки плагинов, установив "load all plugins" (вместо "only loading signed obsidian plugins") - Перезагрузите тулсет |
![]() |
![]()
Сообщение
#2
|
|
Level 18 ![]() Класс: Страж Тьмы Характер: True Neutral Раса: Человек МАСТЕР D&D ![]() |
Поскольку некоторые авторы забросили свои плагины или не всегда оперативно их компилируют - данный инструмент может помочь при работе с некоторыми из них.
Цитата The file NWN2ToolsetLauncher.exe.config can be opened in any text editor. It is currently set up to work with toolset version 1.0.1153.0. It should be placed in the same directory as NWN2ToolsetLauncher.exe . How to change the file for a different patch ============================================ If you know XML --------------------------- Open the NWN2ToolsetLauncher.exe.config file. Change the "newVersion" attribute of every "bindingRedirect" node to the current version of your Toolset. If you don't know XML --------------------------- Open the NWN2ToolsetLauncher.exe.config file in a text editing program, such as Notepad. You will see that it is easily readable. Do a search in the file for the word "newVersion" (without the quotes). After the word, there will be an equals sign, followed by a number in quotes. Change the number in the quotes to match the current version of your Toolset. Repeat the search and the replace to make sure you find every instance of the word "newVersion" in the file. Help! My toolset doesn't run anymore! ============================================ Problem: When you try to run the toolset, it tells you it has encountered an error and must close. Cause: Most likely, the version number you assigned to "newVersion" is not the same as your current version of the Toolset. Solution: Rename the NWN2ToolsetLauncher.exe.config file to something else like "NWN2ToolsetLauncher.exe.config2". When you have renamed it, run the toolset again, and it should start up. If it does not start up, then your problem was not caused by this file and this help file won't help you. When it starts up, it will give you an error for every plugin you have which is not the same version as your toolset. Just click "OK" for these (those plugins won't load this time) and when the toolset finishes starting up, go to the "Help" menu and choose "About...". It will tell you the version number of your current toolset patch. Take this number and change "newVersion" in your renamed NWN2ToolsetLauncher.exe.config file (see "How to change the file for a different patch"). Close the toolset. Rename your NWN2ToolsetLauncher.exe.config file back to the original name ("NWN2ToolsetLauncher.exe.config") and run the toolset again. It should start up correctly. The toolset starts, but my plugin doesn't work! ============================================ Problem: The toolset runs without any problems, but when you try to start the plugin, you get an error message like "Unhandled exception has occurred in your application" with the second paragraph something like "Could not load file or assembly 'OEIShared, Version=1.0.835.0, Culture=neutral, PublicKeyToken=6bb96f3d82daa243' or one of its dependencies. The system cannot find the file specified." The "OEIShared" may be a different word, and the "1.0.835.0" might be different. Cause: The NWN2ToolsetLauncher.exe.config file needs another entry. Solution: Write down the word in the error message which comes after "Could not load file or assembly '". In the example above, it was "OEIShared" but it will probably be different for you. Close the toolset. Open the NWN2ToolsetLauncher.exe.config file in a text editing program. If you know XML --------------------------- Duplicate the "dependentAssembly" node and subnodes where the "assemblyIdentity" node's name attribute is "NWN2Toolset". Change the name attribute of the copy to the word you wrote down from the error message. Save the file and run the toolset again. If you don't know XML --------------------------- There will be a section in the NWN2ToolsetLauncher.exe.config file which looks similar to this: <dependentAssembly> <assemblyIdentity name="NWN2Toolset" publicKeyToken="6bb96f3d82daa243" culture="neutral" /> <!-- Assembly versions can be redirected in application, publisher policy, or machine configuration files. --> <bindingRedirect oldVersion="1.0.0.0 - 1.0.9999.0" newVersion="1.0.1153.0"/> </dependentAssembly> The number after "newVersion" might be different if you have changed the file for a different patch. Find the section described above, select it, copy it, and then paste the copy after the original section you selected so that you end up with the lines (original) ... </dependentAssembly> <dependentAssembly> (new copy) ... In the copy you just pasted, find the words "assemblyIdentity name" and change the word after the equals sign (this should be "NWN2Toolset" in quotes if you copied the same section I did above) to the word you wrote down from the error message. Save the NWN2ToolsetLauncher.exe.config file, and run the toolset again. Note: --------------------------- It is possible that some of the "files or assemblies" that the program can't find will have different values for "Culture" and/or "PublicKeyToken" than the ones for NWN2Toolset. In this case, you will have to use the correct values for those in the NWN2ToolsetLauncher.exe.config file instead of just copying the NWN2Toolset values. Hopefully, this won't prove too difficult. Help! I have a different problem, or your instructions didn't work for me! ============================================ If you have a different problem with the use of this file, please send me an email at conversationeditor@flamewind.com and I will try to help you as well as I can. |
![]() ![]() |
Текстовая версия | Сейчас: 26th April 2025 - 11:32 |