Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sign font (https://forums.graalonline.com/forums/showthread.php?t=82170)

DustyPorViva 10-06-2008 12:13 AM

Sign font
 
1 Attachment(s)
I made this, but I dunno if it'll be used. Either way it was decided to give it to the public for use. Basically I took the font from sign.png and converted it to a font. I figured it would be very useful for those who want to script signs, but maintain a Graal feel to them.

Sadly, I don't think Graal downloads fonts by default, but I believe you can manage to do so via download packs. I don't know if I finished everything, but I believe I did.

http://i35.tinypic.com/6xqbyx.png

Because it's vectorized, it isn't going to be crisp and clean like a bitmap font, but it seems good enough to me and I believe the benefits outweigh that negative.

edit: to install, simply drag it to your fonts folder and it should install it. If that doesn't work, google has lots of results to help you out.

Rufus 10-06-2008 12:18 AM

Font looks decent on Graal. Obviously nobody would use it for names and text lol, but it's the only way I had of testing!

http://img215.imageshack.us/img215/4...1857425ij5.png

DustyPorViva 10-06-2008 12:33 AM

lol, I did the same exact thing.

cbk1994 10-06-2008 01:02 AM

I like it.

knightfire35 10-06-2008 01:15 AM

Nice, I like it as well.

Frankie 10-06-2008 02:29 AM

oh wow. good job +rep

Crow 10-06-2008 03:21 PM

I have to spread first :\ Good job, looks pretty awesome.

Admins 10-07-2008 11:08 PM

Nice :)
The next version can download fonts

maximus_asinus 09-18-2017 11:52 PM

I'm going to necro the hell out of this post. Was automatic font download added to the Windows client? Or will I have to use a download package?

MysticalDragon 10-14-2017 11:21 AM

yes customs fonts have been added since awhile ago.

maximus_asinus 10-15-2017 07:19 AM

How exactly does this work then? I created a new folder for .ttf files and uploaded it. But F2 gave error messages about the font not being found and would not download.

MysticalDragon 10-15-2017 04:58 PM

in folder configuration add this

file fonts/*.ttf
file fonts/*.otf


for your rights they would be

rw levels/fonts/*.ttf
rw levels/fonts/*.otf

Kamaeru 10-15-2017 09:52 PM

Quote:

Originally Posted by MysticalDragon (Post 1741981)
in folder configuration add this

file fonts/*.ttf
file fonts/*.otf


for your rights they would be

rw levels/fonts/*.ttf
rw levels/fonts/*.otf

I'm pretty sure that's the first thing we tried, but maybe I'm remembering wrong.

maximus_asinus 10-16-2017 12:21 AM

Quote:

Originally Posted by Kamaeru (Post 1741986)
I'm pretty sure that's the first thing we tried, but maybe I'm remembering wrong.

No, you're right. We tried this. Maybe it has to do with how I'm trying to use the font. It was inside of a GuiMLTextCtrl and I was using fonttype. I could see the changes locally because I had the font installed, but it wouldn't download from the server. F2 said the font couldn't be found.

MysticalDragon 10-16-2017 04:17 AM

show me your TextControls

maximus_asinus 10-16-2017 05:02 AM

Quote:

Originally Posted by MysticalDragon (Post 1741988)
show me your TextControls

I eventually removed the font type option, but I believe the script looked something like this:

PHP Code:

new GuiMLTextCtrl("say3_text") {
  
useownprofile true;
  
profile.fonttype "FONT NAME";
  
profile.fontcolor = { 255255255255 };
  
profile.textshadow true;
  
profile.shadowoffset = { 2};
  
profile.shadowcolor = { 00};
  
profile.fontsize 32;
  
htmllinks true;
  
width say3_scroll.width 10;
  
height say3_scroll.height 10;
  
0;
  
text " ";


In place of FONT NAME I used the font name inside of the .ttf file (in this case I was testing using a Zelda font, Return of Ganon I think). I also used the file name itself (returnofganon.ttf I believe).

MysticalDragon 10-16-2017 05:49 AM

profile.fonttype = ""; is correct but without the extension

you can also do this

text = "<font face=arial>TEXT</font>"; //don't add extensions (if its GUIMLTextCtrl)

maximus_asinus 10-16-2017 06:04 AM

Quote:

Originally Posted by MysticalDragon (Post 1741990)
profile.fonttype = ""; is correct but without the extension

you can also do this

text = "<font face=arial>TEXT</font>"; //don't add extensions (if its GUIMLTextCtrl)

I tried that as well.
Quote:

Originally Posted by F2 Log
File download: returnofganonbd.ttf not found

folder config has:
file fonts/*.ttf
and the font is uploaded to fonts/

I will try with another font to see if maybe it is an issue with the font itself.

EDIT I've tried a few different fonts and none of them download. I don't know if it has anything to do with it, but occasionally we have an error message about a japanese file type being too large to download in RC.

MysticalDragon 10-16-2017 06:59 AM

I wonder since its G2k1 if the NPC-Server is outdated and doesn't support it. i'll have to investigate more.

Kamaeru 10-16-2017 09:51 AM

Quote:

Originally Posted by MysticalDragon (Post 1741992)
I wonder since its G2k1 if the NPC-Server is outdated and doesn't support it. i'll have to investigate more.

That would be good. We have frequent disconnects and would be cool if possible to have more server memory. For stuff like events, the disconnect issue is a big problem.

maximus_asinus 10-17-2017 04:07 AM

Quote:

Originally Posted by Kamaeru (Post 1741993)
That would be good. We have frequent disconnects and would be cool if possible to have more server memory. For stuff like events, the disconnect issue is a big problem.

I agree. The disconnects are a bit tedious. It makes communicating between staff a bit harder when you leave them a message in RC or via PM and they end up being disconnected before they read it. Also annoying when trying to bug fix, because the error is most commonly encountered when a level is updated.

maximus_asinus 10-28-2017 05:02 AM

Quote:

Requested file DroidSansFallback.ttf is larger than the maximum allowed file size (1048576)
Default game file(s) found (relative to levels/, max 50 files):
mainfiles/fonts/DroidSansFallback.ttf: not downloadable because size is over download limit, 3727996 byte, 2013-09-09 10:33:32
This is the specific error related to fonts we've been experiencing. I'm not even sure why it is being prompted. I can't find anything related to that file name inside of the scripts.


All times are GMT +2. The time now is 11:13 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.