Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Can't load sign data (https://forums.graalonline.com/forums/showthread.php?t=134257192)

DustyPorViva 12-04-2009 06:13 PM

Can't load sign data
 
I can't seem to get sign data to load on the serverside of clientside. It simply returns nothing, regardless of what I do.

On the clientside, testsign doesn't even work... though I've heard sign data is not loaded on the clientside to conserve bandwidth. However, on the serverside, echo(level.signs.size()) returns nothing as well. Even when I used findlevel("levelname.nw"), and I've tested using tiles[x,y] and the level is there and sending data, but just not sign data. Any help here?

DustyPorViva 12-16-2009 11:08 AM

Nothing?

Tigairius 12-16-2009 11:14 AM

I don't think it works, I've been trying to access this for a long time.

DustyPorViva 12-16-2009 11:38 AM

:( Then any word if this will be fixed by the next version? It's pretty damn crippling.

cbk1994 12-16-2009 02:09 PM

I'm fairly certain signs are deprecated anyway, probably best to just use a script.

fowlplay4 12-16-2009 06:54 PM

Well since signs doesn't work, could just use onLevelFileUpdated(), loadlines, and a DB-NPC or maybe even into the level itself (if that's possible) to hold the parsed sign data.

DustyPorViva 12-16-2009 08:06 PM

Quote:

Originally Posted by cbk1994 (Post 1544750)
I'm fairly certain signs are deprecated anyway, probably best to just use a script.

How are they deprecated? Just about every single server uses them, and for developers like level makers, they're much easier to use than having to manipulate a script.

Fowlplay, I was thinking I would have to load it each time the player enters... but that may work as well!

fowlplay4 12-16-2009 08:40 PM

Quote:

Originally Posted by DustyPorViva (Post 1544803)
Fowlplay, I was thinking I would have to load it each time the player enters... but that may work as well!

Yeah it would probably be better to use a DB-NPC, onPlayerEnters, and getfilemodtime (so you won't have to reload it every time), as a backup plan too.

Admins 02-03-2010 03:56 PM

The text is sent dynamically when a player touchs a sign, so there is no need to send the signs to the client-side. However you cannot access signs or links yet on the server-side by script.

DustyPorViva 02-03-2010 04:00 PM

Quote:

Originally Posted by Stefan (Post 1553946)
The text is sent dynamically when a player touchs a sign, so there is no need to send the signs to the client-side. However you cannot access signs or links yet on the server-side by script.

That's troublesome because I need to access them :(

Can't you add a way to make specific sign data be sent and accessed via script?


All times are GMT +2. The time now is 08:20 PM.

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