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)

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 10:37 PM.

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