Hi there, I'm new to mod creation and only got an basic overview by now. My question is if there is any way to log different parameters and data to an file outside of BeamNG. I want to write things like fuel consumption, speed, torque and so on in an (CSV) file every 0.1 sec. I've found Streams for custom created Apps but would need to know if they are usable for my needs. Maybe someone knows anything about it? Also found this thread with post #10 about a really similar topic but I'm not sure if the answers are 100% transferable. I appreciate your thoughts and even when you say it's definitely not possible you would help me a lot! Thanks!
This is tad old topic, but as I stumbled upon this... Exporting to CSV file is indeed missing from log all streams, there are all kind of other streams, but nothing that could be read by Excel and so not much of help in making setups for example. Exporting to LD format and using Motec i2 pro to examine data would be of course dream come true, but because of legal reasons, I doubt official app will be made. However for other games modders have made tools that will export LD files and as BeamNG already has data exporting, it should be possible for anyone who can make programs and UI apps. Oddly searching motec from forum did not brought up any discussions about this subject. Making program that converts JSON log to CSV might also be quite easy for skilled one. There is also online service that will convert JSON to CSV https://json-csv.com/ That works somewhat, you get data to excel, but it needs bit cleaning up in regards of formatting of some headings etc. So this is what you get after transposing data in excel: Logging interval is maybe 1 second? I have no idea, because I see just exampleVals there where I except timestamp to be and I did not see time logged. Also there could be more data too, it is missing suspension data (available/used travel, velocities), which could be really useful, damper velocities, wheel slip, rpm, gear etc. all are important when building setups. So it is not so useful at this stage, but maybe that is area we see improvements in a future. Should get data like this, but it might require quite bit of coding from @Diamondback to get all such data to be logged and created, so that some modder could then make that tool which will create LD format files to be used with Motec. It is very unlikely that LD export would be implemented as Motec company does not want to talk about such matters:
Hm seems like this thread slipped my attention It's fairly easy to log such data, maybe you can post a list of what exactly you need, then i can prepare something for you.
Thx @Diamondback ! Now I don't really know what is feasible here, scope of BeamNG is of course bit different than dedicated racing simulators, but I think BeamNG is very much racing simulator too, however this is what is logged by rF2 (I just copy paste post of Lazza who made motec plugin for rF2) Most of this would be nice to have and turbo/supercharger rpm too: Cut from here https://forum.studio-397.com/index.php?threads/damplugin-for-rf2.49363/page-2#post-819448 Now some of those don't really apply at this stage to BeamNG as we don't have tire temp or wear currently, but those might be something to consider if there are plans to implement such, some might be bit hard to get, but for example suspension position, we have long bound and short bound, is it possible to record current position somehow? Knowing how close to bottom out suspension is, is quite essential, ride height would be nice too, but not sure how to get that easily at least. Knowing if there is oversteer or understeer is quite important too, can be of course seen from sliding percentage or such from tire information. Somehow I think I'm asking bit much, but you know what is feasible to do from this all From old days of GTR and even this kind of graphs have been what I have used to help in building setups, but this is racing simulator stuff of course. Wheelslip, brake temp and weight distribution app's data logged would already help a bit, brake torque / wheel torque would probably be among those, steering input, throttle input, brake input, TC and ABS, suspension position, camber angles, those I think would be essentials. Also logging interval should be quite fast as you can see from above data, it is faster than 0.1s so 0.1s or faster is probably needed, 30m/s speed it would be something like 3m and that is quite distance, but again you probably know better what kind of rate would be sensible.
Wow, that would be great! Hm, let's see... I would definitely need: current speed current fuel consumption time stamp (to reference the data correctly) RPM and maybe pedal position (brake 0 to 1, throttle 0 to 1) So these are more basic data entries I would need and all of them are already simulated and displayable in UI Mods. Just don't know how to get them into a file... And thanks to both of you already for your answers!