Giter Site home page Giter Site logo

dk22pac / v2saconv Goto Github PK

View Code? Open in Web Editor NEW
86.0 13.0 31.0 141 KB

GTAV > GTASA resource converter. Converts YTD/YDR/YDD/YFT resources to DFF/TXD and generates COL files.

License: MIT License

C++ 70.50% C 29.39% Objective-C 0.11%
gta5 gtav gtasa dff txd renderware rage-engine resource-converter gta-sa gta-san-andreas san-andreas

v2saconv's Introduction

v2saconv

GTAV > GTASA resource converter. Converts YTD/YDR/YDD/YFT resources to DFF/TXD and generates COL files.

Latest version: 06.01.2016 Download with binaries

Features:

Converting vehicles with separated components, body colors and lights

Img1

Converting a vehicle as a skinned model

Img2

Converting skinned models

Img3

Converting normal map data (was removed from current release since a stable normal map plugin is still not available for GTA SA)

Img5

Generating day lighting (prelight) for map models

Img6

Generating night lighting (NVC) for map models

Img7

Converting 2dfx lights

Img8

Generating breakable models

Img9

Generating .col files with auto material matching

Img10

Thanks to: All guys who researched RAGE formats, listener, OpenIV team, Dageron, aru, tgascoigne and others.

Thanks to M4K3, ThirteenAG, Automan for support/help.

v2saconv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

v2saconv's Issues

.ytd file converting to .dff

Hi i'm using the converter to convert a ytd file to .dff. However it converts the file to .txd file. Is there any way to convert to a dff instead ?

Broken UVs with every file I convert

I need help. Every YFT I convert has broken UVs.
image
I can't figure out what is causing this, but looking from the UV editor it appears that the UVs are unusually scaled.
image
It would be nice if this issue was fixed, but I'm not sure if this project has been abandoned or not.

How to compile it to exe

Can I execute .h files separately in c++
Can I make all files into exe
please reply and I love the mod you made the map radar keep it up
Waiting for your reply

Will not rip from MODs

Trying to get the files from a GTA mod and the extractor gets stuck on converting the YDD.

Issue when converting modded vehicles

Heya - this tool seems cool, cause I don't have V and I want to convert some modded vehicles to SA for my enjoyment.

TXD got converted fine without errors, model not so much.

This is the "replace" version, I can't figure out how to extract the RPF from the "addon" version.

I'm testing this tool with the mod "1965 Gladiator V1.7"

Low model got converted fine - for some strange reason it's still one part even though I do have the vehicle settings on.

High model, the vertices got converted fine, the faces are scrambled. Again, one part.

I can explain in further detail if you want me to.

Read access violation at ResourceData::TranslatePtr

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]	

remove getchar();

So we don't need to confirm after "Conversion finished." message. Really annoys when batch converting a lot of models.

Crash when

Some files crash the converter
When i open the players parts the program crash.
Example of one file that crash the converter:
OpenIV/GTA V/x64v.rpf/models/streamedpeds_players.rpf/player_one/head_000_r.ydd

But all parts (or a least the parts that i tried to convert) of the 3 players crashs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.