I dont use CMud but I can guess what that error is.
Portals and doors are not added into CMud as a valid direction so its not treating it like a unique entry. So its probably trying to add it in as an existing duplicate entry with an existing PRIMARY KEY. My guess is that, CMud only maps nw, n, ne, e, se, s, sw, w.
The easiest way to solve this is to debug the mapper code and output some sample data to see what it is actually feeding into your database. And if its the not a valid direction entry, you have to manually code in "portal" or "doors" as a valid entry. Though I'm not sure how you would put a portal on a map since it leads you to another place.
So you are left with the question... what constitutes a room that needs to be mapped? - A location that can be mapped - Has exists - Has a description - Takes up a square of space on the map
Based off this definition, a portal does not constitute mappable location. How I would approach this... is by creating an abstract class called location(if it hasn't been created) and create portals/doors as a placeholder that connect two places but dont have an existing location.
|