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

Connexion utilisateur

  • Créer un nouveau compte
  • Demander un nouveau mot de passe

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • agrégateur de nouvelles

Rechercher

Qui est en ligne

Il y a actuellement 2 utilisateurs et 139 invités en ligne.

Utilisateurs en ligne

  • p3 d
  • Darchseraph

Languages

  • English English
  • French French

Parcourir les archives

« September 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          
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Formula Square Root

Soumis par zelos le Mer, 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 ›
» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.
Mod Designer

Re: Formula Square Root

Soumis par Fyron le Mer, 2007-02-14 13:43

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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Formula Square Root

Soumis par zelos le Mer, 2007-02-14 13:48

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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Formula Square Root

Soumis par Mylon le Mer, 2007-02-14 16:30

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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Mod Designer

Re: Formula Square Root

Soumis par Phoenix-D le Mer, 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..)

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Formula Square Root

Soumis par Fallen Haven le Mer, 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...

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Formula Square Root

Soumis par Mylon le Mer, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Formula Square Root

Soumis par Fallen Haven le Mer, 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...

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Mod Designer

Re: Formula Square Root

Soumis par Phoenix-D le Mer, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Formula Square Root

Soumis par Mylon le Jeu, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Formula Square Root

Soumis par Fallen Haven le Jeu, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Now on STEAM

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

Contenu populaire

Aujourd'hui :

  • Research By Percentage SUCKS
  • Creating pictures/images for shipyards/mods
  • Troop invasion repeating all over again
  • Space Empires V
  • Babylon 5 Wars SEV Mod Update

Depuis toujours :

  • 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

Dernier accès :

  • SE5_20060929-39.jpg
  • Sticky for a link to patch 1.17
  • Stock Empire Design Names
  • Inter-Related tactical conversion alpha release V 0.53.
  • Review @ Out of Eight
(c) Strategy First, Inc. All rights reserved.