Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Resolved: showpoly issues (https://forums.graalonline.com/forums/showthread.php?t=61897)

jake13jake 10-24-2005 08:56 AM

Resolved: showpoly issues
 
2 Attachment(s)
There are quite a few showpolys in this script. Each one shares one coordinate with the previous one until it goes in full circle around the player. The script works fine in version 2, but in version 4 it has these strange gaps.

Wait, that isn't the only thing with showpoly issues for me, my online tile editor as well has issues with it.

Admins 10-24-2005 10:07 PM

For the showpoly bug please give me the server name, level name and script name so that I can test it myself. What is the problem with your tile editor ?

ZeLpH_MyStiK 10-25-2005 12:49 AM

Speaking of tile editors, the updateboard2 bug still exists:
Server: #gscript
Level: shadowblaze_test.nw
NPCW: Zelph_OLE


Plus, showpoly with index below 200 seems to only work for the player who's calling the showpoly function.
Server: N-Pulse
NPCW: SB/Test3
Just a little example, works fine for the player calling it, but other players either can't see it at all or see little white lines on the edge.

CheeToS2 10-25-2005 03:01 AM

Quote:

Originally Posted by ZeLpH_MyStiK
Speaking of tile editors, the updateboard2 bug still exists:
Server: #gscript
Level: shadowblaze_test.nw
NPCW: Zelph_OLE


Plus, showpoly with index below 200 seems to only work for the player who's calling the showpoly function.
Server: N-Pulse
NPCW: SB/Test3
Just a little example, works fine for the player calling it, but other players either can't see it at all or see little white lines on the edge.

The updateboard2 thing requires a GServer and NPCserver restart to take effect (assuming the new GServer has been uploaded).

Not sure about the showpoly thing, I will look at it when I have time, but I am positive that showpolys with indices below 200 do work, so your script probably does something unusual.

jake13jake 10-25-2005 04:23 PM

Server: Classic

Lantern Circle: Class named lantern_darkroom
Levels: quest_forest_05.nw, quest_water_18.nw

Tile Editor: Weapon of Same Name
Uses showpoly for interface control, (scroll bars, resize, window mobility, tile selection showpolys seem to work). Right-click takes you out of a mode like window moving, window resize, or scrolling; might be good to know.

If I were to rescript the Tile Editor, I'd probably only do it after the first 8-9 or so quests were up, and use showimgs for gui control instead, as well as expand its functionality.

Admins 11-21-2005 08:47 PM

I tried to fix the lantern problem, but it seems to be quite complicated. So I have fixed the script on classic to only use one single polygon.

jake13jake 11-21-2005 08:53 PM

Quote:

Originally Posted by Stefan
I tried to fix the lantern problem, but it seems to be quite complicated. So I have fixed the script on classic to only use one single polygon.

That's what I was trying to do initially, but it kept on drawing over the player. See Massokre/Curse NPC for example.

Admins 11-22-2005 12:01 AM

Quote:

Originally Posted by jake13jake
That's what I was trying to do initially, but it kept on drawing over the player. See Massokre/Curse NPC for example.

Well then do it right next time :)

jake13jake 11-22-2005 03:11 AM

Quote:

Originally Posted by Stefan
Well then do it right next time :)

Well, in that case I have to ask, what is the order of coordinates that showpoly uses to draw?

Admins 11-22-2005 02:32 PM

?
0 -> 1 -> 2 -> .... -> 0

jake13jake 11-22-2005 09:00 PM

So it always returns to the first coordinate after it finishes the rest of the coordinates. Would there be any effect of setting the last coordinate to the first coordinate, or would that be unneccessary?

Admins 11-24-2005 08:08 PM

Unneccessary I guess


All times are GMT +2. The time now is 09:16 AM.

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