Re: Extreme slowdowns with setRoomArea/resetRoomArea
Posted: Tue Apr 19, 2016 8:58 pm
deleteRoom(roomid) is crashing - Not always, but often. I'll need to figure out the exact sequence/whether it only happens after the original loading of the map etc, but it isn't giving me an error, just crashing Mudlet.
I keep all rooms unassigned until I 'map' the room. When I try showing the room now, it's giving a warning:
[MAP ERROR:]Warning: When setting the Area for Room (Id: 48605) it did not have a current area!
I just successfully built a 30k mapfile using the newer version. The map itself is building from the cmud import on my computer in 15 seconds (30000 rooms, previous would have been 4-5 hours+) - It's also running fast fast fast
(edit)
Somewhat related to the 2nd error: Error is thrown, and it refuses to move the room into -1
lua getRoomArea(81889)
43
lua resetRoomArea(81889)
false
lua getRoomArea(81889)
43
[MAP ERROR:]AreaID=-1 does not exist, can not set RoomID=81889 to non-existing area!
-----
Quite possibly this one i've just never seen before (i.e. it never echoed about it)
[ INFO ] - Reading map (format version:16) file:
"C:/Users/Chris/.config/mudlet/profiles/toril010d_0409c/map/19-04-2016#18-29-45map.dat",
please wait...
[ INFO ] - Sucessfully read the map file in 0.224778 seconds, will now check
some consistency details, please wait...
Does that imply that (given i'll now be able to use just a single map file) once i've loaded it the first time on installation, I don't really need to ever be loading it again? I rechecked the event order:
[ OK ] - Lua module rex_pcre loaded.
[ OK ] - Lua module zip loaded.
[ OK ] - Lua module lfs loaded
[ OK ] - Lua module sqlite3 loaded
[ INFO ] - Reading map (format version:16) file:
"C:/Users/Chris/.config/mudlet/profiles/toril010d_0409c/map/19-04-2016#21-40-44map.dat",
please wait...
[ INFO ] - Sucessfully read the map file in 0.235013 seconds, will now check
some consistency details, please wait...
[ INFO ] - ...auditing of map starting...
[ INFO ] - Area Id numbering is satisfactory.
[ INFO ] - Room Id numbering is satisfactory.
[ OK ] - Auditing of map completed in 0.282273 seconds. Enjoy your game...
[ OK ] - Mudlet-lua API & Geyser Layout manager loaded.
[Initializing NyyLIB...]
Script version: 4/9/2016 NyyLIB010d https://github.com/Nyyrazzilyss/NyyLIB
[Loaded charData]
SQLite3 connection (0C51F518)
[Consumable database cached: Potions, Scrolls]
[Initializing chat windows...]
[Chat containers created]
(at this point I place a call to Geyser.Mapper:new )
[ INFO ] - Reading map (format version:16) file:
"C:/Users/Chris/.config/mudlet/profiles/toril010d_0409c/map/19-04-2016#21-40-44map.dat",
please wait...
[ INFO ] - Sucessfully read the map file in 0.173933 seconds, will now check
some consistency details, please wait...
[ INFO ] - ...auditing of map starting...
[ INFO ] - Area Id numbering is satisfactory.
[ INFO ] - Room Id numbering is satisfactory.
[ OK ] - Auditing of map completed in 0.282186 seconds. Enjoy your game...
It would appear the map file is getting loaded twice, before I even reach the point where I was going to load it myself
I keep all rooms unassigned until I 'map' the room. When I try showing the room now, it's giving a warning:
[MAP ERROR:]Warning: When setting the Area for Room (Id: 48605) it did not have a current area!
I just successfully built a 30k mapfile using the newer version. The map itself is building from the cmud import on my computer in 15 seconds (30000 rooms, previous would have been 4-5 hours+) - It's also running fast fast fast
(edit)
Somewhat related to the 2nd error: Error is thrown, and it refuses to move the room into -1
lua getRoomArea(81889)
43
lua resetRoomArea(81889)
false
lua getRoomArea(81889)
43
[MAP ERROR:]AreaID=-1 does not exist, can not set RoomID=81889 to non-existing area!
-----
Quite possibly this one i've just never seen before (i.e. it never echoed about it)
[ INFO ] - Reading map (format version:16) file:
"C:/Users/Chris/.config/mudlet/profiles/toril010d_0409c/map/19-04-2016#18-29-45map.dat",
please wait...
[ INFO ] - Sucessfully read the map file in 0.224778 seconds, will now check
some consistency details, please wait...
Does that imply that (given i'll now be able to use just a single map file) once i've loaded it the first time on installation, I don't really need to ever be loading it again? I rechecked the event order:
[ OK ] - Lua module rex_pcre loaded.
[ OK ] - Lua module zip loaded.
[ OK ] - Lua module lfs loaded
[ OK ] - Lua module sqlite3 loaded
[ INFO ] - Reading map (format version:16) file:
"C:/Users/Chris/.config/mudlet/profiles/toril010d_0409c/map/19-04-2016#21-40-44map.dat",
please wait...
[ INFO ] - Sucessfully read the map file in 0.235013 seconds, will now check
some consistency details, please wait...
[ INFO ] - ...auditing of map starting...
[ INFO ] - Area Id numbering is satisfactory.
[ INFO ] - Room Id numbering is satisfactory.
[ OK ] - Auditing of map completed in 0.282273 seconds. Enjoy your game...
[ OK ] - Mudlet-lua API & Geyser Layout manager loaded.
[Initializing NyyLIB...]
Script version: 4/9/2016 NyyLIB010d https://github.com/Nyyrazzilyss/NyyLIB
[Loaded charData]
SQLite3 connection (0C51F518)
[Consumable database cached: Potions, Scrolls]
[Initializing chat windows...]
[Chat containers created]
(at this point I place a call to Geyser.Mapper:new )
[ INFO ] - Reading map (format version:16) file:
"C:/Users/Chris/.config/mudlet/profiles/toril010d_0409c/map/19-04-2016#21-40-44map.dat",
please wait...
[ INFO ] - Sucessfully read the map file in 0.173933 seconds, will now check
some consistency details, please wait...
[ INFO ] - ...auditing of map starting...
[ INFO ] - Area Id numbering is satisfactory.
[ INFO ] - Room Id numbering is satisfactory.
[ OK ] - Auditing of map completed in 0.282186 seconds. Enjoy your game...
It would appear the map file is getting loaded twice, before I even reach the point where I was going to load it myself