Jump to content
Sign in to follow this  
fudge

Rank.ini

Recommended Posts

I'm currently creating a mod to enhance the ranks for my own amusement, using real sounding ranks, starting where the infantry ranks finish off. My rank.ini file, (which was created by tibed but also extracted so I could doublecheck it outside of tibed), is fine if I remove all the ranks I've added and just leave changes to the basic starting ranks but otherwise it crashes and the game complains it is a problem with my rank 6.

 

This is my rank.ini file

 

; //////////////////////////////////////////////////////////////////////////////
; FILE: Rank.ini (SYSTEM) ////////////////////////////////////////////////////
; //////////////////////////////////////////////////////////////////////////////
Rank 1
  RankName = INI:RankLevel1
  SkillPointsNeeded = 0
  SciencesGranted = SCIENCE_Rank1
  SciencePurchasePointsGranted = 3
End
Rank 2
  RankName = INI:RankLevel2
  SkillPointsNeeded = 50
  SciencesGranted = SCIENCE_Rank2
  SciencePurchasePointsGranted = 1
End
Rank 3
  RankName = INI:RankLevel3
  SkillPointsNeeded = 100
  SciencesGranted = SCIENCE_Rank3
  SciencePurchasePointsGranted = 1
End
Rank 4
  RankName = INI:RankLevel4
  SkillPointsNeeded = 100
  SciencesGranted = SCIENCE_Rank4
  SciencePurchasePointsGranted = 1
End
Rank 5
  RankName = INI:RankLevel5
  SkillPointsNeeded = 175
  SciencesGranted = SCIENCE_Rank5
  SciencePurchasePointsGranted = 1
End
Rank 6
  Rankname = INI:RankLevel6
  SciencesGranted = SCIENCE_Rank6
  SciencePurchasePointsGranted = 1
  SkillPointsNeeded = 275
End
Rank 7
  Rankname = INI:RankLevel7
  SciencesGranted = SCIENCE_Rank7
  SciencePurchasePointsGranted = 1
  SkillPointsNeeded = 400
End
Rank 8
  Rankname = INI:RankLevel8
  SciencesGranted = SCIENCE_Rank8
  SciencePurchasePointsGranted = 2
  SkillPointsNeeded = 550
End
Rank 9
  Rankname = INI:RankLevel9
  SciencesGranted = Science_Rank9
  SciencePurchasePointsGranted = 15
  SkillPointsNeeded = 725
End
Rank 10
  Rankname = INI:RankLevel10
  SciencesGranted = Science_Rank10
  SciencePurchasePointsGranted = 3
  SkillPointsNeeded = 925
End
Rank 11
  Rankname = INI:RankLevel11
  SciencesGranted = Science_Rank11
  SciencePurchasePointsGranted = 4
  SkillPointsNeeded = 1100
End
Rank 12
  Rankname = INI:RankLevel12
  SciencesGranted = Science_Rank12
  SciencePurchasePointsGranted = 5
  SkillPointsNeeded = 1500
End
Rank 13
  Rankname = INI:RankLevel13
  SciencesGranted = Science_Rank13
  SciencePurchasePointsGranted = 6
  SkillPointsNeeded = 3000
End
Rank 14
  Rankname = INI:RankLevel14
  SciencesGranted = Science_Rank14
  SciencePurchasePointsGranted = 7
  SkillPointsNeeded = 4500
End
Rank 15
  Rankname = INI:RankLevel15
  SciencesGranted = Science_Rank15
  SciencePurchasePointsGranted = 9
  SkillPointsNeeded = 6000
End
Rank 16
  Rankname = INI:RankLevel16
  SciencesGranted = Science_Rank16
  SciencePurchasePointsGranted = 10
  SkillPointsNeeded = 7500
End
Rank 17
  Rankname = INI:RankLevel17
  SciencesGranted = Science_Rank17
  SciencePurchasePointsGranted = 20
  SkillPointsNeeded = 10000
End

 

I was wondering if anyone could shed some light on the problem. Oh and I have created the new strings and sciences, I get no complaints about them if rank.ini is present or not, oh and dont worry about the high points, I've changed the science costs.

 

Oh and Im suffering slowdowns with tibed, but thats probaly because Im using the unregestered version. after I access a certain number of keys, I think its about 6 the switch between them slows down, and I dont think its my system (2 gig of ram and a quad 2.4)

Edited by fudge

Share this post


Link to post

The game only has 5 ranks by default. If the game starts crashing when you add more... then either there are extra data files needed to make it work for the game (maybe some art?), or if it crashes at startup: the number of ranks might be hardcoded into the game. Hardcoded stuff happens all the time in C&C games, and Generals doesn't have it very often. But it looks like you've hit a "sweet spot".

 

About the slowdown: this should not happen. Can you give me some kind of "instructions" on how to recreate it? Can you make it happen for a new project as well? Reproducing it will be half the solution.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×