Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ Plugins ➜ Map Visualization

Map Visualization

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by LupusFatalis   (154 posts)  Bio
Date Thu 24 Sep 2009 06:11 PM (UTC)
Message
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?
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Thu 24 Sep 2009 11:57 PM (UTC)
Message
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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,102 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 26 Sep 2009 01:17 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,907 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.