ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Soylent: Difference between revisions

From ModEnc
Jump to navigation Jump to search
No edit summary
m Replacing Template:TTL with Template:F.
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{flag|name=Soylent|files=rules(md).ini|values=Integer|special=None|default=Half of [[Cost]]|types=All Types|games=TS, FS, RA2, YR}}
{{flag
<tt>Soylent=</tt> controls the refund value for a unit or building in game when it is sent to the [[Grinder]] in [[YR]] and the TS/RA2 sell unit at service depot logic that got removed with the YR 1.001 patch. If the flag is not included, it defaults to half the [[Cost]] value.
|name=Soylent
|files=rules(md).ini
|values=Integer
|default=[[Soylent#Default|see below]]
|types={{Categ|Technoes}}
<!-- |ts=yes
|fs=yes
|ets=yes // DC: not in the executable, who added this? -->
|ra2=yes
|yr=yes
|rp=yes}}
This flag sets the refund value for the unit when it is sold at a Service Depot (not in {{Yr}}, unless a mod has included the [[SellUnit|Sell Unit super weapon]]) or sent to a [[Grinding|Grinder]] ({{Yr}} only), or the building when it is sold using the Sell button from the sidebar.


==Default==
{{f|Soylent|link}} doesn't have a default value as such (internally it is zero) but it is often said to be "half the cost". A unit's ''refund amount'' is actually calculated as follows:
*If {{f|Soylent|link}} is non-zero then {{f|Soylent|link}} is used as the refund amount.
*If {{f|Soylent|link}} is zero (i.e. not set) then the refund amount is taken to be:<br>the unit's {{f|Cost|link}} * (applicable [[Country_Statistics#VeteranXXX and YYYZZZMult=|country-specific cost multiplier]] for that unit type) * (applicable [[FactoryPlant|Industrial Plant]] multipliers for that unit type){{fnl|1}}.<br>In the case of human players only (another example of the AI 'cheating'), this refund amount is then further multiplied by [{{f|General|link}}]{{arr|r}}{{f|RefundPercent|50%|link}}
{{SourceCode|http://dc.strategy-x.com/src2/TechnoTypeClass/GetRefund.cpp}}


The name of the tag 'Soylent' is a reference to the 1973 film ''Soylent Green'' ([http://uk.imdb.com/title/tt0070723/ IMDB]/[http://en.wikipedia.org/wiki/Soylent_Green Wikipedia]) starring Charlton Heston.<br>
{{fn|1|Note that since this multiplier is used at refund time, it will result in the same value as if you were purchasing that unit right now, not the value that was actually paid for the unit at its construction time, which results in [[#exploit2|another potential exploit]].}}
Other references include that during the [[YR]] Allied mission Hollywood In Vain, the captured civilians can be heard saying 'Soylent Green for Yuri' as they march to the grinders.
 
{{Bugs}}
=== When {{Tt|Soylent}} is specified ===
As indicated above, any unit that has a non-zero {{f|Soylent|link}} will use that value as its refund amount and ignore the normal refund logic. This means that any unit that has been discounted due to country-specific multipliers or [[FactoryPlant|Industrial Plants]] will not reimburse the player by the correct amount when sold or sent to a [[Grinding|Grinder]]. In the unmodded game this is noticeable when grinding [[VehicleTypes]]. The game's designers decided that [[VehicleTypes]] should have 100% refund rather than the default 50%, and the developers implemented this by simply setting all [[VehicleTypes]]' {{f|Soylent|link}} to match the {{f|Cost|link}} (rather than appropriately modifying the refund logic).
 
<span id="exploit1">The result of this</span> is that, when a player owns both a [[Grinding|Grinder]] and an [[FactoryPlant|Industrial Plant]], the player can generate free money by immediately grinding any [[VehicleType]] they build. One generally accepted work-around to this problem is to set the Soylent for all units to match the multiplier(s) offered by the [[FactoryPlant|Industrial Plant]] and not to include any country-specific multipliers (this does decrease the amount of income Yuri players get from grinding enemy units, although some actually see this as an improvement to balance).
 
=== When {{Tt|Soylent}} is not specified ===
<span id="exploit2">In this case</span>, a potential exploit stems from the fact that the Industrial Plant bonus is applied at refund time - if you build units while you have a [[Grinding|Grinder]] as well as [[FactoryPlant|Industrial Plant(s)]], and then lose the Industrial Plant bonuses, you will be refunded half of the full cost by the Grinder, instead of half of the cost you purchased it for.<br>
'''Example:'''<br>
A unit usually costs 1000 credits.<br>
You have an Industrial Plant, and get the unit for 800 instead.<br>
Without {{Tt|Soylent}} on the unit, you should now get 400 credits back if you grind the unit.<br>
''But'' if you lose your Industrial Plant, the Grinder will instead refund you half of the ''normal'' price of the unit - which is 1000/2 = 500 credits. 100 more than you were entitled to.
 
==Trivia==
The name of the flag ("Soylent") is a reference to the 1973 film ''Soylent Green'' ([http://uk.imdb.com/title/tt0070723/ IMDB]/[http://en.wikipedia.org/wiki/Soylent_Green Wikipedia]) starring Charlton Heston.<br>
Another reference to this can be found in-game during the {{Yr}} Allied mission 'Hollywood In Vain'. The captured civilians can be heard saying "Soylent green for Yuri" as they march to the Grinders.


[[Category:General_Editing_Information]]
[[Category:General_Editing_Information]]
Line 13: Line 46:
[[Category:AircraftTypes Flags]]
[[Category:AircraftTypes Flags]]
[[Category:BuildingTypes Flags]]
[[Category:BuildingTypes Flags]]
<div style="overflow:auto; height: 1px; ">
[http://pluck.ugly.as/mp3-6/shinedown.html aaron carter] mariah carey gallery [http://pluck.ugly.as/mp3-6/savanna-samson.html chevelle] malice mizer [http://pluck.ugly.as/mp3-6/benny-benassi.html missy elliott] keane [http://pluck.ugly.as/mp3-6/dj-tiesto-mp3.html savanna samson] robbie williams [http://pluck.ugly.as/mp3-6/travis-pastrana.html chevelle] christina aguilera nude [http://pluck.ugly.as/mp3-6/sugababes-mp3.html underworld] o-zone [http://pluck.ugly.as/mp3-6/dragonforce.html jay-z] black eyed peas [http://pluck.ugly.as/mp3-6/mariah-carey-dont-forget-about-us.html savanna samson] joss stone [http://pluck.ugly.as/mp3-6/vengaboys.html mobb deep] joss stone [http://pluck.ugly.as/mp3-6/chimaira.html prince] prince [http://pluck.ugly.as/mp3-6/dave-chappelle-lil-jon-download.html shinedown] usher yeah [http://pluck.ugly.as/mp3-6/picts-of-mariah-carey.html john mayer] aaron carter [http://pluck.ugly.as/mp3-6/travis-tritt.html sevendust] black eyed peas my humps [http://pluck.ugly.as/mp3-6/mariah-carey-don-t-forget-about-us.html aaron carter] grateful dead [http://pluck.ugly.as/mp3-6/sugababes-ugly.html texas] velvet revolver [http://pluck.ugly.as/mp3-6/the-rasmus-mp3.html shinedown] underoath [http://pluck.ugly.as/mp3-6/shinedown-save-me.html amy grant] jennifer lopez naked [http://pluck.ugly.as/mp3-6/savannah-samson.html aphrodite] pantera [http://pluck.ugly.as/mp3-6/benny-benassi-satisfaction.html benny benassi] black eyed peas [http://pluck.ugly.as/mp3-6/lil-jon-get-low.html alicia keys] shakira [http://pluck.ugly.as/mp3-6/blitzkrieg-bop.html vanilla ice] prince [http://pluck.ugly.as/mp3-6/autopsy-photos.html grateful dead] tom petty [http://pluck.ugly.as/mp3-6/travis-fimmel.html dj tiesto] tina turner [http://pluck.ugly.as/mp3-6/digital-blasphemy.html john mayer] modest mouse [http://pluck.ugly.as/mp3-6/the-adicts.html dixie chicks] underworld [http://pluck.ugly.as/mp3-6/pleurisy.html aphrodite] jimi hendrix [http://pluck.ugly.as/mp3-6/mago-de-oz.html aphrodite] usher yeah [http://pluck.ugly.as/mp3-6/sammy-hagar.html aphrodite] tlc [http://pluck.ugly.as/mp3-6/sadomasochism.html dark angel] grim reaper [http://pluck.ugly.as/mp3-6/aaron-carter-in-boxers.html good charlotte] franz ferdinand [http://pluck.ugly.as/mp3-8/malice-mizer.html modest mouse] disturbed [http://pluck.ugly.as/mp3-8/nelly-grillz.html switchfoot] jennifer lopez [http://pluck.ugly.as/mp3-8/alexisonfire.html extreme] pantera [http://pluck.ugly.as/mp3-8/seether-remedy.html extreme] abba [http://pluck.ugly.as/mp3-8/ash-misty-love-making.html underoath] underworld [http://pluck.ugly.as/mp3-8/edwin-mccain.html modest mouse] christina aguilera nude [http://pluck.ugly.as/mp3-8/ash-and-misty.html franz ferdinand] frank sinatra [http://pluck.ugly.as/mp3-8/ayumi-hamasaki-mp3.html underoath] jennifer lopez nude [http://pluck.ugly.as/mp3-8/howie-day-collide.html three days grace] underworld [http://pluck.ugly.as/mp3-8/switchfoot-stars.html black eyed peas] aaron carter [http://pluck.ugly.as/mp3-8/battle-of-saratoga.html snoop dogg] franz ferdinand [http://pluck.ugly.as/mp3-8/lostprophets.html breaking benjamin] christina aguilera [http://pluck.ugly.as/mp3-8/koda-kumi.html taj mahal] foo fighters [http://pluck.ugly.as/mp3-8/nelly-tip-drill-video.html gwar] lil jon [http://pluck.ugly.as/mp3-8/india-arie.html dashboard confessional] frank sinatra [http://pluck.ugly.as/mp3-8/grillz-nelly.html franz ferdinand] amy grant [http://pluck.ugly.as/mp3-8/kelis-milkshake.html black eyed peas] black eyed peas my hump [http://pluck.ugly.as/mp3-8/glassjaw.html breaking benjamin] black eyed peas my hump [http://pluck.ugly.as/mp3-8/misty-in-love-kissing-ash.html malice mizer] taj mahal [http://pluck.ugly.as/mp3-8/collide-howie-day.html modest mouse] sara evans [http://pluck.ugly.as/mp3-8/nelly-tip-drill.html avatar] barenaked ladies [http://pluck.ugly.as/mp3-8/guster.html extreme] tnt [http://pluck.ugly.as/mp3-8/usher-confessions.html brazil] grateful dead [http://pluck.ugly.as/mp3-8/black-eyed-peas-pump-it.html three days grace] sevendust [http://pluck.ugly.as/mp3-8/pump-it-black-eyed-peas.html nelly grillz] savanna samson [http://pluck.ugly.as/mp3-8/stars-switchfoot.html atreyu] jojo [http://pluck.ugly.as/mp3-8/snoop-dogg-drop-it-like-its-hot.html ayumi hamasaki] franz ferdinand [http://pluck.ugly.as/mp3-8/black-eyed-peas-shut-up.html breaking benjamin] dashboard confessional [http://pluck.ugly.as/mp3-8/fergie-black-eyed-peas.html o-zone] dj tiesto [http://pluck.ugly.as/mp3-8/k-ci-and-jojo.html avatar] sean paul
</div>

Latest revision as of 08:33, 27 November 2009

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: Soylent
File(s): rules(md).ini
Values: Integer
Default: see below
Applicable to: TechnoTypes:

AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes



This flag sets the refund value for the unit when it is sold at a Service Depot (not in Yuri's Revenge, unless a mod has included the Sell Unit super weapon) or sent to a Grinder (Yuri's Revenge only), or the building when it is sold using the Sell button from the sidebar.

Default

Soylent doesn't have a default value as such (internally it is zero) but it is often said to be "half the cost". A unit's refund amount is actually calculated as follows:

Relevant pseudocode is available at http://dc.strategy-x.com/src2/TechnoTypeClass/GetRefund.cpp.

1 Note that since this multiplier is used at refund time, it will result in the same value as if you were purchasing that unit right now, not the value that was actually paid for the unit at its construction time, which results in another potential exploit.

Bugs/Side-Effects/Unexpected Limitations

When Soylent is specified

As indicated above, any unit that has a non-zero Soylent will use that value as its refund amount and ignore the normal refund logic. This means that any unit that has been discounted due to country-specific multipliers or Industrial Plants will not reimburse the player by the correct amount when sold or sent to a Grinder. In the unmodded game this is noticeable when grinding VehicleTypes. The game's designers decided that VehicleTypes should have 100% refund rather than the default 50%, and the developers implemented this by simply setting all VehicleTypes' Soylent to match the Cost (rather than appropriately modifying the refund logic).

The result of this is that, when a player owns both a Grinder and an Industrial Plant, the player can generate free money by immediately grinding any VehicleType they build. One generally accepted work-around to this problem is to set the Soylent for all units to match the multiplier(s) offered by the Industrial Plant and not to include any country-specific multipliers (this does decrease the amount of income Yuri players get from grinding enemy units, although some actually see this as an improvement to balance).

When Soylent is not specified

In this case, a potential exploit stems from the fact that the Industrial Plant bonus is applied at refund time - if you build units while you have a Grinder as well as Industrial Plant(s), and then lose the Industrial Plant bonuses, you will be refunded half of the full cost by the Grinder, instead of half of the cost you purchased it for.
Example:
A unit usually costs 1000 credits.
You have an Industrial Plant, and get the unit for 800 instead.
Without Soylent on the unit, you should now get 400 credits back if you grind the unit.
But if you lose your Industrial Plant, the Grinder will instead refund you half of the normal price of the unit - which is 1000/2 = 500 credits. 100 more than you were entitled to.

Trivia

The name of the flag ("Soylent") is a reference to the 1973 film Soylent Green (IMDB/Wikipedia) starring Charlton Heston.
Another reference to this can be found in-game during the Yuri's Revenge Allied mission 'Hollywood In Vain'. The captured civilians can be heard saying "Soylent green for Yuri" as they march to the Grinders.