Posted by: TASER - Sunday, July 1, 2007 12:59:23 AM
Is there anyway to add back the deleted units from CNC???
Like the POW truck and the guy who looks like he's carrying a flamethrower???
(Could someone give me a list of Deleted Units???)
Any help is appreciated.
Posted by: Spartan Jedi - Sunday, July 1, 2007 4:48:26 AM
It is possible, I know they're in many mods. I believe it mainly involves finding the units in the INI files which are commented out (with ;), them removing the ;'s, and adding their buttons to the commandset.ini. That's the basics I believe, though I"m sure there's a bit more involved.
There have been many additions and subtractions of units throughout the whole development process, so the list would be pretty large if I named all of them.
The ones that you have models for that would be easier to bring back into the full game will most likely be found in the America/China/GLAMiscUnit.INI found in Data/INI/Object.
A few you might be interested in:
UN Soldier (CivilianUnit.ini)
Parisans 1, 2, and 3
CIA Agent
HazMat Infantry (The one that you said looked like he was carrying a flame thrower.)
POW Truck (Which will not be able to function like it did in the alpha. If you want a similar system, look at the "ProGen" mod's code, found on Deezire.)
Posted by: TASER - Tuesday, July 3, 2007 2:24:27 AM
What does the POW truck actually do???
And where exactly is the .ini file???
Posted by: Spartan Jedi - Tuesday, July 3, 2007 5:34:59 AM
I believe that in earlier builds of Generals, you could force enemy units to 'surrender' with infantry, such as ranger flashbangs, red guard stun guns, and rebel..I don't remember what. Using the POW trucks, you could pick up those enemies, and they'd be converted to your side
Actually, you would take them back to your prison and then you would recieve money first. The version that they have now in the game is just for cinematic purposes. You won't be able to bring back the original system because they have removed most of the required code.
And by the way, it was Rebel Tranq Darts.
Posted by: randomperson - Tuesday, July 3, 2007 12:52:40 PM
was the code ini or in the SAGE engine?, is it possible for cleaver people recreate the code or not?
The engine itself is missing some required pieces. Pro:Gen used a system where you could make the infantry "die", spawn a "crate" with a surrendered infantry model, and then collect the money with your POW truck without the need of taking them back to the prison.
Posted by: TASER - Wednesday, July 4, 2007 1:21:27 AM
But, Can I make the POW truck some kind of transport for infantry????
Anyway, Lets get to the reason why I started this topic.
How do I actually add deleted units???
Also, Is it possible that you can mod Generals so you can build Tech Structures???
Posted by: Spartan Jedi - Wednesday, July 4, 2007 4:33:47 AM
Yes you can build tech structures, I've seen a buildable oil derrick in one mod I've played, and i'm pretty sure it would be something similar to adding another faction's unit to the side you want it in, right?
Posted by: CG Apollos - Wednesday, July 4, 2007 9:53:51 AM
[quote=TASER]
But, Can I make the POW truck some kind of transport for infantry????
Anyway, Lets get to the reason why I started this topic.
How do I actually add deleted units???
Also, Is it possible that you can mod Generals so you can build Tech Structures??? [/quote]Yes, if you want to.
Since you wanted to add the POW Truck as a transport, follow these instructions. First, you would need to create a command button so that it can be built by the war factory. Go to the [b]CommandButton.ini[/b], and add something like this:
[code]CommandButton Command_ConstructAmericaVehiclePOWTruck
Command = UNIT_BUILD
Object = AmericaVehiclePOWTruck
TextLabel = CONTROLBAR:ConstructAmericaVehiclePOWTruck
ButtonImage = SAPOWTruck
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipUSABuildPOWTruck
End[/code]
Next, you will have to go to the CommandSet.ini. Go down to [b]AmericaWarFactoryCommandSet[/b]
[code]CommandSet AmericaWarFactoryCommandSet
1 = Command_ConstructAmericaTankCrusader
2 = Command_ConstructAmericaVehicleTomahawk
3 = Command_ConstructAmericaVehicleHumvee
4 = Command_ConstructAmericaVehicleMedic
5 = Command_ConstructAmericaVehiclePaladin
6 = Command_ConstructAmericaVehicleSentryDrone
7 = Command_ConstructAmericaVehicleAvenger
8 = Command_ConstructAmericaVehicleMicrowave
9 = Command_UpgradeAmericaSentryDroneGun
11 = Command_UpgradeAmericaTOWMissile
13 = Command_SetRallyPoint
14 = Command_Sell
End[/code]
Add [b]10 = Command_ConstructAmericaVehiclePOWTruck[/b] below the SentryDroneGun, or choose whichever slot you want by changing the number, so that it looks like this:
[code]CommandSet AmericaWarFactoryCommandSet
1 = Command_ConstructAmericaTankCrusader
2 = Command_ConstructAmericaVehicleTomahawk
3 = Command_ConstructAmericaVehicleHumvee
4 = Command_ConstructAmericaVehicleMedic
5 = Command_ConstructAmericaVehiclePaladin
6 = Command_ConstructAmericaVehicleSentryDrone
7 = Command_ConstructAmericaVehicleAvenger
8 = Command_ConstructAmericaVehicleMicrowave
9 = Command_UpgradeAmericaSentryDroneGun
10 = Command_ConstructAmericaVehiclePOWTruck
11 = Command_UpgradeAmericaTOWMissile
13 = Command_SetRallyPoint
14 = Command_Sell
End[/code]
Now, go to the [b]AmericaCINEUnit.ini[/b] found in INI/Object and find [b]AmericaVehiclePOWTruck[/b]. Scroll down and remove the [b]Buildable = No[/b]. Then scroll down and remove the [b];[/b] by the [b]BuildCost, BuildTime, and CommandSet[/b]. Change the [b]BuildCost[/b] and [b]BuildTime[/b] to whatever you want, and then change the CommandSet to [b]ChinaTroopCrawlerCommandSet[/b].
You should be all done. You have an American POW Truck that can hold 8 people. Follow the same instructions for tech buildings, except that you need to change the commandbutton so that it is for dozers, and then put them on the Dozer/Worker commandsets.
Posted by: TASER - Friday, July 13, 2007 1:55:29 AM