2025-03-26 snapshot

Post anything about MX Simulator here. Please. I'm begging you.
Post Reply
jlv
Site Admin
Posts: 15062
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

2025-03-26 snapshot

Post by jlv »

Changes:
  • Fixed crash when deleting decals.
Huge thanks to sethypeety for making a reproducible test case for this bug!

Windows users: https://mxsimulator.com/snapshots/mx-2025-03-26-1681.exe
Linux users: https://mxsimulator.com/snapshots/mxbin-2025-03-26-1681

Replace mx.exe or mxbin with one of the above files. The default location for mx.exe should be "C:\Program Files (x86)\MX Simulator". Please note that the ".exe" extension is hidden in Windows so the file will just show as an application named "mx". I'd keep a backup of the originals since these aren't well tested.
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.
sethypeety
Posts: 389
Joined: Mon Jul 18, 2016 2:51 pm
Team: SpitFire Aprilia
Location: in your face
Contact:

Re: 2025-03-26 snapshot

Post by sethypeety »

Good to FINALLY have a fix for this, what exactly was causing the crash? Did it even have anything to do with the tread marks?
Image
jlv
Site Admin
Posts: 15062
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2025-03-26 snapshot

Post by jlv »

sethypeety wrote: Fri Mar 28, 2025 1:24 am Good to FINALLY have a fix for this, what exactly was causing the crash? Did it even have anything to do with the tread marks?
The bug was actually triggered when you move the first/lowest decal to a new sector and then delete it.

The game keeps a map of which decals are in which grid sector for the terrain so it can easily draw the decals for a particular sector without drawing the whole list. So when you move a decal, it has to remove it from the sectors occupied by the previous position and add it to the sectors for the new position.

Also, when you delete a decal, it has to renumber everything in the map to reflect that. So if decal 3 is deleted, decal 4 becomes 3, 5 becomes 4 etc.

The bug was that when it removed it from the map, it used the new position instead of the old position, which left references to the decal in the wrong sectors. When you move the first decal, there are references to index 0 that shouldn't be there. When you delete it, it renumbers everything in the map and since there are unexpected 0s in the map, they get renumbered to -1. Later on it tries to build a vertex buffer using that invalid index and crashes.
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.
Zooted
Posts: 9
Joined: Tue Dec 07, 2021 3:12 am
Team: Privateer

Re: 2025-03-26 snapshot

Post by Zooted »

Are we ever going to get a meaningful update?
jlv
Site Admin
Posts: 15062
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2025-03-26 snapshot

Post by jlv »

Zooted wrote: Mon Apr 07, 2025 7:52 pm Are we ever going to get a meaningful update?
Sorry! I know it's been slow lately.
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.
reddead422
Posts: 354
Joined: Sun Mar 02, 2014 12:54 am
Team: Wildside Designs

Re: 2025-03-26 snapshot

Post by reddead422 »

jlv wrote: Wed Apr 09, 2025 2:48 am Sorry! I know it's been slow lately.
it's okay sweet pookie, we love you and thank you for all you have already done for this community! Excited for that lighting update too :wink:
sethypeety
Posts: 389
Joined: Mon Jul 18, 2016 2:51 pm
Team: SpitFire Aprilia
Location: in your face
Contact:

Re: 2025-03-26 snapshot

Post by sethypeety »

Wait, how is fixing a bug often preventing track builders from building tracks not worthwhile?
Image
Zooted
Posts: 9
Joined: Tue Dec 07, 2021 3:12 am
Team: Privateer

Re: 2025-03-26 snapshot

Post by Zooted »

sethypeety wrote: Thu Apr 10, 2025 5:07 pm Wait, how is fixing a bug often preventing track builders from building tracks not worthwhile?
Is it not possible to use a different snapshot as a workaround?
sethypeety
Posts: 389
Joined: Mon Jul 18, 2016 2:51 pm
Team: SpitFire Aprilia
Location: in your face
Contact:

Re: 2025-03-26 snapshot

Post by sethypeety »

Zooted wrote: Thu Apr 10, 2025 7:56 pm Is it not possible to use a different snapshot as a workaround?
You could, however if I'm not mistaken it's been a problem since the tread marks were added (which was multiple multiple ago) and if we got a title update before it got fixed you would have to build tracks on an outdated snapshot on an outdated version of the game. So while meaningless to most people it's good to fix these bugs rather than have us work around them.
Image
dylangatlin876
Posts: 136
Joined: Fri Nov 13, 2015 2:28 am
Team: GHCI

Re: 2025-03-26 snapshot

Post by dylangatlin876 »

jlv wrote: Wed Apr 09, 2025 2:48 am
Zooted wrote: Mon Apr 07, 2025 7:52 pm Are we ever going to get a meaningful update?
Sorry! I know it's been slow lately.
anychance we will get dynos again? I know its not that important but been around since 2015, so been a part of a few. Didn't know if you had plans of it or not
DGAT <3
VUSTTOS
Posts: 838
Joined: Sun Jan 17, 2016 2:02 am
Team: Spanish MX Gamers
Location: GPS not working

Re: 2025-03-26 snapshot

Post by VUSTTOS »

What do you think about the new Motocross The Game, JLV?
Alex V111#1017
Image
jlv
Site Admin
Posts: 15062
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2025-03-26 snapshot

Post by jlv »

It looks impressive!
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.
MX4EVER
Posts: 262
Joined: Thu Sep 13, 2012 5:49 pm
Team: MXS-Concept.com
Location: Switzerland
Contact:

Re: 2025-03-26 snapshot

Post by MX4EVER »

jlv wrote: Sun Apr 20, 2025 2:41 amIt looks impressive!
Thank you master :oops:
Niko | Mouk Lab | Admin of MXS-Concept // MyMXB // MXBikes-Shop // among others. | YouTube
Image
Post Reply