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 1 utilisateur et 191 invités en ligne.

Utilisateurs en ligne

  • Santiago

Languages

  • English English
  • French French

Parcourir les archives

« December 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        
Accueil » news » forums » Space Empires V » Space Empires V General

Syntax in Formulas

Soumis par Kalin le Jeu, 2006-11-09 09:17 Space Empires V General

I'm going through the data files looking at all the stuff that's moddable, and one thing immediately jumps out at me, the formulas for the various component abilities are all very oddly written.

Here's an example from the Energy Refractor:
-1 - (([%Level%] - 1) * 1)

If I was writing this formula, it would be:
0 - [%Level%]

So is there some reason why these formulas are syntaxed in such a way? Not only is this a thousand times clearer for someone to read, it's also a lot less calculations done. Not all the formulas are this bad, but most of them could seriously use some cleaning up.

From the formula's general patern, I would say they were all generated by some sort of program with no concept of efficiency. In which case, should I even bother modding these now? Or will that be addressed in the future as well?

‹ ALT TAB Empires? ›
» 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.
Image de Captain Kwok
Mod Designer

Could use some optimization

Soumis par Captain Kwok le Jeu, 2006-11-09 11:13

It's mostly due to cutting and pasting I would imagine.

In some cases where you're amount per level increase is different from the base amount you want to use a variant of the top formula - which is usually the case with most components.

-----

Space Empires Depot | Space Food Empires!

» 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
  • Is the Patch Process Dead, and Other Thoughts...
  • Known SE5 v1.74 Bugs
  • Babylon 5 Wars SEV Mod Update
  • Space Empires V 1.74

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 :

  • Steam SEV folder location
  • Double-Clicking to launch picks wrong item
  • Mods?
  • population loading in balance mod
  • dumb noob question bout sphereworlds
(c) Strategy First, Inc. All rights reserved.