| 
 | 
     
    
    
    
     
    
    
    
 
    
    
 
    
     
    
    
    
     
    
    
    
     
    
    
    
 
    
    
 
    
    
 | 
       | 
      
 
 
	
		  | 
	
	 | 
 
 
		
	
	
	
		
	
	
	
		
		
		
			
			 
			
				July 14th, 2004, 09:14 PM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Shrapnel Fanatic 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2003 
					Location: CHEESE! 
					
					
						Posts: 10,009
					 
					 
	Thanks: 0 
	
		
			
				Thanked 7 Times in 1 Post
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: SE4 Templatizer Ready for Download!
			 
             
			
		
		
		
		Negate: 1. To render ineffective or void; nullify. 2. To deny; contradict; rule out. 
Well, I suppose it fits under contradict.      
		
	
		
		
		
		
		
		
			
				__________________ 
				If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!  
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++ 
  Some of my webcomics. I've got 400+ webcomics at Last count, some dead. 
Sig updated to remove non-working links.
			  
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 14th, 2004, 10:03 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!
			 
             
			
		
		
		
		The negative of a number nullifies it. To negate a number, to nullify it. The null number is 0. 
  
 [ July 14, 2004, 21:05: Message edited by: Imperator Fyron ] 
		
	
		
		
		
		
		
		
			
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 15th, 2004, 01:51 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Shrapnel Fanatic 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Mar 2003 
					Location: CHEESE! 
					
					
						Posts: 10,009
					 
					 
	Thanks: 0 
	
		
			
				Thanked 7 Times in 1 Post
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: SE4 Templatizer Ready for Download!
			 
             
			
		
		
		
		True, but the described operation is 0 - n, where n is the number. The operation you describe is n + (0 - n). 
		
	
		
		
		
		
		
		
			
				__________________ 
				If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!  
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++ 
  Some of my webcomics. I've got 400+ webcomics at Last count, some dead. 
Sig updated to remove non-working links.
			  
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 15th, 2004, 02:18 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Lieutenant General 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Nov 2002 
					
					
					
						Posts: 2,903
					 
					 
	Thanks: 1 
	
		
			
				Thanked 0 Times in 0 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: SE4 Templatizer Ready for Download!
			 
             
			
		
		
		
		This works too.  How about the operation -1*n where n is the number 
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 17th, 2004, 02:25 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!
			 
             
			
		
		
		
		Time for a progress report!     
The calculator part of the application is coming along great; currently, it can negate, add, subtract, multiply, divide, exponentiate, and take modulos, exponents, percentages, and factorials!     
What's left to do: 
-Add in variables 
-Add in mathematical functions (sin, log, sqrt, and stuff like that) 
-Add in user defined functions (if I can - Fyron wants 'em and it shouldn't be TOO hard, just string replacement     ) 
-Add in functions that return strings, not just numbers (if I can - would be useful for generating Roman numerals for components) 
-Finally, write the application that parses the SE4 data file templates and generates the actual data files!     
		
	
		
		
		
		
		
		
			
				__________________ 
				The Ed draws near! What dost thou deaux?
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2004, 03:30 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!
			 
             
			
		
		
		
		Oops, forgot to mention that I needed to add parentheses... Well, I just finished adding those!     
BTW, will anyone be needing functions that take multiple parameters? I could easily implement single-parameter functions as unary operators and not write proper functions, and  that would save me a bit of time with the parsing of parameters, but if you really want them...     
		
	
		
		
		
		
		
		
			
				__________________ 
				The Ed draws near! What dost thou deaux?
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2004, 04:08 AM
			
			
			
		  
	 | 
 
	
		
		
		
			  | 
			
 
  
			
				
				
				Major 
				
				
				
			 | 
			  | 
			
				
				
					Join Date: Jan 2004 
					Location: Taganrog, Russia 
					
					
						Posts: 1,087
					 
					 
	Thanks: 0 
	
		
			
				Thanked 0 Times in 0 Posts
			
		
	 
					
					
					
					     
				 
				
			 | 
		 
		 
		
	 | 
 
    
	
     
	
	
		
		
		
			
			
				 
				Re: SE4 Templatizer Ready for Download!
			 
             
			
		
		
		
		
		
	
		
		
		
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 19th, 2004, 04:52 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!
			 
             
			
		
		
		
		I'll see what I can do then     
BTW, I just added 4 more operators:
 
The "to" operator generates random numbers in a specified range, so 1to6 simulates rolling a normal six-sided die.
 
The "d" operator acts like in many roleplaying games, rolling multiple dice; 3d6 rolls up a number from 3 to 18 with most values in the 8 to 12 range.     
Note that these random generators will NOT allow you to generate random damage for weapons in SE4; it will just generate random numbers in the data files. Which might at least be good for a surprise game if you can keep yourself from peeking at the tech tree     
The other two are really statistical operators, but I figured I'd throw them in because I'd already done factorials - the "P" operator calculates permutations while the "C" operator calculates combinations, if you happen to know (or care) what those are...     
		
	
		
		
		
		
		
		
			
				__________________ 
				The Ed draws near! What dost thou deaux?
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 20th, 2004, 01:28 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!
			 
             
			
		
		
		
		Time for another progress report!     
I added variables today - actually, they're really just named constants, as the program can't perform symbolic manipulations on them. (Though I wonder how hard that would be given what I've set up so far...     ) I added 3 built-in variables: pi, e, and c (the speed of light). Any more you might want?
 
I also added the "E" operator, which does scientific notation, e.g. 3E6 means 3 million.
 
All that's left now is those pesky functions (and those aren't really even crucial, as long as I can do the single-parameter ones as unary operators) and then I can start incorporating the SE4 files into a client program for this app!     
		
	
		
		
		
		
		
		
			
				__________________ 
				The Ed draws near! What dost thou deaux?
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
	
	
		
	
	
	
		
		
		
			
			 
			
				July 23rd, 2004, 02:11 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!
			 
             
			
		
		
		
		Almost there... these functions are just getting annoying because I have to basically copy and paste my wrapper classes for one standard math library function to the next...       
		
	
		
		
		
		
		
		
			
				__________________ 
				The Ed draws near! What dost thou deaux?
			 
		
		
		
		
		
		
	
		
		
	
	
	 | 
 
 
 
	 
	
		 
	 
 
 
	
		
	
	
	
	
	
	
	| 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 
		 
		
	  | 
 
 
	 | 
	
		
	 | 
 
 
     |  
 |