tileinfo info

jlv
Site Admin
Posts: 12321
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

tileinfo info

Postby jlv » Fri Sep 04, 2009 3:18 am

Here's what everything does in the tileinfo file.

friction <coefficient of friction> <slip speed>
This sets the friction for a specific slip speed. The friction value used will be interpolated from the nearest speeds set. You can set the friction for up to 8 different speeds.

roll_resist <low pressure resistance> <high pressure resistance> <speed>
This sets the rolling resistance for a given speed. The values used will be interpolated from the nearest speeds set. You can set this for 8 speeds.

texture <texture filename>
This sets the texture for the tile.

erode_depth <depth>
This sets how deep the erosion will be. Default is 1.0.

erode_lower <force>
This is the lowest force that will cause erosion. Lower forces will not cause any erosion. Default is 50.0.

erode_upper <force>
This is the upper limit on erode force. Higher forces than this will not cause extra erosion. Default is 150.0.

erode_displacement <distance>
This sets the displacement for the maximum erode force in feet. Default is 2.0.

erode_radius <radius>
This sets the radius of the eroded area in feet. Default is 4.0.

erode_inner_depth <depth>
This sets how deep the inner erosion will be. This is applied in addition to the regular depth/radius when digging. Default is 0.125.

erode_inner_radius <radius>
This sets the inner radius of the eroded area in feet. This is applied in addition to the regular depth/radius when digging. Default is 2.0.

erode_min_slope <slope>
This sets the minimum slope erosion will create. Default is -0.5.

erode_max_slope <slope>
This sets the maximum slope erosion will create. Default is 0.5.

erode_off_speed <feet per second>
This sets the minimum speed required for erosion to happen in feet/second. Default is 10.0

erode_on_speed <feet per second>
This sets the speed where erosion is fully on in feet/second. Default is 15.0

erode_slip_base_scale <scale>
This sets the erode force scaling when the slip rate is below the lower limit. Default is 1.0.

erode_slip_scale <scale>
This sets the erode force scaling when the slip rate is over the upper limit. Default is 1.5.

erode_slip_lower <feet per second>
This sets the slip speed where erode_slip_base_scale is used. Default is 0.0.

erode_slip_upper <feet per second>
This sets the slip speed where erode_slip_scale is used. Default is 5.0.

erode_downhill_scale <scale>
This increases the depth setting when eroding downhill. Default is 0.0.

roost <option>=<value>
This sets roost paramters. You can have 4 different roost types. Here are the parameters, with their default values:

    texture=@roost.png
    This sets the texture used for the roost.

    count=10
    This sets how many roost particles will be thrown per step.

    dig=1.0
    This sets how much the roost will dig into the ground when track erosion is enabled.

    slip_threshold=4.0
    If the slip speed is less than this no roost particles will be thrown.

    slow_speed=0.0 fast_speed=64.0 slow_angle=1.57 fast_angle=0.196
    These control how far the roost follows the wheel. The speeds are in radians per second. The slow angle will be used at the slow speed and the high angle will be used at the high speed. The speeds in between are interpolated between the squared speeds.

    size=0.25
    This is the initial size of the roost billboard.

    grow=4.0
    This is how much the roost will grow in 1 second.

    drag=0.5
    This is the drag value. The roost particle will decelerate by its velocity scaled by this value every second.

    vscale=1.0
    This scales the initial velocity of the roost particle.

    randomize=15.0
    This randomizes the initial velocity of the roost particle.

    r=255 g=255 b=255 a=255
    This is the initial color of the roost.

    fade_r=0 fade_g=0 fade_b=0 fade_a=-256
    This is how much the roost color will change every second.

    splash=0
    If you set this to 1, instead of following the wheel the roost will splash out at 45 degree angles to the sides. Some of the other settings are ignored if this is 1.

addtile
This adds the tile to the list.
Last edited by jlv on Sat Sep 02, 2017 1:45 am, edited 2 times in total.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
DJ99X
Posts: 15461
Joined: Tue Jan 15, 2008 11:36 am
Team: El Chupamobra
Location: Upper Shit Creek, Sans Paddlington

Re: tileinfo info

Postby DJ99X » Fri Sep 04, 2009 3:35 am

Is it possible to make dust that hangs around for a few seconds using those parameters? Because I can only make them last a second or 2. I'm guessing the game just discards the particle after 1 second?

5000th Post :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock: :shock:

jlv
Site Admin
Posts: 12321
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: tileinfo info

Postby jlv » Fri Sep 04, 2009 3:49 am

Try increasing the drag. You might also have to increase vscale and randomize so the particles will elevate before the drag stops them.

You can prevent or slow down the fade out by changing fade_a to 0 or -128. (fade_a is stored as an integer so you don't get very fine granularity.)
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

ddmx
Posts: 5264
Joined: Sun Apr 20, 2008 3:36 pm
Team: Epikmx.com
Location: Midland MI
Contact:

Re: tileinfo info

Postby ddmx » Fri Sep 04, 2009 5:50 am

Just out of curiosity, what is the minimum count allowed? I tried 0.25 but I'm not sure if the game actually goes below 1, it's hard to tell.
The MXS 1%

User avatar
DJ99X
Posts: 15461
Joined: Tue Jan 15, 2008 11:36 am
Team: El Chupamobra
Location: Upper Shit Creek, Sans Paddlington

Re: tileinfo info

Postby DJ99X » Fri Sep 04, 2009 6:20 am

It might need to be an integer

User avatar
giopanda
Posts: 811
Joined: Sun Jul 05, 2009 8:08 am
Team: Privateer
Location: milano, italy
Contact:

Re: tileinfo info

Postby giopanda » Fri Sep 04, 2009 8:05 am

exactly what i wanted to know!
thank you so much jlv, you're making this game pure awesomeness!
i'm having a problem setting the initial friction very low like you posted in the game suggestion thread..now it remains slippery throughout the entire speed range..any idea how is it possible?
i have this:
friction 0.25 4.0
friction 1.0 6.0

and now back on notepad++!
Image

jlv
Site Admin
Posts: 12321
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: tileinfo info

Postby jlv » Fri Sep 04, 2009 9:17 pm

ddmx488 wrote:Just out of curiosity, what is the minimum count allowed? I tried 0.25 but I'm not sure if the game actually goes below 1, it's hard to tell.


It does go below 1. For 0.25 there is a 25% chance it will throw a particle.

giopanda wrote:exactly what i wanted to know!
thank you so much jlv, you're making this game pure awesomeness!
i'm having a problem setting the initial friction very low like you posted in the game suggestion thread..now it remains slippery throughout the entire speed range..any idea how is it possible?
i have this:
friction 0.25 4.0
friction 1.0 6.0

and now back on notepad++!


Can you post the whole file?
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

Mona
Posts: 1645
Joined: Thu Jul 31, 2008 6:46 pm
Team: MotoOption

Re: tileinfo info

Postby Mona » Fri Sep 04, 2009 11:12 pm

jlv wrote:dig=1.0
This sets how much the roost will dig into the ground when track erosion is enabled.

So if --erode 0.2 is in your command line, and dig is 1.0, will it be any different than having --erode 1.0 and dig 1.0?
And if so, what will be different about it?

jlv
Site Admin
Posts: 12321
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: tileinfo info

Postby jlv » Fri Sep 04, 2009 11:17 pm

They're multiplied together.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
DJ99X
Posts: 15461
Joined: Tue Jan 15, 2008 11:36 am
Team: El Chupamobra
Location: Upper Shit Creek, Sans Paddlington

Re: tileinfo info

Postby DJ99X » Fri Sep 04, 2009 11:18 pm

I'd assume that the erode number is multiplied by the dig number. So the dig number is the maximum, and erode number is the fraction.

EDIT: Damn, he beat me too it

Garasaki
Posts: 1949
Joined: Mon Feb 04, 2008 4:33 pm

Re: tileinfo info

Postby Garasaki » Mon Sep 07, 2009 9:17 pm

So how does the existing "texturelist" file play into all of this?

Is it totally obsolete or does the texturelist file tie the tileinfo file into the game...?
Image

DR.MIZ wrote: Keeping something "secret" so you can be "cool" is not making a flourishing community.

Garasaki
Posts: 1949
Joined: Mon Feb 04, 2008 4:33 pm

Re: tileinfo info

Postby Garasaki » Mon Sep 07, 2009 9:26 pm

Question 2

Does the tile texture actually have any affect ingame, as the old way, the tile texture did not matter because it got covered by a decal...
Image

DR.MIZ wrote: Keeping something "secret" so you can be "cool" is not making a flourishing community.

ddmx
Posts: 5264
Joined: Sun Apr 20, 2008 3:36 pm
Team: Epikmx.com
Location: Midland MI
Contact:

Re: tileinfo info

Postby ddmx » Mon Sep 07, 2009 10:19 pm

You could make your dirt tile texture pink polka dots, and no one would ever see it. With that said, a simple brown for mud, green for grass, white for sand, ect ect would work just fine.
The MXS 1%

User avatar
DJ99X
Posts: 15461
Joined: Tue Jan 15, 2008 11:36 am
Team: El Chupamobra
Location: Upper Shit Creek, Sans Paddlington

Re: tileinfo info

Postby DJ99X » Mon Sep 07, 2009 10:42 pm

Garasaki wrote:So how does the existing "texturelist" file play into all of this?

Is it totally obsolete or does the texturelist file tie the tileinfo file into the game...?


Yes, texturefile is obsolete

Garasaki
Posts: 1949
Joined: Mon Feb 04, 2008 4:33 pm

Re: tileinfo info

Postby Garasaki » Tue Sep 08, 2009 12:08 am

ddmx488 wrote:You could make your dirt tile texture pink polka dots, and no one would ever see it.


That's actually very close to what I do, which is why I was concerned people might see it :shock:
Image

DR.MIZ wrote: Keeping something "secret" so you can be "cool" is not making a flourishing community.


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 2 guests