.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #11  
Old July 14th, 2004, 09:14 PM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #12  
Old July 14th, 2004, 10:03 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default 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 ]
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #13  
Old July 15th, 2004, 01:51 AM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #14  
Old July 15th, 2004, 02:18 AM
Kamog's Avatar

Kamog Kamog is offline
Lieutenant General
 
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
Kamog is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

This works too. How about the operation -1*n where n is the number
Reply With Quote
  #15  
Old July 17th, 2004, 02:25 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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?
Reply With Quote
  #16  
Old July 19th, 2004, 03:30 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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?
Reply With Quote
  #17  
Old July 19th, 2004, 04:08 AM
Aiken's Avatar

Aiken Aiken is offline
Major
 
Join Date: Jan 2004
Location: Taganrog, Russia
Posts: 1,087
Thanks: 0
Thanked 0 Times in 0 Posts
Aiken is on a distinguished road
Default Re: SE4 Templatizer Ready for Download!

Quote:
Originally posted by Ed Kolis:
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...
Well, why not. The more - the better
But if it's too time consiming (multiparam functions)...don't bother with it now. Save it for future Versions
Reply With Quote
  #18  
Old July 19th, 2004, 04:52 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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?
Reply With Quote
  #19  
Old July 20th, 2004, 01:28 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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?
Reply With Quote
  #20  
Old July 23rd, 2004, 02:11 AM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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?
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.