Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Problem: Text (https://forums.graalonline.com/forums/showthread.php?t=63691)

maximus_asinus 01-25-2006 03:01 AM

Problem: Text
 
I recognize there is several threads about bitmapped fonts and how it changes the fonts, but I have a bug concerning text, which I don't think is related (since it occurs when bitmapped fonts are enabled/disabled).

When I am on Graal Classic, occassionally my ingame text will disappear. When I chat, the messages I say are still sent but I cannot see them. Toalls will appear correctly on my screen during this time, aswell as text in PMs/toguilds. It just seems to be ingame chat text from players and NPCs. It was confirmed that it doesn't effect just me.

Radeon 9550 SE Video Card
Sempron 2400+ AMD Processor (1.66 ghz)
512 MB RAM

Drivers are up to date.

Quote:

Originally Posted by CheeToS2
Does this only happen on Graal Classic?

I don't play other servers and I'm sorry but I can't be bothered to log onto another server and wait for the bug to occur, since it happens randomly. I have asked around but I do not get a responce from people on other servers, so its either confined to Classic, or they chose to ignore me.

CheeToS2 01-25-2006 03:14 AM

Does this only happen on Graal Classic?

jake13jake 01-25-2006 04:20 AM

Quote:

Originally Posted by CheeToS2
Does this only happen on Graal Classic?

I asked around on another server and they said that it's happened to them

Admins 01-25-2006 03:26 PM

Yes we know of the problem of text sometimes disappearing or showing strange characters for a few moments. We have not found why this happens though. If you get any errors in the F2 window or find something that is connected to the problem (file downloaded or so?) then please report it here on the forum.

jake13jake 01-25-2006 06:03 PM

Quote:

Originally Posted by Stefan
Yes we know of the problem of text sometimes disappearing or showing strange characters for a few moments. We have not found why this happens though. If you get any errors in the F2 window or find something that is connected to the problem (file downloaded or so?) then please report it here on the forum.

Well, the problem with the player's chat text disappearing appears to be isolated from the problem with showtexts disappearing (like the chat bar text).

We know it's a clientside problem because it doesn't happen to everybody at once.

It seems to happen to me when I exit the map or weapons list.

My educated guess for the overall font scrambling is that it occurs when you're pressing a key on the keyboard. The chat bar text scrambling ALWAYS occured to me when I pressed a key on the keyboard.

It's not usually related to the character being typed, but rather how many characters you typed before that character. When I backspaced it went to normal, when I typed another character it scrambled again. It's the same case for the chat bar text disappearing.

That's all I really know.

maximus_asinus 01-25-2006 07:58 PM

When I think back on it, most of the times chat text disappears for me is when I am looking at another window (webpages, PMs occassionally, etc) and I click back to the Graal window.

jake13jake 01-26-2006 07:05 PM

Quote:

Originally Posted by maximus_asinus
When I think back on it, most of the times chat text disappears for me is when I am looking at another window (webpages, PMs occassionally, etc) and I click back to the Graal window.

Well, I've been able to isolate it to an enablefeatures problem. Now I just have to figure out which script(s) is/are causing it.

maximus_asinus 01-27-2006 07:38 AM

I think I managed to recreate the bug.
I noticed my text disappear so I reconnected. Massokre's new movement testing NPC needs to be fired for it to take effect, so I open my Q menu. I fire the NPC. I go back to player and everything was fine. I then pressed R and the spar rating came up. When it disappears chat text disappears.

Server: Graal Classic
NPCs: move_test
Recreated bug in: graalcitybank_inside_01.nw

jake13jake 01-27-2006 09:18 AM

Quote:

Originally Posted by maximus_asinus
I think I managed to recreate the bug.
I noticed my text disappear so I reconnected. Massokre's new movement testing NPC needs to be fired for it to take effect, so I open my Q menu. I fire the NPC. I go back to player and everything was fine. I then pressed R and the spar rating came up. When it disappears chat text disappears.

Server: Graal Classic
NPCs: move_test
Recreated bug in: graalcitybank_inside_01.nw

fixed sortof. I'll probably integrate spar rating into the gui NPC in the next few days, removing the -ratings NPC in the test movement.

A shame I don't have my nick-ap color imitator that I made a while back, then I could expand a little bit more. Otherwise it's too much work to figure out the 4-6 equations I figured to govern it.

It's times like this that I wish there were a certain function:
apcolor(ap,base,r/g/b);

like... ap being the AP value. Base being like, foreground or background text (0,1 I'd imagine), and r/g/b being represented somehow. (big hint, not being able to emulate this is the biggest reason why playerworlds don't expand on nickname functionality.)

Admins 01-27-2006 02:30 PM

This should work:
PHP Code:

function getAlignmentColor(value) {
  if (
value<=0) return {64,0,0};
  if (
value<=26) return {128+int(127*(value-1)/25),64-int(64*(value-1)/25),64-int(64*(value-1)/25)};
  if (
value<=49) return {255,int(255*(value-26)/24),int(255*(value-26)/24)};
  if (
value<=55) return {255,255,255};
  if (
value<=60) return {255-int(127*(value-55)/5),255,255-int(127*(value-55)/5)};
  if (
value<=70) return {128-int(128*(value-61)/10),255,128+int(127*(value-61)/10)};
  if (
value<=99) return {0,255-int(255*(value-70)/29),255};
  return {
224,196,0};


It's returning an array of {red,green,blue}, then you only need to use it like this:
PHP Code:

acolors getAlignmentColors(player.ap);
changeimgcolors(indexacolors[0]/255acolors[1]/255acolors[2]/2551); 


jake13jake 01-28-2006 01:28 AM

Quote:

Originally Posted by Stefan
This should work:
It's returning an array of {red,green,blue}, then you only need to use it like this:

And the emboss bit is a simpler algorithm I think?

Admins 02-01-2006 12:47 AM

You mean for the shadow?

PHP Code:

  if (red>0.75 || green>0.75) {
    
red2 0;
    
green2 0;
  } else {
    
red2 1;
    
green2 1;
  }
  
blue2 blue


jake13jake 02-01-2006 05:19 AM

Quote:

Originally Posted by Stefan
You mean for the shadow?

hooray!
oh wait, why am I celebrating when for some reason updated classes don't update on the gmap (on Classic)?
Stefan, please fix this :(. I have no idea what's causing it. It's driving me nuts.


All times are GMT +2. The time now is 02:39 AM.

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