Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

felladrin/uo-cliloc-to-json-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UO Cliloc to JSON Converter

PHP scritps to convert Ultima Online Cliloc files to JSON, back and forth, to create custom clilocs.

Three simple steps to build your translated clilocs

  1. Copy, from the UO folder, the clilocs you want to edit/compare and paste them inside input folder. (Ex: Cliloc.enu and Cliloc.deu)
  2. Run convert_cliloc_to_json.php (using php through command line), to generate the Cliloc.json inside json folder, then change all cliloc entries you want on this json file and save it.
  3. Run convert_json_to_cliloc.php (using php through command line), to generate the updated clilocs inside output folder. Then copy the cliloc (in this example, Cliloc.deu) back to the UO folder, ovewriting the old one. So next time you login the game, you'll see the translation updated.

Usage Example

C:\converter> php convert_cliloc_to_json.php
Reading input\Cliloc.enu... OK!
Reading input\Cliloc.deu... OK!
Done! Cliloc.json has been saved in json folder. You can open and edit it using any text editor.
C:\converter> php convert_json_to_cliloc.php
Writing output\Cliloc.enu... OK!
Writing output\Cliloc.deu... OK!
Done! Now copy these clilocs to UO folder, overwriting the old ones.

Example of a Cliloc.json file

Here is a live version of a Cliloc.json, that is being used to build a brazilian portuguese cliloc.

Requirements

  • PHP 5.4+

About

PHP scritps to convert Ultima Online Cliloc files to JSON, back and forth.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages