CrateBeneath=true CrateBeneathIsMoney=true

Bug #896010 reported by AlliedG
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
New
Wishlist
Unassigned

Bug Description

1. This doesn't work if the owner of said structure has no house.

2. It works obviously if it has a house which has a very useful side effect - donate powers possible and works with crates off. Unfortunatly a nasty side effect occurs if crates on.

1 extra crate is spawned on the map ignoring CrateMinimum=1

##### STEPS TO REPRODUCE #####
RULESMD

[GACNST]
SuperWeapon=DonateSpecial
SpySat=yes

; Donate logic
[DUMMY]
Name=Placeholder
Strength=1
Armor=special_2
RadarVisible=no
RadarInvisible=yes
Primary=none
Selectable=no
ClickRepairable=no
Artillary=yes
Repairable=no
LegalTarget=no
Insignificant=yes
Nominal=no
TechLevel=-1
Adjacent=0
BaseNormal=no
Sight=0
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
DieSound=CrateMoney
Cost=0
Points=0
Power=0
Capturable=false
Spyable=false
Crewed=no
ThreatPosed=0
SpecialThreatValue=1
CrateBeneath=true
CrateBeneathIsMoney=true
AIBuildThis=no

[DonateSpecial]
UIName=NOSTR:Donate
Name=Donate
IsPowered=false
RechargeTime=.5
Type=UnitDelivery
SW.Deliver=DUMMY
SW.DeliverBuildups=no
Money.Amount=-2000
SidebarImage=XXXICON
FlashSidebarTabFrames=0
ShowTimer=no
DisableableFromShell=no
AIDefendAgainst=no
Action=Custom
Cursor.Frame=480
Cursor.Count=9
Cursor.Interval=2
Cursor.MiniFrame=42
Cursor.MiniCount=10

ARTMD

[DUMMY]
Foundation=1x1
ActiveAnim=KILLANIM

[KILLANIM]
Image=NULL
Damage=1000

Play a map and keep on spamming this super weapon and check the number of crates on map which are randomly generated. It will go further then one.

##### ADDITIONAL INFORMATION #####
CrateBeneath=true CrateBeneathIsMoney=true should not affect

CrateMinimum=1

Revision history for this message
AlliedG (alliedg) wrote :

I also wanted to add that the same effect can occur on maps which have

[Basic]
TrainCrate=yes
TruckCrate=yes

Revision history for this message
WoRmINaToR (worminator) wrote :

Wait, I don't understand... CrateMinimum is the MINIMUM amount of crates that the game is supposed to have on the map at any one time, meaning the game will have no less than one crate on the map at a time. That does not by any means mean that the amount of crates on the map cannot exceed the minimum. That is the maximum's job.

However... you could be trying to describe one valid scenario... are you saying that when a crate is spawned in this fashion, and you have CrateMinimum=1, the game makes a determined effort to have no less than 2 crates on the map (assuming you only destroyed one building/truck)? In other words, did spawning this crate seem to increase the CrateMinimum= from 1 to 2?

I could see how that is possible code-wise, just westwood being smart and stupid at the same time. They set up the crates to count up/down on a spawning/collecting/dissappearing event so the game always knows how many crates are on the field without having to scan for them, but they forgot to account for the scenario of a crate spawning in a way other than by the random crate spawning system.

Of course that's pure conjecture but it certainly makes sense.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.