FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   CnC Modding, Mapping and Editing (http://forums.filefront.com/cnc-modding-mapping-editing-273/)
-   -   Can't I change the CommandSet ini freely? (http://forums.filefront.com/cnc-modding-mapping-editing/270841-cant-i-change-commandset-ini-freely.html)

ceminsaat August 11th, 2006 01:34 PM

Can't I change the CommandSet ini freely?
 
I just did this!:confused:

CommandSet GLAWorkerCommandSet
1 = Command_ConstructGLABarracks
2 = Command_ConstructGLAStingerSite
3 = Command_ConstructGLASupplyStas
4 = Command_ConstructGLATunnelNetwork
5 = Command_ConstructGLAArmsDealer
6 = Command_ConstructGLADemoTrap
7 = Command_ConstructGLAPalace
8 = Command_ConstructGLAScudStor
9 = Command_ConstructGLABlackMarket
10 = mCommand_ConstructGLACommandCenter
13 = Command_UpgradeGLAWorkerFakeCommandSet
14 = Command_DisarmMinesAtPosition
End

The orijinal one is this:

CommandSet GLAWorkerCommandSet
1 = Command_ConstructGLASupplyStash
2 = Command_ConstructGLADemoTrap
3 = Command_ConstructGLABarracks
4 = Command_ConstructGLAPalace
5 = Command_ConstructGLAStingerSite
6 = Command_ConstructGLABlackMarket
7 = Command_ConstructGLATunnelNetwork
8 = Command_ConstructGLAScudStorm
9 = Command_ConstructGLAArmsDealer
10 = Command_ConstructGLACommandCenter
13 = Command_UpgradeGLAWorkerFakeCommandSet
14 = Command_DisarmMinesAtPosition
End

medicdude August 11th, 2006 02:46 PM

Re: Can't I change the CommandSet ini freely?
 
You spelled Supply Stash and Scud Storm wrong.

ceminsaat August 11th, 2006 03:46 PM

Re: Can't I change the CommandSet ini freely?
 
fuck

The_Doom_Master August 12th, 2006 07:50 AM

Re: Can't I change the CommandSet ini freely?
 
Yes thats what i noticed to, that will be the fault

taclled August 12th, 2006 09:08 AM

Re: Can't I change the CommandSet ini freely?
 
i tried to let redguard build bunkers and supply trucks build speaker towers and the china dozer build all command centers but it doesnt work

ceminsaat August 15th, 2006 02:41 AM

Re: Can't I change the CommandSet ini freely?
 
Ok Guys!I did it!No problem!:cya:

taclled August 15th, 2006 08:53 AM

Re: Can't I change the CommandSet ini freely?
 
btw my prob is for generals not ZH

Mere_Mortal August 15th, 2006 10:05 AM

Re: Can't I change the CommandSet ini freely?
 
Your prob is not ceminsaat's prob, go make a new thread about your troubles.

But for what it's worth, only Dozers can build structures.

medicdude August 15th, 2006 05:57 PM

Re: Can't I change the CommandSet ini freely?
 
Dozers being defined as items with the DOZER Kindof. I've made infantry that could dig foxholes... but it was a pain to do, even building them in sets of ten

I think it also needs a ProductionUpdate, not sure though.

Mobius 1 August 15th, 2006 06:15 PM

Re: Can't I change the CommandSet ini freely?
 
I can snoop around in that if u want me to.

medicdude August 15th, 2006 07:05 PM

Re: Can't I change the CommandSet ini freely?
 
Nah, I did it and the code works. It's just a bit annoying when you're actually playing and you have to order construction when your troops get into position. An RA2-ish deploy would be better, but that requires a different kind of code that is a bit unpratical with large groups...

Mobius 1 August 15th, 2006 07:10 PM

Re: Can't I change the CommandSet ini freely?
 
There was a mod for zero hour in which rangers could build some sort of building. It was just like a dozer. If i could remember it I would take a look at it.

taclled August 15th, 2006 11:55 PM

Re: Can't I change the CommandSet ini freely?
 
ive tried many difrent things i now tried a similar thing for ZH the buttons show up but i cant use them like i try to give pathfinders the jarmen kell snipe ability but the same things happens.
do i maybe need to change a diffrent file to make it work.

Mere_Mortal August 16th, 2006 02:09 AM

Re: Can't I change the CommandSet ini freely?
 
Did you give the Sniper the secondary weapon?
Code:

  WeaponSet
Conditions = None
Weapon = PRIMARY USAPathfinderSniperRifle
Weapon = SECONDARY GLAJarmenKellVehiclePilotSniperRifle
AutoChooseSources = SECONDARY NONE
End

Quote:

Originally Posted by medicdude
I've made infantry that could dig foxholes

A foxhole? What were they...Vietcong? lol
I guess this was like a TunnelNetwork?

medicdude August 16th, 2006 06:32 AM

Re: Can't I change the CommandSet ini freely?
 
no :p a foxhole is just a hole in the ground that one or two guys sits in, and they take cover in those when the fighting starts. Pretty common stuff when trenches were no longer used.

Mobius 1 August 16th, 2006 06:47 AM

Re: Can't I change the CommandSet ini freely?
 
Neat, I'd sure like the idea of them foxholes.

medicdude August 16th, 2006 07:17 AM

Re: Can't I change the CommandSet ini freely?
 
http://www.wideopenwest.com/~medicdu...s/foxholes.jpg

Yeah, they were pretty cool, but had their fair share of issues too.

Mobius 1 August 16th, 2006 07:19 AM

Re: Can't I change the CommandSet ini freely?
 
Still looks pretty neat. What issues could u have had?

taclled August 16th, 2006 10:37 PM

Re: Can't I change the CommandSet ini freely?
 
oh how do you add the secondary weapon ??? im guessing the amarican infantyry fil right

Mere_Mortal August 17th, 2006 05:58 AM

Re: Can't I change the CommandSet ini freely?
 
Open AmericaInfantry.ini, locate Object AmericaInfantryPathfinder and replace his existing WeaponSet...
Code:

  WeaponSet
    Conditions = None
    Weapon = PRIMARY USAPathfinderSniperRifle
    Weapon = SECONDARY GLAJarmenKellVehiclePilotSniperRifle
    AutoChooseSources = SECONDARY NONE
  End


taclled August 19th, 2006 01:39 PM

Re: Can't I change the CommandSet ini freely?
 
Thanks and id do a similar thing for trying to allow other vehicles build a building (ex. Supply truck - Speaker toweres)

Mere_Mortal August 20th, 2006 12:26 AM

Re: Can't I change the CommandSet ini freely?
 
No, take a look at the Worker. Since he is a Harvester and Dozer, his WorkerAI module would suit the SupplyTruck well in this scenario because it would simply replace SupplyTruckAI. You also need KindOf = DOZER and a ProductionUpdate module.

taclled August 20th, 2006 02:51 AM

Re: Can't I change the CommandSet ini freely?
 
so id copy and edit the Workers code to suit the supply truck

Mere_Mortal August 20th, 2006 01:11 PM

Re: Can't I change the CommandSet ini freely?
 
Pretty much. You should check the current data for the SupplyTruck and use those settings for the WorkerAI module (such as max boxes, scan range, etc). You won't be needing SupplyTruckAI after (only one AI module can be used per object).

taclled August 20th, 2006 11:21 PM

Re: Can't I change the CommandSet ini freely?
 
so anything that doesnt look like it has to do with building things leave alone

Mere_Mortal August 21st, 2006 01:54 AM

Re: Can't I change the CommandSet ini freely?
 
This should suffice...
Code:

  Behavior = WorkerAIUpdate AI
;  RepairHealthPercentPerSecond  = 2%
;  AutoAcquireEnemiesWhenIdle    = Yes
    BoredTime                    = 5000
    BoredRange                    = 150
    MaxBoxes                      = 4
    SupplyCenterActionDelay      = 1000
    SupplyWarehouseActionDelay    = 150
    SupplyWarehouseScanDistance  = 700
    SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted
  End

By the way, I omitted the repair ability because I think it makes sense that it can't do so.
If you want it to be able to repair all structures, simply uncomment the first two lines.

taclled August 21st, 2006 02:27 PM

Re: Can't I change the CommandSet ini freely?
 
so just add this were the worker has it or does it matter if it is in beginning or end
and i can add this to any thing to make it be abler to build things like say red guard- bunker

Mere_Mortal August 22nd, 2006 01:51 AM

Re: Can't I change the CommandSet ini freely?
 
Just remove the SupplyTruckAIUpdate module and replace it with the above. The WorkerAIUpdate is intended for a unit that can harvest and construct. I assume your RedGuard will only be able to construct, so in that case, use the DozerAIUpdate...
Code:

  Behavior = DozerAIUpdate AI
    RepairHealthPercentPerSecond = 2%
    BoredTime                    = 5000
    BoredRange                  = 150
    AutoAcquireEnemiesWhenIdle  = Yes
  End

Again, if you don't want the RedGuard to be able to repair structures, use this...
Code:

  Behavior = DozerAIUpdate AI
    AutoAcquireEnemiesWhenIdle  = Yes
  End

Also note that you need KindOf = DOZER for both the RedGuard and SupplyTruck. Furthermore, you can only have one AI module for an object, so you must also remove the AIUpdateInterface module from the RedGuard.

taclled August 22nd, 2006 12:14 PM

Re: Can't I change the CommandSet ini freely?
 
i didnt quite understand what you said lol

Mere_Mortal August 22nd, 2006 12:46 PM

Re: Can't I change the CommandSet ini freely?
 
What bit exactly don't you understand? I really don't think there's any Layman's Terms I could use.

Mobius 1 August 22nd, 2006 12:51 PM

Re: Can't I change the CommandSet ini freely?
 
That's as basic as u can get.

taclled August 22nd, 2006 12:57 PM

Re: Can't I change the CommandSet ini freely?
 
i dont exactly know where in thge file i need to adrd the text or what you mean with the kindof=dozer thing

Mere_Mortal August 22nd, 2006 01:19 PM

Re: Can't I change the CommandSet ini freely?
 
Just put the AI Module anywhere between the ActiveBody module and the Locomotor of the relevant Object.

Then, each and every Object will have a line for its KindOfs. This determines exactly what the Object is. Search the INIs for KindOf and you'll see what I mean.

taclled August 22nd, 2006 01:25 PM

Re: Can't I change the CommandSet ini freely?
 
but will this change the way the red guard is used by the computer and the ai module i make a new folder for im sorry im confused and im very tired

Mere_Mortal August 22nd, 2006 01:42 PM

Re: Can't I change the CommandSet ini freely?
 
Strictly speaking, no it won't have any effect because the AI are not scripted to build something with anything other than their default Dozer. However, you might notice that, if your RedGuard can repair structures, that an AI RedGuard might happen to go repair something you're attacking (if it doesn't decide to attack you first).

On the other hand, I have no idea what you mean by a new folder.

taclled August 22nd, 2006 01:51 PM

Re: Can't I change the CommandSet ini freely?
 
sorry iment file not folder i was talking about the ai module im very light headed too apparently tetanus shots arnt meant for me lol

Mere_Mortal August 22nd, 2006 07:59 PM

Re: Can't I change the CommandSet ini freely?
 
I don't think tetanus is really made for anybody. I sure don't like needles, let alone a virus!

Anyway, the best thing you can do is create a clone of the RedGuard and SupplyTruck then read some tutorials so you know how to make them buildable. Then you will avoid causing any conflicts by modifying anything that will be used by the AI.

taclled August 23rd, 2006 12:09 AM

Re: Can't I change the CommandSet ini freely?
 
so just copy the code for them to make the clone and could you give me a link to find good tutorials that are made for the simple minded me lol

taclled August 23rd, 2006 01:22 AM

Re: Can't I change the CommandSet ini freely?
 
BTW i decided to try this to first see how it works in game i have made the buttons and used this in the comandbutton.ini file

Quote:

CommandButton Command_UpgradeUSADozerFakeCommandSet
Command = OBJECT_UPGRADE
Upgrade = Upgrade_USADozerFakeCommandSet
TextLabel = CONTROLBAR:UpgradeGLAWorkerFakeCommandSet
ButtonImage = SUFakeToggle
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUpgradeGLAWorkerFakeCommandSet
End
CommandButton Command_UpgradeUSADozerRealCommandSet
Command = OBJECT_UPGRADE
Upgrade = Upgrade_USADozerRealCommandSet
TextLabel = CONTROLBAR:UpgradeGLAWorkerrRealCommandSet
ButtonImage = SUFakeToggle
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUpgradeGLAWorkerRealCommandSet
End
CommandButton Command_UpgradeChinaDozerFakeCommandSet
Command = OBJECT_UPGRADE
Upgrade = Upgrade_ChinaDozerFakeCommandSet
TextLabel = CONTROLBAR:UpgradeGLAWorkerFakeCommandSet
ButtonImage = SUFakeToggle
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUpgradeGLAWorkerFakeCommandSet
End
CommandButton Command_UpgradeChinaDozerRealCommandSet
Command = OBJECT_UPGRADE
Upgrade = Upgrade_ChinaDozerRealCommandSet
TextLabel = CONTROLBAR:UpgradeGLAWorkerRealCommandSet
ButtonImage = SUFakeToggle
ButtonBorderType = UPGRADE ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUpgradeGLAWorkerrRealCommandSet
i have added this to Commandset.ini file

Quote:

CommandSet AmericaDozerCommandSet
1 = Command_ConstructAmericaPowerPlant
2 = Command_ConstructAmericaStrategyCenter
3 = Command_ConstructAmericaBarracks
4 = Command_ConstructAmericaSupplyDropZone
5 = Command_ConstructAmericaSupplyCenter
6 = Command_ConstructAmericaParticleCannonUplink
7 = Command_ConstructAmericaPatriotBattery
8 = Command_UpgradeUSADozerFakeCommandSet
9 = Command_ConstructAmericaFireBase
11 = Command_ConstructAmericaWarFactory
13 = Command_ConstructAmericaAirfield
14 = Command_DisarmMinesAtPosition
End
CommandSet USADozerFakeBuildingsCommandSet
1 = Command_ConstructAmericaCommandCenter
2 = SupW_Command_ConstructAmericaCommandCenter
3 = Lazr_Command_ConstructAmericaCommandCenter
4 = AirF_Command_ConstructAmericaCommandCenter
5 = Command_ConstructChinaCommandCenter
6 = Nuke_Command_ConstructChinaCommandCenter
7 = Infa_Command_ConstructChinaCommandCenter
8 = Tank_Command_ConstructChinaCommandCenter
9 = Boss_Command_ConstructChinaCommandCenter
10 = Command_ConstructGLACommandCenter
11 = GC_Chem_Command_ConstructGLACommandCenter
12 = GC_Slth_Command_ConstructGLACommandCenter
13 = Demo_Command_ConstructGLACommandCenter
14 = Command_UpgradeUSADozerRealCommandSet
End

CommandSet GLAWorkerCommandSet
1 = Command_ConstructGLASupplyStash
2 = Command_ConstructGLADemoTrap
3 = Command_ConstructGLABarracks
4 = Command_ConstructGLAPalace
5 = Command_ConstructGLAStingerSite
6 = Command_ConstructGLABlackMarket
7 = Command_ConstructGLATunnelNetwork
8 = Command_ConstructGLAScudStorm
9 = Command_ConstructGLAArmsDealer
10 = Command_ConstructGLACommandCenter
13 = Command_UpgradeGLAWorkerFakeCommandSet
14 = Command_DisarmMinesAtPosition
End
CommandSet GLAWorkerFakeBuildingsCommandSet
1 = Command_ConstructFakeGLACommandCenter
2 = Command_ConstructFakeGLABarracks
3 = Command_ConstructFakeGLASupplyStash
4 = Command_ConstructFakeGLAArmsDealer
5 = Command_ConstructFakeGLABlackMarket
13 = Command_UpgradeGLAWorkerRealCommandSet
End
CommandSet ChinaDozerCommandSet
1 = Command_ConstructChinaPowerPlant
2 = Command_ConstructChinaInternetCenter
3 = Command_ConstructChinaBarracks
4 = Command_ConstructChinaAirfield
5 = Command_ConstructChinaSupplyCenter
6 = Command_ConstructChinaPropagandaCenter
7 = Command_ConstructChinaBunker
8 = Command_ConstructChinaSpeakerTower
9 = Command_ConstructChinaGattlingCannon
10 = Command_ConstructChinaNuclearMissileLauncher
11 = Command_ConstructChinaWarFactory
12 = Command_UpgradeChinaDozerFakeCommandSet
14 = Command_DisarmMinesAtPosition
End
CommandSet ChinaDozerFakeBuildingsCommandSet
1 = Command_ConstructAmericaCommandCenter
2 = SupW_Command_ConstructAmericaCommandCenter
3 = Lazr_Command_ConstructAmericaCommandCenter
4 = AirF_Command_ConstructAmericaCommandCenter
5 = Command_ConstructChinaCommandCenter
6 = Nuke_Command_ConstructChinaCommandCenter
7 = Infa_Command_ConstructChinaCommandCenter
8 = Tank_Command_ConstructChinaCommandCenter
9 = Boss_Command_ConstructChinaCommandCenter
10 = Command_ConstructGLACommandCenter
11 = GC_Chem_Command_ConstructGLACommandCenter
12 = GC_Slth_Command_ConstructGLACommandCenter
13 = Demo_Command_ConstructGLACommandCenter
14 = Command_UpgradeChinaDozerRealCommandSet
End
im still goin to figure something out for the GLA to balance it any ways when i try to run the game it gives me the Tech dificulty message

Mere_Mortal August 23rd, 2006 03:44 AM

Re: Can't I change the CommandSet ini freely?
 
Google is your next best friend ;) Check out Generals related forums and their stickies, that's the best bet. It's been so long since I've looked for a tutorial, I don't know any off-hand. Check here too...

http://www.gamingforums.com/showthread.php?t=161135
http://deezire.net/modules.php?name=...=viewforum&f=4

When you get errors, check ReleashCrashInfo.txt and also run WorldBuilder. In any case, have you included new entries in Upgrade.ini for those buttons?

taclled August 23rd, 2006 03:53 AM

Re: Can't I change the CommandSet ini freely?
 
[quote=Mere_Mortal In any case, have you included new entries in Upgrade.ini for those buttons?[/quote] oops no i dídnt just copy the GLAs upgrade thing and change it to usa and china??? ohh and this crash ifo thing is where and what should i look for in it???

Jokerz August 23rd, 2006 04:01 AM

Re: Can't I change the CommandSet ini freely?
 
In my docs/zerohour w/e and inside you will see a file called, ReleaseError.ini (is that the correct name? o.O - Haven't received much tech errors lately so i forgot pretty much everything!)

Mobius 1 August 23rd, 2006 04:02 AM

Re: Can't I change the CommandSet ini freely?
 
in "my documents/command and conquer generals zero hour data" or something to that effect.

taclled August 23rd, 2006 04:09 AM

Re: Can't I change the CommandSet ini freely?
 
i checked there it gives me an error that happened last month and thats all

Mobius 1 August 23rd, 2006 04:12 AM

Re: Can't I change the CommandSet ini freely?
 
then run teh agme again, and if it shows up, check the crashreport.txt or something like taht.

Jokerz August 23rd, 2006 04:15 AM

Re: Can't I change the CommandSet ini freely?
 
So, you never checked if it works or not? :P
EDITED: Decided not to be lazy and actually check your problem.
Since you're adding fake buildings to a dozer, you will need the ModuleTag in the DozerObject in Object folder, and search for the dozer, first look for the GLA Worker (Can be found under GLAInfantry I think..) Copy the ModuleTag for switching commandset between Real/Fake (etc etc etc) and add it to USA Dozer (would be found under AmericaVehicle..) and add it to the China Dozer (...). Hope this helps.

taclled August 23rd, 2006 06:08 AM

Re: Can't I change the CommandSet ini freely?
 
i think i understand what your saying ill try that

taclled August 23rd, 2006 06:18 AM

Re: Can't I change the CommandSet ini freely?
 
k i looked at the workers stuff and i found numerous moduletags but nothing that had to do with the switching between fake and real

medicdude August 23rd, 2006 06:52 AM

Re: Can't I change the CommandSet ini freely?
 
Code:

Behavior = CommandSetUpgrade ModuleTag_14
TriggeredBy = Upgrade_GLAWorkerFakeCommandSet
RemovesUpgrades = Upgrade_GLAWorkerRealCommandSet
CommandSet = GLAWorkerFakeBuildingsCommandSet
End

Behavior = CommandSetUpgrade ModuleTag_15
TriggeredBy = Upgrade_GLAWorkerRealCommandSet
RemovesUpgrades = Upgrade_GLAWorkerFakeCommandSet Upgrade_GLAWorkerRealCommandSet
CommandSet = GLAWorkerCommandSet
End



...

taclled August 23rd, 2006 06:59 AM

Re: Can't I change the CommandSet ini freely?
 
thanks *wispers* where did he find that */wispers* sso just add it at before the death animation or so starts or where


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.