MX Bikes Official Forum

Mods => Plugins => Topic started by: HornetMaX on January 09, 2017, 10:09:42 pm

Title: MaxTyre - A tool to visualize/edit the GPB tyre model
Post by: HornetMaX on January 09, 2017, 10:09:42 pm
Hi all,

I've made a little tool to visualize the tyre model (Magic Formula) used by GPB. If you don't know what the Magic Formula is, the tool is *not* for you :)

NOTE: the tool is very much beta. The equations involved are messy and I cannot grant an error has not slipped in. If anybody with knowledge of this stuff wants to double check, that would be appreciated. I can send you the relevant source code for that, just PM me. Of course, if Piboso could validate all that, that would be ideal (but he probably has other things to do).

It can load two set of parameters (two .tyre files) to compare and modify them (only the Magic Formula parameters). It has 4 tabs, one for each graph:
Any time a value is modified, the graphs are updated. Same any time a slider is moved. Double clicking on a slider will bring it back to its default position.

On each graph there are 4 lines: 2 for the 1st model (in blue), 2 for the second model (in red).
On the longitudinal force graph (for example), it draws (for each model) the line with zero side slip and zero camber (dashed line) and the line with the values of side slip and camber specified by the sliders.

Using shift+mousewheel and ctrl+mousewheel you can zoom in/out of the X/Y axes. shit/ctrl+drag will pan the X/Y axes. A double click will zoom out to full graph.

(https://drive.google.com/uc?export=view&id=0BzmU7Qoo77i1dEhUc2FwX3dXRFk) (https://drive.google.com/uc?export=view&id=0BzmU7Qoo77i1dEhUc2FwX3dXRFk)

DOWNLOAD v1.6b (2017/05/16) : (https://mega.nz/#F!dBlW1SIZ!t4J1IooPK-hNpSpm0K_ZQg) <<-- THIS if for GPB beta9/10/11 and MXB beta5/6 (subsequent versions TBC).

INSTALLATION: this is not a plugin, it's a standalone tool. Just copy it in a folder where you have write rights (i.e. avoid "Program Files" and similar). The sample files provided are the ones of the 3 default bikes in GPB beta8.

IMPORTANT: in case of issues like missing dlls or things not showing up, please install Microsoft Visual C++ 2015 Redistributable Package (x86). It's available in the .zip (vcredist_x86.exe) or you can download it at https://www.microsoft.com/en-US/download/details.aspx?id=48145 (https://www.microsoft.com/en-US/download/details.aspx?id=48145) (download the x86 version, "vcredist_x86.exe", not the x64 version).
Title: Re: MaxTyre - A tool to visualize/edit the GPB tyre model
Post by: HornetMaX on January 09, 2017, 10:09:49 pm
v1.6 out:

Title: Re: MaxTyre - A tool to visualize/edit the GPB tyre model
Post by: HornetMaX on January 09, 2017, 10:15:07 pm
NOTE: if you open a .tyre file in MaxTyre, and then save it without changing anything, the order of the parameters in the saved file may be different from the original file.
To be honest I don't know if it makes a difference online (file mismatch), but I suspect it does.

If you want to easily double check nothing has been changed, I suggest a good diff tool (e.g. Notepad++ + it's compare plugin).

Even with the tool, you still probably need a book to understand what the curves are :)
Title: Re: MaxTyre - A tool to visualize/edit the GPB tyre model
Post by: HornetMaX on May 16, 2017, 09:15:45 pm
v1.6b out: