Pages: 1 [2]
Author Topic: OLS to XDF Converter with Translator  (Read 5055 times)
blairdude
Jr. Member
**

Karma: +6/-4
Offline Offline

Posts: 47


« Reply #15 on: July 02, 2026, 02:50:41 PM »

I have same problem to convert my KP to XDF

Code:
Reading KP map-pack: E:\Audi A4 1.8T Quattro\Audi_A4_MAPPAK_360654.kp …
  182 records (85 scalars, 51 curves, 46 maps)
  1 categories
Generating XDF …

Traceback (most recent call last):
  File "ols_to_xdf_gui.py", line 1570, in _worker
    xdf_str, written, skipped = mod.generate_xdf(
                                ~~~~~~~~~~~~~~~~^
        records, cat_map, title=cfg['title'],
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<8 lines>...
        ols_meta=_meta,
        ^^^^^^^^^^^^^^^
        tool_name=f'OLS to XDF v{VERSION}')
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Limitless\Downloads\OLS-to-XDF-Converter-Source\ols_to_xdf.py", line 2818, in generate_xdf
    xml = _build_table(rec, uid, swap_curve=swap_curve, swap_xy=swap_xy,
                       table_type=table_type,
                       helper_uid=None, y_helper_uid=None)
  File "C:\Users\Limitless\Downloads\OLS-to-XDF-Converter-Source\ols_to_xdf.py", line 2645, in _build_table
    _axis('x', x_addr, x_bits, x_count, x_units, x_factor, x_offset,
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          col_count=x_count, decpl=x_decpl, signed=x_signed, lsb_first=_x_lsb_first),
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Limitless\Downloads\OLS-to-XDF-Converter-Source\ols_to_xdf.py", line 1843, in _axis
    label_lines = '\n'.join(
        f'      <LABEL index="{i}" value="{label_val_fmt.format(float(i))}" />'
        for i in range(count)
    )
  File "C:\Users\Limitless\Downloads\OLS-to-XDF-Converter-Source\ols_to_xdf.py", line 1844, in <genexpr>
    f'      <LABEL index="{i}" value="{label_val_fmt.format(float(i))}" />'
                                       ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
MemoryError



I`ll attach my KP file here so if you can make it to XDF and investigate the problem. i have also tray to select manual just a couple maps to generate a smaller size of KP. Generator worked but all maps in XDF are wrong defined with any corect value

Just got back to work on this, I'll post a new version when I get a good conversion.  Also fixed a bug with the translation feature that was skipping some strings.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.015 seconds with 15 queries. (Pretty URLs adds 0.001s, 0q)