After unification of main servers, we in official idRO often receive our id split into two or three id using prefix. Example: I have username "helloworld". previously playing at chaos and loki. after unification, my id divided into two, "helloworld", the main id, and "helloworld:3", the branch. Obviously they do this to preserve character slots of each servers.
Problem:
After this unification, I often use my ":3" id than the main one. and the logs are all gone! After some research, I found that openkore has feature "logAppendUsername" on the config which append username on the log. this make my variable be "storage_helloworld:3_0.txt" which of course, denied by windows.
Solution offered:
I change the code a little, and add new key on config.txt. In conjunction to "logAppendUsername", I add "logAppendCustom" and "logAppendString". When the logAppendUsername set to 1, the rest is ignored. But if it set to 0 (or empty), my kore read logAppendCustom. If it set to 1, I read logAppendString to be appended into log files. So if I use config like this:
Code: Select all
logAppendUsername 0
logAppendCustom 1
logAppendString my_custom_append_string
The code (src\function.pl, line 501):
Code: Select all
- # $logAppend = ($config{logAppendUsername}) ? "_$config{username}_$config{char}" : '';
+ # Additional code by murasame to encode colon (':') from username part to prevent log failure
+ if ($config{logAppendUsername}) {
+ $logAppend = "_$config{username}_$config{char}";
+ }
+ else {
+ if ($config{logAppendCustom}) {
+ $logAppend = "_$config{logAppendString}";
+ }
+ else {
+ $logAppend = '';
+ }
+ }
+ # End of additional code
regards,
murasame