|  | 
| 
 
 
 
 
 
 
 
 
    
    
 |  | 
 
 
	
		|  |  
	
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 01:06 AM
			
			
			
		 |  
	| 
		
			|  | 
 Colonel |  | 
					Join Date: May 2005 Location: Kansas, USA 
						Posts: 1,538
					 Thanks: 289 
		
			
				Thanked 194 Times in 94 Posts
			
		
	      |  |  
    
	| 
				 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.
                 Last edited by Ballbarian; July 31st, 2010 at 01:12 PM..
 |  
	
		
			| The Following 5 Users Say Thank You to Ballbarian For This Useful Post: |  |  |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 05:08 AM
			
			
			
		 |  
	| 
		
			|  | 
 National Security Advisor |  | 
					Join Date: Sep 2003 Location: Eastern Finland 
						Posts: 7,110
					 Thanks: 145 
		
			
				Thanked 153 Times in 101 Posts
			
		
	      |  |  
    
	| 
				 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! |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 05:55 AM
			
			
			
		 |  
	| 
		
			|  | 
 Second Lieutenant |  | 
					Join Date: Jan 2004 Location: Denmark 
						Posts: 471
					 Thanks: 23 
		
			
				Thanked 28 Times in 16 Posts
			
		
	      |  |  
    
	| 
				 Re: Pixel Fixer 1.00 - add or remove provinces in map file 
 Where's the mac & linux version? |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 06:53 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Feb 2007 Location: R'lyeh 
						Posts: 3,861
					 Thanks: 144 
		
			
				Thanked 403 Times in 176 Posts
			
		
	      |  |  
    
	| 
				 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.
 
                 Last edited by lch; February 9th, 2009 at 07:00 AM..
 |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 09:48 AM
			
			
			
		 |  
	| 
		
			|  | 
 Colonel |  | 
					Join Date: May 2005 Location: Kansas, USA 
						Posts: 1,538
					 Thanks: 289 
		
			
				Thanked 194 Times in 94 Posts
			
		
	      |  |  
    
	| 
				 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.
 |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 11:02 AM
			
			
			
		 |  
	| 
		
			|  | 
 Second Lieutenant |  | 
					Join Date: Jan 2004 Location: Denmark 
						Posts: 471
					 Thanks: 23 
		
			
				Thanked 28 Times in 16 Posts
			
		
	      |  |  
    
	| 
				 Re: Pixel Fixer 1.00 - add or remove provinces in map file 
 Okay, thanks. I'll give it a try. |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 11:08 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Feb 2007 Location: R'lyeh 
						Posts: 3,861
					 Thanks: 144 
		
			
				Thanked 403 Times in 176 Posts
			
		
	      |  |  
    
	| 
				 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. |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 01:21 PM
			
			
			
		 |  
	| 
		
			|  | 
 Shrapnel Fanatic |  | 
					Join Date: Oct 2003 Location: Vacaville, CA, USA 
						Posts: 13,736
					 Thanks: 341 
		
			
				Thanked 479 Times in 326 Posts
			
		
	      |  |  
    
	| 
				 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..
 |  
	
		
	
	
	| 
			
			 
			
				February 9th, 2009, 02:50 PM
			
			
			
		 |  
	| 
		
			|  | 
 Colonel |  | 
					Join Date: May 2005 Location: Kansas, USA 
						Posts: 1,538
					 Thanks: 289 
		
			
				Thanked 194 Times in 94 Posts
			
		
	      |  |  
    
	| 
				 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 |  
	
		
			| The Following 3 Users Say Thank You to Ballbarian For This Useful Post: |  |  |  
	
		
	
	
	| 
			
			 
			
				February 11th, 2009, 11:22 AM
			
			
			
		 |  
	| 
		
			|  | 
 National Security Advisor |  | 
					Join Date: Oct 2003 Location: Helsinki, Finland 
						Posts: 5,425
					 Thanks: 174 
		
			
				Thanked 695 Times in 267 Posts
			
		
	      |  |  
    
	| 
				 Re: Pixel Fixer 1.00 - add or remove provinces in map file 
 Excellent tool, Ballbarian. Thank you.   |  
	
		
	
	
	
	
	
		
	
	
	
	
	| 
	|  Posting Rules |  
	| 
		
		You may not post new threads You may not post replies You may not post attachments You may not edit your posts 
 HTML code is On 
 |  |  |  |  |