Posted by: pepsirockstar - Wednesday, November 13, 2013 3:57:29 PM
tell me what i have to add to this to make a building also garrison Tanks n stuff (example, 1 GLA technical and 5 units in this gastation) (limit this building to 8 unit Slots)
;=======================
StanGasStation02 Mod
;=======================
Object StanGasStation02
CommandSet = StanGasStation02CommandSet
End
CommandSet StanGasStation02CommandSet
1 = Command_StructureExit
2 = Command_StructureExit
3 = Command_StructureExit
4 = Command_StructureExit
5 = Command_StructureExit
6 = Command_StructureExit
7 = Command_StructureExit
8 = Command_StructureExit
11 = Command_StructureExit
12 = Command_Evacuate
14 = Command_Stop
End
Posted by: acidbrain - Wednesday, November 13, 2013 5:34:24 PM
Try to add this line to the GarrisonContain module.
[code]
AllowInsideKindOf = VEHICLE INFANTRY
[/code]
Not completely sure if it works but give it a try, am kinda tired atm, brain works at half speed :P.
The full module looks like this when the line is added.
[code]
Behavior = GarrisonContain ModuleTag_03
ContainMax = 10
EnterSound = GarrisonEnter
ExitSound = GarrisonExit
AllowInsideKindOf = VEHICLE INFANTRY
End
[/code]
*edit*
If you want it in a map.ini it looks like this.
[code]
Object StanGasStation02
ReplaceModule ModuleTag_03
Behavior = GarrisonContain ModuleTag_03_Override
ContainMax = 10
EnterSound = GarrisonEnter
ExitSound = GarrisonExit
AllowInsideKindOf = VEHICLE INFANTRY
End
End
End
[/code]
Posted by: pepsirockstar - Wednesday, November 13, 2013 5:50:21 PM
sorry to bother you more, but where in my ini do i add it?
Posted by: acidbrain - Wednesday, November 13, 2013 5:52:29 PM
Do you want to use it for only 1 map or for a mod?
Posted by: pepsirockstar - Wednesday, November 13, 2013 5:56:50 PM
i can move my INI scripts as i need em, at the moment im working on a GLA cell map, the gasstation is like a cell's operations base ( in each ops building will be a technical, scorpion, or bombtuck with 2 tunnel defenders, a rebel, worker, and 1 of the 3 (Kell, Terrorist, GLASlth Sniper. Mission, harrass China's Forces in Kahzikstan(spellchecks are needed)
Posted by: acidbrain - Wednesday, November 13, 2013 5:59:46 PM
Add the attached map.ini to your map, in the map folder where the tga and the map file are.
By using a map.ini you can test if it works.
*edit*
Hmm still can't attach files to a post, w8 a sec.
Posted by: pepsirockstar - Wednesday, November 13, 2013 6:00:51 PM
oh, i know that, i ment, where in the .ini do i put the lines you mentioned
Posted by: acidbrain - Wednesday, November 13, 2013 6:05:47 PM
I made a map.ini for you, put it inside your map folder, so the map you made in worldbuilder with your map name.
[url=http://www.sleipnirstuff.com/forum/viewtopic.php?f=14&p=285764#285764]Here[/url] it is.
You can test if it works now.
Posted by: pepsirockstar - Wednesday, November 13, 2013 6:16:41 PM
your link did not work, sorry.
Posted by: acidbrain - Wednesday, November 13, 2013 6:21:51 PM
Strange, just downloaded it myself.
[url=http://www.sleipnirstuff.com/forum/viewtopic.php?f=14&p=285764#285764]Here[/url] it is again.
Going to bed now, can't keep my eyes open anymore, i'll be here 2morrow if you need some more help.
greetz
*edit*
Did the link or the map.ini not work btw?
Posted by: acidbrain - Wednesday, November 13, 2013 6:29:51 PM
Well, just tested it in a map and it works.
Posted by: pepsirockstar - Wednesday, November 13, 2013 6:40:39 PM
the link is giving me a bad download, can u copy and paste the lines in code here please? and thanks for the help
Posted by: acidbrain - Thursday, November 14, 2013 10:20:54 AM
Go to "Documents and Settings" and open "Command and Conquer Generals Zero Hour Data", open the folder "Maps" and find the map you want to add the map.ini to, open the folder and create a new textdocument and copy/paste the code below in it.
[code]
Object StanGasStation02
ReplaceModule ModuleTag_03
Behavior = GarrisonContain ModuleTag_03_Override
ContainMax = 10
EnterSound = GarrisonEnter
ExitSound = GarrisonExit
AllowInsideKindOf = VEHICLE INFANTRY
End
End
End
[/code]
Now use the save as function and name the file map.ini
If you did it right a new document is created with a gear on it, configuration settings.
You can delete the first document you created, there's nothing in it.
If you need help you know where to find me.
Greetz
Posted by: pepsirockstar - Friday, November 15, 2013 1:11:49 PM
well, i can safly say the code worked, it took a little toying with it to get it working. (im still learning how to use map INI)