QuestJS icon indicating copy to clipboard operation
QuestJS copied to clipboard

zones not working?

Open kibapher opened this issue 1 year ago • 5 comments

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:

QuestJS ZoneDesc Error

kibapher avatar Jan 02 '25 07:01 kibapher

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.

ThePix avatar Jan 08 '25 20:01 ThePix

Tried it out and it's still not working, though the zoneDescs error is gone. It's showing a different error now:

QuestJS ZoneDesc Error 02

kibapher avatar Jan 09 '25 12:01 kibapher

can you show us the code you are using for the zone

Woodhouse3D avatar Jan 17 '25 04:01 Woodhouse3D

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).

kibapher avatar Jan 22 '25 05:01 kibapher

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.

ThePix avatar Jan 30 '25 21:01 ThePix