This group contains a lot of stuff of the C&C community. Mod news, game screen shots and C&C humor(funny c&c moments). Join us if your a great fan of C&C!

Report article RSS Feed [GEN - ZH] Adding a new faction

Adding a new faction By: Kwartjuh (CNC Central) hi there peepz... while working on CNC Second Dawn, i found some time to write a tutorial of adding factions in generals. I might start a special tutorials page on our homepage, but i'd like to share it with you anyhow. Adding a new Faction This tutorial will tell you how to add a new Faction into Command and Conquer: Generels.

Posted by MrTaxikiller on Jun 18th, 2009
Basic Client Side Coding.

You need:
A .big extractor (Finalbig)
A .csf Editor (csf Editor)
A text editor (Notepad)

The first thing you need to do to add a new faction, is to open up INI.big, and extract PlayerTemplate.ini. This ini file
goed into the map generalsroot/Data/INI/ (if these maps are not present, make them yourself)

Open up this ini file, and take a look inside. There is a note on the top telling you to add a new controlbar if you add a new side.
Thx EA, that may come in handy. Now look at the actuall code. As you can see, the 3 Generals factions, GLA, America, and China are represented, as well as a civilian and observer faction. Do NOT edit these two! China, America and GLA can be deleted, but don't be to hasty! Its best to keep them in until you have you new factions up and running.
Now, to create a new faction, copy any of the 3 Generals player factions, and change the different vallues. I don't think i need to explain what to edit, it speaks for itself. Just take a good look at Displayname! It reffers to INI:FactionAmerica (lets edit this to FactionEurope as an example!), if you have copied and pasted the American faction.
This string is located in a file called generals.csf. Extract this file out of English.big, and place it in generalsroot/Data/English Now open up this generals.csf with the proper editor. ( i used scf editor, its free and very clear)
Go look for the INI:FactionAmerica string. Take a look at its value. It says America, thats all. Insert a new string called INI:FactionEurope (this is an example of course!) and give it the following value: Europe.
Now, you are not done yet!

Go look for SIDE:America. This works the same as the previous string. Insert a new one, call it SIDE:Europe and give it the value Europe

Now, please note that the SIDE:*** string should have a short value, something like Europe will barely fit. The INI:Faction*** can have a much bigger value.
(in case of my mod: SIDE:GDI, with a value of GDI. INI:FactionGDI has a value of Global Defense Initiative). The SIDE string is used for the selection screen (not much space there). The INI:Faction string is used for the loading screen!

Save the .csf file. And open the Big extractor one more time. Extract ControlBarScheme.ini, and place it in the generalsroot/Data/INI/ map. Open this ini file, and take a look inside. You will find three different controlbar scheme's. Just copy the American one, and change the following values:

ControlBarScheme America8x6
into
ControlBarScheme Europe8x6

and

Side America
into
Side Europe

Not that the ControlBarScheme.ini is a very cool file where you can edit all the colors and stuff of the controlbars!

Save the file, and launch Generals! Congrats, you just added a new Faction, gave it the proper name and a new toolbar!

Post comment Comments
sithpal
sithpal May 6 2012, 10:46pm says:

huh?

0 votes     reply to comment
Zambosoe
Zambosoe Nov 15 2012, 3:40pm says:

^ Your Dum

Worked For Me
Thanks

+2 votes     reply to comment
o6cagatay
o6cagatay Dec 29 2012, 9:26am says:

technical diffuclties

+1 vote     reply to comment
KDMRS
KDMRS Apr 29 2013, 7:15am says:

oh wait you must first add the units and building what you want in the factionbuildings and factionunits right?

+1 vote     reply to comment
FilipUSA
FilipUSA Aug 5 2013, 5:33am says:

I can't find my faction.
Please help.

+1 vote     reply to comment
Guest
Guest Mar 23 2014, 4:53am says:

This comment is currently awaiting admin approval, join now to view.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Established
Oct 1, 2008
Privacy
Public
Subscription
Open to all members
Homepage
Moddb.com
Contact
Send Message
Email
Members Only
Membership
Join this group
Group Watch
Track this group
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Mods
Command & Conquer Generals Version 2.0 (C&C Generals: Zero Hour)
Command & Conquer Generals Version 2.0 C&C Generals: Zero Hour - Single & Multiplayer Real Time Strategy
Related Games
C&C Generals: Zero Hour
C&C Generals: Zero Hour Single & Multiplayer Real Time Strategy
Related Groups
C&C Paradise
C&C Paradise Fans & Clans group with 1,454 members
SAGE 2D & 3D fans
SAGE 2D & 3D fans Fans & Clans group with 1,334 members