Map Visualization

Posted by LupusFatalis on Thu 24 Sep 2009 06:11 PM — 3 posts, 15,629 views.

#0
So, I've been working on a mapper here and there in my free time--little of it as there is. Currently it generates a CSV database with all the pertinent data. Its not fully done, just mostly done--in order to proceed it would be incredibly helpful if I could see what was going on (that and once I can see something this becomes a functional program).

I could write a separate python program that reads the database, shows the visualizations, etc... However, I don't know how I would get it to interact with my plugin. Any suggestions?
USA #1
The classic IPC (Inter-Process Communication) method is through sockets. In Python it should be reasonably simple to set up a connection; although I've never actually used Python, I see there's a standard 'socket' package.

Another possibility would be writing the separate program as another plugin, and having them communicate via MUSHclient's CallPlugin, GetPluginVariable, and (maybe) BroadcastPlugin. This comes with its own set of difficulties and limitations, though, so it depends on what you're comfortable with.
Australia Forum Administrator #2
I would be tempted to use a SQLite database, rather than a CSV file, as you could add new rooms on the fly without having to write out the whole CSV file every time you want to save it.