Avorion

Avorion

Real captains 2
 This topic has been pinned, so it's probably important
Joenyan  [developer] 1 May @ 8:54am
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
Last edited by Joenyan; 3 May @ 9:13am
< >
Showing 1-9 of 9 comments
Reviera 1 May @ 10:57pm 
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.
Last edited by Reviera; 1 May @ 11:25pm
Joenyan  [developer] 1 May @ 11:32pm 
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
Last edited by Joenyan; 1 May @ 11:33pm
Joenyan  [developer] 1 May @ 11:35pm 
You can send me screenshots in discord Joenyan#3488 or via some other external method
Joenyan  [developer] 2 May @ 1:20pm 
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 2 May @ 8:04pm 
ah I see, thanks for the retrack
Reviera 2 May @ 8:24pm 
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.
Last edited by Reviera; 2 May @ 8:26pm
Joenyan  [developer] 3 May @ 2:18am 
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 3 May @ 8:12am 
XD very well
< >
Showing 1-9 of 9 comments
Per page: 1530 50