Welcome Guest Search | Active Topics | Log In | Register

Increasing the number of Humvee slots Options
moridar
#1 Posted : Saturday, July 31, 2010 6:04:26 AM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
Hey,
Love this feed. I'm actually modding Zero Hour because I can and because its kinda fun. However I seem to have run into a slight problem. I am trying to do a couple of things. First, I want to increase the number of transportation slots a Humvee has. I changed the number in AmericaVehicle.ini and added the slot in Commandset.ini, but have not had any success. That is not my main problem, however. I also want to be able to provide a medkit upgrade for the humvee. I have made changes to Upgrade.ini and Commandset.ini, but I am not entirely sure what to do in AmericaVehicle.ini. Help would be much appreciated, and anybody who would be willing to work with me through my entire mod would be amazing. The goal is to make it more like real war. THANKS MUCH!
Moridar
Even Heroes know when to be scared.
Annihilationzh
#2 Posted : Saturday, July 31, 2010 4:31:34 PM
Colonel




Joined: 8/2/2008
Location: England
Posts: 563
Can any mod reading this split this into a separate topic, please?

Changing AmericaVehicle.ini will only change the vUSA humvee, not laser, superweapon or airforce generals' humvees. I can't see any other reason why it wouldn't work (unless the INIs are in the wrong place, in which case no changes would work).

As for the medkit, I'm not sure what you mean. Would you mind clarifying how you want it to work?
Do not PM me with problems. That's what the forum is for.
MicScoTho
#3 Posted : Saturday, July 31, 2010 7:27:40 PM
Administrator



C&C Labs Staff: Labs Staff MemberThe Forgotten Staff: The Forgotten StaffRed Alert Staff: Red Alert Staff MemberAll Stars Staff: All Stars Staff
Joined: 3/31/2002
Location: Seattle, WA
Posts: 2,160
Posts split into separate topic as requested.
moridar
#4 Posted : Saturday, July 31, 2010 8:16:34 PM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
Ok. so really all I am doing right now is modding USA original, and more when I get the hang of it. Here's the idea behind the Medkit: An upgrade can be purchased from the war factory, specific to the humvee. What it will do is basically allow humvees to heal soldiers similar to the ambulance. Here's what I have done so far in AmericaVehicle.ini:

Behavior = PhysicsBehavior ModuleTag_04
Mass = 50.0
End

Behavior = TransportContain ModuleTag_05
PassengersAllowedToFire = Yes
Slots = 5
; EnterSound = GarrisonEnter
; ExitSound = GarrisonExit
DamagePercentToUnits = 70% ;10%
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End

Behavior = Upgrade_AmericaMedkit ModuleTag_05
Slots = 5
; EnterSound = GarrisonEnter
; ExitSound = GarrisonExit
HealthRegen%PerSec = 25
DamagePercentToUnits = 10%
AllowInsideKindOf = INFANTRY
AllowAlliesInside = Yes
AllowNeutralInside = No
AllowEnemiesInside = No
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End


Behavior = ObjectCreationUpgrade ModuleTag_06
UpgradeObject = OCL_AmericanBattleDrone
TriggeredBy = Upgrade_AmericaBattleDrone
ConflictsWith = Upgrade_AmericaScoutDrone Upgrade_AmericaHellfireDrone
End

I copied the heal section from the ambulance. I'm not sure what to do about the module tag. Any errors that might cause this to not work would be helpful. When the game is run, it gives the 'serious error' message. when worldbuilder is run, it points out the module tag error.
Even Heroes know when to be scared.
Annihilationzh
#5 Posted : Saturday, July 31, 2010 9:00:11 PM
Colonel




Joined: 8/2/2008
Location: England
Posts: 563
Code:
Behavior = Upgrade_AmericaMedkit ModuleTag_05

This is causing the crash. Upgrade_AmericaMedkit is not a behavior. That's not how they work.

Such an upgrade is not straight forward, and may even be impossible, because there are no upgrade options for a transport contain.

However, you should be able to get infantry within a close range of the humvee to be healed upon an upgrade, because the medic uses the same behavior as the GLAs junk repair.

In other words, this:
Code:
  Behavior = AutoHealBehavior ModuleTag_22
    HealingAmount     = 4
    HealingDelay      = 1000 ; msec
    Radius            = 100.0f
    StartsActive      = Yes
    KindOf            = INFANTRY
  End


Should be able to work, like this:

Code:
  Behavior = AutoHealBehavior ModuleTag_22
    HealingAmount     = 4
    HealingDelay      = 1000 ; msec
    TriggeredBy       = Upgrade_AmericaMedkit
    Radius            = 100.0f
    KindOf            = INFANTRY
  End


But knowing my luck, it won't. XD
Do not PM me with problems. That's what the forum is for.
moridar
#6 Posted : Sunday, August 01, 2010 3:25:11 AM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
Thanks for the help with the medkit, works like a charm. just a few tooltip tweaks and ill be good to go. However, Im still having a problem with the number of passengers a humvee can carry. also, im trying to make it take up an extra slot in a chinook but thats not working to well either. your help is much appreciated!
Even Heroes know when to be scared.
moridar
#7 Posted : Sunday, August 01, 2010 4:45:16 AM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
So now I can check the humvee slot and transport off my list. However, new problems arise! (I guess windows not only open when doors close, but also close when doors open Tongue) First up: creating new colors. I have it working for white, but it says 'MISSING' in the color select menu. Also, with a six-slot humvee, it still says "got room for 5!" (this is no surprise to me though, and i can figure this out with an online tutorial easily.) however, these are not priority. It turns out that the tooltip and commandbutton tweaks didnt work like I had hoped. in game, when I hover over my new button, it says:
MISSING CONTROLBAR:AMERICAUPGRADEMEDKIT
and
MISSING CONTROLBAR:TOOLTIPUSAUPGRADEMEDKIT
help on how to make these disappear and insert the proper description would be much appreciated. you have no idea how helpful you are! you could make money off of this! (but dont charge me, because i suggested the idea Smile)
Even Heroes know when to be scared.
Annihilationzh
#8 Posted : Sunday, August 01, 2010 7:48:24 AM
Colonel




Joined: 8/2/2008
Location: England
Posts: 563
You'll want the csf editor. It's available for download on this page:
http://www.cncden.com/cn..._utility_downloads.shtml
Do not PM me with problems. That's what the forum is for.
moridar
#9 Posted : Monday, August 02, 2010 1:34:23 AM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
Perfect. Everything runs smoothly now. Onto other things... Say I want USA to be able to build a POW transport and a detention camp. Here's the idea...
Even Heroes know when to be scared.
Annihilationzh
#10 Posted : Monday, August 02, 2010 6:22:53 PM
Colonel




Joined: 8/2/2008
Location: England
Posts: 563
The 25% health part is not possible. Implementing the prison system is possible, but is no minor task.

I'd suggest abandoning that idea, because I'm not helping with a project that big.
Do not PM me with problems. That's what the forum is for.
moridar
#11 Posted : Monday, August 02, 2010 7:12:49 PM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
I don't blame you. Could you show me how to allow the USA to build a POW truck though? If it's not too much of a task, from a newly added building. For the sake of making it easier to understand, say I want to build the POW truck from the detention camp. Or at least show me how to make the detention camp.
Even Heroes know when to be scared.
Annihilationzh
#12 Posted : Tuesday, August 03, 2010 8:00:05 AM
Colonel




Joined: 8/2/2008
Location: England
Posts: 563
The POW truck is in AmericaCINEUnit.ini and it's called AmericaVehiclePOWTruck. To enable it, you need to give it a CommandButton.ini entry and put it in the detention camp commandset.

As for the detention camp, you would be best to copy it's full code from generals.
Do not PM me with problems. That's what the forum is for.
moridar
#13 Posted : Tuesday, August 03, 2010 5:09:11 PM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
I'll have to try that soon. Right now, I am trying to build a hovercraft. however, you can't click on the button to build it and the price doesnt show up!!! I would love to post the code but everytime i try to it says a serious error has occurred in loading the forum...

Even Heroes know when to be scared.
Annihilationzh
#14 Posted : Tuesday, August 03, 2010 5:38:30 PM
Colonel




Joined: 8/2/2008
Location: England
Posts: 563
Upload the files. Either to here or to a file hosting website.
Do not PM me with problems. That's what the forum is for.
moridar
#15 Posted : Tuesday, August 03, 2010 5:46:23 PM
Private




Joined: 7/31/2010
Location: Washington
Posts: 12
; ***DESIGN parameters ***
DisplayName = OBJECT:AmphibiousTransport
Side = America
EditorSorting = VEHICLE
TransportSlotCount = 8
WeaponSet
Conditions = None
Weapon = PRIMARY None
End
ArmorSet
Armor = TruckArmor
DamageFX = DefaultDamageFX
End
BuildCost = 800
BuildTime = 15.0 ;in seconds
VisionRange = 180
ShroudClearingRange = 300
Prerequisites
Object = AmericaWarFactory
End
ExperienceValue = 0 0 0 0 ;Experience point value at each level
IsTrainable = No ;Can gain experience
VisionRange = 180
CrusherLevel = 1 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
CommandSet = CivilianTransportCommandSet
Even Heroes know when to be scared.
Annihilationzh
#16 Posted : Wednesday, August 04, 2010 12:48:13 PM
Colonel




Joined: 8/2/2008
Location: England
Posts: 563
And the command button code?
Do not PM me with problems. That's what the forum is for.
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.

The C&C Labs forum theme is a modification of the FlatEarth Theme by Jaben Cargman
Powered by YAF 1.9.3 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.408 seconds.