What is "string reference is out of range: xxx"
NSAgov770
Member Posts: 27
I found this when I was looking at BCS script in near infinity
For example: in AERIE.BCS
IF
InParty("rh#Isra2") // Isra
InParty("Aerie") // Aerie
See(Player1)
!StateCheck("Aerie",CD_STATE_NOTVALID) // Aerie
!StateCheck("rh#Isra2",CD_STATE_NOTVALID) // Isra
!StateCheck(Player1,CD_STATE_NOTVALID)
CombatCounter(0)
!See([ENEMY])
Global("rh#IsraAerieRomance","GLOBAL",1)
Global("AerieRomanceActive","GLOBAL",1)
Global("rh#IsraRomanceActive","GLOBAL",1)
RealGlobalTimerExpired("rh#IsraAerieRomanceTimer","GLOBAL")
THEN
RESPONSE #100
ActionOverride(Player1,DisplayString(Myself,125200)) // No such index
SetGlobal("rh#IsraAerieRomance","GLOBAL",2)
near infinity warned me that
"string reference is out of range: 125200"
What does it mean? Is this some kind of bug? Is it serious? Will it cause stuttering?
and Are there any ways to fix it?
Thx in advance
For example: in AERIE.BCS
IF
InParty("rh#Isra2") // Isra
InParty("Aerie") // Aerie
See(Player1)
!StateCheck("Aerie",CD_STATE_NOTVALID) // Aerie
!StateCheck("rh#Isra2",CD_STATE_NOTVALID) // Isra
!StateCheck(Player1,CD_STATE_NOTVALID)
CombatCounter(0)
!See([ENEMY])
Global("rh#IsraAerieRomance","GLOBAL",1)
Global("AerieRomanceActive","GLOBAL",1)
Global("rh#IsraRomanceActive","GLOBAL",1)
RealGlobalTimerExpired("rh#IsraAerieRomanceTimer","GLOBAL")
THEN
RESPONSE #100
ActionOverride(Player1,DisplayString(Myself,125200)) // No such index
SetGlobal("rh#IsraAerieRomance","GLOBAL",2)
near infinity warned me that
"string reference is out of range: 125200"
What does it mean? Is this some kind of bug? Is it serious? Will it cause stuttering?
and Are there any ways to fix it?
Thx in advance
0
Comments
If you're lucky, it's only caused by an incorrect setting in Near Infinity itself. Please make sure that NI is set to the same language you're playing the game in. You can check or fix it via menu Options > TLK Language. In that case you won't have any issues in the game. Simply choose the correct game language from the menu and open the script again.
It can also happen if you installed mods for the wrong game language, e.g. installing for English, but playing in German. You can check the content of the file "weidu.conf" which can be found in the game's installation folder. For English it should contain "lang_dir = en_us". In this case you have no choice but to reinstall everything in the right game language.
To force a language reset, you have to delete the file "weidu.conf" before installing mods (and make sure to choose the right game language when asked).
+possibly is your version of NI recent / up to date