BacardiCoke
8 years ago
Hi

I want to limited hackers, black market and dropzone and edit the oilderrick.
How I can do this?

I create a document and named it Map.ini.
This is now inside:

working version:

;###############################
; #### Start of OilDerrick ####
;###############################

Object TechOilDerrick
ReplaceModule ModuleTag_03

Body = ActiveBody ModuleTag_03_Override
MaxHealth = 1975.0 ; original = 2000.0
InitialHealth = 1975.0 ; original = 2000.0
End
End

ReplaceModule ModuleTag_04
Behavior = AutoDepositUpdate ModuleTag_04_Override
DepositTiming = 300
DepositAmount = 5
InitialCaptureBonus = 1000
End
End
End

;original deposit timing=12000 milliseconds, deposit amount=200, initial capture bonus=1000

; #### End of OilDerrick ####
;#############################


;####################################
; #### Start of "no moneymaker" ####
;####################################

Object AmericaSupplyDropZone
MaxSimultaneousOfType = 3
End

Object AirF_AmericaSupplyDropZone
MaxSimultaneousOfType = 3
End

Object Lazr_AmericaSupplyDropZone
MaxSimultaneousOfType = 3
End

Object SupW_AmericaSupplyDropZone
MaxSimultaneousOfType = 3
End

Object ChinaInfantryHacker
MaxSimultaneousOfType = 6
End

Object Infa_ChinaInfantryHacker
MaxSimultaneousOfType = 6
End

Object Nuke_ChinaInfantryHacker
MaxSimultaneousOfType = 6
End

Object Tank_ChinaInfantryHacker
MaxSimultaneousOfType = 6
End

Object GLABlackMarket
MaxSimultaneousOfType = 3
End

Object Demo_GLABlackMarket
MaxSimultaneousOfType = 3
End

Object Slth_GLABlackMarket
MaxSimultaneousOfType = 3
End

Object Chem_GLABlackMarket
MaxSimultaneousOfType = 3
End

; #### End of "no moneymaker" ####
;##################################

And put this ini into the mapfolder (documents/c&c zh/maps/"mapname")
But it don't work.
Sponsor
SkyMix_RMT
8 years ago
You have to restart the game when you add a map.ini
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
BacardiCoke
8 years ago

You have to restart the game when you add a map.ini

Originally Posted by: SkyMix_RMT 


Yes, game was more times restarted
SkyMix_RMT
8 years ago
I don't see what's wrong here, I'll have to see for myself.

Can you upload the map?
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
BacardiCoke
8 years ago

I don't see what's wrong here, I'll have to see for myself.

Can you upload the map?

Originally Posted by: SkyMix_RMT 



load from filehorst.de: real survival 2v2_1 oil_no moneymaker - maybe not final version.7z 

I think, I found the mistake... the filename is Map.ini.txt
I dont saw it because my settings was wrong...

After the change it works 🙂
Unknown Editor
8 years ago
Don't you have Problems with Hackers Construction and ORDER ?
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
BacardiCoke
8 years ago

Don't you have Problems with Hackers Construction and ORDER ?

Originally Posted by: Unknown Editor 


What you meaning?
My english is not perfect and the translater can't traslate it for me that I understood.

It give a way that every one can build more than hackers or dz/bm, but I think that is not preventable.
And I think that 7 oder 6 hackers are good amount.
Jundiyy
8 years ago
I've got a question for you, is it still possible to make more hackers with your INI? Make sure you have enough money, save up your money then kill all your hackers, now make 2 or 3 barracks and fill them all up with hackers, can you make more than 6/7 at once?
If so, you need to have some sort of code which denies more hackers queuing up at once.
I can't remember it at the moment, maybe someone else can, but it's something to do with the queue limit.
SkyMix_RMT
8 years ago

If so, you need to have some sort of code which denies more hackers queuing up at once.
I can't remember it at the moment, maybe someone else can, but it's something to do with the queue limit

Originally Posted by: Jundiyy 



you mean this


 AddModule
  Behavior = ProductionUpdate ModuleTag_??
    MaxQueueEntries = 1; So you can't build multiple upgrades in the same frame
  End
 End

Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
BacardiCoke
8 years ago

I've got a question for you, is it still possible to make more hackers with your INI? Make sure you have enough money, save up your money then kill all your hackers, now make 2 or 3 barracks and fill them all up with hackers, can you make more than 6/7 at once?
If so, you need to have some sort of code which denies more hackers queuing up at once.
I can't remember it at the moment, maybe someone else can, but it's something to do with the queue limit.

Originally Posted by: Jundiyy 


This is a way that I meaning.



 AddModule
  Behavior = ProductionUpdate ModuleTag_??
    MaxQueueEntries = 1; So you can't build multiple upgrades in the same frame
  End
 End

Originally Posted by: SkyMix_RMT 


Where I must write it in my ini?
Can you set it please?
SkyMix_RMT
8 years ago
In the barracks. But if you do it you will only be able to build 1 unit at a time.
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
BacardiCoke
8 years ago
Than I don't take it into, but appeal to the fairplay in a text ^^
Unknown Editor
8 years ago
Well , I myself had the same Problem for my own Map :
1 Drop zone , 1 Black Market , 3 Hackers ...

It is Horrible ... You'll have much Work to Disable it : Both INI & Script
For Myself I just used a useless Structure and got it a Special power to Drop Hackers , Then a Script to Verify if there is a Hacker for the Player , Delete the Building ... and much more

Well , First You'll need a Structure + Special Power and the Total Codes :

NOTE : Only Activated for CHINA Factions ...

; ======================= Command Buttons =======================

CommandButton Boss_Command_ConstructChinaInfantryHacker
  Command           = SPECIAL_POWER_FROM_SHORTCUT
  SpecialPower      = SuperweaponCarpetBomb
  Options           = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel         = CONTROLBAR:HackerDrop
  ButtonImage       = SALeaflet
  ButtonBorderType  = ACTION 
  DescriptLabel     = CONTROLBAR:TooltipHackerDrop
  RadiusCursorType  = PARADROP
  InvalidCursorName = GenericInvalid
End

CommandButton Infa_Command_ConstructChinaInfantryHacker
  Command           = SPECIAL_POWER
  SpecialPower      = SuperweaponCrateDrop
  Options           = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
  TextLabel         = CONTROLBAR:HackerDrop
  ButtonImage       = SALeaflet
  ButtonBorderType  = ACTION
  DescriptLabel     = CONTROLBAR:TooltipHackerDrop
  RadiusCursorType  = PARADROP
  InvalidCursorName = GenericInvalid
End

; ======================== Special Powers ========================

SpecialPower SuperweaponCarpetBomb
 Enum               = SPECIAL_CARPET_BOMB
 ReloadTime         = 240000
 RequiredScience    = SCIENCE_CHINA
 PublicTimer        = No
 SharedSyncedTimer  = Yes
 RadiusCursorRadius = 50
 ShortcutPower      = Yes
 AcademyClassify    = ACT_SUPERPOWER
End

SpecialPower SuperweaponCrateDrop
 Enum               = SPECIAL_CRATE_DROP
 ReloadTime         = 240000
 RequiredScience    = SCIENCE_CHINA
 PublicTimer        = No
 SharedSyncedTimer  = Yes
 RadiusCursorRadius = 50
 ShortcutPower      = Yes
 AcademyClassify    = ACT_SUPERPOWER
End

ObjectCreationList SPECIALPOWER_Hackerdrop
  DeliverPayload
   Transport                 = ChinaJetCargoPlane
   StartAtPreferredHeight    = Yes
   StartAtMaxSpeed           = Yes
   MaxAttempts               = 4
   DropOffset                = X:0 Y:0 Z:-10
   DropDelay                 = 500
   ParachuteDirectly         = Yes
   PutInContainer            = AmericaParachute
   Payload                   = ChinaInfantryHacker 3
   DeliveryDistance          = 0
   PreOpenDistance           = 300
   DeliveryDecalRadius       = 50
   DeliveryDecal
   OnlyVisibleToOwningPlayer = Yes
      Texture                = SCCParadrop_USA
      Style                  = SHADOW_ALPHA_DECAL
      OpacityMin             = 25%
      OpacityMax             = 50%
      OpacityThrobTime       = 500
      Color                  = R:227 G:229 B:22 A:255
    End
  End
End

ObjectCreationList SPECIALPOWER_Hackerdrop_Infa
  DeliverPayload
   Transport                 = ChinaJetCargoPlane
   StartAtPreferredHeight    = Yes
   StartAtMaxSpeed           = Yes
   MaxAttempts               = 4
   DropOffset                = X:0 Y:0 Z:-10
   DropDelay                 = 500
   ParachuteDirectly         = Yes
   PutInContainer            = AmericaParachute
   Payload                   = Infa_ChinaInfantryHacker 3
   DeliveryDistance          = 0
   PreOpenDistance           = 300
   DeliveryDecalRadius       = 50
   DeliveryDecal
   OnlyVisibleToOwningPlayer = Yes
      Texture                = SCCParadrop_USA
      Style                  = SHADOW_ALPHA_DECAL
      OpacityMin             = 25%
      OpacityMax             = 50%
      OpacityThrobTime       = 500
      Color                  = R:227 G:229 B:22 A:255
    End
  End
End

; ============================ Hacker Drop Activate Building ============================

CommandSet Boss_ChinaBarracksCommandSet
 1 = Boss_Command_ConstructChinaInfantryHacker
 3 = Infa_Command_ConstructChinaInfantryHacker
End

Object Boss_Barracks
KindOf = -FS_FACTORY -MP_COUNT_FOR_VICTORY -FS_BARRACKS
 AddModule
   Behavior = OCLSpecialPower ModuleTag_HD
    SpecialPowerTemplate = SuperweaponCarpetBomb
    OCL                  = SPECIALPOWER_Hackerdrop
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
    OCLAdjustPositionToPassable = Yes
  End
   Behavior = OCLSpecialPower ModuleTag_HD-Infa
    SpecialPowerTemplate = SuperweaponCrateDrop
    OCL                  = SPECIALPOWER_Hackerdrop_Infa
    CreateLocation       = CREATE_AT_EDGE_NEAR_SOURCE
    OCLAdjustPositionToPassable = Yes
  End ; The End of the Behavior
 End  ; The End of Add Module action
End   ; The End of the Entire Unit

CommandSet SpecialPowerShortcutChina
  9 = Boss_Command_ConstructChinaInfantryHacker
END

CommandSet Infa_SpecialPowerShortcutChina
  9 = Infa_Command_ConstructChinaInfantryHacker
END

CommandSet Nuke_SpecialPowerShortcutChina
  8 = Boss_Command_ConstructChinaInfantryHacker
END

CommandSet Tank_SpecialPowerShortcutChina
  9 = Boss_Command_ConstructChinaInfantryHacker
End

; ====================== NO HACKERS ARE BUILD-ABLE ======================

CommandSet Infa_ChinaBarracksCommandSet
 4 = Command_LaunchBaikonurRocket ; Hiding Hacker Drop Special Power
End

CommandSet Infa_ChinaBarracksCommandSetUpgrade
 4 = Command_LaunchBaikonurRocket
End

Object ChinaInfantryHacker
  Buildable = No
End

Object Infa_ChinaInfantryHacker
  Buildable = No
End

Object Nuke_ChinaInfantryHacker
  Buildable = No
End

Object Tank_ChinaInfantryHacker
  Buildable = No
End

Here is also the STR :

CONTROLBAR:HackerDrop
"&Hacker Drop"
End

CONTROLBAR:TooltipHackerDrop
"Drops Hackers By Plane\n\n
Countdown Timer : 4:00"
End



Second , The Scripting :

Each Player Requires at least 3 Scripts ; Also Disable the "Deactivate Upon Success" for all the Scripts (Important)

Script #1 : Test for Player's Hacker Drop Activate Structure ...

*** IF ***
Unit 'HackerDrop_Source0' exists and is alive.
*** THEN ***
Set Flag named 'HackerDrop_Source00=Exists' to TRUE
*** ELSE ***
Set Flag named 'HackerDrop_Source00=Exists' to FALSE


Script #2 : Spawn The Structure if there is no Hacker (Must Spawn Somewhere out of Map Border)

*** IF ***
Player 'player0' has Equal To 0 unit or structure of type 'Infa_ChinaInfantryHacker'
*AND* Player 'player0' has Equal To 0 unit or structure of type 'ChinaInfantryHacker'
*AND* Flag named 'HackerDrop_Source00=Exists' IS FALSE
*** THEN ***
Spawn Unit 'HackerDrop_Source0' of type 'Boss_Barracks' on team Team 'teamplayer0' at position ((1400.00,7775.00,123.13)), rotated 270.00 degrees .


Script #3 : Delete the Structure if Find a Hacker ...

*** IF ***
Player 'player0' has Greater Than or Equal To 1 unit or structure of type 'Infa_ChinaInfantryHacker'
*AND* Player 'player0' has Greater Than or Equal To 1 unit or structure of type 'ChinaInfantryHacker'
*AND* Flag named 'HackerDrop_Source00=Exists' IS TRUE
*** THEN ***
Unit 'HackerDrop_Source0' is removed from the world.



Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
BacardiCoke
8 years ago

Well , I myself had the same Problem for my own Map :
1 Drop zone , 1 Black Market , 3 Hackers ...

It is Horrible ... You'll have much Work to Disable it : Both INI & Script
For Myself I just used a useless Structure and got it a Special power to Drop Hackers , Then a Script to Verify if there is a Hacker for the Player , Delete the Building ... and much more

Originally Posted by: Unknown Editor 



I'm looking forward to your result. ^^ 🙂
Jundiyy
8 years ago



you mean this


 AddModule
  Behavior = ProductionUpdate ModuleTag_??
    MaxQueueEntries = 1; So you can't build multiple upgrades in the same frame
  End
 End

Originally Posted by: SkyMix_RMT 





Yes (I know this won't help here but what if you change it to 2/3/4/5? Will it not change?)

Or perhaps
1. (Not sure if possible but think so) make a barracks called barracks2, copy and paste the full code of the original barracks and add the above code to it OR
2. Edit the properganda centre/speaker tower and add a the hacker command button there and remove from the barracks, add in the above code.
VTULCobra
8 years ago
I believe this is the line you're looking for;

MaxSimultaneousOfType = 1

It is used for super weapons and every generals special unit (Burton/Lotus/Kell).
Rank up!
Unknown Editor
8 years ago

I believe this is the line you're looking for;

MaxSimultaneousOfType = 1

It is used for super weapons and every generals special unit (Burton/Lotus/Kell).

Originally Posted by: vtulcobra 



Well , This is Exactly what the hell (Sorry for using BAD Words) no one knows the Cause ...
When you apply this into map.ini Works only when there is enough of unit :ashamed:
If it is a Structure under construction , Well there is a Structure ;
But when You ORDER a Unit , as there is still nothing , you can Order up to 9 😞
Even if using this :
 AddModule
  Behavior = ProductionUpdate ModuleTag_??
    MaxQueueEntries = 1; So you can't build multiple upgrades in the same frame
  End
 End

Still can construct many Barracks and 1 Hacker Per each Barracks ...
And that's What's keeping U.S from making Limits for Unit constructions 😞
Now I'll say NO MORE (as there is nothing left to say [grin])
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%
VTULCobra
8 years ago
From Annihilationzh's thread "Map.ini basics ".

"Unit limits also have a glitch. They will allow you to queue as many as you want to until you have actually reached the limit on the map. For example, if you add a limit of 1 to rangers, you will be able to queue 9 rangers per barracks until the first one is finished."

I'll play around with it for a while but don't expect to get it working.
Rank up!
Unknown Editor
8 years ago
Well , Yeah ... That's what I meant ...
But By the Way :
I think there is a Way to do it Perfectly ; I mean the Hacker Drop Special Power ...
Just Requires an Upgrade like Battle Drone (which is Used for American Tanks , you know) .
And a Huge Logic to get it to Work JUST FINE .
For example : You Pay 1875$ for it in Barracks , After you made the Upgrade , You can Order a Hacker Drop then and after using the Special Power , You'll need to get the rid of Hackers to be able to make the Upgrade again !

Yeah , I know ... It is going to take me like how much my Nuke Truck Project did 😞
Asking is Not a Problem , Problem is Not to Know Something .
Operation : Dark Angel
Static : Launch Delayed
Reason : Uncool Terrain - Old Logic in use - Lack of Performance
Status : Applying new Terrain - Applying new Logic - Increasing Performance by 300%