-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with Russian localization of key names #1246
Comments
Please upload the full RPT file. |
Found out, that VCOM settings in CBA_SETTINGS are causing this error, will try to isolate the problem if it isn't whole VCOM. |
Found the exact line: If it is included it causes that error, will try to modify it, but for the moment I recommend to exclude it as comment //force VCM_SIDEENABLED = [WEST,EAST,GUER]; Edit: |
|
needs another Lingor /s the amount of UBCs though ... |
Problem is restricted to the virtual zeus. Zeus with body and players are not affected. |
Can someone get me the string thats provided to parseSimpleArray please? |
|
Dedmen is right. SIDE types are not supported by settings, only NUMBER, STRING and ARRAYs of these. This is because SIDE types cannot be serialized by default and I don't want to make everything ugly just to support them as they provide no functionality that cannot be achieved with supported types. Idk whether this is an issue by VCOM or by @YetheSamartaka. It definitely is a not a problem with CBA or the update 1.96. Close? |
After some testing, it is not related to the VCOM, problem is still there. |
RPT of a session with as few as possible mods? |
Please attach your settings.sqf file. |
|
And RPT? |
That string might cause the double quote escape issue (Which btw has been fixed on RC) |
Nope, unrelated. Issue discussion is continued here: #1255 All comments below are unrelated and changed the issue subject. |
Liquid gave me data!
I guess something with the quotes in here? |
Should've never used |
KK says that string is completely invalid, call compile fails on it too. |
Seems nobody use Web keys for arma hotkeys. Or at least in russian community. |
I have a feeling that beginning from dedmen's post today, this is a completely different thing than what OP wrote. |
yep. but fix needed here CBA_A3/addons/keybinding/XEH_preStart.sqf Line 172 in 6f568c0
CBA_A3/addons/keybinding/XEH_preStart.sqf Line 186 in 6f568c0
|
Nah. The point of those lines is to strip away the double quote marks the So the question is, what does keyName report in the English UI in 1.96? And what does it report in the Russian UI? |
Sry OP, you thread is repurposed. |
All in Dedmen's posts above. |
If I were to follow the suggested code, it gets rid of the script error, but now reports useless bull shit: private _keyEN = """Web Home""";
private _keyRU = """Web-клавиша ""Home""""";
parseSimpleArray format ["[%1]", _keyEN] select 0 // "Web Home"
parseSimpleArray format ["[%1]", str _keyEN] select 0 // """""Web Home"""""
parseSimpleArray format ["[%1]", _keyRU] select 0 // "Web-клавиша " + Script error
parseSimpleArray format ["[%1]", str _keyRU] select 0 // """""Web-клавиша """"Home""""""""" Now if I avoid private _keyEN = """Web Home""";
private _keyRU = """Web-клавиша ""Home""""";
private _s = str text _keyEN;
_s select [1, count _s - 2] // "Web Home"
private _s = str text _keyRU;
_s select [1, count _s - 2] // "Web-клавиша ""Home""" Perfectly escaped quote marks inside strings. The part I am angry about is, that I specifically remember having tested this, and it worked before |
All key names are converted and cached at game start (it is a preStart script after all). It does not matter what key is bound to what. Anyway, thanks for the help everyone. Fix on weekend. |
Changed to RUSSKIE localization: 0xB2 call CBA_fnc_localizeKey // "Web-клавиша ""Home""" No errors. |
meanwhile in Development Branch Changelog
|
Yeah, but at this point, I am just tired of their shit. They will likely break it again. |
As I understand this strings are used in keybinding menu. So because no one use Web keys no one notice corrupted strings.
Double double quotes inside are not correct actually. But better than error I think.
Most part of log is copy paste from stable branch released 2 days ago. So I think it's behaviour is equal to what KK told on discord sreenshots |
All keynames are cached on game start. The current code results in a script error. Script errors on game start have a high chance to crash the application, due to a bug with the error popup message. This is not a trivial bug.
But those are not double quotes when displayed on controls. They are escaped quote marks. Just execute: hintSilent "Web-клавиша ""Home""" It will look exactly as intended. |
not related. |
After yesterday's update (Update 1.96) I'm getting this error :
11:20:50 [CBA] (settings) INFO: Reading settings from settings file.
11:20:50 [CBA] (settings) INFO: Finished reading settings from settings file.
11:20:50 [CBA] (settings) INFO: Mission Config: File [cba_settings.sqf] loaded successfully.
11:20:51 Error in expression <ring [10, 13, 9, 32] joinString "";
};
parseSimpleArray (["[", _string, "]"] jo>
11:20:51 Error position: <parseSimpleArray (["[", _string, "]"] jo>
11:20:51 Error Generic error in expression
11:20:51 File x\cba\addons\settings\fnc_parse.sqf..., line 30
11:20:51 [ACE] (common) INFO: Parsed Settings Configs [50.0 ms]
11:20:51 "SquadBarDefault: false"
11:20:51 String STR_RHS_FAC_VDV_45 not found
11:20:51 String STR_RHS_FAC_VDV_45 not found
11:20:51 [15431,237.92,0,"XEH: PreInit finished."]
11:20:51 Setting invalid pitch 0.0000 for Zeus1
11:20:59 [CBA] (settings) INFO: Mission Config: File [cba_settings.sqf] loaded successfully.
11:20:59 Error in expression <ring [10, 13, 9, 32] joinString "";
};
parseSimpleArray (["[", _string, "]"] jo>
11:20:59 Error position: <parseSimpleArray (["[", _string, "]"] jo>
11:20:59 Error Generic error in expression
11:20:59 File x\cba\addons\settings\fnc_parse.sqf..., line 30
It makes missions unstartable, ArmA III just crashes or freezes.
The text was updated successfully, but these errors were encountered: