In MudMain.properties, uncomment "item.map.class=com.sun.sgs.darkmud.map.WallMap"
line to enable map.
Clear dsdb, then run server and look for error..getting a MangledObject
/ MangledReference error for a Channel...hmm...
looking through .map.Mapper code for Channel uses...
Try commenting out WallMap.java:25..call to Mapper.startMapping()..build
and copy to try..hmm..no error on startup..
So, problem is with Mapper class...uncomment line 25..
try commenting out Mapper.java:66 & 68..hmm..no error..
Read ChannelManager.java comments...try creating a Channel then use
getChannel(name) when going to use it..
Change Mapper.java:57
// private Channel channel = null;
private String channelName = null;
Change Mapper.java:67
// Mapper mapper = new Mapper(channel);
Mapper mapper = new Mapper(MAP_CHANNEL);
uncomment :70
Change Mapper.java:75
// private Mapper(Channel channel) {
private Mapper(String name) {
// this.channel = channel;
channelName = new String(name);
Add Mapper.java:94
Channel channel = AppContext.getChannelManager().getChannel(channelName);
try it..doh..forgot to uncomment WallMap.java:25 to init Mapper...more
working, but not complete..
Try using Mapper.MAP_CHANNEL for getChannel in Mapper instead of saved
String.
got aClient error when trying "look map"..ReadOnlyBufferException..client.MapFrame.receivedMessage(:62)
ByteBuffer readonly..so need to copy message..
Change .client.MapFrame.java:62
// byte[] b = message.array();
byte[] b = new byte[message.capacity()];
/* Looks strange, but it does copy the message
into the array. */
message.get(b);
WOO HOO..that did it..now a Map pops up when I use "look map"...
hmm..it seems to build a map from properties file and shows all players
in the world..interesting..
I declare Plan 7 successful..updating SVN..and makeing a final zip
file "fixedUp7400srcALL.zip".
Excellent..now done with First phase of the project.