The first officer I hired in that new game happens to have reputation of 90 (which is 1 above REPUTATION_MAX):
When I look at his character screen, I see a blank line where his reputation is supposed to be, and when I look at error.log I see this:
The function where that happens:
index = 1465
id = Enc_Officer_0
model = korsar
entity = NPCharacter
animation = man
height = 1.8000000
sex = man
faceid = 19
headmodel = h_korsar
reputation = 90
friend = 1
nation = 5
name = 5
name = Sansгo
lastname = De Menses
id = Enc_Officer_0
model = korsar
entity = NPCharacter
animation = man
height = 1.8000000
sex = man
faceid = 19
headmodel = h_korsar
reputation = 90
friend = 1
nation = 5
name = 5
name = Sansгo
lastname = De Menses
When I look at his character screen, I see a blank line where his reputation is supposed to be, and when I look at error.log I see this:
Code:
RUNTIME ERROR - file: characters\characterUtilite.c; line: 1886
invalid index 9 [size:9]
RUNTIME ERROR - file: characters\characterUtilite.c; line: 1886
invalid array index
RUNTIME ERROR - file: characters\characterUtilite.c; line: 1886
Unknown data type
RUNTIME ERROR - file: characters\characterUtilite.c; line: 1886
Unknown data type
RUNTIME ERROR - file: characters\characterUtilite.c; line: 1886
string function return UNKNOWN value
RUNTIME ERROR - file: characters\characterUtilite.c; line: 1873
Unknown data type
RUNTIME ERROR - file: characters\characterUtilite.c; line: 1873
Unknown data type
The function where that happens:
Code:
string GetReputationName(int reputation)
{
// KK -->
int delta = roundup(makefloat(REPUTATION_MAX - REPUTATION_MIN + 1) / makefloat(REPUTATION_TABLE_SIZE));
int rep = makeint(makefloat(reputation) / makefloat(delta));
return ReputationTable[rep];
// <-- KK
}