|  | 
| 
 
 
 
 
 
 
 
 
    
    
 |  | 
 
 
	
		|  |  |  
	
	
		
	
	
	| 
			
			 
			
				July 30th, 2004, 11:02 PM
			
			
			
		 |  
	| 
		
			|  | 
 Major General |  | 
					Join Date: May 2002 Location: Linghem, Östergötland, Sweden 
						Posts: 2,255
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Hmm, I don't know what I mean, I just thought it'd be easier to see what it does.... |  
	
		
	
	
	| 
			
			 
			
				July 31st, 2004, 03:39 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Apr 2001 Location: Cincinnati, Ohio, USA 
						Posts: 4,547
					 Thanks: 1 
		
			
				Thanked 7 Times in 5 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Well, the GUI, whatever that may be, is probably a ways off... I'm still trying to work out the Last of these stupid order-of-operations bugs that ruin any expression with multiple levels of parentheses!     
(Though with the wide variety of functions I've provided, there will be little need to use multiple levels of parentheses, no?     )
				__________________The Ed draws near! What dost thou deaux?
 |  
	
		
	
	
	| 
			
			 
			
				July 31st, 2004, 06:54 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Apr 2001 Location: Cincinnati, Ohio, USA 
						Posts: 4,547
					 Thanks: 1 
		
			
				Thanked 7 Times in 5 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Well, I got those parentheses bugs fixed (at least I hope...     ) - anyone else want to try it out? I've generated a few MOO2 components with the program, but those are pretty trivial compared to what the program can do   
				__________________The Ed draws near! What dost thou deaux?
 |  
	
		
	
	
	| 
			
			 
			
				July 31st, 2004, 09:03 PM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Apr 2001 Location: Cincinnati, Ohio, USA 
						Posts: 4,547
					 Thanks: 1 
		
			
				Thanked 7 Times in 5 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Grrr, I found another bug...     
It seems you can't call a function that takes multiple  parameters from inside another function, because the outer function counts all the commas inside its parameter list and spits back an error saying "too many parameters"... so I'll have to tell it to ignore any commas that are inside parentheses in a parameter list, I guess...
 
Also, the templatizer is rather slow, seeing as it redoes the whole calculation each time it runs an equation, even if all that's changed is the value of a variable... I'll probably have to Cache the results of all my expressions until they fall out of scope, I guess...
 
Finally, I'd better make it display any errors that are thrown by the various functions and such...   
				__________________The Ed draws near! What dost thou deaux?
 |  
	
		
	
	
	| 
			
			 
			
				August 1st, 2004, 03:29 AM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Apr 2001 Location: Cincinnati, Ohio, USA 
						Posts: 4,547
					 Thanks: 1 
		
			
				Thanked 7 Times in 5 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Fixed those bugs... still haven't done anything about the slowness; that will probably require adding a property to one of my upper-level classes and overloading it in a lot of lower-level ones... ugh     
Unless I can figure out this attributes thing that .NET has... then I could just tag the expression type classes I want to be "nonCacheable" with a special attribute tag, and check for that tag when I go to do the caching...
				__________________The Ed draws near! What dost thou deaux?
 |  
	
		
	
	
	| 
			
			 
			
				August 8th, 2004, 06:58 PM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Apr 2001 Location: Cincinnati, Ohio, USA 
						Posts: 4,547
					 Thanks: 1 
		
			
				Thanked 7 Times in 5 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 I've started work on a GUI Version of the Templatizer... here's a general idea of what it will look like (assuming this newfangled file attachment thing works properly   )
 
Anyone interested, or should I go back and try to speed up the expression parser by making it Cache known equation results?
				__________________The Ed draws near! What dost thou deaux?
 |  
	
		
	
	
	| 
			
			 
			
				August 8th, 2004, 07:25 PM
			
			
			
		 |  
	| 
		
			|  | 
 Shrapnel Fanatic |  | 
					Join Date: Jul 2001 Location: Southern CA, USA 
						Posts: 18,394
					 Thanks: 0 
		
			
				Thanked 12 Times in 10 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Files can only be attached in the Scenarios/Mods forum Category. You can upload the file there, then use the URL in your post here. |  
	
		
	
	
	| 
			
			 
			
				August 8th, 2004, 10:42 PM
			
			
			
		 |  
	| 
		
			|  | 
 General |  | 
					Join Date: Apr 2001 Location: Cincinnati, Ohio, USA 
						Posts: 4,547
					 Thanks: 1 
		
			
				Thanked 7 Times in 5 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Well it WORKED...   
Is there a rule against it?  
				__________________The Ed draws near! What dost thou deaux?
 |  
	
		
	
	
	| 
			
			 
			
				August 9th, 2004, 01:50 AM
			
			
			
		 |  
	| 
		
			|  | 
 Shrapnel Fanatic |  | 
					Join Date: Jul 2001 Location: Southern CA, USA 
						Posts: 18,394
					 Thanks: 0 
		
			
				Thanked 12 Times in 10 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Yes. From the message at the top of the forums: 
	Quote: 
	
		| ...the least of which is a return of file downloads. Please use the threads in the Scenario Archive to resume putting up mods and the like. 
 |  |  
	
		
	
	
	| 
			
			 
			
				August 10th, 2004, 02:57 AM
			
			
			
		 |  
	| 
		
			|  | 
 Major General |  | 
					Join Date: May 2002 Location: Linghem, Östergötland, Sweden 
						Posts: 2,255
					 Thanks: 0 
		
			
				Thanked 0 Times in 0 Posts
			
		
	      |  |  
    
	| 
				 Re: SE4 Templatizer Ready for Download! 
 Now even I can understand it! |  
	
		
	
	
	
	
	
	
	| 
	|  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 
 |  |  |  |  |