Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
frasten
Beginner


Joined: 06 Jan 2006
Posts: 24

PostPosted: Mon Dec 08, 2008 4:07 pm   

[3.02B] cMud and %map object not working correctly anymore
 
Hi, I'm experiencing some issues with cMud and %map object.
I have zMapper installed, so I can access %map object.


For my tests I'm using the following maps:
- old zmud/cmud 2.xx format
- new 3.xx format


The test room is for example ID 8825:
Code:
#tele 8825


In zmud, I execute the following command:
Code:
#echo %map.CurRoom.exitlist.item(0).id

and the same replacing "0" with 1,2 and 3 (the room has 4 exits).
I also replace "id" with some other properties: dir, kindid, fromid, toid, doorname.

Note: for cmud 2/3 I have to split the command into two, due to this bug:
Code:

#var tempmap %map.CurRoom.exitlist
#echo @tempmap.item(0).id



I get different results: zMud works ok, cMud 2.37 has got some issues, and cMud 3.02beta is completely screwed up:

zMud 7.21
Code:

id       dir   kindid      fromid     toid        doorname
22623    4     1           8825       8827        porta
22622    0     1           8825       8826        porta
22621    6     0           8825       8828       
22620    2     0           8825       8814       



cMud 2.37
Code:

id       dir   kindid      fromid     toid        doorname
22623    4     1           8825       8827       
22622    0     1           8825       8826       
22621    6     0           8825       -1         
0        32    305257536   0          177363920   



cMud 3.02beta
Code:

id       dir   kindid      fromid     toid        doorname
104      17    0           0          121         0
6728572  12    0           179066416  0           <error>
82       110   1634297955  1751344419 1702240367  <error>
6728572  2     0           179113048  0           <error>



I also inspected the database in sqlite and mdb format, and the data seems to be ok in both cases:
Code:
select * from exittbl where fromid = "8825"


and I get:
Code:

exitID exitTO fromID ToID ExitKind Param DirType DirToType
22620  22599  8825   8814 0              2       6
22621  22626  8825   8828 0              6       2
22622  22624  8825   8826 1        porta 0       4
22623  22625  8825   8827 1        porta 4       0



Thank you for reading this! :-)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Dec 10, 2008 5:49 pm   
 
OK, I think I found the problem with this. I also fixed the problem with using
Code:
#echo %map.CurRoom.exitlist.item(0).id

for the next version.
Reply with quote
frasten
Beginner


Joined: 06 Jan 2006
Posts: 24

PostPosted: Wed Dec 10, 2008 7:11 pm   
 
Great!!! Many thanks!!! :-)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net