Please help, how do I fix this? "Error reading lighting"

All about making tracks for MX Simulator
Post Reply
MotoDanny
Posts: 12
Joined: Tue Feb 14, 2017 1:20 am
Team: EstacadaRacing

Please help, how do I fix this? "Error reading lighting"

Post by MotoDanny »

I'm far into creating my track, and the game had me re enter my registration code, and reset all my settings, and now my track won't load! Any suggestions?

This is what the game says "Error reading lighting: Unknown identifier 'dynamic'
Bad height field parameters
Error reading heights"
Cody Dawe
Crushed Dissenter
Posts: 48
Joined: Thu Jan 04, 2018 8:37 pm
Team: Next Level Racing

Re: Please help, how do I fix this? "Error reading lighting"

Post by Cody Dawe »

can you post whats inside your lighting file please? put it in code blocks.
jlv
Site Admin
Posts: 14912
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Please help, how do I fix this? "Error reading lighting"

Post by jlv »

Your probably have "dynamic lighting 1" instead of " "dynamic_lighting 1". Spaces and underscores are not interchangeable.
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.
MotoDanny
Posts: 12
Joined: Tue Feb 14, 2017 1:20 am
Team: EstacadaRacing

Re: Please help, how do I fix this? "Error reading lighting"

Post by MotoDanny »

Ok I fixed that! But it still says: "Bad height field parameters" and "Error reading heights"
MotoDanny
Posts: 12
Joined: Tue Feb 14, 2017 1:20 am
Team: EstacadaRacing

Re: Please help, how do I fix this? "Error reading lighting"

Post by MotoDanny »

jlv wrote:Your probably have "dynamic lighting 1" instead of " "dynamic_lighting 1". Spaces and underscores are not interchangeable.
Ok I fixed that! But it still says: "Bad height field parameters" and "Error reading heights"
MotoDanny
Posts: 12
Joined: Tue Feb 14, 2017 1:20 am
Team: EstacadaRacing

Re: Please help, how do I fix this? "Error reading lighting"

Post by MotoDanny »

sneakyKittyGaming wrote:can you post whats inside your lighting file please? put it in code blocks.
Lighting file: sun_vector [ -0.6830 0.2588 0.6830]
sun_color [ 0.607 0.572 .498 ]
ambient [ 0.607 0.572 .498 ]
sky_n @FloatyMX/skybox/sky-n.png
sky_e @FloatyMX/skybox/sky-e.png
sky_s @FloatyMX/skybox/sky-s.png
sky_w @FloatyMX/skybox/sky-w.png
sky_u @FloatyMX/skybox/sky-u.png
sky_env @FloatyMX/skybox/sky-env.png
flare_element [ 0.0 1.0 ] [ 0.5 0.5 0.5 ] 0.75 @glare.png
flare_element [ 0.0 -0.0 ] [ 0.0 0.0 0.125 ] 0.5 @glare.png
flare_element [ 0.0 -0.25 ] [ 0.0 0.125 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.5 ] [ 0.125 0.0 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.9 ] [ 0.0 0.0 0.0625 ] 0.4 @ring.png
flare_element [ 0.0 -0.95 ] [ 0.0 0.0625 0.0 ] 0.5 @ring.png
flare_element [ 0.0 -1.0 ] [ 0.0625 0.0 0.0 ] 0.6 @ring.png
flare_vector [ 0 0.5373 0.8434]
fog [ 0 .48 .58 ] .0001
dynamic_lighting 0
Cody Dawe
Crushed Dissenter
Posts: 48
Joined: Thu Jan 04, 2018 8:37 pm
Team: Next Level Racing

Re: Please help, how do I fix this? "Error reading lighting"

Post by Cody Dawe »

MotoDanny wrote:
sneakyKittyGaming wrote:can you post whats inside your lighting file please? put it in code blocks.
Lighting file: sun_vector [ -0.6830 0.2588 0.6830]
sun_color [ 0.607 0.572 .498 ]
ambient [ 0.607 0.572 .498 ]
sky_n @FloatyMX/skybox/sky-n.png
sky_e @FloatyMX/skybox/sky-e.png
sky_s @FloatyMX/skybox/sky-s.png
sky_w @FloatyMX/skybox/sky-w.png
sky_u @FloatyMX/skybox/sky-u.png
sky_env @FloatyMX/skybox/sky-env.png
flare_element [ 0.0 1.0 ] [ 0.5 0.5 0.5 ] 0.75 @glare.png
flare_element [ 0.0 -0.0 ] [ 0.0 0.0 0.125 ] 0.5 @glare.png
flare_element [ 0.0 -0.25 ] [ 0.0 0.125 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.5 ] [ 0.125 0.0 0.0 ] 0.5 @glare.png
flare_element [ 0.0 -0.9 ] [ 0.0 0.0 0.0625 ] 0.4 @ring.png
flare_element [ 0.0 -0.95 ] [ 0.0 0.0625 0.0 ] 0.5 @ring.png
flare_element [ 0.0 -1.0 ] [ 0.0625 0.0 0.0 ] 0.6 @ring.png
flare_vector [ 0 0.5373 0.8434]
fog [ 0 .48 .58 ] .0001
dynamic_lighting 0
well since your previous issue is solved, then this is no longer needed lol. for the other issue, try replacing each file one at a time with one from another track(for terrain.png make sure the size of the image is defined correctly in your shading/shadingx2 files) until you find which file was corrupted. keep backups.
Wahlamt
Posts: 7934
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Please help, how do I fix this? "Error reading lighting"

Post by Wahlamt »

MotoDanny wrote:
jlv wrote:Your probably have "dynamic lighting 1" instead of " "dynamic_lighting 1". Spaces and underscores are not interchangeable.
Ok I fixed that! But it still says: "Bad height field parameters" and "Error reading heights"
It has to do with your terrain.png or terrain.hf file I think. Is the terrain.png 1025x1025 or 2049x2049? And what's in your terrain.hf file?
MotoDanny
Posts: 12
Joined: Tue Feb 14, 2017 1:20 am
Team: EstacadaRacing

Re: Please help, how do I fix this? "Error reading lighting"

Post by MotoDanny »

Wahlamt wrote:
MotoDanny wrote:
jlv wrote:Your probably have "dynamic lighting 1" instead of " "dynamic_lighting 1". Spaces and underscores are not interchangeable.
Ok I fixed that! But it still says: "Bad height field parameters" and "Error reading heights"
It has to do with your terrain.png or terrain.hf file I think. Is the terrain.png 1025x1025 or 2049x2049? And what's in your terrain.hf file?
My terrain.hf just says "nul" repeatedly, and the terrain png is 2049x2049
Wahlamt
Posts: 7934
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Please help, how do I fix this? "Error reading lighting"

Post by Wahlamt »

MotoDanny wrote:
Wahlamt wrote:
MotoDanny wrote:
Ok I fixed that! But it still says: "Bad height field parameters" and "Error reading heights"
It has to do with your terrain.png or terrain.hf file I think. Is the terrain.png 1025x1025 or 2049x2049? And what's in your terrain.hf file?
My terrain.hf just says "nul" repeatedly, and the terrain png is 2049x2049
This in your terrain.hf file, that's the problem:

Code: Select all

10 1 0 0
This is assuming you have a blank track so far.
MotoDanny
Posts: 12
Joined: Tue Feb 14, 2017 1:20 am
Team: EstacadaRacing

Re: Please help, how do I fix this? "Error reading lighting"

Post by MotoDanny »

Thanks for the help everybody! I got it fixed!
Rastouflate
Posts: 10
Joined: Fri Nov 03, 2017 12:56 pm

Re: Please help, how do I fix this? "Error reading lighting"

Post by Rastouflate »

MotoDanny wrote:Thanks for the help everybody! I got it fixed!
How do you have fixed the problem ?
Wahlamt
Posts: 7934
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Please help, how do I fix this? "Error reading lighting"

Post by Wahlamt »

Rastouflate wrote:
MotoDanny wrote:Thanks for the help everybody! I got it fixed!
How do you have fixed the problem ?
What's your terrain.png, shading.ppm and shadingx2.ppm dimensions and what does your terrain.hf file look like?
Wahlamt
Posts: 7934
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Please help, how do I fix this? "Error reading lighting"

Post by Wahlamt »

Wahlamt wrote:
Rastouflate wrote: How do you have fixed the problem ?
What's your terrain.png, shading.ppm and shadingx2.ppm dimensions and what does your terrain.hf file look like?
Also the 'dynamic' has a space in it, see:
jlv wrote:Your probably have "dynamic lighting 1" instead of " "dynamic_lighting 1". Spaces and underscores are not interchangeable.
Rastouflate
Posts: 10
Joined: Fri Nov 03, 2017 12:56 pm

Re: Please help, how do I fix this? "Error reading lighting"

Post by Rastouflate »

I have resolved the problem my shading was Ok but not my terrain so I just took the terrain.png and put it on another track and it's work
Post Reply