Thread: So many grids
View Single Post
  #10  
Old 11-03-2008, 10:08 PM
Theeper
Discordant
 
Join Date: May 2004
Posts: 290
Default

You guys can download the source to it now if you want to play around with it. There's some ugly, redundant code and a couple compile warnings, but it's usable.

Here's the Visual C++ 2008 Express project folder. http://www.ascendencyguild.com/emu/GridView_0.1.zip I compiled it on XP. It needs the SDK installed.

It will extract to a folder named 'game1'. Click on GridView.sln to open it and compile. The .exe should run from anywhere.

1. Put in your mysql info
2. Choose the map directory (in-game maps, not emu server maps).
3. Hit 'Load Zones' .. you should see '295 zones loaded' or something similar.
4. Choose a zone from the drop down menu. It should automatically draw.
5. Cycle through the grids with the other dropdown menu.

* I hardcoded the MySQL paths (my system paths are borked right now). You'll probably need to link libmysql.lib and put in the 'additional library' paths for it.
* There is no double buffering, so the image won't redraw when you cover it. Hit a zoom button or grid button to redraw it. It uses only MFC graphics ATM.
* The zoom slider doesn't work, just the buttons. I only put in rudimentary zooming so far.
Reply With Quote