Author Topic: Another thing I discovered about the unit cost formula  (Read 4269 times)

0 Members and 1 Guest are viewing this topic.

Offline Fal

Re: Another thing I discovered about the unit cost formula
« Reply #15 on: May 03, 2013, 07:14:02 PM »
Sounds like everything works out then, cool :)

Re: Another thing I discovered about the unit cost formula
« Reply #16 on: October 26, 2018, 12:39:40 AM »
Sorry for reviving this topic but I found another questionable example.
scout rover: 1-1-2*1.
Up to step 8 it calculates as 1. Now at step 9 it should apply minimum cost of Reactor*2-(Reactor/2) since its speed is 2 and it is not an exemption. For fission reactor this minimum computes as 1*2-1/2 = 1.5. Where should we round it to? Based on default rounding rule each step value should round down. So it should make it as 1? Which is incorrect as scout rover costs 2. So should we round this minimum up then? It would be another exception from generic rounding rule. Or maybe I don't understand the rounding rule right. Maybe it is not the each step value calculate but every division should be rounded down. In this case the 1/2 part would be rounded to 0 and minimum would compute as 2. Which is correct.

Offline bvanevery

  • Emperor of the Tanks
  • Thinker
  • *
  • Posts: 6370
  • €659
  • View Inventory
  • Send /Gift
  • Allows access to AC2's quiz & chess sections for 144 hours from time of use.  You can't do without Leadship  Must. have. caffeine. -Ahhhhh; good.  Premium environmentally-responsible coffee, grown with love and care by Gaian experts.  
  • Planning for the next 20 years of SMACX.
  • AC2 Hall Of Fame AC Text modder Author of at least one AAR
    • View Profile
    • Awards
Re: Another thing I discovered about the unit cost formula
« Reply #17 on: October 27, 2018, 04:28:38 PM »
In general I find integer math to be an archaic game design concept, best avoided in new titles.  What is SMAC's tech tree except a collection of gradually marching integer increments?  It could all be done away with, if there was some consistent regime for increasing various stats by floating point values.

 

* User

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

* Community poll

SMAC v.4 SMAX v.2 (or previous versions)
-=-
24 (7%)
XP Compatibility patch
-=-
9 (2%)
Gog version for Windows
-=-
103 (32%)
Scient (unofficial) patch
-=-
40 (12%)
Kyrub's latest patch
-=-
14 (4%)
Yitzi's latest patch
-=-
89 (28%)
AC for Mac
-=-
3 (0%)
AC for Linux
-=-
6 (1%)
Gog version for Mac
-=-
10 (3%)
No patch
-=-
16 (5%)
Total Members Voted: 314
AC2 Wiki Logo
-click pic for wik-

* Random quote

Our scientists now use fractal theory to 'teach' the molecules to assume, or resume, a particular form. Substances of amazing strength become simple once the formulae are properly computed.
~Col. Corazon Santiago 'The Council of War'

* Select your theme

*
Templates: 5: index (default), PortaMx/Mainindex (default), PortaMx/Frames (default), Display (default), GenericControls (default).
Sub templates: 8: init, html_above, body_above, portamx_above, main, portamx_below, body_below, html_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 45 - 1228KB. (show)
Queries used: 37.

[Show Queries]