zones not working?
I downloaded QuestJS recently and started playing around with it. I'm enjoying it so far, but I tried putting a Zone in my game the other day and it broke everything. The game wouldn't load any text or recognise any commands, though the compass still worked. When I used F12 to check, it reported the following error:
The room that uses the ZONE template must have an attribute called "zoneDescs". Checking the docs, I see they say it should be "descs". Hopefully if you just change the attribute name it will work. I have modified the docs.
Tried it out and it's still not working, though the zoneDescs error is gone. It's showing a different error now:
can you show us the code you are using for the zone
I've been playing around with it and I seem to have got it working, but I'm a bit confused about what the problem seemed to be. Apparently, the game was breaking because the zone's name was too long?
I had given the zone the name "alvirafields". On a whim, I tried shortening the name to just "alvifields" and suddenly everything worked just fine. I played around with different name lengths to find the exact cut-off point, and it turns out that shortening "alvirafields" by even one letter made the zone work, while using the full original name caused the game to break completely. So it seems that the character limit for zone names is 11.
I assume this isn't intentional, since the page on zones doesn't have any warnings about a name limit (and I have regular rooms with 11+ character names that work just fine, so it's clearly a zone-specific issue).
Is it possible you had another item or room called "alvirafields"? I appreciate you tried other names, but I am struggling to account for this. I just tried a zone called "great_desert_zone" (19 characters) and that is okay.