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 2 users and 165 guests online.

Online users

  • Corellon
  • Shadow hornet

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 » Space Empires V » Space Empires V General

Syntax in Formulas

Submitted by Kalin on Thu, 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? ›
» 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.
Captain Kwok's picture
Mod Designer

Could use some optimization

Submitted by Captain Kwok on Thu, 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!

» 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!
  • Space Empires V 1.74
  • Stuipd Question
  • Neutral pack 1.10 released, now adds three neutral races.
  • Research By Percentage SUCKS

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:

  • Dark Nova 4.27 Released
  • Construction Problems - Things being built with wrong Components?
  • Weapon Range - Phased Polaron Beam max range only 60?
  • Point-Defense variety?
  • Request for Devs - Empire Screen
(c) Strategy First, Inc. All rights reserved.