The International Simutrans Forum

 

Author Topic: Makeobj function to output expanded dat file  (Read 214 times)

0 Members and 1 Guest are viewing this topic.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2866
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Makeobj function to output expanded dat file
« on: June 22, 2019, 05:16:53 PM »
This patch adds an expand function to makeobj to output the dat file as recognised by makeobj. This will output the same dat file as input but with all 'pre-processor' directives expanded.

Its use is for debugging dat files and for using it for other tools that don't recognise the new makeobj options like Simutranslator.

I want to checkout with you if I should push this to trunk.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4580
  • Languages: EN, DE, AT
Re: Makeobj function to output expanded dat file
« Reply #1 on: June 22, 2019, 07:21:54 PM »
looks good. The patch is quite short.

Offline makie de

  • *
  • Posts: 87
  • Languages: DE
Re: Makeobj function to output expanded dat file
« Reply #2 on: June 29, 2019, 07:45:17 AM »
makeobj expand is integrated in Translator Import.
The Translator do not always call makeobj expand, it try to recognize short-cut.
Maybe this fails sometimes, if so give me a note.

if something like %include is build in makeobj the recognition needs to be extended.

for the present, it works fine