Tool: DEFCON ModSuite [BETA]

Discuss your new mods and themes here

Moderator: Defcon moderators

User avatar
zach
level5
level5
Posts: 1350
Joined: Wed Jun 30, 2004 1:21 pm
Location: Denmarkia
Contact:

Tool: DEFCON ModSuite [BETA]

Postby zach » Tue Oct 17, 2006 7:33 pm

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 :)
Last edited by zach on Mon Oct 26, 2009 10:59 pm, edited 2 times in total.
User avatar
SuVir
level2
level2
Posts: 211
Joined: Fri Apr 07, 2006 8:15 pm
Location: En-ger-land

Postby SuVir » Tue Oct 17, 2006 8:24 pm

Haven'y tried yet but looks good :D
alphager
level3
level3
Posts: 400
Joined: Fri Jul 28, 2006 1:36 pm
Location: Germany
Contact:

Postby alphager » Tue Oct 17, 2006 8:44 pm

have fooled around a bit; looks great.

What do you think about open-sourcing it so others can join force with you?
User avatar
Spacemonkey
level4
level4
Posts: 609
Joined: Thu Oct 05, 2006 1:31 am
Location: Auckland, New Zealand

Postby Spacemonkey » Tue Oct 17, 2006 8:50 pm

Had a go, looking good, the zooming feature is going to make things so much easier :D
User avatar
zach
level5
level5
Posts: 1350
Joined: Wed Jun 30, 2004 1:21 pm
Location: Denmarkia
Contact:

Postby zach » Tue Oct 17, 2006 9:02 pm

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...
User avatar
extremejon
level2
level2
Posts: 84
Joined: Mon Oct 09, 2006 12:27 am

Postby extremejon » Tue Oct 17, 2006 9:04 pm

Whoa dude. Toatally awesome. I take back all gripes I had about your tools.
Image
User avatar
xander
level5
level5
Posts: 16863
Joined: Thu Oct 21, 2004 11:41 pm
Location: Riverside, CA, USA
Contact:

Postby xander » Tue Oct 17, 2006 10:13 pm

Very nice, zanzer7. You are a credit to your species.

xander
alphager
level3
level3
Posts: 400
Joined: Fri Jul 28, 2006 1:36 pm
Location: Germany
Contact:

Postby alphager » Tue Oct 17, 2006 11:14 pm

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.
User avatar
zach
level5
level5
Posts: 1350
Joined: Wed Jun 30, 2004 1:21 pm
Location: Denmarkia
Contact:

Postby zach » Tue Oct 17, 2006 11:49 pm

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)
User avatar
xander
level5
level5
Posts: 16863
Joined: Thu Oct 21, 2004 11:41 pm
Location: Riverside, CA, USA
Contact:

Postby xander » Wed Oct 18, 2006 12:17 am

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
alphager
level3
level3
Posts: 400
Joined: Fri Jul 28, 2006 1:36 pm
Location: Germany
Contact:

Postby alphager » Wed Oct 18, 2006 12:20 am

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.
User avatar
zach
level5
level5
Posts: 1350
Joined: Wed Jun 30, 2004 1:21 pm
Location: Denmarkia
Contact:

Postby zach » Wed Oct 18, 2006 12:24 am

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 :?
User avatar
Isoeph
level0
Posts: 3
Joined: Mon Oct 16, 2006 6:39 am

Postby Isoeph » Wed Oct 18, 2006 1:24 am

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!
Robin
DEFCON_Preorderer
level0
Posts: 3
Joined: Fri Sep 15, 2006 8:45 pm

Postby DEFCON_Preorderer » Thu Oct 19, 2006 10:02 pm

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.
User avatar
zach
level5
level5
Posts: 1350
Joined: Wed Jun 30, 2004 1:21 pm
Location: Denmarkia
Contact:

Postby zach » Fri Oct 20, 2006 1:05 am

Try running the suite from outside the Defcon directory first?

Return to “Mod Projects”

Who is online

Users browsing this forum: No registered users and 1 guest