Tools Development LGO file validator & fixer

alexxst

Active Pirate
Developer
Registered
LV
2
 
Joined
Mar 5, 2026
Messages
25
Reaction score
33
Points
33
A number of *.lgo files in the client are:
  • broken,
  • old versions
  • some files have some garbage written at the end by third-party utilities
I present a utility that will analyze the files and tell you where the problem is, and will also help to clean the files from garbage and bring them to a perfect state, to the latest version and remove broken files that wander from release to release. Some lbo files can also cause the client to freeze, and they are also detected by my utility.

The source code is available in the repository.
Please, Log in or Register to view URLs content!

I have attached the file in the attachment.

To run the client files for validation:
PkoTool.exe --mode=validate --scope=lgo --root=D:\Projects\MMORPG\TalesOfPirate\Client

Run for fix:
PkoTool.exe --mode=fix --scope=lgo --root=D:\Projects\MMORPG\TalesOfPirate\Client

In the future, I will add a converter to glb format and the ability to edit file headers.
Delete the remaining bak files after checking the client.

Please, Log in or Register to view URLs content!
 

Attachments

i guess for easier compare what been deleted, and easier clean up behind the tool itself forpeople who doesn't use github
.bak should go under current folder root/bakmodels/x.bak
end of running , export current work states info .txt with >delete files list<
fix file list
this way they can check if deleted files was used in their files or not, compare if it cause any issue by deleting or not
 
  • Love
Reactions: Samichu