Important information: this site is currently scheduled to go offline indefinitely by end of the year.

[PS3/ X360] GTA V resource research & software development

The Original Forum. Game archives, full of resources. How to open them? Get help here.
redman
advanced
Posts: 71
Joined: Tue Jan 12, 2010 2:06 pm
Has thanked: 20 times
Been thanked: 4 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by redman »

mhm, do i have to import every mip map?
my game always crashes after replacing a txd (import as file).
EcheloCross
veteran
Posts: 88
Joined: Sat Feb 27, 2010 6:57 pm
Has thanked: 40 times
Been thanked: 77 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by EcheloCross »

I replaced all mips in the low res, and high res didn't have mips. Low res have 3 mips in the .xtd I modded. I just directly modded the data instead of using the texture editor. Similar to the way it was done in this post.

viewtopic.php?p=81727#p81727

Chances are if you don't replace the mips, you'll see the original texture once the object gets further away from the camera.
Idk if all .xtd import properly, I haven't got an error yet, What .xtd are you trying to inject redman?
kornto
advanced
Posts: 61
Joined: Sat Jun 23, 2007 9:53 pm
Has thanked: 6 times
Been thanked: 37 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by kornto »

EcheloCross wrote: Btw, koronto, I had to comment out 1 line of code to get part0.rpf to re-pack. I was getting out of memory error. (idk if anyone got this error)

Code: Select all

private void WriteData(Stream stream, List<Entry> entries, Dictionary<Entry, Structs.RPF7EntryInfoTemplate> entriesInfo, IProgressReport progressReport = null)
        {
            if (progressReport != null)
            {
                //progressReport = new SubProgressReport(progressReport, entries.Sum(entry => entry is FileEntry ? ((FileEntry)entry).Data.GetSize() : 0));
            }
thanks for reporting. fixed. I am not sure how I missed it and broke it.
EcheloCross
veteran
Posts: 88
Joined: Sat Feb 27, 2010 6:57 pm
Has thanked: 40 times
Been thanked: 77 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by EcheloCross »

Hey kornto, I am having trouble with part0\levels\gta5\generic\gtxd.rpf. When I export the entire contents of it, I get this error.
Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
It is happening in PartialStream.cs at _stream.Read. The last file extracted before it errors from the whole gtxd.rpf was ch102seabed+hi.xtd.

Code: Select all

public override int Read(byte[] buffer, int offset, int count)
{
    if ((long)count > _length - _position)
    {
        count = (int)(_length - _position);
    }
    // My try in making it thread safe
    lock (_stream)
    {
        _stream.Seek(_position + _originalPosition, SeekOrigin.Begin);
        _stream.Read(buffer, offset, count);
    }
    _position += count;
    return count;
}
Thanks for fixing the part0.rpf repack so quickly. :)
kornto
advanced
Posts: 61
Joined: Sat Jun 23, 2007 9:53 pm
Has thanked: 6 times
Been thanked: 37 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by kornto »

EcheloCross wrote:Hey kornto, I am having trouble with part0\levels\gta5\generic\gtxd.rpf. When I export the entire contents of it, I get this error.
Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
It is happening in PartialStream.cs at _stream.Read. The last file extracted before it errors from the whole gtxd.rpf was ch102seabed+hi.xtd.

Code: Select all

public override int Read(byte[] buffer, int offset, int count)
{
    if ((long)count > _length - _position)
    {
        count = (int)(_length - _position);
    }
    // My try in making it thread safe
    lock (_stream)
    {
        _stream.Seek(_position + _originalPosition, SeekOrigin.Begin);
        _stream.Read(buffer, offset, count);
    }
    _position += count;
    return count;
}
Thanks for fixing the part0.rpf repack so quickly. :)
fixed.
redman
advanced
Posts: 71
Joined: Tue Jan 12, 2010 2:06 pm
Has thanked: 20 times
Been thanked: 4 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by redman »

thank you so much dageron & kornto.

Image
Dageron
advanced
Posts: 56
Joined: Mon May 25, 2009 8:22 am
Has thanked: 11 times
Been thanked: 58 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by Dageron »

If someone has problems with mipmaps, please, describe them in details. I still don't know what problems exactly are, so need info about all your steps (also better to provide me an original *.xtd/*.ctd and edited one). That would be helpful :) .

Last time I spent on Midnight Club: Los Angelos, not GTA V. You may check some info here. Returning to V now.
redman
advanced
Posts: 71
Joined: Tue Jan 12, 2010 2:06 pm
Has thanked: 20 times
Been thanked: 4 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by redman »

do i have to import every mip level manually? when i import a dds with mips only level 1 is imported and the others still the same.
Dageron
advanced
Posts: 56
Joined: Mon May 25, 2009 8:22 am
Has thanked: 11 times
Been thanked: 58 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by Dageron »

Yes, each level should be imported separately.
redman
advanced
Posts: 71
Joined: Tue Jan 12, 2010 2:06 pm
Has thanked: 20 times
Been thanked: 4 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by redman »

any chance to improve this or at least import the image as png?
it's hell of a work to resize every image. working on a clothing mod and without mesh script/uvw map it's not so easy to make good textures.


or is there a easier method to resize a dds file automated? like a thumbnail creator.

thank you.
EcheloCross
veteran
Posts: 88
Joined: Sat Feb 27, 2010 6:57 pm
Has thanked: 40 times
Been thanked: 77 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by EcheloCross »

redman wrote:or is there a easier method to resize a dds file automated? like a thumbnail creator.
You may be able to make your dds with DDS Utilities from here: https://developer.nvidia.com/legacy-texture-tools

I haven't tested, but it might be worth a try.
michalss
Moderator
Posts: 954
Joined: Sun Mar 27, 2011 8:42 pm
Has thanked: 10 times
Been thanked: 161 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by michalss »

redman wrote:any chance to improve this or at least import the image as png?
it's hell of a work to resize every image. working on a clothing mod and without mesh script/uvw map it's not so easy to make good textures.


or is there a easier method to resize a dds file automated? like a thumbnail creator.

thank you.
I could write DDS parser for you. What does it meas is that from Mipmaps DDS it will create Many DDS files as many you have maps in original DDS with or without DDS header :D Not sure if i would be able to do it for all of compressions but im sure im able to do it for DXT1,5,3,RGA..
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/
oG Goddess
n00b
Posts: 13
Joined: Fri Sep 20, 2013 3:52 pm
Has thanked: 1 time

Re: [PS3/ X360] GTA V resource research & software developme

Post by oG Goddess »

Had anyone used paint.net to replace xtd files? I tried this and the images in the loading screens turned white. When I did try replacing an image in daegerons program it made the image smaller and disoriented. I daved it as a gxt1. Any help will be great.
CityPoke912
beginner
Posts: 30
Joined: Sat Sep 18, 2010 8:20 pm
Has thanked: 1 time

Re: [PS3/ X360] GTA V resource research & software developme

Post by CityPoke912 »

Any news about LibertyV & other tools?
SonofUgly
beginner
Posts: 21
Joined: Sat Feb 25, 2012 2:43 pm
Has thanked: 6 times
Been thanked: 2 times

Re: [PS3/ X360] GTA V resource research & software developme

Post by SonofUgly »

Anyone tried editing the in-game websites yet? Copying and renaming files will create a new site, and the images in the .ctd/.xtd are easy enough to edit with Dageron's texture editor:
Image
But what about the .gfx files? It says <xmp:CreatorTool>Adobe Flash CS4 Professional, but flash wont open them. Editing the files manually in notepad++ results in an error:
I figured editing a website would be an easier way of getting any vehicle in the game than making a trainer :P

Edit: Nevermind, they're just scaleform files, using something like JPEXS FFD does the job. More info.
Last edited by SonofUgly on Sun Nov 24, 2013 9:44 am, edited 1 time in total.
Post Reply