Avorion
Real captains 2
 此主题已被置顶,因此可能具有重要性
Joenyan  [开发者] 5 月 1 日 上午 8:54
Duplicated image bug
The bug looks like 2 identical images are in the same place, but slightly offset and blurry
Reason:
I use some workaround dirty trick to add images, so in different localizations my mod has different tooltip width
Possible problems on your side:
- Some system font that messes up with character width. Read further
- Not official localization installed. I need name of installed (language).po and correct offset value to update localizations pool
How to fix:
1.Go to:
C:/Steam/steamapps/workshop/content/445220/3473880618/data/scripts/lib/captainutility.lua
2. open with any text editor
3. Go to 44 line:
local languageFix = tonumber("676"%_t)
4. replace it with
local languageFix = 676
5. change 676 to some other value. Experiment with different values until image becomes normal
For reference:
- Japanese 961
- Korean 946
- Chinese 959
- Deutsch 676
6. Done. Please tell me your language and correct value
最后由 Joenyan 编辑于; 5 月 3 日 上午 9:13
< >
正在显示第 1 - 9 条,共 9 条留言
Reviera 5 月 1 日 下午 10:57 
Hell I could't find part 3 in the file, much less change any values.

yeah I can't find "local languageFix = tonumber" "676" at all in the file.
最后由 Reviera 编辑于; 5 月 1 日 下午 11:25
Joenyan  [开发者] 5 月 1 日 下午 11:32 
Are you shure that you have opened "captainutility", NOT "captaingenerator"? I resubscribed to the mod right now to confirm, the file is there, the line is there
最后由 Joenyan 编辑于; 5 月 1 日 下午 11:33
Joenyan  [开发者] 5 月 1 日 下午 11:35 
You can send me screenshots in discord Joenyan#3488 or via some other external method
Joenyan  [开发者] 5 月 2 日 下午 1:20 
Step 1 refers to workshop folder. You need to go to the workshop folder, not inside Avorion gamedata. These screenshots are from steamapps/common/Avorion/data
Reviera 5 月 2 日 下午 8:04 
ah I see, thanks for the retrack
Reviera 5 月 2 日 下午 8:24 
So is dutch the default for English because Im still having the double vision issue.

and yes Ive corrected my search, and even copy pasted step 4 into the file and still have the double vision.
最后由 Reviera 编辑于; 5 月 2 日 下午 8:26
Joenyan  [开发者] 5 月 3 日 上午 2:18 
If you removed "tonumber("676"%_t)" and replaced with it with a number, game language does not have any effect anymore. Try different values until images became 1 image. Like 686, 696, 750 etc.
Reviera 5 月 3 日 上午 8:12 
XD very well
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50