Thread Tools Display Modes
04/13/17, 03:10 PM   #1
patrick_smyth
AddOn Author - Click to view addons
Join Date: Oct 2016
Posts: 9
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?
  Reply With Quote
04/13/17, 03:57 PM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
assume 10000, you'll be okay for few dlc. no other methods.
  Reply With Quote
04/13/17, 04:43 PM   #3
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
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.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Maximum Zone Index

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off