Skip to content

Zones Issue #3

@mallic

Description

@mallic

Documentation in the zones.ini example isn't particularly clear, but so far I am aware that myself, cur7 and probably vincetti have experienced the following issue, so I am assuming that it's a coding issue and not a config issue. Though we could all just be messing up the same way. Also for vincetti, I am assuming he is having the same issue since on his server, all of his ATMs were still physical NPCs instead of spaces you could walk through and use the function as the zone explanation suggests should be the case.

When trying to put zones into the ini, it just causes every single door entity to show the zone instead of the first zone outlined in the zones.ini. For instance if I try to create a zone for an ATM using the following example (default coordinates from the example file):

Zones.ini
"ATM"
{
"boundaries1" "-198 -39 36",
"boundaries2" "155 -306 36"
}

npcs.ini
type "atm"
name "ATM Machine"
origin "687 437 -347"
model "models/pellet.mdl"
zone "ATM"
[END]

or

type "atm"
name "ATM Machine"
;origin "687 437 -347"
;model "models/pellet.mdl"
zone "ATM"
[END]

Here is the end result: https://i.imgur.com/fF5Ga3c.png
To be clear, the origin coordinates for the ATM are nowhere near that door.

Also, the zone.ini and npc.ini don't actually mention how to tie a zone to a particular NPC. I assume it's just zone "ZONENAME" like I did above, but the NPC.ini just says to put zone there. In either case, doing it either the way I assumed it was supposed to work, or just by only setting up one zone and putting that zone in the file has the same outcome.

Also, for your coordinates on the zones, are you doing a 3d square from top-left to bottom-right, or are you doing a simple two coordinate horizontal space between two points?

Here are the only instructions in the configs for setup:

NPC.ini:
; A zone is a place where a player can stand and talk to an NPC. Global to all NPCs.
; A zone is unsolid and is not rendered, so the player simply has to stand around
; the origin instead of looking at a model.
zone

Zones.ini:
; The name of the zone.
"Zone Name"
{
; The first boundaries.
"boundaries1" "-198 -39 36",
; The second boundaries. Note that these can be out of order.
; The zone plugin will sort out which one should go where.
"boundaries2" "155 -306 36"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions