Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline CnCGeneralsAddict  
#1 Posted : Thursday, June 11, 2009 12:15:49 PM(UTC)
CnCGeneralsAddict
Private
Joined: 3/21/2009(UTC)
Posts: 8

I found the "QuantityModifier = " line in the Chinese Barracks code, that allows 2 Red Guard to appear after clicking ONCE on the Red Guard button. How do I make this work for a Chinese War Factory?
Code:

Behavior = ProductionUpdate ModuleTag_XX
  QuantityModifier = ChinaTankBattlemaster 2
End

Edited by user Saturday, June 13, 2009 3:16:10 PM(UTC)  | Reason: Not specified

Sponsor
Offline CommieDog  
#2 Posted : Friday, June 12, 2009 4:33:17 AM(UTC)
CommieDog
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 8/3/2003(UTC)
Posts: 3,086
United States

Thanks: 445 times
Was thanked: 186 time(s) in 130 post(s)
I think it should work.
UserPostedImage
CommieDog: Because someone has to do your dirty work for you
Offline Annihilationzh  
#3 Posted : Friday, June 12, 2009 4:48:00 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 476 time(s) in 331 post(s)
Why are you asking us instead of trying it out for yourself?
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline Drummin  
#4 Posted : Friday, June 12, 2009 8:48:26 AM(UTC)
Drummin
General
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffMaps Staff: Maps Staff MemberRed Alert Staff: Red Alert Staff Member
Joined: 12/11/2007(UTC)
Posts: 1,622
Location: CA, USA

Was thanked: 16 time(s) in 15 post(s)
I agree, let us know how you do with it.
Offline Annihilationzh  
#5 Posted : Saturday, June 13, 2009 9:54:38 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 476 time(s) in 331 post(s)
The problem likely lies with creating a new ProductionUpdate when it already has one. Remove the one that you added & change the original one from:

Code:
  Behavior = ProductionUpdate ModuleTag_12
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End


into this:
Code:
  Behavior = ProductionUpdate ModuleTag_12
    QuantityModifier = ChinaTankBattleMaster   2
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End


This worked fine on my computer.

Edited by user Monday, June 15, 2009 8:10:36 AM(UTC)  | Reason: Removed response to deleted post

If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline CnCGeneralsAddict  
#6 Posted : Sunday, June 14, 2009 3:09:08 PM(UTC)
CnCGeneralsAddict
Private
Joined: 3/21/2009(UTC)
Posts: 8

I've finally got it to work. I am using the following lines to release 2 Battlemasters at one time:
Code:

  Behavior = ProductionUpdate ModuleTag_12
    QuantityModifier = ChinaTankBattleMaster 2
    NumDoorAnimations = 2 ;the number must be at least 2 in order for QuantityModifier to work.
    DoorOpeningTime = 4000  
    DoorWaitOpenTime = 2000  
    DoorCloseTime = 5000  
    ConstructionCompleteDuration = 1500
  End

Edited by user Sunday, June 14, 2009 3:12:05 PM(UTC)  | Reason: Not specified

Sky Demon  
#7 Posted : Saturday, July 4, 2009 9:07:04 AM(UTC)
Guest
Guest
Joined: 7/31/2008(UTC)
Posts: 563

Was thanked: 1 time(s) in 1 post(s)
Doesn't the use of the QuantityModifier cause problems when two units are created on top of each other?
Surely if you were to change the number to anything higher than 2 they would get stuck ontop of each other or jammed in the factory?
Offline Annihilationzh  
#8 Posted : Saturday, July 4, 2009 10:01:30 AM(UTC)
Annihilationzh
General
Joined: 8/2/2008(UTC)
Posts: 1,779
United Kingdom

Thanks: 26 times
Was thanked: 476 time(s) in 331 post(s)
The way Generals works, not much can get stuck. Units can go through each other, but try to avoid it.

I'll never understand why he thought that setting NumDoorAnimations to 2 would make any difference. It's pure superstition. The war factory doesn't have two doors to animate and the code works fine without the pointless change.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Offline CommieDog  
#9 Posted : Saturday, July 4, 2009 1:36:34 PM(UTC)
CommieDog
Administrator
C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 8/3/2003(UTC)
Posts: 3,086
United States

Thanks: 445 times
Was thanked: 186 time(s) in 130 post(s)
Sky Demon wrote:
Doesn't the use of the QuantityModifier cause problems when two units are created on top of each other?
Surely if you were to change the number to anything higher than 2 they would get stuck ontop of each other or jammed in the factory?

The China Barracks's ProductionUpdate module has a ExitDelay= flag that is commented to indicate that it helps with the multiple Red Guards. If it was that big of an issue, I suppose you could use it.
UserPostedImage
CommieDog: Because someone has to do your dirty work for you
Offline garek007  
#10 Posted : Wednesday, January 28, 2026 10:12:15 AM(UTC)
garek007
Private
Joined: 10/26/2006(UTC)
Posts: 15

Originally Posted by: Annihilationzh Go to Quoted Post
The problem likely lies with creating a new ProductionUpdate when it already has one. Remove the one that you added & change the original one from:

Code:
  Behavior = ProductionUpdate ModuleTag_12
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End


into this:
Code:
  Behavior = ProductionUpdate ModuleTag_12
    QuantityModifier = ChinaTankBattleMaster   2
    NumDoorAnimations            = 1
    DoorOpeningTime              = 4000  ;in mSeconds
    DoorWaitOpenTime             = 2000  ;in mSeconds
    DoorCloseTime                = 5000  ;in mSeconds
    ConstructionCompleteDuration = 1500  ;in mSeconds
  End


This worked fine on my computer.


This fixed it for me as well. I was able to get two Humvees as the Air Force General.

Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.