mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #02261
Re: [Bug 1081856] Re: getAreaRooms() can fail to return room list for valid areas
You can use the Lua function getRooms() to get a list of all rooms in
the map. You can use this to cross check the areas without rooms against
the rooms db - e. g. if you find any rooms for area ID 237 this bug
report is correct otherwise it's not a bug, because area 237 has been
declared, but no rooms have been added so getAreaRooms(237) is correctly
returning nil.
Am 23.11.2012 03:59, schrieb Vadim Peretokin:
> Yeah, quite certain. I gave the person this script to run, and this is
> what what it said:
>
> script:
> local areas = getAreaTable()
> local foundsomething
>
> for areaname, areaid in pairs(areas) do
> if not getAreaRooms(areaid) then
> mmp.echo("No rooms were returned for area ID "..areaid.." - "..areaname)
> foundsomething = true
> end
> end
>
> if not foundsomething then mmp.echo("Test done, getAreaRooms() didn't fail on any rooms.")
> else mmp.echo("Test done.") end
>
>
> output:
> (mapper): No rooms were returned for area ID 237 - Near the remains of a gigantic crab
> (mapper): No rooms were returned for area ID 241 - Isle of New Hope
> (mapper): No rooms were returned for area ID 350 - Houses
> (mapper): No rooms were returned for area ID 276 - Sentinels Estate
> (mapper): No rooms were returned for area ID 357 - Great Hunt Caves
> (mapper): No rooms were returned for area ID 67 - Cyrene, the City of (Brewery)
> (mapper): No rooms were returned for area ID 236 - planetarium
> (mapper): No rooms were returned for area ID 354 - Unknown world
> (mapper): No rooms were returned for area ID 359 - Griesly family manor
> (mapper): No rooms were returned for area ID 358 - Ghost ship
> (mapper): No rooms were returned for area ID 356 - Haunted ruins of Thera
> (mapper): No rooms were returned for area ID 355 - Altar of Sea Spirits
> (mapper): No rooms were returned for area ID 352 - Rhodestrian Settlement
> (mapper): No rooms were returned for area ID 351 - Karbaz Isle
> (mapper): No rooms were returned for area ID 303 - Shamtota Tunnels
> (mapper): No rooms were returned for area ID 239 - Nishnatoba
> (mapper): No rooms were returned for area ID 353 - Frozen Tundra
> (mapper): Test done.
>
> Attached is the map that was used.
>
> ** Attachment added: "map"
> https://bugs.launchpad.net/mudlet/+bug/1081856/+attachment/3441653/+files/map
>
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1081856
Title:
getAreaRooms() can fail to return room list for valid areas
Status in Mudlet the MUD client:
New
Bug description:
getAreaRooms() sometimes will return nil instead of returning all
rooms as it should.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1081856/+subscriptions
References