Skip to content

Commit

Permalink
Copy external images to local folders for Markdown-ready files
Browse files Browse the repository at this point in the history
Those were docs where someone already had the work to update in our
Github Wiki, and provided working images, so copying those locally gives
us a centralized doc.
  • Loading branch information
guilherme-gm committed Apr 7, 2024
1 parent 0857987 commit a28ef1f
Show file tree
Hide file tree
Showing 22 changed files with 20 additions and 20 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/client/assets/editing_palette_in_notepad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/client/assets/sprite_in_photoshop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/client/assets/sprite_in_spr_conview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/client/palettes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

Editing pallets with Photoshop is a simple task. Simply load a sprite with a sprite viewer such as SPR Conview or SprTool+4-6 and export a single frame of the sprite as an image and load it with Photoshop. If your doing job sprites use a image from the job class you wish to make your pallet for and the same goes for hairs, head gear and monsters. As each sprite can have it's own pallet.

![Sprite in SPR Conview](https://github.com/HerculesWS/Hercules/assets/10552039/0525c7e2-e159-4123-9ad6-d14b4b525c40)
![Sprite in PhotoShop](https://github.com/HerculesWS/Hercules/assets/10552039/0ea16ead-a3fa-40c1-834f-1cc7ae63b251)
![Sprite in SPR Conview](assets/sprite_in_spr_conview.jpg)
![Sprite in PhotoShop](assets/sprite_in_photoshop.jpg)

Once loaded into Photoshop load the color table via the 'Image > Mode > Color Table' like so:

![Load color table in PhotoShop](https://github.com/HerculesWS/Hercules/assets/10552039/c4caf18e-dcce-4a29-bdf9-7bd10482b6da)
![Load color table in PhotoShop](assets/load_color_table_in_phoshop.jpg)

If the color table is grayed out then the image isn't 256 colors and you won't be able to proceed. Once the color table window is up you'll see the range of colors available and used in the original sprite. Edit them is simple, either click a single color box or select a group (Selecting a group allows you to easily create a gradient range of colors by picking a light color and then picking a darker color, remember to click the 'ok' button.) then pick the new color or enter in the color values into any of the color boxes.

![Edit color table in Photoshop](https://github.com/HerculesWS/Hercules/assets/10552039/563edfa8-c4a2-4764-81d4-9da60436220a)
![Edit color table in Photoshop](assets/edit_color_table_in_photoshop.jpg)

Once your new pallet is created simple click the save button in the color table window and save your pallet to a .pal file.

Expand All @@ -26,7 +26,7 @@ Once your new pallet is created simple click the save button in the color table

Ragnarok Online Pallet files are simply normal pallet files (.pal) with the header removed. Simply open the file like so

![Editing header in notepad](https://github.com/HerculesWS/Hercules/assets/10552039/f8bc36ca-8ff7-4b65-9d0f-022dc9e084db)
![Editing header in notepad](assets/editing_palette_in_notepad.jpg)

Then selecting whats highlighted in the image and delete it and save. It's that simple.

Expand Down
Binary file added docs/customization/assets/MSVC_step1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step6_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step7_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/customization/assets/MSVC_step8_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 15 additions & 15 deletions docs/customization/building-hpm-plugin-for-msvc.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,59 +47,59 @@ Download the `YourProject.c` from the [Hercules Board, Plugin Releases](https://
#### Step 2

Copy or move the `YourProject.c` file into your `/src/plugins/` folder.
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step1.png)
![](assets/MSVC_step1.png)

#### Step 3

Depending on which Visual Studio C project version (`.vcproj`) you are using, navigate to the appropriate folder.

For example, if you are using Microsoft Visual Studio IDE (Community 2017), navigate to the directory `\vcproj-15\`. We use 15 because that is the latest build type available (better to use 15 instead of using the older build solutions).
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step2.png)
![](assets/MSVC_step2.png)

#### Step 4

Select `plugin-sample.vcxproj`, copy the file, and paste it on the same directory. This will produce a copy of the file with filename `plugin-sample - Copy.vcxproj`.
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step3.png)
![](assets/MSVC_step3.png)

#### Step 5

Rename `plugin-sample - Copy.vcxproj` into `YourProject.vcxproj`
While renaming, Highlight the word `YourProject` and Copy it by **Ctrl+C**
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step4.png)
![](assets/MSVC_step4.png)

#### Step 6

Right click on `YourProject.vcxproj`, select `Edit with Notepad++` or Microsoft Notepad.
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step5.png)
![](assets/MSVC_step5.png)

#### Step 7

Find the following line:
`<ProjectName>plugin-sample</ProjectName>`
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step6.png)
![](assets/MSVC_step6.png)
Replace `plugin-sample` with `YourProject`. Make sure that you copy this correctly and not make typos.

To avoid typos, you can use `CTRL+C` to copy the name of the plugin and `CTRL+V` to paste the name of the plugin without making mistakes.
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step6_.png)
![](assets/MSVC_step6_.png)

#### Step 8

Find the following line:
`<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">sample</TargetName>`
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step7.png)
![](assets/MSVC_step7.png)

Replace `sample` to `YourProject`.
`<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">YourProject</TargetName>`
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step7_.png)
![](assets/MSVC_step7_.png)

#### Step 9

Find the following line:
`<ClCompile Include="..\src\plugins\sample.c" />`
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step8.png)
![](assets/MSVC_step8.png)

Replace `sample` to `YourProject`.
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step8_.png)
![](assets/MSVC_step8_.png)

#### Step 10

Expand All @@ -108,22 +108,22 @@ Save the file by pressing `CTRL+S`.
#### Step 11

From your the main folder of your server, open the appropriate Visual Studio solution file `Hercules-N.sln` using your IDE. In this example, we used `Hercules-15.sln` because we are using Microsoft Visual Studio (Community 2017).
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step10.png)
![](assets/MSVC_step10.png)

#### Step 12

On the Solution Explorer tab, right click `Hercules-15`, select `Add > Existing Project...`
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step11.png)
![](assets/MSVC_step11.png)

#### Step 13

Select `YourProject.vcxproj` in the `\vcproj-15\` folder.
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step12.png)
![](assets/MSVC_step12.png)

#### Step 14

Right click `Solution 'Hercules-15' and select Build Solution.
![](https://raw.githubusercontent.com/AnnieRuru/customs/master/screenshots/MSVC_step13.png)
![](assets/MSVC_step13.png)

This will now re-build your Hercules server while also integrating your plugin. This patches up the source code as necessary and includes the code into the appropriate `.c` files without you having to go to the individual files.

Expand Down

0 comments on commit a28ef1f

Please sign in to comment.