Author Topic: Bugs, flaws, and other things to be fixed: Drones formula  (Read 10752 times)

0 Members and 1 Guest are viewing this topic.

Offline Yitzi

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #45 on: April 23, 2014, 04:14:14 PM »
One more thing to check for Drones.  I'm finding that with the "1" flag on for Drones rules code {1 to 31} (pacifism drones can be quelled by facilities) that pacifism is still calculated last.

Yes it is; if it weren't, that would have numerous other effects.  What the flag does is that if you don't use up all your facilities' drone control ability on other drones, what's left can be applied to pacifism drones when they show up.

Offline Nexii

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #46 on: April 23, 2014, 05:02:54 PM »
Gotcha.  Yea this seems to work correctly - the order in Psych screen is off but they are (effectively) calculated before facilities and drone-controlling SPs.  I assume that's one of the side effects - the +TALENT SPs have to be last?  Not that I'm complaining really...it probably doesn't make a huge difference.

Offline Yitzi

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #47 on: April 23, 2014, 05:18:00 PM »
Gotcha.  Yea this seems to work correctly - the order in Psych screen is off but they are (effectively) calculated before facilities and drone-controlling SPs.  I assume that's one of the side effects - the +TALENT SPs have to be last?

They're last anyway; the issue is more that it would make pacifism mostly irrelevant in a base depending on facilities for drone control (as pacifism can't create superdrones.)

Offline Yitzi

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #48 on: April 24, 2014, 02:17:02 AM »
Regarding the minerals: Carried-over minerals are always capped at the base's production, in addition to the alphax value.  So it doesn't matter whether you have 10 or 20 or 1000 minerals stored; if your production is only 3, you'll only carry over 3 minerals and will not produce more than one unit.

This is desirable, as otherwise you could use carried-over minerals to hurry one thing as though it were another.  It also means that you cannot hurry a multibuild; because multibuild is designed to benefit high-production bases, this is working as intended.

I did, however, find a bug in that a -1 value was properly working as infinite when calculating whether you would carry everything over, but as 0 when calculating how much you would carry over if not everything, meaning that if you over-hurried you'd end up losing even that turn's production.  It has been fixed, and the resulting patch should be up shortly.

Offline Nexii

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #49 on: April 24, 2014, 02:31:50 AM »
Yea, thats fair.  Good catch!

Offline Nexii

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #50 on: April 28, 2014, 05:35:57 AM »
I discovered something else related to production. 

20,      ; Retool exemption (first X minerals not affected by penalty) {0 to 32767}

This variable also determines the amount of free minerals for a new base.  Would it be difficult to break this out?  When set to 0 for example there's no difference between -1 SUP and -2 SUP.  And set to high amounts it gives a game-breaking amount.

Offline Yitzi

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #51 on: April 28, 2014, 05:57:38 AM »
Shouldn't be difficult at all.

Offline Nexii

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #52 on: April 28, 2014, 06:17:19 AM »
Cool.  Something else you may discover when examining the rush cost code is that the exemption amount is also used as the double cost rush threshold for facilities.  For SPs it seems to always be 4 rows of minerals. I can see how these sort of relate but may also want to consider breaking out rush thresholds for both. 

Offline Yitzi

Re: Bugs, flaws, and other things to be fixed: Drones formula
« Reply #53 on: April 28, 2014, 12:25:08 PM »
Cool.  Something else you may discover when examining the rush cost code is that the exemption amount is also used as the double cost rush threshold for facilities.  For SPs it seems to always be 4 rows of minerals. I can see how these sort of relate but may also want to consider breaking out rush thresholds for both.

Seems a good idea.

 

* 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

You waited so long to heed us, earthdeidre,
Almost we pruned you, as we may yet prune your branches.
~Lady Deirdre Skye 'Conversations With Planet'

* 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: 38.

[Show Queries]