|  | 
| 
 
 
 
 
 
 
 
 
    
    
 |  | 
 
 
	
		|  |  |  
	
	
		
	
	
	| 
			
			 
			
				May 1st, 2006, 12:54 AM
			
			
			
		 |  
	| 
		
			|  | 
 Captain |  | 
					Join Date: Jun 2004 Location: Rhode Island 
						Posts: 822
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Multiplayer scripts 
 Here are a couple Applescripts I've worked up to make hosting PBEM games easier. One checks all the files, hosts the turn, and emails everyone. The other is meant to be used as a folder action on the game folder, and checks each .2h file when you drag it into the folder - if there's a problem, it deletes the bad file and emails the person who sent it to request another.I hope some folks find them useful. Feel free to post questions, and to make changes to teh scripts; if you do make improvements, please post them here so we can all benefit. Cheers!
 |  
	
		
	
	
	| 
			
			 
			
				May 1st, 2006, 05:25 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Sep 2003 Location: Tel Aviv, Israel 
						Posts: 3,465
					 Thanks: 511 
		
			
				Thanked 162 Times in 86 Posts
			
		
	      |  |  
    
	| 
				 Re: Multiplayer scripts 
 Nice work Ygorl! 
I have also made a script that has the same functionality, it is however written in Python, so it is cross platform. I don't think it's a good idea to distribute it yet as it is quite raw  , mostly meaning it has no UI. But hey, if there's interest I wouldn't mind throwing in a UI   |  
	
		
	
	
	| 
			
			 
			
				May 1st, 2006, 11:11 AM
			
			
			
		 |  
	| 
		
			|  | 
 Captain |  | 
					Join Date: Jun 2004 Location: Rhode Island 
						Posts: 822
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Re: Multiplayer scripts 
 Definitely interested. That my stuff is Mac-only is a pretty big drawback; I only did it that way because it was easiest for me, and I'd love to see something that'll work anywhere. |  
	
		
	
	
	| 
			
			 
			
				May 1st, 2006, 11:20 AM
			
			
			
		 |  
	| 
		
			|  | 
 Second Lieutenant |  | 
					Join Date: Mar 2005 Location: west of DC 
						Posts: 587
					 Thanks: 6 
		
			
				Thanked 13 Times in 9 Posts
			
		
	      |  |  
    
	| 
				 Re: Multiplayer scripts 
 I'd been thinking about Python scripts for this, too, but I never got around to it.
 I could lend a hand in small ways if it's needed.  I am an experienced Python programmer.  I will be changing jobs and moving soon, so I can't get involved in depth.
 
 What are you thinking for UI?  Tkinter?
 |  
	
		
	
	
	| 
			
			 
			
				May 1st, 2006, 11:48 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Sep 2003 Location: Tel Aviv, Israel 
						Posts: 3,465
					 Thanks: 511 
		
			
				Thanked 162 Times in 86 Posts
			
		
	      |  |  
    
	| 
				 Re: Multiplayer scripts 
 As I mainly work with Java/CPP I don't have experience with Python GUI libs, I had in mind to provide a UI rather then GUI, meaning CLI and menu based CLI. But I took a look at Tkinter online tutorial and it seems pretty straight forward to use so GUI is also feasible.
 djo, I would be happpy for your help. If you'd like we can cont. this conversation by email (izaqyos@gmail.com).
 
 Ygorl, Life has been keeping me quite busy as of late (what with new release at work, moving 2 a new apartment and submitting research work) so it will take me about a week or two to polish this script, when it's done I'll post it here.
 
 AFAIK it should also be possible to compile python code to specific platforms, if so there won't even be any need to install Python to run the script.
 |  
	
		
	
	
	| 
			
			 
			
				May 3rd, 2006, 10:11 PM
			
			
			
		 |  
	| 
		
			|  | 
 Captain |  | 
					Join Date: Jun 2004 Location: Rhode Island 
						Posts: 822
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Random script 
 Here's another one, that randomly assigns nations to players and emails them the results. This is a very simple Applescript, and it could even be used for things other than Dominions. |  
	
		
	
	
	| 
			
			 
			
				May 12th, 2006, 05:37 PM
			
			
			
		 |  
	| 
		
			|  | 
 Captain |  | 
					Join Date: Jun 2004 Location: Rhode Island 
						Posts: 822
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 PBEM scripts 
 Updated versions, for the five Mac-using PBEM-hosting, script-loving, Dominions-2-playing people out there...
 emailer script:
 Fixed a bug that would send multiple emails to some players if there were fewer than 17 players.
 Made it (even) easier to choose between sending out zipped or uncompressed .trn files.
 
 folder action:
 Will now automatically open zipped files for you, when you drop them into a game folder for which this action has been enabled.
 |  
	
		
	
	
	| 
			
			 
			
				May 13th, 2006, 10:22 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Jul 2004 Location: Portland, ME (USA) 
						Posts: 3,241
					 Thanks: 31 
		
			
				Thanked 65 Times in 18 Posts
			
		
	      |  |  
    
	| 
				 Re: PBEM scripts 
 Wow!  Thanks Ygorl.  It almost makes me want to host a game right now!! |  
	
		
	
	
	| 
			
			 
			
				May 13th, 2006, 03:35 PM
			
			
			
		 |  
	| 
		
			
			| 
 Colonel |  | 
					Join Date: Aug 2005 
						Posts: 1,606
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Re: PBEM scripts 
 thanks, i wont be using these myself but anything that makes people host more games is good. |  
	
		
	
	
	| 
			
			 
			
				May 18th, 2006, 12:07 AM
			
			
			
		 |  
	| 
		
			|  | 
 Captain |  | 
					Join Date: Jun 2004 Location: Rhode Island 
						Posts: 822
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Re: PBEM scripts 
 New versions... The Folder Action now has an option to automatically email receipt notifications for those players that want them, and fixed a bug in the hosting script that would cause it to not clean up after itself properly (i.e. it wouldn't delete the old obsolete files) if no .zip files were in the game folder. |  
	
		
	
	
	
	
	
	
	| 
	|  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 
 |  |  |  |  |