| 
 | 
     
    
    
    
     
    
    
    
 
    
    
 
    
     
    
    
    
     
    
    
    
     
    
    
    
 
    
    
 
    
    
 | 
       | 
      
 
 
	
		  | 
	
	 | 
 
 
		
	
	
	
		
	
	
	
		
		
		
			
			 
			
				June 2nd, 2009, 10:37 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Corporal 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2009 
					Location: Modena, Italy 
					
					
						Posts: 192
					 
					 
	Thanks: 27 
	
		
			
				Thanked 21 Times in 10 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		After learning a little on Ubuntu and Perl I managed to make the program work...awesome job you did there,Llama! 
Just one thing...about the need to set a single age,can it be manually modified in the final mod file to have,for example,some of the new nations in early,some in middle,and some in late? 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	
		
			| 
				
					The Following User Says Thank You to Amonchakad For This Useful Post:
				
			 | 
			
			
		 
		 |  
	 
  
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				June 2nd, 2009, 03:52 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				National Security Advisor 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Nov 2006 
					Location: Oxford, UK 
					
					
						Posts: 5,921
					 
					 
	Thanks: 194 
	
		
			
				Thanked 855 Times in 291 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		Great, good job on working out how to use it! The ease of running things like perl scripts on linux is a big plus to my mind. 
 
Yes, it's very easy to change what era nations appear in. The mod command is #era, 1 is early, 2 is middle and 3 is late. So just search for the #era lines in the finished mod and change them however you'd like. 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	
		
			| 
				
					The Following User Says Thank You to llamabeast For This Useful Post:
				
			 | 
			
			
		 
		 |  
	 
  
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				June 5th, 2009, 11:36 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Corporal 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2009 
					Location: Modena, Italy 
					
					
						Posts: 192
					 
					 
	Thanks: 27 
	
		
			
				Thanked 21 Times in 10 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		After using your script to merge 6 mods, I've noticed that, while it reorders the unit IDs, it doesn't change the ID of the units recruited from sites(they still use the ID from the original mod), so I had to manually change the IDs in the site description. 
I suppose it's a bug?  
If it is,is it fixable?  
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				June 5th, 2009, 12:02 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				National Security Advisor 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Nov 2006 
					Location: Oxford, UK 
					
					
						Posts: 5,921
					 
					 
	Thanks: 194 
	
		
			
				Thanked 855 Times in 291 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		It is indeed a bug, or rather an omission. In writing the script I had to try to think of every possible thing that there might be in a mod, and write a bit of code for it. I thought I had got everything (in my first released version I missed *loads* of stuff), but it turns out that I missed this. The Unsanity game hit the same problem, and also fixed it by hand. I can fix it easily enough, it will just be a couple of weeks before I have time probably (I am in mega PhD crunch time at the moment, and clearly shouldn't be on the forums!). 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				June 7th, 2009, 05:29 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				General 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Feb 2007 
					Location: R'lyeh 
					
					
						Posts: 3,861
					 
					 
	Thanks: 144 
	
		
			
				Thanked 403 Times in 176 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		Amonchakad, there's another piece of software, this time coded in Python, that does similar things like this Perl script, concerning combining nation mods only(?) by pyg, in case you want to try it out: 
http://forum.shrapnelgames.com/showthread.php?t=42530
http://forum.shrapnelgames.com/showthread.php?t=42415
It requires a bit of programming knowledge from the user to use it, but it's wonderful code and a very interesting concept to create multi-nation mods or games.  
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 15th, 2009, 06:24 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				General 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Oct 2007 
					Location: Poland 
					
					
						Posts: 3,414
					 
					 
	Thanks: 26 
	
		
			
				Thanked 73 Times in 49 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		I am getting lots of that "#damage llamaspell15_" etc stuff, trying to join few mods, including Holy War, any ideas? 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 27th, 2009, 11:57 PM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				BANNED USER 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: May 2004 
					
					
					
						Posts: 4,075
					 
					 
	Thanks: 203 
	
		
			
				Thanked 121 Times in 91 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		hey llama  - any chance of a windows executable.... 
I'd like to make a bat program that allows you to choose portions of .dm files. 
 
to do this, I need to be able to selectively (and repetetively) renumber.  I'd like to use your program to do this.   
 
However, active perl is too big to distribute; and to difficult for the casual user.. 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 28th, 2009, 02:55 AM
			
			
			
		  
	 | 
 
	
		
		
		
			
			| 
 
  
			
				
				
				National Security Advisor 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Nov 2006 
					Location: Oxford, UK 
					
					
						Posts: 5,921
					 
					 
	Thanks: 194 
	
		
			
				Thanked 855 Times in 291 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		No, I don't know a way to make a stand-alone executable. 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 28th, 2009, 08:39 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Second Lieutenant 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Sep 2008 
					
					
					
						Posts: 466
					 
					 
	Thanks: 35 
	
		
			
				Thanked 95 Times in 60 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		
	Quote: 
	
	
		
			
				
					Originally Posted by  llamabeast
					 
				 
				No, I don't know a way to make a stand-alone executable. 
			
		 | 
	 
	 
 Disclaimer: I've never done anything with Perl.
 
However, this page  http://perldoc.perl.org/perlcompile.html
...indicates that Perl comes with a module that can spit out C code, which can then be compiled into a standalone executable.  
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				November 3rd, 2009, 06:10 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Corporal 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2009 
					Location: Modena, Italy 
					
					
						Posts: 192
					 
					 
	Thanks: 27 
	
		
			
				Thanked 21 Times in 10 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: Script for combining multiple mods
			 
             
			
		
		
		
		Llama, did you fix the site recruitables bug? I'm once again trying to merge some mods, and I wanted to know if your script could be used   
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
 
	
		
	
	
	
	
	
	
	| Thread Tools | 
	
 
	| 
	
	
	
	 | 
	
 
	| Display Modes | 
	
 
	
	
	
	
		  Linear Mode 
		
		
	 
	
	 | 
	
	
 
 
	
		
	
		 
		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 
		 
		
	  | 
 
 
	 | 
	
		
	 | 
 
 
     |  
 |