DragonFF
DragonFF copied to clipboard
IPL prop position corrections
This might not even be an issue, but I think it's note-worthy.
Apparently, in 3 and VC there's props in the world, which ignore some of the IPL coordinates at and get overriden at runtime.

This is from one guy over at the Liberty City Countryside mod discord. When you import the 3 and VC maps, occasionally, there's misplaced props. Lamps under the ground mostly.

Apparently it's a lazy fix by rockstar. I have no idea where these corrections are saved, if they even are, so for map import it's a slight problem, as you have to go and manually correct these props. For export it might be fine.
Just letting you know. This technically isn't an issue with the importer, but it manifests as such. I believe this to be unrelated to #13, even though these problems seem similar in nature
Hey,
Nice! The ground z coordinates cannot be calculated without importing the collision files, so I guess import code for that will be needed for fixing this issue, unless you want to use the actual models that are displayed.
Anyway, the list of props seems to be a hard-coded list, so that's something you cannot get from the IDE/IPL flags.
Here's a list for the III objects that do that: https://pastebin.com/4FHfMjZK I'll do one for VC too at some point, but I guess III's will do for now.
Thanks.
How did you get the list? 😃
As you said the GroundZ coordinates are used for the placement, I looked for a function that calls the function to get the GroundZ coordinates. From there I found the list.
(Used Ghidra for looking through the game code)