[How-to] Fixing invalid Poly Edge references

We’ve all been there - you make your new shiny server, put in some custom maps and whatnot, and the next thing you know - your F8 console is literally overflowing with scary messages such as these:


(not my picture, took it from a topic on the forum)

Now, a quick disclaimer, this is NOT a bug nor does this log entry indicate of any inherent issues with the asset that will affect gameplay, but it does indicate that an asset was baked incorrectly by its creator. What the message specifically tells you is that your FiveM client fixed the asset in real-time while loading to make it work, as it was broken otherwise.

The process of fixing an asset is amazingly simple, and here you go:

  • Download the latest release of Smallo’s YMAP&YBN Mover tool
  • Read the documentation regarding the current version of the tool on where the Poly Edge Fixer utility is located, then throw all of your YBN files in there for fixing. The tool will now process all of the files you put in and fix any faulty references.
    • YDR/YDD files with embedded collisions should be processed as well, especially if they throw issues like in the above screenshot, in the same window and it may all be done at once

Yeah, like I said, simple! :smiley:

Note on Asset Escrow-protected items

Please note the following: Files protected with the Asset Escrow system (ones you download from your account’s Keymaster page after purchase via Tebex) cannot be fixed due to the encryption. If an Escrow-protected asset has poly edge or other issues, your only recourse is to contact the author - the person with the original, unencrypted files - and ask them to fix it!

Why bother?

  1. Performance reasons (no real-time fixing faulty assets anymore → marginally faster loading times for all players, both initial and hot asset loads on demand)
  2. Stability (reduced chance of crashing, especially if your server has a bunch of custom MLOs and whatnot, or particularly large collision files)

Should you make backups of the original files?
It’s best to do so, yes. There have been a few cases reported in this thread of specific assets being broken by this tool, however it’s less than one asset in several thousand on average so it’s extremely rare; that said, not having backups generally is not a good idea unless you’re on a throwaway/testing kind of environment, so make sure to have them anyway if you can.

I understand that this guide is quite simple and all, but considering the current spread of the situation described I believe it’s in our best interest to spread this one around. Who doesn’t love a squeaky clean client log file? :wink:

P.S. To any of the MLO / Map makers, the latest GIMS Evo versions should have fixed the cause of the log entries, but it’s still worth running all your assets through the app before posting them. It takes basically no effort from you and leads to a better-quality asset, so why wouldn’t you do so?

28 Likes

You only need to do it on the ybn files not ydr ydd ytd etc. Otherwise thank you for taking the time to help others that didn’t know how to fix this issue.

1 Like

Actually you might need to do it on ydr’s or ydd’s that have embedded collisions.

1 Like

I have only seen the message related to ybn files in my experience. When I utilized your tool I just did all the ybn files and it cleared everything up for me with no ill effects, did that several months back. But that is good to know if I do happen to run into issues with embedded collisions.

Yeah, it’s a “better practice” to process the drawable files as well. Worst case scenario that wont change anything at all, no harm done.

1 Like

Makes sense, I just have a shit ton of interiors so for me just doing the 850+ ybn files I have on my server was enough lol.

2 Likes

omg thank you i’ve had these “errors” pop up and didnt know the cause. Thank you very much

1 Like

You’ve done a realy good job :+1:

1 Like

I didn’t know you could also fix .ydr files using this tool. Thanks a lot.

2 Likes

Thanks bro :clap:
This works but doesn’t fix them all

Make sure you fix the .ydr files as well from all the folder and stuff - it’s extremely rare for it to fail fixing something. I also believe that those assets are not faulty by default, so make sure you grabbed that MLO from an official / reliable source.

I forgot to open the Poly Edge Fixer :smile: verything works
thanks

You’d know right off something is wrong because it wont let you put YDRs or YDDs into the “default” window

2 Likes

some maps are buggy

1 Like

To be fair, that is not something that can possibly be caused by fixing polyedge - most likely the adjusted vanilla YMAP file that comes with that interior gets overruled by the same YMAP file in another resource

Before fixing polyedge no have problem
I returned the old ones and everything is fine

how long does it usually take to finish or is it something you just leave running?

2 Likes

Depending on how powerful your PC is and how many items you’re asking it to process, it’s different - for me personally it never takes over a minute even for around a thousand assets, being lower than that on average.

For some reason I add just 1 file and it sits there time elapsing, I have the update too, not sure if it’s my files or program needs a fix?

I’ve tried 10 from various maps too and it just sits there for an hour elapsed so far, no changes to files :S

I know I’m super late to answer but just for future reference, there was an issue with Smallo’s tool I linked that has since been fixed. Be sure to use the latest version of the app.

1 Like