Page 1 of 7

Tool: DEFCON ModSuite [BETA]

Posted: Tue Oct 17, 2006 7:33 pm
by zach
DEFCON ModSuite [beta-1]

Without further ado, I present you with an almost-acceptably-working DEFCON ModSuite.

I've choosen to release it now, even though it's far from finished, because the project is quite big (for me at least), and I need some feedback to be able to improve/fix the tool.

There are quite a few known bugs, and some features suggested are not yet implemented (ie. not fully working, thus not built into this release). Oh, and you can't use backspace when writing text. And the last line of 'cities.dat' can't be empty ... It's all explained in the readme ;)

Image Image Image
Image Image


Yes, it is a work in progress, but I see no reason why the people of this modding community shouldn't have access to whatever tools are available, complete or not. You're just going to have to live with some annoyances for now.
... After all, the alternative would be even more annoying, right? :roll:

Excerpt from readme.txt:

Code: Select all

Instructions:
[TAB]   changes modes (coastlines/borders/cities)
[LMB]   starts drawing line/places city
[RMB]   stops drawing line/cancels placement of city
[WASD]   moves up/left/down/right
[QE]   zooms in/out
[F1]   fullscreen

===================
Notes:
* don't use spaces in city/country names
* only use integers for proportional population
* upper limit of 40960 coastlines/cities/borders

===================
Known bugs/lacking features:
* can't read 'cities.dat' if last line is newline
  (ie. make sure the last line isn't empty)
* can only read RGB/8 bitmap, sized 2^n by 2^n
* no backspace in city naming
* no undo


Update information
As of the 5th of December 2006, the available version of DEFCON ModSuite is '11F', revised, cleaned up and built upon by Faxmachinen. Thank you!

The update does the following;
* Saving and reloading
* Undo
* Continue drawing from last saved coastline/border

Download link
http://defcon.zanzer7.net/downloads/tools/modsuite-11f.zip

Oh, and before I forget:
Read the readme.txt!



~

Enjoy :)

Posted: Tue Oct 17, 2006 8:24 pm
by SuVir
Haven'y tried yet but looks good :D

Posted: Tue Oct 17, 2006 8:44 pm
by alphager
have fooled around a bit; looks great.

What do you think about open-sourcing it so others can join force with you?

Posted: Tue Oct 17, 2006 8:50 pm
by Spacemonkey
Had a go, looking good, the zooming feature is going to make things so much easier :D

Posted: Tue Oct 17, 2006 9:02 pm
by zach
The only reason I haven't released it as open source is because the code sucks :P
~
Actually though, I was going to include the source. Never got around to it, dunno why.
I've updated the .zip to include the source, and it's available here (view online) as well.

The code is horribly commented, and quite below my standards; everything is backwards and incomplete (I'm supposed to say that, right? :P)
Well, I had to build this tool by picking apart how DEFCON loads the files, bit by bit ... Thus, I had nothing but basecode to start with, and had to build up from there ~ Hence the bloatedness :roll:

I'd appreciate if you contacted me before releasing anything, but that doesn't mean you can't go ahead and do it anyway ;)

EDIT: I see the online view ruined my indendation. Oh well...

Posted: Tue Oct 17, 2006 9:04 pm
by extremejon
Whoa dude. Toatally awesome. I take back all gripes I had about your tools.

Posted: Tue Oct 17, 2006 10:13 pm
by xander
Very nice, zanzer7. You are a credit to your species.

xander

Posted: Tue Oct 17, 2006 11:14 pm
by alphager
hey zanzer, (or do you prefer zanzer7 ?)
thanks for the code. If i find the time, i will begin hacking around a bit.
However, it would be great if you placed it explicitly under a license; the way it is now it is dangerous for a coder to touch your code.

Posted: Tue Oct 17, 2006 11:49 pm
by zach
Thank you all for your kind words. If nothing else, they have motivated me to have a look at cleaning the code :P

Oh, and alphager (as well as everybody else, I suppose), thanks for asking; the only way to properly write my nickname is zanzer7. No lack of numbers, no capital letters. Not even after a period ~ like pH ;)

~

I hereby declare the above code (and all derivatives) as released under the GNU General Public License. :roll: (All files are updated to reflect this)

Posted: Wed Oct 18, 2006 12:17 am
by xander
zanzer7 wrote:Oh, and alphager (as well as everybody else, I suppose), thanks for asking; the only way to properly write my nickname is zanzer7. No lack of numbers, no capital letters. Not even after a period ~ like pH ;)

I wish people would ask me how to write my nick :( Everyone tries to capitalize it. It increases my "Urge to Kill" level.

xander

Posted: Wed Oct 18, 2006 12:20 am
by alphager
zanzer7 wrote:I hereby declare the above code (and all derivatives) as released under the GNU General Public License. :roll: (All files are updated to reflect this)

Cool. zanzer7, you now must specify two things:
Which version of the GPL (v1, or v2)?
With the "this GPL-version or any later version" or not?

Yeah, i know it is hair-splicing, but it is important.

Posted: Wed Oct 18, 2006 12:24 am
by zach
suite.cpp wrote:

Code: Select all

/*
 * DEFCON ModSuite
 * Copyright (C) 2006 zanzer7
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * ...
 *
 * Most of the comments in here are rubbish ... Now you're warned!
 * ... I really should get around to cleaning the code, shouldn't I?
 *
 * 18th of October 2006
 */

#include <windows.h>
#include <stdio.h>
[...]
'nuff said ;)

xander wrote:I wish people would ask me how to write my nick :( Everyone tries to capitalize it. It increases my "Urge to Kill" level.
I actually thought of putting in a note to remind people to pay attention to your nick ... and xyzyxx's nick too, for that matter. Capitalization in your non-capital-nick just looks ... yuck :?

Posted: Wed Oct 18, 2006 1:24 am
by Isoeph
Nicely done zanzer7!

I'll try to report anything that pops up while I'm working on my map to help you develop the tool. The initial screenshots definently look promissing!

Posted: Thu Oct 19, 2006 10:02 pm
by DEFCON_Preorderer
I always get the 'suite.exe needs to close, we are sorry for any inconvenience' nonsense.
Any ideas? I really wanna use this :D


I use Steam too.

Posted: Fri Oct 20, 2006 1:05 am
by zach
Try running the suite from outside the Defcon directory first?