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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline My feet hurt!  
#1 Posted : Friday, April 21, 2017 7:01:27 AM(UTC)
My feet hurt!
Private
Joined: 4/18/2017(UTC)
Posts: 8
Australia
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! Thumb Up
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. Dead

Any help would be greatly appreciated!

Regards,
My Feet Hurt
Sponsor
Offline Resist  
#2 Posted : Friday, April 21, 2017 7:24:15 AM(UTC)
Resist
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
thanks 1 user thanked Resist for this useful post.
My feet hurt! on 4/21/2017(UTC)
Offline AdrianeMapMaker  
#3 Posted : Friday, April 21, 2017 7:33:43 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

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

A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





thanks 1 user thanked AdrianeMapMaker for this useful post.
elliesy on 4/21/2017(UTC)
Offline My feet hurt!  
#4 Posted : Friday, April 21, 2017 7:43:25 AM(UTC)
My feet hurt!
Private
Joined: 4/18/2017(UTC)
Posts: 8
Australia
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!
Offline My feet hurt!  
#5 Posted : Friday, April 21, 2017 7:45:10 AM(UTC)
My feet hurt!
Private
Joined: 4/18/2017(UTC)
Posts: 8
Australia
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!
Offline AdrianeMapMaker  
#6 Posted : Friday, April 21, 2017 7:50:06 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
If you want i can make it in a minute ?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





thanks 1 user thanked AdrianeMapMaker for this useful post.
My feet hurt! on 4/21/2017(UTC)
Offline My feet hurt!  
#7 Posted : Friday, April 21, 2017 7:50:15 AM(UTC)
My feet hurt!
Private
Joined: 4/18/2017(UTC)
Posts: 8
Australia
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?
Offline My feet hurt!  
#8 Posted : Friday, April 21, 2017 7:51:34 AM(UTC)
My feet hurt!
Private
Joined: 4/18/2017(UTC)
Posts: 8
Australia
Location: Canberra

Thanks: 2 times
Originally Posted by: adrianemapmaker Go to Quoted Post
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 Big Smile I hope that you won't mind answering more questions when I have them though?
Offline Resist  
#9 Posted : Friday, April 21, 2017 8:49:04 AM(UTC)
Resist
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! Go to Quoted Post
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

Offline My feet hurt!  
#10 Posted : Friday, April 21, 2017 9:12:04 AM(UTC)
My feet hurt!
Private
Joined: 4/18/2017(UTC)
Posts: 8
Australia
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

Offline Resist  
#11 Posted : Friday, April 21, 2017 9:28:32 AM(UTC)
Resist
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! Go to Quoted Post


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.

Offline My feet hurt!  
#12 Posted : Sunday, April 23, 2017 2:04:29 AM(UTC)
My feet hurt!
Private
Joined: 4/18/2017(UTC)
Posts: 8
Australia
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
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.