Jump to content

Problem with XcomUtil StatStrings


Tonicboy

Recommended Posts

Hi all,

 

I've been trying to customize my StatStrings but am seeing some odd behavior. I have the following StatString setup:

 

1 r:-19
2 r:20-29
3 r:30-39
4 r:40-49
5 r:50-59
6 r:60-69
7 r:70-79
8 r:80-89
9 r:90-99

.1 f:-19
.2 f:20-29
.3 f:30-39
.4 f:40-49
.5 f:50-59
.6 f:60-69
.7 f:70-79
.8 f:80-89
.9 f:90-99

.1 s:-19
.2 s:20-29
.3 s:30-39
.4 s:40-49
.5 s:50-59
.6 s:60-69
.7 s:70-79
.8 s:80-89
.9 s:90-99

It's meant to show something like 5.8.4 where each digit represents reaction, accuracy and strength. It shows reaction and accuracy just fine but won't show strength. If I rearrange the order of the stats, it seems like it just won't show the last stat. I shortened all the soldiers' names to make sure there was more than enough space.

 

Also, somewhat unrelated, no matter how I change the StatStrings section in the cfg file, it will always append something like :a0/ after each name. Does anyone know what controls that and how to change that, or at least what it's supposed to mean?

Link to comment
Share on other sites

It has been ages since I've used stat strings, so I'm just throwing out a wild question here: Have you tried dropping the dots for the middle substitutions? Shouldn't be too hard to read it without them. Or use letters for the middle. It might also see if it helps by using lesser levels and go with quarters. Say 0 - 25, 26 - 50, 51 - 75, 75 - 100. I don't know if any of this will work, but it might be worth trying.

 

The 0 is the null terminator for C-style strings. With it, programs using the strings will know where the string ends. It is best not to tamper with it.

 

- NKF

Link to comment
Share on other sites

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
×
  • Create New...