Using GrhRawMaker

From VbGORE Visual Basic Online RPG Engine

[edit] Introduction

GrhRawMaker is a small tool created by Van that makes adding Grh files easier. In vbGore, you add Grh files by manually adding a line to Grh1.raw for each tile (more info at Adding Graphics.) Although this is easy for a few tiles, it can be very repetitive for hundreds or even thousands of tiles. This program is intended to make adding thousands of similar tiles very easy.

If you want, you can use the following graphic file:

image:demotileset.png

Save the image in the \Grh\ folder under a number that has not yet been used (preferably a small number). It doesn't matter what format the file is in, as long as the extension is .PNG.

[edit] Using The Tool

Open up Grh3RawMaker.exe in the vbGore folder and a window will pop up. The first thing we'll have to do is fill in the information on the top:

Tile Width
The width of each tile in the tileset (32 in our example)
Tile Height
The height of each tile in the tileset (32 in our example)
Start Grh Num
A free grh number from where it will start adding tiles. Open up /Data2/Grh1.raw with a text editor such as Notepad or Wordpad and search for an open slot. Our tileset has 35 tiles, so make sure the number you select and the next 34 numbers are not used.
Img File Num
The number of the image file itself (such as in 102.PNG, the number will be 102).

Now click the browse button and select the image file (Grh/107.png), at the bottom you'll now see all the information about our tileset. If you're satisfied, click the Make Grh3.raw button (a message should pop up saying it has finished).

Now Grh3.raw is created in the vbGore folder. Open this file in notepad and copy all of its text. Then open up Grh1.raw in the Data2 folder an paste the text we just copied there. Now run ToolGrhDatMaker.exe, which will update Grh.dat and Grh.ini, and you're done!

Personal tools