Tuesday, January 8, 2019

How to install a plugin

Step 1

Download the YourProject.c file in the \src\plugins\ folder

Step 2

If using MSVC 2017, navigate to \vcproj-15\

Step 3

Select plugin-sample.vcxproj, copy paste it

Step 4

Rename plugin-sample - Copy.vcxproj into YourProject.vcxproj
While renaming, Highlight the word YourProject and Copy it by Ctrl+C

Step 5

Right-Click on YourFile.vcxproj, Select Edit with Notepad++, or Microsoft Notepad

Step 6

Find this line
<ProjectName>plugin-sample</ProjectName>


Rename plugin-sample to YourProject by Ctrl+V

Step 7

Find this line
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">sample</TargetName>

Rename sample to YourProject by Ctrl+V
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">YourProject</TargetName>

Step 8

Find this line
<ClCompile Include="..\src\plugins\sample.c" /> 

Rename sample to YourProject by Ctrl+V

Step 9

Press Ctrl+S to save the file.

Step 10

Open Hercules-15.sln,


Step 11

Right-click Hercules-10', Select Add -> Existing Project...

Step 12

Select YourProject.vcxproj in the \vcproj-15\ folder

Step 13

Right-click Hercules-10, Select Build-Solution
 

External Link:

http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

1 comment:

Linux compiler error that never shown on Visual Studio

let's just admit Visual Studio sux ... ok ? right now, if you want to host a Private Ragnarok Online server, its just better to choose...