 |
|
|
Defcon The Official forums for Introversion's game Defcon
|
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
zach


Joined: 30 Jun 2004 Posts: 389 Location: Denmarkia  |
Posted: Tue Oct 17, 2006 6:33 pm Post subject: Tool: DEFCON ModSuite [BETA] |
 |
|
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
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?
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 
Last edited by zach on Mon Oct 26, 2009 9:59 pm; edited 2 times in total |
|
| |
|
|
|
 |
 |
 |
 |
 |
SuVir

Joined: 07 Apr 2006 Posts: 180 Location: En-ger-land  |
Posted: Tue Oct 17, 2006 7:24 pm Post subject: |
 |
|
Haven'y tried yet but looks good  |
|
| |
|
|
|
 |
 |
 |
 |
 |
alphager
Joined: 28 Jul 2006 Posts: 236 Location: Germany  |
Posted: Tue Oct 17, 2006 7:44 pm Post subject: |
 |
|
have fooled around a bit; looks great.
What do you think about open-sourcing it so others can join force with you? |
|
| |
|
|
|
 |
 |
 |
 |
 |
Spacemonkey

Joined: 05 Oct 2006 Posts: 382 Location: Auckland, New Zealand  |
Posted: Tue Oct 17, 2006 7:50 pm Post subject: |
 |
|
Had a go, looking good, the zooming feature is going to make things so much easier  |
|
| |
|
|
|
 |
 |
 |
 |
 |
zach


Joined: 30 Jun 2004 Posts: 389 Location: Denmarkia  |
Posted: Tue Oct 17, 2006 8:02 pm Post subject: |
 |
|
The only reason I haven't released it as open source is because the code sucks
~
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? )
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
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... |
|
| |
|
|
|
 |
 |
 |
 |
 |
extremejon

Joined: 08 Oct 2006 Posts: 84
 |
Posted: Tue Oct 17, 2006 8:04 pm Post subject: |
 |
|
| Whoa dude. Toatally awesome. I take back all gripes I had about your tools. |
|
| |
|
|
|
 |
 |
 |
 |
 |
xander


Joined: 21 Oct 2004 Posts: 4272 Location: Sparks, NV, USA  |
Posted: Tue Oct 17, 2006 9:13 pm Post subject: |
 |
|
Very nice, zanzer7. You are a credit to your species.
xander |
|
| |
|
|
|
 |
 |
 |
 |
 |
alphager
Joined: 28 Jul 2006 Posts: 236 Location: Germany  |
Posted: Tue Oct 17, 2006 10:14 pm Post subject: |
 |
|
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. |
|
| |
|
|
|
 |
 |
 |
 |
 |
zach


Joined: 30 Jun 2004 Posts: 389 Location: Denmarkia  |
Posted: Tue Oct 17, 2006 10:49 pm Post subject: |
 |
|
Thank you all for your kind words. If nothing else, they have motivated me to have a look at cleaning the code
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. (All files are updated to reflect this) |
|
| |
|
|
|
 |
 |
 |
 |
 |
xander


Joined: 21 Oct 2004 Posts: 4272 Location: Sparks, NV, USA  |
Posted: Tue Oct 17, 2006 11:17 pm Post subject: |
 |
|
| 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
Joined: 28 Jul 2006 Posts: 236 Location: Germany  |
Posted: Tue Oct 17, 2006 11:20 pm Post subject: |
 |
|
| zanzer7 wrote: |
I hereby declare the above code (and all derivatives) as released under the GNU General Public License. (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. |
|
| |
|
|
|
 |
 |
 |
 |
 |
zach


Joined: 30 Jun 2004 Posts: 389 Location: Denmarkia  |
Posted: Tue Oct 17, 2006 11:24 pm Post subject: |
 |
|
| 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
| 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  |
|
| |
|
|
|
 |
 |
 |
 |
 |
Isoeph

Joined: 16 Oct 2006 Posts: 3
 |
Posted: Wed Oct 18, 2006 12:24 am Post subject: |
 |
|
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! |
|
| |
|
|
|
 |
 |
 |
 |
 |
DEFCON_Preorderer
Joined: 15 Sep 2006 Posts: 3
 |
Posted: Thu Oct 19, 2006 9:02 pm Post subject: |
 |
|
I always get the 'suite.exe needs to close, we are sorry for any inconvenience' nonsense.
Any ideas? I really wanna use this
I use Steam too. |
|
| |
|
|
|
 |
 |
 |
 |
 |
zach


Joined: 30 Jun 2004 Posts: 389 Location: Denmarkia  |
Posted: Fri Oct 20, 2006 12:05 am Post subject: |
 |
|
| Try running the suite from outside the Defcon directory first? |
|
| |
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|
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
|
|
|
 |