Engine data export?

Hi I realise this is an engine related susggestion/question, but it isn’t to do with the designer, but instead the data.

I wanted to know if there were a way for me to compare engines in the sandbox between each other, either via excel or another program, I’ve searched the forum for export but couldn’t find a thread about this.

My best guess at the moment is its somewhere in the “engineStats.lua” located in “\Automation\escripts\shared\data\SANDBOX_DATA”, but all the lua editors so far haven’t made sense of it.

As far as I know, you pretty much can just write them down and then look at them.

what exactly are you looking to compare?

Well I’ve made several different engines in the sandbox, and I want to compare all of their specs, preferably without writing them all out, and I know that the game is storing them so it would be good if I could export them all so I could compare them in excel

So more in-depth then the engine manager over view? You’re talking like actual tune setups, bore, stroke, cam, mixture, advance?

The stats are all found in Table 21 of the engine’s .lua file.

To expand on what Jakgoe has said, in table 21 you can find lots of data for the engine, some of it will be numbers you recognise and some of it wont. there are also multiple values for things like noise, peak torque, etc. some of the stuff in table 21 is pretty self explanatory, but some isn’t, so this is what i found.

Loudness: you want the “Noise” value, not exhaust noise or intake noise
Torque: you want the “torque” value, not the BaseTorque. The value is in Nm
Power: You want the “PeakPower” value, not any of the other values. it is measured in kW
Economy: You want the “EconEff” value, not any of the others
MTBF: in table 21 it is listed as MTTF
Engine Cost: The in game value is the “MaterialCost” value. presumably the “TotalCost” value adds the material cost to how much you would have to pay your workers with an arbitrary wage value

I cant remember where the year is stored, but I seem to remember it had something to do with a quality value (something like base quality) and that it was scaled from 0 to 1 where 1920 = 0 and 2020 = 1. It may have been stored elsewhere in a normal format though

There are some other stats outside of table 21 that you can find.

You can find several stats, such as power and torque, measured for every 100RPM of the engine. For this, table 50 will tell you which tables you need to look at, since there is 1 table for every RPM it does the tests for

Table 51 lists all of the tables which contain information on part failure, such as the pistons breaking due to too high RPM

Table 52 lists all the tables which contain information about the turbo. My program is only designed to work on the demo so i haven’t looked into this much, but i assume that it will be measuring information about the turbo at every 100RPM

Table 53 either lists all the MTBF issues, or lists the tables in which they can be found. the engine I was looking at had no MTBF issues so I dont know exactly how this works

Table 54 is a list of tables for ‘restrictions’. Again I’m not sure what this is since it wasn’t relevant for me, but presumably it holds the air restriction information for every 100RPM, which is displayed in the coloured diagram at the top left of the testing screen when you manually rev the engine.

If you want to know information about separate parts of the engine you can look in table 1, because table one is like a contents page for all of the tables showing you which table to look at for each piece of data.

Hopefully that helps. I don’t know what lua editors you use, but I use notepad++ to read the automation engine files and fount it reasonably clear