Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Clientside Sign Detection (https://forums.graalonline.com/forums/showthread.php?t=65171)

jake13jake 04-03-2006 07:50 PM

Clientside Sign Detection
 
I'm suggesting this, not because I think all sign reading should be done clientside, but because I think the player should be able to stop moving when they've encountered a sign--- a sign that they're reading a sign.

Perhaps there could be a fade-in effect for the sign's background to pass the time for the entire sign to load.

Warcaptain 04-03-2006 08:00 PM

Sign reading is serverside so that translations can work. If you do it clientside then youd have to load up the translations into the client on startup which could possibly take a long time if a server has a full translation (like I think Graal Kingdoms does) Also you can do this sort of thing yourself with testsign()

jake13jake 04-03-2006 11:24 PM

Quote:

Originally Posted by Warcaptain
Sign reading is serverside so that translations can work. If you do it clientside then youd have to load up the translations into the client on startup which could possibly take a long time if a server has a full translation (like I think Graal Kingdoms does) Also you can do this sort of thing yourself with testsign()

testsign works clientside? don't know if I've tried. I know that uhh... signs[index].x,y works only serverside though.
x_x

Warcaptain 04-04-2006 05:10 AM

Yes, testsign(x,y) works clientside

also
NPC Code:

TServerSign (TLevelObject):
text - string


Admins 04-04-2006 06:11 PM

The server doesn't send signs, it's also a way to reduce the data that is sent to the client. The detection for if someone is touching a sign is done on serverside, and the translated text is then sent to the client. On the clientside it is displaying the sign, and you can check with 'if (playerreading)' (or player.reading in new scripting engine) to know if the player is reading a sign.
Normally the lag is not that much that you actually notice a delay between touching and seeing the sign, for a fade-in effect it might be interesting to do your own sign-system. Eventually it should be made easier to fade-in / fade-out GUI controls.

jake13jake 04-04-2006 06:44 PM

Quote:

Originally Posted by Stefan
The server doesn't send signs, it's also a way to reduce the data that is sent to the client. The detection for if someone is touching a sign is done on serverside, and the translated text is then sent to the client. On the clientside it is displaying the sign, and you can check with 'if (playerreading)' (or player.reading in new scripting engine) to know if the player is reading a sign.
Normally the lag is not that much that you actually notice a delay between touching and seeing the sign, for a fade-in effect it might be interesting to do your own sign-system. Eventually it should be made easier to fade-in / fade-out GUI controls.

Yea, I guess so. I'm probably just being lazy by suggesting this.


All times are GMT +2. The time now is 01:30 PM.

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