Defcon
The Official forums for Introversion's game Defcon


Tool: DEFCON ModSuite [BETA]
Goto page 1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Defcon Index -> Mod Projects
View previous topic :: View next topic  
zach






Joined: 30 Jun 2004
Posts: 389
Location: Denmarkia
 PostPosted: Tue Oct 17, 2006 6:33 pm    Post subject: Tool: DEFCON ModSuite [BETA] Reply with quote Back to top

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 Wink





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? Rolling Eyes

Excerpt from readme.txt:
Code:
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 Smile


Last edited by zach on Mon Oct 26, 2009 9:59 pm; edited 2 times in total
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SuVir





Joined: 07 Apr 2006
Posts: 180
Location: En-ger-land
 PostPosted: Tue Oct 17, 2006 7:24 pm    Post subject: Reply with quote Back to top

Haven'y tried yet but looks good Very Happy
 
View user's profile Send private message
alphager





Joined: 28 Jul 2006
Posts: 236
Location: Germany
 PostPosted: Tue Oct 17, 2006 7:44 pm    Post subject: Reply with quote Back to top

have fooled around a bit; looks great.

What do you think about open-sourcing it so others can join force with you?
 
View user's profile Send private message Visit poster's website
Spacemonkey





Joined: 05 Oct 2006
Posts: 382
Location: Auckland, New Zealand
 PostPosted: Tue Oct 17, 2006 7:50 pm    Post subject: Reply with quote Back to top

Had a go, looking good, the zooming feature is going to make things so much easier Very Happy
 
View user's profile Send private message
zach






Joined: 30 Jun 2004
Posts: 389
Location: Denmarkia
 PostPosted: Tue Oct 17, 2006 8:02 pm    Post subject: Reply with quote Back to top

The only reason I haven't released it as open source is because the code sucks Razz
~
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? Razz)
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 Rolling Eyes

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

EDIT: I see the online view ruined my indendation. Oh well...
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
extremejon





Joined: 08 Oct 2006
Posts: 84

 PostPosted: Tue Oct 17, 2006 8:04 pm    Post subject: Reply with quote Back to top

Whoa dude. Toatally awesome. I take back all gripes I had about your tools.
 
View user's profile Send private message
xander






Joined: 21 Oct 2004
Posts: 4272
Location: Sparks, NV, USA
 PostPosted: Tue Oct 17, 2006 9:13 pm    Post subject: Reply with quote Back to top

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

xander
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address
alphager





Joined: 28 Jul 2006
Posts: 236
Location: Germany
 PostPosted: Tue Oct 17, 2006 10:14 pm    Post subject: Reply with quote Back to top

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.
 
View user's profile Send private message Visit poster's website
zach






Joined: 30 Jun 2004
Posts: 389
Location: Denmarkia
 PostPosted: Tue Oct 17, 2006 10:49 pm    Post subject: Reply with quote Back to top

Thank you all for your kind words. If nothing else, they have motivated me to have a look at cleaning the code Razz

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 Wink

~

I hereby declare the above code (and all derivatives) as released under the GNU General Public License. Rolling Eyes (All files are updated to reflect this)
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
xander






Joined: 21 Oct 2004
Posts: 4272
Location: Sparks, NV, USA
 PostPosted: Tue Oct 17, 2006 11:17 pm    Post subject: Reply with quote Back to top

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
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address
alphager





Joined: 28 Jul 2006
Posts: 236
Location: Germany
 PostPosted: Tue Oct 17, 2006 11:20 pm    Post subject: Reply with quote Back to top

zanzer7 wrote:

I hereby declare the above code (and all derivatives) as released under the GNU General Public License. Rolling Eyes (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.
 
View user's profile Send private message Visit poster's website
zach






Joined: 30 Jun 2004
Posts: 389
Location: Denmarkia
 PostPosted: Tue Oct 17, 2006 11:24 pm    Post subject: Reply with quote Back to top

suite.cpp wrote:
Code:
/*
 * 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 Wink

xander wrote:
I wish people would ask me how to write my nick Sad 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 Confused
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Isoeph





Joined: 16 Oct 2006
Posts: 3

 PostPosted: Wed Oct 18, 2006 12:24 am    Post subject: Reply with quote Back to top

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!
 
View user's profile Send private message
DEFCON_Preorderer





Joined: 15 Sep 2006
Posts: 3

 PostPosted: Thu Oct 19, 2006 9:02 pm    Post subject: Reply with quote Back to top

I always get the 'suite.exe needs to close, we are sorry for any inconvenience' nonsense.
Any ideas? I really wanna use this Very Happy


I use Steam too.
 
View user's profile Send private message
zach






Joined: 30 Jun 2004
Posts: 389
Location: Denmarkia
 PostPosted: Fri Oct 20, 2006 12:05 am    Post subject: Reply with quote Back to top

Try running the suite from outside the Defcon directory first?
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Defcon Index -> Mod Projects All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Page 1 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum