View Single Post
Old 10-26-2005, 04:43 PM   #2 (permalink)
Phantom139
Member
 
Phantom139's Avatar
 
Join Date: Aug 2005
Location: Stillman Valley,Illinois
Posts: 80
Send a message via AIM to Phantom139
Default

k n00b.

adding a new side is pretty easy when you get the hang of it

and it says spammer bcause you have just joined. Get 11 posts here and that title is gone.

ok for the new sides im gunna post a code from my expanded wars mod. Look at it carefuly

PlayerTemplate.ini

Code:
PlayerTemplate FactionSith
  Side              = Sith
  BaseSide          = China
  PlayableSide      = Yes
  StartMoney        = 0
  PreferredColor    = R:255 G:0 B:0
  IntrinsicSciences = SCIENCE_CHINA
  PurchaseScienceCommandSetRank1 = SCIENCE_CHINA_CommandSetRank1
  PurchaseScienceCommandSetRank3 = SCIENCE_CHINA_CommandSetRank3
  PurchaseScienceCommandSetRank8 = SCIENCE_CHINA_CommandSetRank8
  SpecialPowerShortcutCommandSet = SpecialPowerShortcutChina
  SpecialPowerShortcutWinName     = GenPowersShortcutBarChina.wnd
  SpecialPowerShortcutButtonCount = 10
  DisplayName       = INI:FactionSith
  StartingBuilding  = ChinaCommandCenter
  StartingUnit0     = ChinaVehicleDozer
  ScoreScreenImage  = China_ScoreScreen
  LoadScreenImage   = SNFactionLogoPage_China
  LoadScreenMusic   = Load_China
  ScoreScreenMusic  = Score_China
  ;HeadWaterMark    = SCTempSelectPortrait ; don't use unless we add a "generalshead for non selected generals
  FlagWaterMark     = WatermarkChina
  EnabledImage      = SSObserverChina
  BeaconName        = MultiplayerBeacon
  SideIconImage     = GameinfoCHINA
  GeneralImage      = China_Logo
  OldFaction        = Yes   ; This faction was available in the original Generals and should be available even if the oldFactionsOnly flag is set
  ArmyTooltip       = TOOLTIP:BioStrategyLong_Sith
  Features          = GUI:BioFeatures_Sith
  MedallionRegular  = ChinaGeneral_slvr
  MedallionHilite   = ChinaGeneral_blue
  MedallionSelect   = ChinaGeneral_orng
End
Note how its based off of china. that is why it says : BaseSide = China

this means units will be based of of those in china

Now look at everything that has the word "Sith" in it. This is where you have to make changes on your new faction,next we must do this:

ControlBarScheme.ini

Code:
ControlBarScheme Sith8x6
  ScreenCreationRes X:800 Y:600
  Side Sith
  QueueButtonImage SCBigButton
  RightHUDImage SNLogo
  CommandBarBorderColor R:90 G:125 B:2 A:255   ;blue
  BuildUpClockColor R:0 G:0 B:0 A:160
  ButtonBorderBuildColor R:67 G:108 B:190 A:255   ;blue
  ButtonBorderActionColor R:1 G:175 B:2 A:255     ;Green
  ButtonBorderUpgradeColor R:208 G:108 B:0 A:255  ;Orange
  ButtonBorderSystemColor R:207 G:195 B:2 A:255   ;yellow

  GenBarButtonIn SNBarButtonGen2IN
  GenBarButtonOn SNBarButtonGen2ON
  CommandMarkerImage SNEmptyFrame
  ToggleButtonUpIn SNMaxMinUH
  ToggleButtonUpOn SNMaxMinU
  ToggleButtonUpPushed SNMaxMinUP

  ToggleButtonDownIn SNMaxMinH
  ToggleButtonDownOn SNMaxMin
  ToggleButtonDownPushed SNMaxMinP

  OptionsButtonEnable SNOptions
  OptionsButtonHightlited SNOptionsH
  OptionsButtonPushed SNOptionsP
  IdleWorkerButtonEnable SNWorker
  IdleWorkerButtonHightlited SNWorkerH
  IdleWorkerButtonPushed SNWorkerP
  IdleWorkerButtonDisabled SNWorkerI
  BuddyButtonEnable SNChat
  BuddyButtonHightlited SNChatH
  BuddyButtonPushed SNChatP
 
OptionsButtonDisabled SNOptionsI
BuddyButtonDisabled SNChatI
BeaconButtonDisabled SNBeaconI

  BeaconButtonEnable SNBeacon
  BeaconButtonHightlited SNBeaconH
  BeaconButtonPushed SNBeaconP

  GeneralButtonEnable SNGeneral
  GeneralButtonHightlited SNGeneralH
  GeneralButtonPushed SNGeneralP
  GeneralButtonDisabled SNGeneralI

  UAttackButtonEnable SNUAttackI
  UAttackButtonHightlited SNUAttackH
  UAttackButtonPushed SNUAttackP

  MinMaxButtonEnable SNMaxMin
  MinMaxButtonHightlited SNMaxMinH
  MinMaxButtonPushed SNMaxMinP

  MinMaxUL X:640 Y:433
  MinMaxLR X:687 Y:464
  GeneralUL X:712 Y:433
  GeneralLR X:770 Y:464
  UAttackUL X:97 Y:420
  UAttackLR X:132 Y:437

  OptionsUL X:184 Y:490
  OptionsLR X:220 Y:514
  WorkerUL X:184 Y:516
  WorkerLR X:220 Y:540
  ChatUL X:184 Y:568
  ChatLR X:220 Y:592
  BeaconUL X:184 Y:545
  BeaconLR X:220 Y:566
  PowerBarUL X:260 Y:469
  PowerBarLR X:538 Y:475

  MoneyUL X:360 Y:437
  MoneyLR X:439 Y:456

  GenArrow CHINALevelUP

  ExpBarForegroundImage SNExpBar
  ImagePart
    Position X:0 Y:414
    Size X:800 Y:184
    ImageName InGameUIChinaBase
    Layer 4 ;; layer means how deep the image will be drawn, it's a number between 0-5 with 0 being on top 
  End
  PowerPurchaseImage GeneralsPowerMenu_China
End
once again note everywhere that "sith" is used,Especialy here: Side Sith

This is a must for your new side. Once all of that is complete you make your new units and dozer/buildings and specify them here in PlayerTemplate.ini Again:

StartingBuilding = ChinaCommandCenter
StartingUnit0 = ChinaVehicleDozer

And that should be it.
Post if anything wrong happens

BTW:

ArmyTooltip = TOOLTIP:BioStrategyLong_Sith
Features = GUI:BioFeatures_Sith

in PlayerTemplate.ini are only if you are editing Generals.csf I suggest if you dont know how to .csf edit just change those to existing ones.
Phantom139 is offline   Reply With Quote