Page 1 of 1

Engine data exporter

PostPosted: Fri Jul 19, 2013 11:08 pm
by MaVac
Hello! I would like to ask somebody, if it is possible to make some utility to export engine data to some XML file. I mean basic parameters like displacement, weight, costs, RON, Economy etc. plus power and torque graph. I can see, that the *.LUA files are "human-readable" but I wasn't able to findout the values.
I would ike to start a webpage for my virtual car company and these data would be cool to have, to be able to "draw" my own graphs etc. I am also thinking about some little piece of software to compare my engines and don't want to fill all data manualy...;-)

Re: Engine data exporter

PostPosted: Fri Jul 19, 2013 11:24 pm
by Killrob
"if it is possible to make some utility to export engine data to some XML file"

Well, of course that is possible, and pretty simple too because the .lua engine files always have the same format. A little (for example) java tool would be easy to make, albeit a bit tedious because there is quite a lot of info in there to extract.

Re: Engine data exporter

PostPosted: Fri Jul 19, 2013 11:37 pm
by MaVac
Thanks KillRob, I know, that it is possible, but my question was meant like this: :-) It would be much easier for a programmer who knows the exact file structure, rather then for someone trying to do some reverse-engineering...
I know, that it makes no sense to implant something like this into game, but an external script shoud be easy to do, right? :-)

Re: Engine data exporter

PostPosted: Sat Jul 20, 2013 1:56 am
by Killrob
Yes, true. We'll probably invest a bit of time to properly document the .lua files such that other people who want to create exporters can do so more easily. Modding support is something we keep in mind... that is why we switched to a better file format too. :)

Re: Engine data exporter

PostPosted: Sat Jul 20, 2013 12:58 pm
by Daffyflyer
We're considering it, in the context of doing an exporter to some race sims at some point in the future, but for now it is super easy to pull that stuff out of the LUA file :)

Re: Engine data exporter

PostPosted: Sat Jul 20, 2013 7:36 pm
by MaVac
Daffyflyer, but I was talking about more simple exporter of just basic data and power/torque curves...to be able to parse it and use for my own projects. I don't need complex engine data for some simulation, just the size, weight, economy etc....to put it on my virtual car company website as engine specs. ;-)

Re: Engine data exporter

PostPosted: Sat Jul 20, 2013 7:49 pm
by Daffyflyer
Ahh, easiest way if you just want to present it online would be run it in a window then snipping tool the stats area and graph, that's what we do :)