Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read access violation at ResourceData::TranslatePtr #11

Open
AngryCarrot789 opened this issue Nov 16, 2022 · 0 comments
Open

Read access violation at ResourceData::TranslatePtr #11

AngryCarrot789 opened this issue Nov 16, 2022 · 0 comments

Comments

@AngryCarrot789
Copy link

I'm using the latest source of this project, not entirely sure on the zlib version but it's from late 2015. The model i was trying to convert was the buzzard object (update/x64/dlcpacks/patchday8ng/dlc.rpf/x64/levels/gta5/vehicles.rpf), and the exception is thrown while converting buzzard2.yft.

the IndexBuffer has 4 elements, and only the 1st one is non-null, the rest are all nullptr, so when (in the Geometry constructor) it reaches the 2nd element, it tried TRANSLATEPTR2 on a nullptr

Here's the stack trace

ytdydryddyft2txddffcol.exe!ResourceData::TranslatePtr(Ptr & ptr) Line 179	C++
ytdydryddyft2txddffcol.exe!VertexBuffer::VertexBuffer(ResourceData * resData=0x0093eb3c) Line 465	C++
ytdydryddyft2txddffcol.exe!Geometry::Geometry(ResourceData * resData=0x0093eb3c) Line 508	C++
ytdydryddyft2txddffcol.exe!PtrCollection<Geometry>::PtrCollection<Geometry>(ResourceData * resData=0x0093eb3c) Line 213	C++
ytdydryddyft2txddffcol.exe!Model::Model(ResourceData * resData=0x0093eb3c) Line 533	C++
ytdydryddyft2txddffcol.exe!PtrCollection<Model>::PtrCollection<Model>(ResourceData * resData=0x0093eb3c) Line 213	C++
ytdydryddyft2txddffcol.exe!FragDrawable::FragDrawable(ResourceData * resData=0x0093eb3c) Line 657	C++
ytdydryddyft2txddffcol.exe!FragType::FragType(ResourceData * resData=0x0093eb3c) Line 763	C++
ytdydryddyft2txddffcol.exe!model_converter::convert_yft_to_dff(char * srcpath=0x0093f1a8, char * dstpath=0x0093ed34, char * modelname=0x0093ee40) Line 1068	C++
ytdydryddyft2txddffcol.exe!ConvertYFT(char * filepath=0x0093f1a8) Line 72	C++
ytdydryddyft2txddffcol.exe!SearchFiles(const char * lpszFileName=0x002d4538, void(*)(const char *) lpSearchFunc=0x002590f9, int bInnerFolders=1) Line 64	C++
ytdydryddyft2txddffcol.exe!main() Line 87	C++
[External Code]	
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant