Porting to Another Server
Unfortunately message text are mixed in code, but most of message text are in logger invocation and exception.
In resources/imgreco/minireco
.
Font face used in CN server:
- Novecento Sans Wide (Bold, Medium, Normal) - for stage codes
- Noto Sans CJK SC (DemiLight, Medium) - for other UI text
Tip: Unity asset name is unlikely to change despite font data replaced.
A simple naive text recognizer is used to recognize stage codes and item quantities (also some UI text). Check imgreco/genrecodata.py
for how to regenerate recognizer model if font family changed in your server.
You might want to replace minireco with some more mature OCR software/library for other UI text recognition, check minireco usage in imgreco
!
In resources/imgreco
.
Some image resource contains text, which needs replaced by corresponding image of your server. Perform a search in imgreco
to check cropping box.
Tip: The UI layout is unlikely to change across servers. You may only need to update images in the same scene and cropping box.
Images in resources/imgreco/maps
have relative positions stored in resources/imgreco/map_vectors.py
.
Images in resources/imgreco/main
with Chinese characters don't have corresponding cropping boxes.
In resources/imgreco/items
.
You might want to rename files inside.
Files: penguin_stats/reporter.py
, resources/event.py
Refer to penguin-stats.io API docs for porting.
File: resources/recruit_database.py