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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline t1a2l  
#1 Posted : Monday, December 15, 2014 12:13:29 PM(UTC)
t1a2l
Private
Joined: 9/2/2014(UTC)
Posts: 16
Israel

Thanks: 1 times
hi,
i want to use map.ini
to create a garrisonable limo to carry 3 infantry in it...
please help me.
(generals zero hour)
Sponsor
Offline Gameanater  
#2 Posted : Monday, December 15, 2014 6:30:02 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
here you go, I mostly give credit to UTD^Force for having already done a garrisonable Double Decker Tour Bus:

Code:

;Garrisonable limos, code by UTD^Force and Gameanater

Object CarLimo1

  AddModule ModuleTag_Transport
   Behavior = TransportContain ModuleTag_Transport_Override
     Slots = 5
     AllowInsideKindOf   = INFANTRY
     DamagePercentToUnits = 10%
     GoAggressiveOnExit = No
     PassengersAllowedToFire = Yes
     EnterSound      = GarrisonEnter
     ExitSound       = GarrisonExit
   End
  End
;----------
 CommandSet              = GLAVehicleTechnicalCommandSet
End

Object CarLimo2

  AddModule ModuleTag_Transport
   Behavior = TransportContain ModuleTag_Transport_Override
     Slots = 5
     AllowInsideKindOf   = INFANTRY
     DamagePercentToUnits = 10%
     GoAggressiveOnExit = No
     PassengersAllowedToFire = Yes
     EnterSound      = GarrisonEnter
     ExitSound       = GarrisonExit
   End
  End
;----------
 CommandSet              = GLAVehicleTechnicalCommandSet
End

Object CarLimo3

  AddModule ModuleTag_Transport
   Behavior = TransportContain ModuleTag_Transport_Override
     Slots = 5
     AllowInsideKindOf   = INFANTRY
     DamagePercentToUnits = 10%
     GoAggressiveOnExit = No
     PassengersAllowedToFire = Yes
     EnterSound      = GarrisonEnter
     ExitSound       = GarrisonExit
   End
  End
;----------
 CommandSet              = GLAVehicleTechnicalCommandSet
End

;GLA Leader's limo
Object ShiekLimo

  AddModule ModuleTag_Transport
   Behavior = TransportContain ModuleTag_Transport_Override
     Slots = 5
     AllowInsideKindOf   = INFANTRY
     DamagePercentToUnits = 10%
     GoAggressiveOnExit = No
     PassengersAllowedToFire = Yes
     EnterSound      = GarrisonEnter
     ExitSound       = GarrisonExit
   End
  End
;----------
 CommandSet              = GLAVehicleTechnicalCommandSet
End


Just to warn you, I JUST now made this code (with UTD^'s as a base), and I haven't tested it.

Also, I'm not sure, but the Limos might try to shoot through walls as it is...

Let me know if it works.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
thanks 3 users thanked Gameanater for this useful post.
CommieDog on 12/15/2014(UTC), t1a2l on 12/16/2014(UTC), zero hour mad map maker on 12/18/2014(UTC)
Offline t1a2l  
#3 Posted : Tuesday, December 16, 2014 2:00:04 AM(UTC)
t1a2l
Private
Joined: 9/2/2014(UTC)
Posts: 16
Israel

Thanks: 1 times
works great!!!!
it works for other units too!!!
also if you can help in anthor thing...
i created a player on the map, and create agroup that belongs to the player,
when i tell the group to follow a waypoint they do nothing and in general units do not enter limo by script...

thanks any way!!
Offline Gameanater  
#4 Posted : Tuesday, December 16, 2014 7:54:06 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
I'm glad it works! Cool

And... I have no idea why that'd be happening. I'd have to look at the map itself to see,
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Offline cj91198  
#5 Posted : Saturday, February 21, 2015 4:30:58 PM(UTC)
cj91198
Private
Joined: 2/21/2015(UTC)
Posts: 5
United States
Location: Illinois

sorry this is late, but could you give me a thorough tutorial on this? i'm sort of new to editing INI so I haven't been able to do this without crashing my game... if you would it would be nice but if you refuse to i understand
Offline UTD^Force  
#6 Posted : Saturday, February 21, 2015 5:50:22 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
Originally Posted by: cj91198 Go to Quoted Post
sorry this is late, but could you give me a thorough tutorial on this? i'm sort of new to editing INI so I haven't been able to do this without crashing my game... if you would it would be nice but if you refuse to i understand


I would suggest to start with something even simpler than this if you are new.
Did you copy the exact code?

Btw, no one will refuse to help.
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline cj91198  
#7 Posted : Saturday, February 21, 2015 6:22:16 PM(UTC)
cj91198
Private
Joined: 2/21/2015(UTC)
Posts: 5
United States
Location: Illinois

yeah, i copied the exact code... i, used to do this. the only reason i said i was new is because i haven't done this in a long time
Offline UTD^Force  
#8 Posted : Saturday, February 21, 2015 6:31:04 PM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
I can't see why would it crash...
Does the game when launched crash or is it the map?
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline cj91198  
#9 Posted : Saturday, February 21, 2015 11:03:42 PM(UTC)
cj91198
Private
Joined: 2/21/2015(UTC)
Posts: 5
United States
Location: Illinois

when launched... it will go to launch and on the launch screen it will load for about 10 seconds and then say Generals.exe has stopped working
Offline cj91198  
#10 Posted : Saturday, February 21, 2015 11:04:24 PM(UTC)
cj91198
Private
Joined: 2/21/2015(UTC)
Posts: 5
United States
Location: Illinois

do i have to put it in a certain spot or can i just paste it at the bottom of the INI
Offline UTD^Force  
#11 Posted : Sunday, February 22, 2015 10:43:49 AM(UTC)
UTD^Force
Colonel
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 8/13/2013(UTC)
Posts: 817
Jordan
Location: Middle east

Thanks: 430 times
Was thanked: 184 time(s) in 168 post(s)
This should be put in a map.ini file in the map's folder. Path: My Documents > Command & Conquer Generals Zero Hour Data> Maps> YourMap's Folder> Now create a text document, paste the code and save as map.ini

That code won't work in a file in the .ini folder in the game's directory, because you're adding modules to a place where you should just define the module.
Proud Muslim

UTD^Force

Moderator and former map reviewer
CnC Labs
Offline cj91198  
#12 Posted : Sunday, February 22, 2015 9:06:36 PM(UTC)
cj91198
Private
Joined: 2/21/2015(UTC)
Posts: 5
United States
Location: Illinois

Alright... that's all that confused me thanks
Offline Gameanater  
#13 Posted : Monday, February 23, 2015 9:22:43 PM(UTC)
Gameanater
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 5/13/2013(UTC)
Posts: 1,537
United States
Location: Right Behind You

Thanks: 574 times
Was thanked: 166 time(s) in 144 post(s)
Originally Posted by: UTD^Force Go to Quoted Post
That code won't work in a file in the .ini folder in the game's directory, because you're adding modules to a place where you should just define the module.


Originally Posted by: cj91198 Go to Quoted Post
Alright... that's all that confused me thanks


Basically in a map.ini, you're adding stuff to the existing stuff, or changing them. You can't create entirely new stuff. It's all about working with the existing stuff.

In normal modding, you CAN make new stuff, and are less limited than in a map.ini.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
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.