ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Maximum Zone Index (https://www.esoui.com/forums/showthread.php?t=6968)

patrick_smyth 04/13/17 03:10 PM

Maximum Zone Index
 
In my current project I build a table of zone names using:

Code:

            zoneName = GetZoneNameByIndex(zoneIndex)
            zoneId = GetZoneId(zoneIndex)
            canJump, result = CanJumpToPlayerInZone(zoneId)

My problem is finding out the maximum value for zoneIndex. At the moment 562 works fine but 563 results in a hang on my system and I have to kill the client process. I know this value changes often so I do not want to hardcode it (562). At the moment the table is recreated every time the module initialises.

I have a similar table for nodes but there I use GetNumFastTravelNodes(). I cannot find anything like this for zones.

Any advice?

Ayantir 04/13/17 03:57 PM

assume 10000, you'll be okay for few dlc. no other methods.

Dolgubon 04/13/17 04:43 PM

If you hang every time you try values higher than 562, try checking to make sure that the values exist. So for example check that the zone name isn't the empty string.


All times are GMT -6. The time now is 12:58 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI