cMud Map Importer
Re: cMud Map Importer
Ok cool - I added some fluff to the script and updated the post, hope that's ok
Re: cMud Map Importer
That's all good. One thing to note is that I scale the x/y coordinates down. In cMud they are separated by 240 pixels, I divide by 60 to make it 4 pixels. You need to figure out the math that works with how you offset your directions.
Re: cMud Map Importer
After running the commands cmud makedb and cmud importmap, i get this:
null roomdesc:27967
cMud map successfully imported.
but when i open map up, there's nothing there. how do i get the map to display?
null roomdesc:27967
cMud map successfully imported.
but when i open map up, there's nothing there. how do i get the map to display?
Re: cMud Map Importer
You need to set yourself to a room number. The null roomdesc means that room number 27967 doesn't have a room desscription. You can set yourself to a room number centerview(roomId). This needs to be called from an alias, etc.
Re: cMud Map Importer
Which Mudlet color scheme are you meaning?
Re: cMud Map Importer
Hey I am trying your map importer for my Shadows of Isildur map created in cmud. I ran the "cmud makedb" alias and I didn't get any confirmation message saying success or fail. I also ran the "cmud importer" alias and picked my map. hit the open button and nothing happens. I don't see the successful or fail message.
Not sure why the alias's aren't firing. Any ideas?
I just noticed that the SqlMap Initiator has a bug. The error says
Lua syntax error:[string "..."]:36: unexpected symbol near '..'
I believe it is this line:
Not sure why the alias's aren't firing. Any ideas?
I just noticed that the SqlMap Initiator has a bug. The error says
Lua syntax error:[string "..."]:36: unexpected symbol near '..'
I believe it is this line:
In the InitSql function. When I comment it out the bug goes away.
Re: cMud Map Importer
That line is actually extremely important. What does doing display(dir) and display(loc) give? It may be that you don't have your default save directory as '.../profiles' because I parse for that in loc. There actually is no output when its successful, which I can change after this issue is resolved.
Re: cMud Map Importer
The line in the initSl function that is showing an error is:
The dir variable is: C:\Users\Shawn\.config\mudlet\profiles\Shadows of Isildur
The loc variable is: 31
After I remove the [\/] from that line it gives the DB created successfully line.
I ran the "cmud importmap" alias and selected my map. It delays and shows nothing while the import begins then I got this messaage:
Now after I got that information I went and clicked on the map button and it says there is no map.
I believe this is the problem. If I remove "[\/]" from the line the error goes away. Once I do that I can run the script with a debug line for the dir and loc variable.
The dir variable is: C:\Users\Shawn\.config\mudlet\profiles\Shadows of Isildur
The loc variable is: 31
After I remove the [\/] from that line it gives the DB created successfully line.
I ran the "cmud importmap" alias and selected my map. It delays and shows nothing while the import begins then I got this messaage:
As for the output I suggest having a line at the beginning saying import started please wait. Then make sure the successful is on a separate line.
Now after I got that information I went and clicked on the map button and it says there is no map.
Re: cMud Map Importer
No map means either no map or no position to display - try centerview(1) to center on the first room.