27 Feb, 2014, Dalsor wrote in the 1st comment:
Votes: 0
Greetings, all.

After being out of MUD development for a few years, I'm starting to get back into it. My old AWW base is highly dated, and I'm not so much into Wheel of Time stuff anymore, so I thought I'd look around into some of the other bases. After reading good stuff about SMAUG, and seeing that AFK has overland maps built into it, I said, let's give this a try.

No trouble compiling, MUD boots fine with no errors, and after looking over the docs and the one.png that ships with the base, I started working on creating a new map PNG. I should note that I'm using GIMP with the pencil tool, being careful that my lines are solid colors, and as the docs state, making sure there are no blended lines. My GD version is 2.0.34 if it makes a difference.

After drawing out a few islands with two simple colors (ocean and fields), I loaded the map and everything looked good. Then I started adding in some new sector types, notably deep water, hills, rivers, and sand. For the most part, everything looks good, but I started seeing some of what I want to call corruption in the map display. Below is one example of such. Where it says "Sector type: water_noswim. Coord)s" is the first thing I see.

~+~~~~~~~+++++++++++++++++++++++++++++++++++++++~~~~~~~+++++~~~++++~~~~~~~~
++++~~~+++++^++++++++++++++++++++++++++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++++++++++++^++++++++++++++++^++^^+^^+++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+++++++++^^^^++++++++++++++++^++^^+^^++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++^++++^^^++++++++++++++++++^^+^^^^^++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+^^^++++++++++++++++++++++++^^^^+++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++^^++++++++++++++++++++++++^^^^+++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++^+++++++++++++++++++++++++^+++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+++++++++++++++++++++++++++^^++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+++++++++++++++++++++++++++^^+++~~~++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~++++++++++++++++++++++++++^++++~~++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~+++++++++++++++^++++++++^+++~~+++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~++++++++++++++^^^++++++^^++~~+++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~++++++++++++++^^^^++++^^++~+++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~+++++++++++++^^+^^^+++^++~++++~@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~+++++++++++^++++^^+++++~~++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~++++++++^^+++++^^++++~~++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~+++++++^++~~+++^^++++~+++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~++++++^+++~++++^^+++~~++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~++++++^+++~+++++^+++~~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~+++++^+++~~+++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~++++^^+++~+++++++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~++++^+++~~++++++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~++++^^+++~~++++++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~++++^++++~++++++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~++++^++++~~++++++~~+++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~++++++++++~~+++++~~~+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~++++++++++~+++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
~~~~~~~~~~~~~~~~~++++++++++~~++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++
Travelling on the continent of One.
The deep waters lap at your feet.
Sector type: water_noswim. Coord)s
nates: 197X, 205Y


Here I've added in some sand sectors. This is where it starts to get interesting.

+++++++^^+~~~+++++++++++++^++++++++++++++++^++^^+^^+++++~~~~~~~~~~~~~~~~~~~
+++++++^^+~~+++++++++++^^^^++++++++++++++++^++^^+^^++++~~~~~~~~~~~~~~~~~~~~
++++++++^+~~++++^++++^^^++++++++++++++++++^^+^^^^^++++~~~~~~~~~~~~~~~~~~~~~
++++++++++~~+++^^^++++++++++++++++++++++++^^^^+++++++~~~~~~~~~~~~~~~~~~~~~~
+++++++++~~~++++^^++++++++++++++++++++++++^^^^+++++++~~~~~~~~~~~~~~~~~~~~~~
++++++++~~~~++++^+++++++++++++++++++++++++^+++++~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~+++++++++++++++++++++++++++++++^^++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~++++++++++++++++++++++++++++++^^+++~~~..~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~++++++++++++++++++++++++++^++++~~….~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~+++++++++++++++^++++++++^+++~~..++.~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~++++++++++++++^^^++++++^^++~~.++..~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~++++++++++++++^^^^++++^^++~..+..~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~+++++++++++++^^+^^^+++^++~..+.~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~+++++++++++^++++^^+++++~~.+..~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~++++++++^^+++@+^^++++~~.++.~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~+++++++^++~~+++^^++++~..+..~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~++++++^+++~++++^^+++~~….~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~++++++^+++~+++++^+++~~~~.~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~+++++^+++~~+++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++^^+++~++++++++++++.~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++^+++~~+++++++++++.~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++^^+++~~++++++++++..~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++^++++~++++++……~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++^++++~~+++++.~~…~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++++++++~~++++.~~~.~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++++++++~++++…~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++++++++~~……..~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+++……~~…….~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~w
~~~~~~~~~….~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travelling on the continent of One.
Rich farmland stretches out before you.
Sector type: field. Coordinates: 183X, 207Y


Is it obvious to someone where I'm going wrong? I expect it's probably something pretty simple with where or how I'm placing the sectors, but I'm totally missing it.

One.png

Thanks

Dalsor
27 Feb, 2014, Davion wrote in the 2nd comment:
Votes: 0
Hey Dalsor!
Looks like a buffer is getting trampled somewhere. Try running it under valgrind to see if it gives anything when you hit look.
27 Feb, 2014, Dalsor wrote in the 3rd comment:
Votes: 0
Heya, Dav :)

Yes, buffers. Good call. Thanks! Did I mention it's been a few years? Time to dust off and polish up my debugging skills.
0.0/3