View Full Version : Creating your own font set for Simba
Shuttleu
12-03-2010, 11:51 PM
In this tutorial i will show you how to create a font set which you can use in Simba, this will be of use for people who want to create a font set for private servers
There are 2 parts to this tutorial, the first is if you are going to use the official RS client, the second is if you want to do it the long way or if it is for a unofficial client or if it is not for RS at all.
before i start with the methods i will quickly explain how to name the images
when you name the files make sure you save them as .bmp and for the file name, save them as the decimal number from the ASCII table
http://www.asciitable.com/index/asciifull.gif
now onto the methods
First: GLIntercept method
OpenGL is, well, open. this means we can do lots of cool stuff with it such as modifying what happens or even reading what happens, for this we will just read the client.
Download and install GLIntercept from here: http://glintercept.nutty.org/download.html
next go to C:/Program Files/GLInterceptx_y , x and y being the version number
then copy gliConfig.ini and OpenGL32.dll into your C:/Program Files/Java/jre6/bin
now run RS and start it in OpenGL mode, not Safe mode, Software or DirectX
no go back to your java/bin folder and there will be a new folder called Images
go into this folder and you will find a image like this one
http://img199.imageshack.us/img199/9875/image2d01200136.png
there will be several of these so find the one you need for your charset
now you neet to flip and rotate this image to give you this
http://img253.imageshack.us/img253/1660/image2d01200136copy.png
now you need to simply extract the chars from this and invert the colors to give you the charset
NOTE: i have no idea what the spacing is on this method but im sure if you spend a bit of time, it wont be hard to find ;)
Second: The long Paint method
Noe this part of the tutorial will be from within RS
Here is a screenshot of RS
http://img251.imageshack.us/img251/7223/67412442.png
I will be making fonts for the friend chars
http://img718.imageshack.us/img718/2782/33927273.png
i will make them from this name as it has a range of characters
so first of all you want to create it so that it is as close to the characters without chopping any of them off
http://img262.imageshack.us/img262/827/44844435.png
now as we can see from this screenshot, there is one pixel to the right of each letter, so we will make sure we always go one pixel to the right of the letter
http://img525.imageshack.us/img525/94/33722375.png
so we select what we want
http://img683.imageshack.us/img683/6492/29119249.png
and paste that into a new file
http://img151.imageshack.us/img151/3034/53191871.png
then what we are interested in gets turned white, and what we dont want gets turned black
http://img823.imageshack.us/img823/7449/41682875.png
now do the same to the rest of them
http://img408.imageshack.us/img408/9080/19813498.png
then turn it black and white
http://img80.imageshack.us/img80/6954/96974319.png
to name the images, refer to above
so M is 77.bmp
and u is 117.bmp
~shut
Zyt3x
12-03-2010, 11:55 PM
If you want this to be advanced you can talk about using OpenGL to hook the font bitmaps to save time :)
Add my msn if you want to talk about it.. You can find it in my profile
Shuttleu
12-04-2010, 12:03 AM
If you want this to be advanced you can talk about using OpenGL to hook the font bitmaps to save time :)
Add my msn if you want to talk about it.. You can find it in my profile
but OpenGL isnt used in private servers though...
i suppose i could add it for when RS gets updated
~shut
Zyt3x
12-04-2010, 12:12 AM
Why limit it only to private servers? :)
Anyways, good tutorial you got there
Camaro'
12-04-2010, 02:20 AM
I'm going to use this. Thanks , repped you.
Zyt3x
12-04-2010, 11:16 AM
OpenGL! :D
Awesome. Rep+!
Also, the spacing differs on charset to charset... I tried making an auto-updater but found out that the spacing differs, and some characters might even overlap..
`Divine
12-10-2010, 09:31 AM
Hello I'm fairly new to Simba and I'm looking to create my own font set. I was wondering whether the text had to be white. Essentially will it recognize the text I'm searching for if it was in a different color and the font set is in black and white?
Wizzup?
12-10-2010, 09:33 AM
Hello I'm fairly new to Simba and I'm looking to create my own font set. I was wondering whether the text had to be white. Essentially will it recognize the text I'm searching for if it was in a different color and the font set is in black and white?
No, the text must be white and the background black. (Background can probably be something else but that's not a good idea)
Obviously it can recognise text in other colours, but the font set needs to be white/black.
Frement
12-10-2010, 09:36 AM
Hello I'm fairly new to Simba and I'm looking to create my own font set. I was wondering whether the text had to be white. Essentially will it recognize the text I'm searching for if it was in a different color and the font set is in black and white?
Yes it will recognize it, its used as a bitmap mask.
`Divine
12-10-2010, 09:39 AM
Alright thanks. One last thing, if the same text is used a different size, then will it be recognized or will I need to create a separate set?
Wizzup?
12-10-2010, 09:41 AM
Alright thanks. One last thing, if the same text is used a different size, then will it be recognized or will I need to create a separate set?
Separate set.
`Divine
12-10-2010, 10:17 AM
Thanks.
Wanted
12-10-2010, 10:21 PM
I'd consider adding the outline red to making the fonts explanation in your tutorial.
Wizzup?
12-10-2010, 10:23 PM
I'd consider adding the outline red to making the fonts explanation in your tutorial.
What do you mean? The shadow of the fonts? If so, that's not a requirement for fonts. Simba doesn't even use it, either. So it's pretty pointless to add it.
Shuttleu
12-10-2010, 10:27 PM
What do you mean? The shadow of the fonts? If so, that's not a requirement for fonts. Simba doesn't even use it, either. So it's pretty pointless to add it.thats reminded me to ask you
why does the fonts have red outlines for the shadow if they're not used?
~shut
Wizzup?
12-10-2010, 10:28 PM
thats reminded me to ask you
why does the fonts have red outlines for the shadow if they're not used?
~shut
It's because SCAR cannot read it otherwise. Don't ask me why it doesn't just generate the shadow itself, because I don't know. :)
Shuttleu
12-10-2010, 10:31 PM
oh, ok lol
i see no point for adding it because this thread is for creating fonts for simba :p
~shut
YoHoJo
11-22-2011, 08:01 PM
bump here just cuz
Also: Anyone working on getting new fonts?
bump here just cuz
Also: Anyone working on getting new fonts?
i think they've already been made just not implemented, one sec ill get the link
http://villavu.com/forum/showthread.php?p=847997#post847997
YoHoJo
11-22-2011, 08:22 PM
i think they've already been made just not implemented, one sec ill get the link
Video in your link was taken down.
Video in your link was taken down.
thats my sig =] yer iv been meaning to change that for a while now...
YoHoJo
11-22-2011, 08:37 PM
link in the video of your avatar sig was postcount dude!
P1nky
11-23-2011, 09:06 AM
Video in your link was taken down.
SKillrex! <3
is it possible to to add multiple Chars for each letter
http://img545.imageshack.us/img545/2104/34950833.png
Shuttleu
11-27-2011, 10:22 PM
is it possible to to add multiple Chars for each letter
http://img545.imageshack.us/img545/2104/34950833.png
no, each one would have to be a different FontSet
~shut
no, each one would have to be a different FontSet
~shut
What you think is the best way i can read text from capchas im trying to write a sleeper not for runescape
Shuttleu
11-27-2011, 10:43 PM
not sure, sorry
~shut
Runaway
02-08-2012, 08:23 AM
Wow, thanks for reminding me that I have a skiller named Mr Mola Mola!
/100% offtopic
I am new
03-06-2012, 01:05 PM
I've gathered uptext charracters from one private server, the question is which charset should i replace in the fonts folder?
Shuttleu
03-12-2012, 02:20 PM
I've gathered uptext charracters from one private server, the question is which charset should i replace in the fonts folder?
make a new folder
~shut
Thanks for the tut :),
is there some sort of database that has all the previous font sets? that way i can just grab and use those for a rsps using an outdated version of rs?
thanks, if not probably just end up doing it manually
Master BAW
06-20-2012, 04:15 AM
Hey, I need to make a font for runescape, for the grand exchange small letters.
Can I make it just like this? Or will this only work for private servers?
iF it does work, i will start making it :D
Thanks for this tut
http://img688.imageshack.us/img688/9379/lettersv.png
^ i've made that! Can I use it? I don't understand how :(
http://img688.imageshack.us/img688/9379/lettersv.png
^ i've made that! Can I use it? I don't understand how :(
Make a new folder called GESmallFont
Now separate that little box with your numbers so that you have 10 different boxes with each number in it. (Remember to leave a pixel to the right)
Remove that useless comma.
Save the numbers in the following way:
0: 48.bmp
1: 49.bmp
2: 50.bmp
3: 51.bmp
4: 52.bmp
5: 53.bmp
6: 54.bmp
7: 55.bmp
8: 56.bmp
9: 57.bmp
Master BAW
06-20-2012, 02:10 PM
Make a new folder called GESmallFont
Now separate that little box with your numbers so that you have 10 different boxes with each number in it. (Remember to leave a pixel to the right)
Remove that useless comma.
Save the numbers in the following way:
0: 48.bmp
1: 49.bmp
2: 50.bmp
3: 51.bmp
4: 52.bmp
5: 53.bmp
6: 54.bmp
7: 55.bmp
8: 56.bmp
9: 57.bmp
Hey, I already did that, forgot to post it here. But what then? Can I just call the font in the function, or do I have to intall it first? :)
Hey, I already did that, forgot to post it here. But what then? Can I just call the font in the function, or do I have to intall it first? :)
If it's in the folder, you just call it as you do any other font I guess.
_Legacy
07-02-2012, 10:31 PM
Hi, I'm new to SRL Forums. I have a few questions about this whole font creating procedure. I want to create an OCR for a different game (not runescape), but the fonts in that game are not unicolor. Is this a problem? Another question is, how do I actually load the fonts. I understand that you name each character by their acsii decimal value. So you would place all of the same fontset in one folder and LoadFont(that folder name)? If possible could someone provide some example code. Thanks.
_Legacy
07-02-2012, 10:34 PM
Also, what if each character is completely different colors throughout the character? Like the the horizontal line of '7' is blue but the slanted line is red. How would I go about setting tolerance?
blother
07-05-2012, 09:52 PM
I created my own font set for a private server, but I am not really sure how to use it. Do I just have to call it using LoadFont, or will it already search though it when looking for uptext?
Bixby Sayz
09-12-2012, 01:13 AM
Using the OpenGL method listed in this thread produces chars that are all evenly lined up along the tops, but that is now how they appear on screen. Is there a way to figure out the vertical spacing of the chars?
Ok, currently I'm experimenting with Simba and working towards making a mining bot for an rsps. This thread caught my eye so I gave it a shot in a hope to create the correct UpTexts for the rsps ingame.
My aim was to help Simba recognise the UpText Font when the mouse hovers over an iron ore rock: The UpText would be 'Mine Rocks / 3 more options'.
I created a new folder named 'RspsUpChars' and placed it in the directory: 'C:\Simba\Fonts'. Within this folder I have the individual .bmp files for the letters: M, i, n, e, R, o, c, k, s. I didn't feel the need to have every letter in the alphabet since I just want this to work for a mining bot.
Now, I'm assuming if I restart Simba that the fonts will load and be implemented into Simba.. so to test if my rsps UpText works I made this script:
program CheckFont;
{$i SRL\SRL.simba}
function CheckText:boolean;
var
X, Y: Integer;
begin
if FindObj(X, Y, 'ine', 1186611, 20) then //Only using the UpText 'ine' in 'Mine' to test this
begin
Mouse(X, Y, 5, 5, false); //Right clicks the rock
Mouse(X, Y+25, 5, 5, true); //Left clicks option 'Mine Rocks' (Later hope to use Option or WaitOption functions
if I can get a hang of creating fonts..)
end;
end;
begin
CheckText;
end.
When I ran the script the mouse would search for the object and jump from rock to rock but never recognising the UpText.
At this point I took a look at the UpChars folder (in directory 'C:\Simba\Fonts') and noticed that the images had a red fill for the shadows of the letters. So I created a new set of bmp files for the letters 'M, i, n, e, R, o, c, k, s', this time including the shadows in a red fill (code = 255).
After running the script again, it's the same as before: the mouse will jump between rocks but never identifying the UpTexts and so never right clicking and left clicking the option to mine the rocks :(
I'd really appreciate if someone nudged me in the right direction, I'm new to Simba and scripting so for any help offered I give my thanks in advance :)
Oh and this is what my Bmps look like:
http://i779.photobucket.com/albums/yy71/runw2n/Mybmps.png
mrpickle
12-08-2016, 06:09 PM
This tutorial is awesome :D... but the image links are broken.
Found: https://web.archive.org/web/20130929103742/http://villavu.com/forum/showthread.php?t=60451
which has some of the images.
Is there another similar tutorial around? or someone with images from this tutorial?
Thanks
rsbotter123
08-25-2019, 07:59 PM
Great guide thanks, very helpful.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.