Getting Started with SKSE Plugin Development: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
imported>3Nd R1m
m (...)
imported>3Nd R1m
mNo edit summary
Line 7: Line 7:


* [http://forums.bethsoft.com/topic/1496168-wipz-skyrim-script-extender-skse/page-4#entry23595441 Zartar's "noob tutorial" on Bethesda's old forum.]  The whole discussion may contain other helpful information too.
* [http://forums.bethsoft.com/topic/1496168-wipz-skyrim-script-extender-skse/page-4#entry23595441 Zartar's "noob tutorial" on Bethesda's old forum.]  The whole discussion may contain other helpful information too.
*[https://github.com/Ryan-rsm-McKenzie/CommonLibSSE/wiki Ryan-rsm-McKenzie's Tutorial on GitHub]. However, his tutorial doesn't work for many users which led to believe it might be outdated.
* [https://github.com/Ryan-rsm-McKenzie/CommonLibSSE/wiki Ryan-rsm-McKenzie's Tutorial on GitHub]. However, his tutorial doesn't work for many users which led to believe it might be outdated.
*[https://www.reddit.com/r/skyrimmods/comments/bmg1z7/finally_aiming_for_my_first_skse_plugin_been/ This Reddit discussion]
* [https://www.reddit.com/r/skyrimmods/comments/bmg1z7/finally_aiming_for_my_first_skse_plugin_been/ This Reddit discussion]
*[https://github.com/xanderdunn This GitHub page]
* [https://github.com/xanderdunn This GitHub page]


Credit goes to Bethesda, the SKSE Team, Ryan/Fuggyduff and every contributor of this page:  Dienes, ThighNookNoodel and 3Nd_R1m.
Credit goes to Bethesda, the SKSE Team, Ryan/Fuggyduff and every contributor of this page:  Dienes, ThighNookNoodel and 3Nd_R1m.
Line 18: Line 18:
* SKSE64 source code which is included in the SKSE64 distribution
* SKSE64 source code which is included in the SKSE64 distribution
* SKSE64 example plugin which ''should'' be included with the source code but actually isn't. A replacement one will be provided as soon as possible.
* SKSE64 example plugin which ''should'' be included with the source code but actually isn't. A replacement one will be provided as soon as possible.
*[https://visualstudio.microsoft.com/vs/ Visual Studio 2019], but you can use an earlier version if you wish.
* [https://visualstudio.microsoft.com/vs/ Visual Studio 2019], but you can use an earlier version if you wish.
*And most importantly, you need to know C++ programming.
* And most importantly, you need to know C++ programming.


To eliminate any potential trouble, be sure to have the most up-to-date versions of Windows, Skyrim Special Edition and any other toolset specified in this guide. Please keep in mind that this guide does not guarantee Backward/forward compatibility.
To eliminate any potential trouble, be sure to have the most up-to-date versions of Windows, Skyrim Special Edition and any other toolset specified in this guide. Please keep in mind that this guide does not guarantee Backward/forward compatibility.
Line 44: Line 44:
##: Navigate to '''C/C++ => Language''' and set '''C++ Language Standard''' to '''ISO C++17 Standard (/std:c++17)'''.
##: Navigate to '''C/C++ => Language''' and set '''C++ Language Standard''' to '''ISO C++17 Standard (/std:c++17)'''.
## Force-include <string>
## Force-include <string>
#: At this point, any attempt to build the solution will fail and there will be many errors [https://imgur.com/9jpNjtK 3275 (image)], with the most predominant one being <q>C2039: 'string' is not a member of 'std'</q>. In other words, many files are using the 'string' class without including the required header to do so.
##: At this point, any attempt to build the solution will fail and there will be many errors [https://imgur.com/9jpNjtK (image)], with the most predominant one being <q>C2039: 'string' is not a member of 'std'</q>. In other words, many files are using the 'string' class without including the required header to do so.
#: You can fix this without manually adding #include directives by instead navigating to '''C/C++ => Advanced''' and adding "string" (without quotation) in the '''Force Include File''' field. This will automatically include the string header whenever it's required.
##: You can fix this without manually adding #include directives by instead navigating to '''C/C++ => Advanced''' and adding "string" (without quotation) in the '''Force Include File''' field. This will automatically include the string header whenever it's required.
# Click "Apply" and then "Ok". [https://imgur.com/4DWpnzP (Image)]
## Click "Apply" and then "Ok". [https://imgur.com/4DWpnzP (Image)]


SKSE should be ready to build. To test that, build the solution with the Release configuration. If no error occurs, congratulation! We can move on to the next section.
SKSE should be ready to build. To test that, build the solution with the Release configuration. If no error occurs, congratulation! We can move on to the next section.
Anonymous user

Navigation menu