Qhimm.com Forums

Miscellaneous Forums => General Discussion => Topic started by: Maki on 2016-05-10 17:02:27

Title: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-10 17:02:27
So... Anyone waiting?


Code: [Select]
        OS: Windows Vista or later
        CPU: 2.4GHz quad-core CPU
        Memory: 2 GB RAM
        GPU: NVIDIA Geforce GTX 450 / AMD Radeon HD 5750 with 512MB
        HDD: 40 GB

What do you think? Is it again Unity port and we will be able to snatch whole source code?
Is it UnrealEngine based? Is it rewritten to PC?
Any FFX fans out there? Personally I have retail version for PS3 and I really like the HD remaster. :3 Recently made 100% trophies.
Is someone here who is going to mod the PC release?

EDIT: FFIX unity port was prepared by Silicon Studio with probably Square Enix source support. It's hard to find any info, but is is possible the same studio prepared FFX-X2-HD-PC2016?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Covarr on 2016-05-10 17:11:10
The PS4 version introduced some new bugs, namely an awful broken RNG and completely missing resume support for music. Both bugs were fixed in a patch later on, but I would not at all be surprised to see them (or other bugs) creep back in.

I have become quite wary of Square Enix's PC ports. Some of them turn out good, but I refuse to get excited for them until I see for certain they have not messed things up.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: IzzacSturnburg on 2016-05-10 17:33:10
I'm definitely interested.  Getting them High Quality models swapped might be a nice experience to.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-10 18:16:14
I heard FFX runs on the PhyreEngine

http://forum.xentax.com/viewtopic.php?f=16&t=11107&hilit=+final+fantasy+x+
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: -Ric- on 2016-05-11 11:39:17
Meh.. after having completed the game on PS2 multiple times, once on the ps2 emulator and twice on the Ps3... I think I'll pass on this one since it won't bring anything new  :(
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: kenichi on 2016-05-11 11:57:54
ı will bought for steam. Just waiting because no price.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Covarr on 2016-05-11 14:49:01
I think I'll pass on this one since it won't bring anything new  :(
Well... assuming it's based on the PS4 version, it will have some newer, better textures than the PS3 version. Not enough to merit another playthrough, but not nothing either.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: nfitc1 on 2016-05-11 17:53:04
Meh.. after having completed the game on PS2 multiple times, once on the ps2 emulator and twice on the Ps3... I think I'll pass on this one since it won't bring anything new  :(
ditto
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Vgr on 2016-05-12 16:10:10
It's live. Probably not gonna buy it, I already have them on the PS3 port and I doubt I'd gain anything playing them on PC (especially since their PC ports are subpar).
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-12 16:13:35
Available NOW. They say Japanese audio with English subtitles isn't possible because of technical issues. Yeah, right. Again modders need to fix their games. Writing something like this make me think that they just recompiled the game for PC and it's indeed phyreEngine. Someone who bought it. How does the files look like? I know there's again some launcher (SquareEnix loves launchers)
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Covarr on 2016-05-12 16:30:42
They say Japanese audio with English subtitles isn't possible because of technical issues. Yeah, right.
This smells to me like licensing problems. The Japanese voice acting industry is yakuza-controlled, and they tend to ruin dual audio for everyone unless it's licensed for such in the first place. That's why it's so much easier to get it for modern games than for modern ports of old games.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tekkie.X on 2016-05-12 17:43:24
This smells to me like licensing problems.

Pretty much this, it's also why the Kingdom Hearts games and even Crisis Core aren't available digitally, some KH music was only licensed for physical distribution and Gackt's likeness can't be used anymore preventing digital sales of CC.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-12 18:04:31
Still too early to get the info how does the files look like (to prove it's phyre indeed or not). Does anyone have info about file structure?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-12 18:52:03
Downloading the game will take a few hours, will post here when it finishes. Kinda stupid that you can speed up normal gameplay but not cutscenes or blitzball...
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: mttiw on 2016-05-12 18:52:43
Still too early to get the info how does the files look like (to prove it's phyre indeed or not). Does anyone have info about file structure?
Not that I know anything about this, but I decided to take a few pictures in hope you're able to identify it.
https://imgur.com/a/7JMmr
Really all I'm hoping for is the ability to swap models back to their PS2 original, maybe modify a few textures, and restore the font back to the way it was.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-12 19:02:25
The new models were reworked, they have more polygons compared to the ps2 ones, the only problem are the face textures they look so lifeless
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-12 19:04:57
Thanks!
Not good. It's clearly some custom engine/modified phyre. MSVCR files says it's for sure Visual C++.
One giant binary file is also very bad. If all the addresses are hardcoded in exe, then modifying anything could be fatal.
However, the magic files look interesting.
Eww... Square...

EDIT: Okay. I'm going to inspect the files soon. It's 30GB, so tomorrow.

EDIT2: Yes, it's phyre. The same file structure as PS3: http://forum.xentax.com/viewtopic.php?f=16&t=11107

EDIT3: The PS3/PS4 release used PSARC file. PC uses some "VBF" files. Are they the same?

EDIT4: FinalFantasyModding community on Steam already released JAP voiceover mod
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-12 20:35:55

EDIT4: FinalFantasyModding community on Steam already released JAP voiceover mod

http://steamcommunity.com/app/359870/discussions/0/364041517007201631/
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: gjoerulv on 2016-05-13 00:33:29
Ugh, one have to buy X-2 too? No thanks, I lived through that horror once before.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Diaz06 on 2016-05-13 10:14:44
Do you think that we will be able to mod the game like FF7 ?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Topher on 2016-05-13 14:36:03
If you want to extract files from the VBF you can decompile the launcher and get the VirtuosBigFileReader class which can extract the files BUT it uses a hash table so you need to know the file names to extract data. I have a simple tool that will attempt to extract files based on a dictionary, will release in the next day or so
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-13 15:11:05
We could use that Lord Ramza. :3


Okay. I have the files:

FFX&X-2_LAUNCHER.exe is:
 Visual C# (That's cool)

FFX&X-2_Will.exe, FFX.exe, FFX-2.exe:
  Std Compile, C++ compiler - MS Visual Studio 2012 [DebuG] [ Win Vista ]

The MAGIC files in /magicFiles/FFX and FFX2 are in fact:
  Microsoft Visual C++ ver. ~6.0~7.10 - Linker 11 - Visual 2012

Even MANIFEST survived:
Code: [Select]
FILEVERSION    1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEFLAGSMASK  0x3F
FILEFLAGS      0x0
FILEOS         VOS_NT_WINDOWS32
FILETYPE       VFT_DLL
FILESUBTYPE    0x0
{
  BLOCK "StringFileInfo"
  {
    BLOCK "000004b0"
    {
      VALUE "CompanyName",       "SQUARE ENIX CO., LTD."
      VALUE "FileDescription",   "FFX magic_0003"
      VALUE "FileVersion",       "1.0.0.0"
      VALUE "LegalCopyright",    "© 2001-2004,2013-2016 SQUARE ENIX CO., LTD."
      VALUE "OriginalFilename",  "magic_0003.dll"
      VALUE "ProductName",       "magic_0003"
      VALUE "ProductVersion",    "1.0.0.0"
    }
  }
  BLOCK "VarFileInfo"
  {
    VALUE "Translation", 0x0, 1200
  }
}

Export of magic_0003.dll (FFX):
Code: [Select]
          Functions counter : 0002 decimal - 0002 hex
0001 - magic_0003.dll  0001  GetEffectOverlayTable   .    .    .    .       00006C90
0002 - magic_0003.dll  0002  InitMagicPRX   .    .    .    .    .    .       00006CB0

+has written debugger info

Can't say more now. Need to put this to both ILSpy and IDA.

EDIT2: VBF files has "SRYK" header.


FFX&X-2_LAUNCHER.exe/String:PathConfig
Code: [Select]
[PathConfig, <?xml version="1.0" encoding="utf-8" ?>
<Paths>
  <IniFile>GameSetting.ini</IniFile>
  <FFX>FFX.exe</FFX>
  <FFXParam></FFXParam>
  <FFX2>FFX-2.exe</FFX2>
  <FFX2Param></FFX2Param>
  <SideStory>FFX.exe</SideStory>
  <SideStoryParam>_ECalm</SideStoryParam>
  <LastMission>FFX-2.exe</LastMission>
  <LastMissionParam>FFX2_LASTMISSION</LastMissionParam>
  <Credit>FFX&amp;X-2_Will.exe</Credit>
  <CreditParam></CreditParam>
</Paths>]

EDIT:
As Lord Ramza mentioned, there is whole code for VBF called "VBFtool".
Voids are:
VBFTool/VirtuosBigFileReader/
   *byte[] GetFileContents(string path)
   *void LoadBigFileFile(string path)

Example:
Code: [Select]
Program.LoadVBFData("MetaMenu/PS3Data/MenuMetaMenu/metamenu.ogg
Paths are MD5 hashed!
Though fear not. All files has to be written somewhere or at least their locations.
Now I'll take a look at those magic files.


Update:
PDB path:
Code: [Select]
R:\hg_code\ffx_magic_w32\source\ps3\ffx\magic\magic_0003\Release\magic_0003.pdbThe PS3 version of this file has .sprx extension.

Okay. I put the EXEs onto IDA, and .... we're home.
Full paths to files and whole game code is in some custom phyre format. I'm not sure yet, I have no info about phyre, but there are A LOT of debug strings for Phyre:Scripting language and extreme amount of debug strings, I mean EXTREME (Imagine FFVIII debug info and multiply it by 10).

Example:
Code: [Select]
.rdata:00B39DA8 00000054 C /FFX_Data/GameData/PS3Data/map/luca/luca01/fp/tex/GCM/13888_19_0_0_128_64.dds.phyre
.rdata:00B3A658 0000004E C /FFX_Data/GameData/PS3Data/yonishi_data/dat_et/bat_eff/et_tex/tex/TexList.txt
.rdata:00B3E35C 00000018 C Need update TextureName
.rdata:00B3E398 0000000F C RenderAfterVFX
.rdata:00B3EE90 00000017 C USE_CHARACTER_LIGHTING
.rdata:00B3F41C 00000019 C CharacterSwitching: %.2f
.rdata:00B3F438 00000005 C azit                   
.rdata:00B3F440 00000005 C bika                   
.rdata:00B3F448 00000005 C bjyt                   
.rdata:00B3F450 00000005 C bltz                   
.rdata:00B3F458 00000005 C bsil                    (...)
.rdata:00B3F594 00000023 C MapSwitching: %.2f fps\nMap Name:%s
.rdata:00B3F5B8 0000000E C Debug Output:                       
.rdata:00B3F5C8 0000000F C Material Name:                       
.rdata:00B3F5D8 0000000A C Group ID:                           
.rdata:00B3F5E4 0000000E C Animation ID:                       
.rdata:00B3F5F4 0000000F C Current Frame:                       
.rdata:00B3F604 0000000A C AutoPlay:                           
.rdata:00B3F618 00000007 C %s%s%d                               
.rdata:00B3F624 00000026 C Character Texture Animation: %.2f fps
.rdata:00B3F64C 0000000D C Motion Mode:                         
.rdata:00B3F65C 00000006 C Loop:                               
.rdata:00B3F664 00000006 C Next:                               
.rdata:00B3F66C 00000011 C Animation Count:                     
.rdata:00B3F680 0000001E C Character Animation: %.2f fps       
.rdata:00B3F6A0 00000010 C Character Name:                     
.rdata:00B3F6B0 0000000A C Map Name:                           
.rdata:00B3F6BC 00000019 C Character Polygon Count:             
.rdata:00B3F6D8 0000000F C Battle Enable:                       
.rdata:00B3F6E8 00000014 C ClothSystem Enable:                 
.rdata:00B3F6FC 0000000B C UI Enable:                           
.rdata:00B3F708 00000010 C MiniMap Enable:                     
.rdata:00B3F718 00000010 C Show 4:3 Frame:                     
.rdata:00B3F728 0000001F C Thunder Plain Treasure Enable:       
.rdata:00B3F748 0000000E C Game Section:                       
.rdata:00B3F758 00000016 C Saveload fake slot :                 
.rdata:00B3F770 00000014 C Disable CRC check:                   
.rdata:00B3F784 00000016 C Achievements Reset :                 


and loads of more!


Debug outputter subroutine:
   .text:006B4CC0 (Unfortunately IDA claims it's unused. Also this sub-routine has no frame info)

The game has no OutputDebugString import... :/

Okay. Looks like we would have to create our own text display. Example listening:
sub_BF4270:
Taking uint_32 Size of *Src is:
Code: [Select]
../../../FFX_Data/GameData/PS3Data/chr/wep/w041/w041.ahwin32
The entry is dynamic. Therefore memory hotpatching at startup is impossible without pointer use.

Okay. I got this:
FF8.exe:
.text:00C255F0

Is:
.text:00C255F0 sub_C255F0      proc near               ; DATA XREF: .rdata:012FE164o
.text:00C255F0
.text:00C255F0 arg_0           = dword ptr  8
.text:00C255F0 arg_4           = dword ptr  0Ch
.text:00C255F0
.text:00C255F0                 push    ebp
.text:00C255F1                 mov     ebp, esp
.text:00C255F3                 push    [ebp+arg_4]
.text:00C255F6                 push    offset aS_19    ; "%s"
.text:00C255FB                 call    ds:printf   <--- Here we have printf std output  8) 8)
.text:00C25601                 add     esp, 8
.text:00C25604                 cmp     [ebp+arg_0], 4
.text:00C25608                 jnz     short loc_C2561A
.text:00C2560A                 call    ds:IsDebuggerPresent <--- :D 8-) 8-)
.text:00C25610                 test    eax, eax
.text:00C25612                 jz      short loc_C2561A
.text:00C25614                 call    ds:DebugBreak   <---  8-) 8-)
.text:00C2561A
.text:00C2561A loc_C2561A:                             ; CODE XREF: sub_C255F0+18j
.text:00C2561A                                         ; sub_C255F0+22j
.text:00C2561A                 pop     ebp
.text:00C2561B                 retn    8
.text:00C2561B sub_C255F0      endp

Okay. I already called AllocConsole, but still the game's printf doesn't show me what it has inside... :/

stdout has to be redirected to console. I found a solution:
freopen("CONOUT$", "w", stdout)
Might try, still a lot of code injection.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: zaphod77 on 2016-05-13 18:04:42
Already spotted one bug. after the first sinspawn fight when you are swimming around it says B: go down.

I actually needed to press A to swim down  no configuration was changed.

do like the "orignal soundtrack" option, though it seems the volume is lower relative to everything else compared to the original game.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-13 18:15:00
Pretty pleased overall with the port. All I'd like to do is swap the lower poly battle and field models with the higher poly cutscene models-- but I'm sure it's too soon to say if that's even within the realm of possibility.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Zara9 on 2016-05-13 19:29:31
hey

why did square enix have to put final fantasy X and x2 all in 1 steam package for

it takes forever to install that way
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: zaphod77 on 2016-05-13 19:31:06
Because it's FFX/X2 HD Remaster. :)

Square simply does not sell remasters stand alone. they always bundle it.

Personally i'm pissed at Kingdom Hearts 2.8 remix, since i already bought 2.5 on ps3...
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Zara9 on 2016-05-13 19:42:19
how come square enix could of not released the games in a standalone package

like final fantasy x in 1 price and final fantasy x 2 in another price

that would of made the install alot quicker for everyone
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Covarr on 2016-05-13 20:12:52
Zara9: They make more money this way. They know a lot of people only want FFX and not FFX-2, but by packaging them together they force people to pay for both of them.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: JBedford128 on 2016-05-13 21:31:41
Personally i'm pissed at Kingdom Hearts 2.8 remix, since i already bought 2.5 on ps3...
KH2.5 and 2.8 don't feature any of the same games. 2.8 has Dream Drop Distance (the 3DS game), a small Birth by Sleep related game, and something Kingdom Hearts X related.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: zaphod77 on 2016-05-14 00:42:28
Oh. that seems a little more reasonable.  Crazy confusing numbering system....


still it's quite the money grab since i'd just be paying for the birth by sleep part.  And 3d without the touchscreen really isn't anything close o the same game.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: IzzacSturnburg on 2016-05-14 02:06:34
Oh. that seems a little more reasonable.  Crazy confusing numbering system....


still it's quite the money grab since i'd just be paying for the birth by sleep part.  And 3d without the touchscreen really isn't anything close o the same game.

Yeah and the Birth by sleep section is actually an extended chapter untold in the door to darkness with Aqua from what i seen in the video. And the PS4 has a touchpad.   :-)

(https://49.media.tumblr.com/7f32b7ceef371082607a3186444ff74e/tumblr_nxvrugRHME1snri7qo1_500.gif)

But it's time for me to stop changing the topic of this thread now. Just wanted to inform you the new's is all!

Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-14 04:32:50
I know there was an old gameshark code that put Seymour in your party permanently. He's already coded with a sphere grid spot and an overdrive and all that, so would such a code be possible on PC through cheatengine or something like that?

EDIT: Anyone know where the game stores the save data? I'd like to try fiddling with it in a hex editor.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-14 07:18:34
See at C:/Users/<your username>/Documents/SquareEnix/Final Fantasy X&X2/Final Fantasy X folder

About your question - yes, it's possible. :)
Just have some time with CheatEngine.
Also, there's LUA command like "AddParty" or something, so you can actually do this via Phyre scripting, but it needs VBF repacking and location of the LUA script that is missing at the moment.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Topher on 2016-05-14 14:04:43
Made a quick n dirty command line tool to extract files from the VBF using a text file containing possible file names.

Download it here (https://github.com/topher-au/VBFExtract/releases/latest) (source code also available)

Have included a filelist.txt with a bunch of filenames grepped from the log file, it is nowhere near complete so please feel free to add to it as you find any new filenames =)
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-14 14:27:49
+1 Lord Ramza! :3

Log file?
FFX logs by default something?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Topher on 2016-05-14 14:52:49
I had a file called OUTPUT.txt in the FFX folder, just seemed to be a log file of everything happening. That's where I got the filenames from. Still got a ways to go yet though ;)
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-14 15:01:03
Really... I was searching for this for hours. I knew there is printf and even was going to redirect stdout to console because I though it's outputting to unaccesible handle... ehh.
Thanks Topher! No need to lose time anymore! :P
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-14 15:35:52
Wasn´t there a phyreengine sdk floating around in the internet somewhere ?

The meshes are in the collada format (.dae) and texture are .dds, but they all have .phyre at the end of it. Has anyone found how the header looks like ?

The new menu files(ESC menu),  the chocobo that appears on the corner, the pause screen and the SQEX logo are in the .swf format, so they should be easy to mod right ?

Audio files are using the .fev format, i tried opening them with fmod studio but no luck
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: mttiw on 2016-05-14 16:03:20
Made a quick n dirty command line tool to extract files from the VBF using a text file containing possible file names.

Download it here (https://github.com/topher-au/VBFExtract/releases/latest) (source code also available)

Have included a filelist.txt with a bunch of filenames grepped from the log file, it is nowhere near complete so please feel free to add to it as you find any new filenames =)
Wow, very cool!
Again, I have no idea what I'm doing, but I found out you can get something out of the dds.phyre files by using a tool called TextureFinder found here: http://forum.xentax.com/viewtopic.php?f=33&t=9358
I put together a collection of very small findings here: https://imgur.com/a/b9HAy
Oh, and it looks like there's a list of all videos inside FFX_Data\GameData\PS3Data\Video\JP\FFX_VideoList.txt and they're all in .webm format to boot!

Anyways,
I also ripped the button textures from the PS2 original, if anyone wanted to do anything with them. Here: https://mega.nz/#!IsVHUZiA!CUwTAI-KROYrcB56PW_1L1Kn8wycvKO7vzOEjuWLqds
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Topher on 2016-05-14 16:28:29
Wow, very cool!
Again, I have no idea what I'm doing, but I found out you can get something out of the dds.phyre files by using a tool called TextureFinder found here: http://forum.xentax.com/viewtopic.php?f=33&t=9358
I put together a collection of very small findings here: https://imgur.com/a/b9HAy
Oh, and it looks like there's a list of all videos inside FFX_Data\GameData\PS3Data\Video\JP\FFX_VideoList.txt and they're all in .webm format to boot!

Anyways,
I also ripped the button textures from the PS2 original, if anyone wanted to do anything with them. Here: https://mega.nz/#!IsVHUZiA!CUwTAI-KROYrcB56PW_1L1Kn8wycvKO7vzOEjuWLqds

I noticed the video file list and I was able to successfully extract some of the videos, but I haven't updated the file list. If you add any files to the file list, pastebin it and link me to it and i'll add them as I update the tool.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-14 17:14:44
Topher, this is all I can get directly from EXE:
http://pastebin.com/rGgPK8Ym

Everything else is... harder, because the path is already splitted like:
Code: [Select]
13824_19_0_0_512_256.dds.phyre (without any path before) or:
Code: [Select]
%s/FFX_Data/Icons/WIN32/
%s/anm/%s.anm
%s/dat00/%s/12288_19.dds.phyre
%s/dat00/%s/14080_19.dds.phyre
%s/dat12/%s/12288_19.dds.phyre
%s/dat12/%s/14080_19.dds.phyre
So... I can't do anything from here...
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-14 17:16:20
@EDIT: Sorry for post-by-post. My mistake. Can't delete my own posts... :/

The new menu files(ESC menu),  the chocobo that appears on the corner, the pause screen and the SQEX logo are in the .swf format, so they should be easy to mod right ?
Exactly!

Audio files are using the .fev format, i tried opening them with fmod studio but no luck

But the music are .OGG or at least the main menu is..

UPDATE:
I got every possible file extension (there may be more, but those are floating next to each other):
Code: [Select]
.PNG
.SAV
.ahwin32
.anm
.bdb
.cgfx.phyre
.chr
.dae
.dae.phyre
.dat
.dll
.float %f , %f , %f , %f\t// ref,0,0,0
.float %f , %f , %f , %f\t// x,y,z,weight\n.float %f , %f , %f , %f\t// theta,phi,len,0
.float %f,%f,%f,%f\n
.fx.phyre
.int %d,0,0,0\n
.lPYm
.lua
.pal
.phyre
.psc
.src

I found no LUA paths, but this:
Code: [Select]
!\\lua\\?.lua;!\\lua\\?\\init.lua;!\\?.lua;!\\?\\init.lua;.\\?.lua
DAE.phyre header is:

RYHPT  (Little endian)

AHWIN32 file contains paths to files used by level.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-14 17:21:07
Theres 1 big file with the music files (ffx_music_bank00.fsb) , then theres 2 other files (ffx_music.fev and ffx_music_PS2.fev), one for the arranged another one for the original.

The ffx_music_ps2.fev has strings that suggest that at least the original music is using the wav format (music_bank/2_12_auron_s_theme.wav)
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-14 18:31:20
Someone is working on a 60 FPS mod

https://www.youtube.com/watch?v=0sS72xXCgck
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Colly on 2016-05-14 19:44:11
It seems there are 71979 files
http://www.balamb.pl/ffx/filelist.zip

Topher, do you have an idea how to import files back properly?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Cupcake on 2016-05-15 00:09:41
Haven't played FF X since ~2002.  Glad to see everyone working so hard at this already.  If anyone has anything they would like me to try, I'm down (always good to have another person to test shit, no?)
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-15 01:52:12
See at C:/Users/<your username>/Documents/SquareEnix/Final Fantasy X&X2/Final Fantasy X folder

About your question - yes, it's possible. :)
Just have some time with CheatEngine.
Also, there's LUA command like "AddParty" or something, so you can actually do this via Phyre scripting, but it needs VBF repacking and location of the LUA script that is missing at the moment.

Thanks, I'll give it a go with CheatEngine while you guys with a bit more knowledge on these file formats slave away lol.

It would be interesting to see if one could use their "AddParty" command (or whatever it is) towards other characters as well, if possible.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Topher on 2016-05-15 10:36:22
Just posted an updated version which includes an internal dictionary that contains the filenames of every file inside the archives. Yes, that's right. Every. File.

Download VBFExtract 0.0.2 Here (https://github.com/topher-au/VBFExtract/releases/tag/0.0.2)
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-15 10:44:44
I'm sorry Tetraspore. There is no LUA scripting in FFX I see... Still I don't know how does the event scripting is parsed on maps.

Also I inspected the dds.phyre format. It's easy:
The DDS texture IS ALWAYS at 0xA4E, and the real filename (.dds) is at: 0x99B.
The DDS texture should be read as normal DDS DXT1 or DXT3. Still can't really find the texture width x height bytes.
However user can using TextureFinder open any texture, see which DXT compression to use at 0xA4A.
At 0xA52 there is uint16 that so far I see is fixed at 2816. Add 4 to it and just display the texture using either 512x512, 1024x1024 or 2048x2048 and shift bytes by 2820.
Example:(http://s32.postimg.org/qhpwssr5f/AAAAA.jpg)

If I could find the the texture width and height then I could code the soft to convert Phyre to DDS and DDS to phyre converter. :3

Topher, create new topic in TOOLS section, so everyone will see it. :)


UPDATE:
You can extract FSB files with:
http://aezay.dk/aezay/fsbextractor/

Working, just tested.


@Back to DDS:
Width: 0x9E7  (DXT1?) / 0x9F0 (DXT5?)
Height: 0x9EB
I'm very close to prepare the DDS. You just need to edit the header, modify it and everything will work as normal DDS.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Cupcake on 2016-05-15 21:31:57
Oh shit, we're just about opened up.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-16 02:11:23
Awesome work! Can't wait to see what happens after textures.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: KnifeTheSky77 on 2016-05-16 06:28:15
This could be pretty neat. I succumbed to SE's addicted cycle of repurchasing the same games over and over, and was pleasantly surprised by how damn good this PC port looks. It is by far and away the definitive version of this game. My only complaint is that the game is locked at 30 FPS.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-16 12:03:55
Someone is working on a 60 fps mod. Don't know how far they'll get, but it's a work in progress.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: mttiw on 2016-05-16 12:22:33
Kaldaien just updated Untitled Project X (http://steamcommunity.com/app/359870/discussions/0/364041517007524857/) to include texture ripping & injection in .dds format.

I'll likely be messing around trying to port various PS2 assets back in.
Turns out most new textures (UI elements & Text in particular) are 4x larger than the original.

Speaking of, does anyone know the name of the font used for subtitles in the original? (https://imgur.com/PuIFoY0)
I believe I found it. Should be "Consolas".

Someone is working on a 60 fps mod. Don't know how far they'll get, but it's a work in progress.
Yeah, he posted an update (https://www.youtube.com/watch?v=2smLwSCpA68) the other day, it's looking great!
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-16 15:46:44
This might be a nitpick, but, is anyone else annoyed  by the delay in the battle menu when switching characters,opening the skills ,special and magic menu and going to the overdrive tab ?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-16 17:35:59
Looks like I don't need to create a soft for texture replacement then   :). Oh, also remember you can use TexMod! It's unique, always-working texture replacement tool that works for any DirectX9. [I haven't tested it although]

EDIT: Oh, FFX is DirectX11 ?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: mttiw on 2016-05-16 18:55:26
Looks like I don't need to create a soft for texture replacement then   :). Oh, also remember you can use TexMod! It's unique, always-working texture replacement tool that works for any DirectX9. [I haven't tested it although]

EDIT: Oh, FFX is DirectX11 ?
Yeah, I'm pretty sure it is DirectX11; TexMod wasn't working at least.

Did you make any success with converting those .phyre files?
Now that proper means of texture injection exist, I'm imagining the next "big thing" will be editting models and the like.

Particularly, I've noticed the demand to revert the party's character models back to the originals.
Comparisons: example_article (http://archive.is/0Nfqt) example_img (https://images.duckduckgo.com/iu/?u=http%3A%2F%2Fi.ytimg.com%2Fvi%2F9qKKCtK6bu0%2F0.jpg&f=1)
If you do manage to figure that out, there's a number of PS2 models already ripped being hosted on the Models Resource. (http://www.models-resource.com/playstation_2/finalfantasyx/)

Regardless, I'm very impressed how quickly things have been happening.
Thanks to all of you!
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-17 21:48:38
This is what Tidus and Yuna looked like a few months before FFX HD came out on PS3

http://cdni.wired.co.uk/1920x1280/d_f/ffxhd2.jpg

https://s-media-cache-ak0.pinimg.com/600x315/e7/d1/83/e7d183434fab59fc2393c2cce9512c1f.jpg

They looked better but it´s still not as good as the ps2 version
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: DLPB_ on 2016-05-17 22:00:21
Oh god that change from PS2 is AWFUL!  Which retard was in charge of doing the models or overseeing the change?  Update the models, but don't change the structure.  That's like a totally different character on some of those pics!
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: KnifeTheSky77 on 2016-05-18 07:09:01
They were probably shooting for a slightly more western look when adding more polys
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Kaldarasha on 2016-05-18 14:35:24
Hmm, but they look more Japanese like, same as they have done it with Cloud. Nevertheless this time they had pretty detailed reference material. Be it the CG movies or be it the great concept art (well actually it's a bit over-detailed).
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-19 04:45:16
I would really like to modify the alpha layer on a lot of the hair in the game. They have a lot of blunt ends that don't transition nicely. I'd like to take some notes from how they did the hair in FFXIII and apply similar techniques to the hairstyles in X. Is this something we can do already with TexMod?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: mariokart64n on 2016-05-20 04:28:53
I can't wait to edit the models, they did an alright job remaking the textures but I'm disappointed in the model reworking they did.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Grumpy_Edge on 2016-05-20 05:48:10
The only thing that annoys me so far is the button prompts are for an xbox controller. Trying to imput Aurons overdrive with a PS3 pad is just annoying I can't seem to get used to it.

If anyone manages to restore the PS2 button prompts I would love you for ever.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: FatedCourage on 2016-05-20 06:49:10
The only thing that annoys me so far is the button prompts are for an xbox controller. Trying to imput Aurons overdrive with a PS3 pad is just annoying I can't seem to get used to it.

If anyone manages to restore the PS2 button prompts I would love you for ever.

http://steamcommunity.com/app/359870/discussions/0/364041517007524857/

Pretty sure this guy has included that in his mod already.
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Grumpy_Edge on 2016-05-20 18:09:20
I very rarely check steam, thanks a lot for pointing that out to me!
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Maki on 2016-05-20 18:20:10
Are you the real mariokart64n? Awesome! I remember downloading the ancient schoolgirl Kairi's model for GMOD and MANY other models.
Back to FFX - The newest steam release has also "freecam.swf" and it looks like it's disabled. Changing offsets should do the trick?

In the spare time:

(http://s32.postimg.org/z7rt5zdhh/Zanarkand_thumb.jpg) (https://www.dropbox.com/s/k6loz0ljw5an8tg/Zanarkand_jpeg.jpg?dl=0)
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: mariokart64n on 2016-05-20 19:42:52
Yeah I was doing porting for gmod, till I got banned from facepunch. Then I got into file I/O and have done a few program on xentax to take 3D models from games into 3DSmax and back.

I'm trying to get the courage to open a FFX model file in a hex editor. Because I remember yaz0r worked on the ps2 version and he said it had used heavy compression. :/

But it would soo incredible if FFX was fully customizable, sound, textures, models, etc just amazing!
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: MetaLink on 2016-05-20 20:19:20
Is it just me or, are the models of Yuna and Rikku from FFX-2 more faithful to the PS2 ones, than FFX  ?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Topher on 2016-05-21 14:30:37
Hey guys, I have started working on adding rebuild support to vbftool. Currently it can rebuild metamenu successfully but there's still a few bytes here and there that need to be figured out before the game will read the files.

If anyone is interested in helping, grab the source code here and have a look (https://github.com/topher-au/VBFTool).
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-21 18:39:47
@Topher looks cool, do you mind if I ask what exactly that does? What is "metamenu" anyway?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Tetraspore on 2016-05-26 06:39:15
Anyone manage to swap the cutscene models with the field/battle models?
Title: Re: Final Fantasy X/X-2 HD on Steam this thursday
Post by: Avalanche on 2016-06-15 13:25:04
Can someone make a guide, what is the easiest way to translate Final Fantasy X steam version?