Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 5 users and 164 guests online.

Online users

  • Jozsf
  • Isopsyco
  • Jorgas
  • Pham Nuwen
  • mudshark

Languages

  • English English
  • French French

Browse archives

« July 2008  
Mo Tu We Th Fr Sa Su
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Formula Square Root

Submitted by zelos on Wed, 2007-02-14 12:56. SE:V MODs

I have a questiona bout formulas, are they able to handle squareroots?

‹ Quadrant map pic? FQM 5.00 Beta 3 ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mod Designer

Re: Formula Square Root

Submitted by Fyron on Wed, 2007-02-14 13:43.

If you look in Docs\SE5_Modding.pdf, you will see that the answer is yes: Sqrt()

» login or register to post comments

Re: Formula Square Root

Submitted by zelos on Wed, 2007-02-14 13:48.

excellent (doing what mr burns do when he says that)

» login or register to post comments

Re: Formula Square Root

Submitted by Mylon on Wed, 2007-02-14 16:30.

Who needs a sqrt function? Just use ^ 0.5. The "^" operator is more versatile. Smiling

» login or register to post comments
Mod Designer

Re: Formula Square Root

Submitted by Phoenix-D on Wed, 2007-02-14 16:33.

Sqrt has less order of operations issues. Smiling SE5 doesn't always do order of operations like you'd expect (as SuicideJunkie found out: SE5 says that 100 - 100 + 5 - 5 DOESN'T equal 0..)

» login or register to post comments

Re: Formula Square Root

Submitted by Fallen Haven on Wed, 2007-02-14 18:02.

Phoenix-D wrote:
Sqrt has less order of operations issues. Smiling SE5 doesn't always do order of operations like you'd expect (as SuicideJunkie found out: SE5 says that 100 - 100 + 5 - 5 DOESN'T equal 0..)

That's why i use () a lot, that ensure operations are done in the right order...

» login or register to post comments

Re: Formula Square Root

Submitted by Mylon on Wed, 2007-02-14 21:33.

Phoenix-D wrote:
Sqrt has less order of operations issues. Smiling SE5 doesn't always do order of operations like you'd expect (as SuicideJunkie found out: SE5 says that 100 - 100 + 5 - 5 DOESN'T equal 0..)

Huh? There's no way that that expression should be anything other than 0. Unless maybe you're referring to, say, "100 - 20 * 5" which should, if order of operations are followed successfully, equal 0.

» login or register to post comments

Re: Formula Square Root

Submitted by Fallen Haven on Wed, 2007-02-14 22:10.

Mylon wrote:
Huh? There's no way that that expression should be anything other than 0. Unless maybe you're referring to, say, "100 - 20 * 5" which should, if order of operations are followed successfully, equal 0.

SE5 is funky, i believe it does (100 - (100 + 5)) - 5 or something like that...

» login or register to post comments
Mod Designer

Re: Formula Square Root

Submitted by Phoenix-D on Wed, 2007-02-14 22:42.

Which should STILL equal 0, but go figure it doesn't.

Ah, here's the actual comment:

Requirement 1 Description                       := This game thinks "100 + 5 - 5 - 100 = 0" is False
Requirement 1 Formula                           := 100 + 5 - 5 - 100 = 0

Its worth noting that you can fix this particular problem by enclosing the part before the = sign in parenthesis.

So, in SE5 terms:
100 + 5 - 5 - 100 != 0
but
(100 + 5 - 5 - 100) = 0

» login or register to post comments

Re: Formula Square Root

Submitted by Mylon on Thu, 2007-02-15 00:12.

Interesting. Could the = sign be given higher priority than the + or - symbols? (That is, the game does a 100 = 0 check first).

I can't remember what "TRUE" and "FALSE" are, integer wise, but they may have something to do with it.

That is, the game could be trying this: 100 + 5 - 5 - (100 = 0), which assume FALSE = 0, would result in a value of 100.

» login or register to post comments

Re: Formula Square Root

Submitted by Fallen Haven on Thu, 2007-02-15 05:54.

Phoenix-D wrote:
Which should STILL equal 0, but go figure it doesn't.

Actually, if you do ((100 - (100 + 5)) - 5, the result is -10, not 0.

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • I am so impressed!
  • Stuipd Question
  • Neutral pack 1.10 released, now adds three neutral races.
  • Space Empires V 1.74
  • Space Dock suggestion

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • Troops and occupation
  • I am so impressed!
  • Babylon 5 Space Empires V mod?
  • SE5_20060929-38.jpg
  • I think I have a problem
(c) Strategy First, Inc. All rights reserved.