Enhance output summary of converter run for debugging #1343
Labels
assets
Involved with assets (images, sounds, ...)
good first issue
Simple thing, suitable for newcomers
improvement
Enhancement of an existing component
python
Done in Python code
Projects


Required skills: Python
Difficulty: Easy
During a converter run, a bunch of intermediary objects are created in the processor stage, specifically AoE-like and API-like objects. These are used in the transformation from Genie Engine formats to openage formats (e.g. nyan).
The content and helper functions of the intermediary objects are used to map properties of the objects in the original game to properties in the openage API (e.g. a unit's ability). The motivation for having debug output for these objects is that this will help us detect semantic errors in the converter implementation. Because of the high number of objects in the game data, checking this during a live debug is very hard to do.
Debug output of a run contains a plaintext dump of the most relevant content and output of helper functions. We store it in a dedicated directory (
assets/converted/debug) and distinguish between the runs by using timestamps for folder names. The debug output is separated by conversion stage (init, read, processor, export). A lot of stuff is already implemented (see here), but improving it can't hurt can it?Further reading:
The text was updated successfully, but these errors were encountered: