C&C Labs Forums
»
C&C Maps and Modding
»
Generals: Modding
»
How to make the Chinese bunker buildable for the GLA
Private Joined: 4/18/2017(UTC) Posts: 8 Location: Canberra Thanks: 2 times
|
Hi all, New poster here, I have been lurking for a little while now. This forum is awesome: knowledgeable posters and great resources! I have recently begun doing some modding to Generals but I am running into a problem and I was hoping to get some help. I have tried to make the Chinese bunkers buildable for the GLA. I altered the GLA worker command set to include the Chinese bunker. Of course the Chinese bunker has a pre-requisite which is the China Command Center. I changed the pre-requisite to the GLA Command Center. Now this did work, but the problem of course is that the Chinese are unable to build a GLA Command Center so are unable to build their own bunkers! I tried copying a large patch of code pertaining to the Chinese bunkers within factionbuilding.ini, and then renamed the object to GLABunker, changing the side to GLA and changing the applicable command set to CommandSet = GLABunkerCommandSet. I then added a GLABunker commandset to the commandset.ini and commented out the line about landmines. None of this worked though and resulted in crashes. Any help would be greatly appreciated! Regards, My Feet Hurt
|
|
|
|
Private Joined: 4/19/2017(UTC) Posts: 28
Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
Welcome !! So What I understand from you is you want Chinese bunkers to be available for both GLA and China ? I think you should Change the Prerequestis and make it like America strategy center -Either a war factory or an airfield- Without all of your editing, just copy a command set for the GLA worker and change this to The Chinese bunker Code: Prerequisites
Object = GLACommandCenter ChinaCommandCenter
Hope it helps
|
1 user thanked Resist for this useful post.
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
If Youre a Coder,
Easy Copy The Code For The Bunker Then ... Renamed it Change:In FactionBuilding.ini- The Module tag Preferred for your bunker and suitable of gla's power, - The Presequites of The bunker Add:in CommandSet.ini Commandbutton.ini-a New commandset in Worker -a New command button , done. Edited by user Friday, April 21, 2017 7:39:59 AM(UTC)
| Reason: Not specified |
|
1 user thanked AdrianeMapMaker for this useful post.
|
|
|
Private Joined: 4/18/2017(UTC) Posts: 8 Location: Canberra Thanks: 2 times
|
Oh wow, you guys are quick! Quote:So What I understand from you is you want Chinese bunkers to be available for both GLA and China ? Yes that's right. Quote:I think you should Change the Prerequestis and make it like America strategy center -Either a war factory or an airfield- Wouldn't that make the bunker unbuildable for even the Chinese? If the prerequisite is an American strategy centre, which the Chinese cannot build, then the prerequisite for the bunker can never be satisfied? Or am I misunderstanding you? Quote:Without all of your editing, just copy a command set for the GLA worker and change this to The Chinese bunker Code: ? 1 2 Prerequisites Object = GLACommandCenter ChinaCommandCenter
Gah! My intuition was telling me to do this! I didn't do it though because I saw no other example of it within the code that I looked through. Okay, I will try this. Thank you again for the quick reply!
|
|
|
|
Private Joined: 4/18/2017(UTC) Posts: 8 Location: Canberra Thanks: 2 times
|
Quote:Easy Copy The Code For The Bunker Then ... Renamed it Change: - The Module tag Preferred for your bunker and suitable of gla's power, - The Presequites of The bunker Add: -commandset in Worker -and command button , done. I think I've done all that except for the command button, I will give that a try. Could you please explain what you mean above when you say "suitable of gla's power"? Thanks for the fast reply!
|
|
|
|
General Joined: 3/8/2016(UTC) Posts: 1,156 Thanks: 312 times Was thanked: 185 time(s) in 149 post(s)
|
If you want i can make it in a minute ? |
|
1 user thanked AdrianeMapMaker for this useful post.
|
|
|
Private Joined: 4/18/2017(UTC) Posts: 8 Location: Canberra Thanks: 2 times
|
Resist, thanks a lot! Your prerequisite code worked just fine!
If I wanted to increase the number of units that the bunker could garrison for the GLA ONLY, I am assuming that I would need to copy that huge pile of code and rename things as adrianemapmaker has suggested above?
|
|
|
|
Private Joined: 4/18/2017(UTC) Posts: 8 Location: Canberra Thanks: 2 times
|
Originally Posted by: adrianemapmaker If you want i can make it in a minute ? I very much appreciate the offer but I would like to try it out myself first, trying to learn I hope that you won't mind answering more questions when I have them though?
|
|
|
|
Private Joined: 4/19/2017(UTC) Posts: 28
Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
Originally Posted by: My feet hurt! Resist, thanks a lot! Your prerequisite code worked just fine! Welcome , any time I think you got what I meant by the American strategy center,, didnt you ? okay you can change the contain max here : Code: Behavior = GarrisonContain ModuleTag_08
ContainMax = 5
EnterSound = GarrisonEnter
ExitSound = GarrisonExit
ImmuneToClearBuildingAttacks = Yes
End
Glad I could help Edited by user Friday, April 21, 2017 8:50:19 AM(UTC)
| Reason: Not specified
|
|
|
|
Private Joined: 4/18/2017(UTC) Posts: 8 Location: Canberra Thanks: 2 times
|
Quote:okay you can change the contain max here : That's fine, I found that the other day. My question was specifically if I want to have different attributes for the GLA bunker and the Chinese bunker do I need to copy all of the code and make a unique block of code for the GLA bunker? Quote:I think you got what I meant by the American strategy center,, didnt you ? Aha yes, I see now. Thanks! Edited by user Friday, April 21, 2017 9:13:33 AM(UTC)
| Reason: Not specified
|
|
|
|
Private Joined: 4/19/2017(UTC) Posts: 28
Thanks: 10 times Was thanked: 3 time(s) in 3 post(s)
|
Originally Posted by: My feet hurt!
That's fine, I found that the other day. My question was specifically if I want to have different attributes for the GLA bunker and the Chinese bunker do I need to copy all of the code and make a unique block of code for the GLA bunker?
Aha yes, I see now. Thanks!
Yeah you have to make some unique blocks, Like removing the minefield upgrade, maybe adding auto-turret or a death-weapon ! it depends on what you actually want to make it.
|
|
|
|
Private Joined: 4/18/2017(UTC) Posts: 8 Location: Canberra Thanks: 2 times
|
Quote:Yeah you have to make some unique blocks, Like removing the minefield upgrade, maybe adding auto-turret or a death-weapon !
it depends on what you actually want to make it. Okay thanks again. I'll have a crack and let you know how it turns out.
|
|
|
|
Users browsing this topic |
Guest
|
C&C Labs Forums
»
C&C Maps and Modding
»
Generals: Modding
»
How to make the Chinese bunker buildable for the GLA
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.