CommieDog
19 years ago
You'll need to make sure that either the respective science is granted at the beginning of the game or that it is purchaseable on the General's Points menu.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
botmas
  • botmas
  • 100% (Exalted)
  • Major Topic Starter
19 years ago
Thanks CommieDog

How do I go about making the appropriate science avaliable at the begining of the game??? or alternatively, having it selectable during the game???
CommieDog
19 years ago
You can make a science available from the beginning of the game by adding it in the appropriate slot in Rank.ini, or you can add its CommandButton to the General's Power command sets in CommandSet.ini.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
botmas
  • botmas
  • 100% (Exalted)
  • Major Topic Starter
19 years ago
Hey CommieDog

I guess I'm getting a little confused about all of this.......Firstly, (using the china nuke carpet bomb as an example) when you say: " add the science to the approriate slot in Rank.ini, what exactly am I adding???......I don't understand, because all I see in "Rank.ini" is entries like this:

Rank 1
RankName = INI:RankLevel1
SkillPointsNeeded = 0
SciencesGranted = SCIENCE_Rank1
SciencePurchasePointsGranted = 1
End


Also, when you say "you can add its CommandButton to the General's Power Commandset" do you mean I can add "Nuke_Command_ChinaCarpetBomb" from "CommandSet Nuke_SCIENCE_CHINA_CommandSetRank3" to "CommandSet SCIENCE_AMERICA_CommandSet (whatever rank)?? and does the corresponding ModuleTag also need to be present in the CommandSet of what ever building I wish it to be avaliable at???.....finally. is ok to change the number of the ModuleTag??

sorry for the confusion

thanks
CommieDog
19 years ago

I guess I'm getting a little confused about all of this.......Firstly, (using the china nuke carpet bomb as an example) when you say: " add the science to the approriate slot in Rank.ini, what exactly am I adding???......I don't understand, because all I see in "Rank.ini" is entries like this:

Rank 1
RankName = INI:RankLevel1
SkillPointsNeeded = 0
SciencesGranted = SCIENCE_Rank1
SciencePurchasePointsGranted = 1
End

botmas wrote:


In this case, you need to add the name of the science granted to the SciencesGranted line so it would look something like this:
SciencesGranted = SCIENCE_Rank1 xxx

Of course, this is only if you want the player to be able to use a particular general's power from the beginning of a game.

Also, when you say "you can add its CommandButton to the General's Power Commandset" do you mean I can add "Nuke_Command_ChinaCarpetBomb" from "CommandSet Nuke_SCIENCE_CHINA_CommandSetRank3" to "CommandSet SCIENCE_AMERICA_CommandSet (whatever rank)?? and does the corresponding ModuleTag also need to be present in the CommandSet of what ever building I wish it to be avaliable at???

botmas wrote:


You are correct about where to place the CommandButton, but there is no need to identify which module goes with which CommandButton.

.....finally. is ok to change the number of the ModuleTag??

botmas wrote:


Yes, as long as it is unique to that object.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
botmas
  • botmas
  • 100% (Exalted)
  • Major Topic Starter
19 years ago
Hey CommieDog


YOU SAID:

In this case, you need to add the name of the science granted to the SciencesGranted line so it would look something like this:
SciencesGranted = SCIENCE_Rank1 xxx

Of course, this is only if you want the player to be able to use a particular general's power from the beginning of a game.

BASED ON THIS INFO, I DID THIS:

Rank 1
RankName = INI:RankLevel1
SkillPointsNeeded = 0
SciencesGranted = SCIENCE_Rank1 Nuke_SCIENCE_ChinaCarpetBomb


SciencePurchasePointsGranted = 1
End


YOU SAID:


quote:Originally posted by botmas
Also, when you say "you can add its CommandButton to the General's Power Commandset" do you mean I can add "Nuke_Command_ChinaCarpetBomb" from "CommandSet Nuke_SCIENCE_CHINA_CommandSetRank3" to "CommandSet SCIENCE_AMERICA_CommandSet (whatever rank)?? and does the corresponding ModuleTag also need to be present in the CommandSet of what ever building I wish it to be avaliable at???


You are correct about where to place the CommandButton, but there is no need to identify which module goes with which CommandButton.

BASED ON THIS INFO I DID THIS:


;Rank 1 only has 4 positions
CommandSet SCIENCE_AMERICA_CommandSetRank1
1 = Command_PurchaseSciencePaladinTank
2 = Command_PurchaseScienceStealthFighter
3 = Command_PurchaseScienceSpyDrone
4 = Nuke_Command_PurchaseScienceCarpetBomb

re: #4 (used this instead of "Nuke_Command_ChinaCarpetBomb")


END


I have both conditions running at the same time and I still get no icons in either the AmericaCommandCenter (In which I've place the Command for the ChinaCarpetBomb in it's CommandSet, or the Generals powers Rank 1 window.

I'm sure I'm doing somthing wrong, but what is it???

thanks




😄
CommieDog
19 years ago
You need to be sure that you have Nuke_Command_ChinaCarpetBomb (which is for Nuke_SuperweaponChinaCarpetBomb, not merely ChinaCarpetBomb) in the Command Center's CommandSet.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
botmas
  • botmas
  • 100% (Exalted)
  • Major Topic Starter
19 years ago
Hey CommieDog

I finally got it to work........not sure exactly how but I tried a number of different things based on the info you provided. I'm going to look at the code and try and figure out what I was doing wrong.Thanks. What is the actual name of the weapon used in the Nuke_ChinaCarpetBomb??

thanks
fleetatks
19 years ago
I think it's listed in the OCL (object creation list) ini file.
Email me if you ever need help (edited signature November 6th, 2014)
CommieDog
19 years ago
Not quite. The OCL lists the name of the bomb used, but the bomb itself (Nuke_ChinaCarpetBombWeapon in \Object\NukeGeneral.ini) holds the weapon information (which, in this case, is Nuke_ChinaCarpetBombWeapon).
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you