.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Bronze- Save $9.00
War Plan Pacific- Save $7.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old February 9th, 2009, 01:06 AM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Computer Pixel Fixer 1.00 - add or remove provinces in map file

Adding or removing provinces from an existing map has proven to be a hassle and this problem seems to come up again and again in the forums. Pixel Fixer is a cross-platform, standalone executable that will adjust existing province numbers and output a new, fixed map file.

From the included "Help" text:
Quote:
Dominions Pixel Fixer 1.00
**************************
Author: ballbarian AT gmail DOT com

So you want to remove (or add) a province to an existing
map, but this will completely screw up the province
numbering in the map file. This means neighbors will be
twisted into an unrecognizable maze of arrows and many
provinces will show the wrong terrains and names, etc.
Pixel Fixer will hopefully make adjusting your map less
painful.


1. Make sure that PixelFixer.exe and PixelFixer.cfg are in
the same directory as your ".map" file.

2. Open PixelFixer.cfg in the text editor of your choice.

3. Change the settings as needed. Leave the three comment
lines that begin with a dash "-". You want to edit the
last three lines only. The first is the name of your map
file, but leave of the ".map" extension. The second is
the province number, and the third is "add" or "remove".

4. Run PixelFixer.exe

5. Find "yourmapfilenameFIXED.map" in the same directory as
your original map file.

6. If you were removing a pixel then you are done. Easy!

7. If you were adding a pixel then you have a little more
work to do. Open the fixed map file and manually add any
terrain, neighbor, landname, start info for the new province
as necessary. Pixel Fixer has fixed the existing provinces,
but you will need to add the new info for the added province
yourself.
I built this quickly using existing, raw, bare bones code that I had used for fixing my own maps and made it configurable so that modifying the code would no longer be necessary. I have only done minimal testing with this new creature, so let me know if you have any problems.
Attached Files
File Type: zip PixelFixer.zip (111.3 KB, 121 views)
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor

Last edited by Ballbarian; July 31st, 2010 at 01:12 PM..
Reply With Quote
The Following 5 Users Say Thank You to Ballbarian For This Useful Post:
  #2  
Old February 9th, 2009, 05:08 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

Wow! I almost feel like starting a map project to be able to test this. It sounds awesome!
Reply With Quote
  #3  
Old February 9th, 2009, 05:55 AM
Thilock_Dominus's Avatar

Thilock_Dominus Thilock_Dominus is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Denmark
Posts: 471
Thanks: 23
Thanked 28 Times in 16 Posts
Thilock_Dominus is on a distinguished road
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

Where's the mac & linux version?
__________________
| Ubuntu Linux 12.04 64-bit |

Nosophoros: The Vampire Lords - v1.02
Conquest of Elysium 3 GUI mods
Reply With Quote
  #4  
Old February 9th, 2009, 06:53 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

I haven't checked, but if Ballbarian writes that it's an exe but a "cross-platform, standalone executable", then it probably is some C# binary. Try the Mono Project on it.

P.S.: I think JK already had something intended like this in the ingame map editor, the "add province" / "remove province" function, but nobody ever figured out how to effectively use it so far.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief

Last edited by lch; February 9th, 2009 at 07:00 AM..
Reply With Quote
  #5  
Old February 9th, 2009, 09:48 AM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

It is a very simple program written in yabasic and bound to the yabasic executable. It should work fine on Windows & Linux. I have no idea whether or not it will work on the Mac.

Edit:
If you have any problems on Linux systems, let me know and I will see what I can do.
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote
  #6  
Old February 9th, 2009, 11:02 AM
Thilock_Dominus's Avatar

Thilock_Dominus Thilock_Dominus is offline
Second Lieutenant
 
Join Date: Jan 2004
Location: Denmark
Posts: 471
Thanks: 23
Thanked 28 Times in 16 Posts
Thilock_Dominus is on a distinguished road
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

Okay, thanks. I'll give it a try.
__________________
| Ubuntu Linux 12.04 64-bit |

Nosophoros: The Vampire Lords - v1.02
Conquest of Elysium 3 GUI mods
Reply With Quote
  #7  
Old February 9th, 2009, 11:08 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

If it's written in something other than what the Mono Project supports (Microsoft's SharpDevelop) then you need to compile the programs under/for the target platforms. An EXE is Windows-specific and Windows-only. YaBasic is GPL software and there exist Linux versions of it, but you'll still need to compile the program into a Linux ELF file for Linux people to use. I haven't found any mention of a native Macintosh version of YaBasic, though, so you'll need to use something like DarwinPorts to install it. Or you could release the source code so that the users can take care of that themselves.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #8  
Old February 9th, 2009, 01:21 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

Thank you Ballbarian. Excellent work.

I just tested it in Debian Linux and it worked fine. In fact, I must admit that I was surprised since I figured that the first test was to at least try just invoking the exe. It figured out that it was on linux, invoked wine, and ran without me needing to tweak it. Excellent work for a windows program.

@lch: Its not gui. I think that makes the difference.

Now if I could get ParadoxHarbringer to get his mapgen to work under wine.

Last edited by Gandalf Parker; February 9th, 2009 at 01:34 PM..
Reply With Quote
  #9  
Old February 9th, 2009, 02:50 PM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

I will attach the source to this post (just in case).
Thanks for testing it for me GP.

PixelFixerSource.zip
Attached Files
File Type: zip PixelFixerSource.zip (1.1 KB, 186 views)
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote
The Following 3 Users Say Thank You to Ballbarian For This Useful Post:
  #10  
Old February 11th, 2009, 11:22 AM
Edi's Avatar

Edi Edi is offline
National Security Advisor
 
Join Date: Oct 2003
Location: Helsinki, Finland
Posts: 5,425
Thanks: 174
Thanked 695 Times in 267 Posts
Edi is on a distinguished road
Default Re: Pixel Fixer 1.00 - add or remove provinces in map file

Excellent tool, Ballbarian. Thank you.
Reply With Quote
Reply

Bookmarks

Tags
map editing, map utilities, map utility

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2022, Shrapnel Games, Inc. - All Rights Reserved.