[FF7PC-98/Steam] FFNx - Next generation modding platform for FF7/FF8

  • Thread starter Thread starter TrueOdin
  • Start date Start date
Status
Not open for further replies.
Can I apply this patch without using FFNx? I only ask because apparently FFNx doesn't work with Win7. The page that is linked there is very... generic and didn't mention FF7 by name.
You can apply the patch at your desire but you may not get the same benefits because there some other internals that are required to work with that. FFNx does work with Win7 just fine, make sure you download the latest release.
 
You can apply the patch at your desire but you may not get the same benefits because there some other internals that are required to work with that. FFNx does work with Win7 just fine, make sure you download the latest release.
Oh you actually did implement a win7 fix already? I totally did not see you mention that anywhere I will change that information in the guide I have still been telling people to use v1.6.1 for win7  :-[
 
Oh! Yeah, that's what I was confused on, too! I'll try the whole kit and kaboodle, then!
 
So, I tried following OatBran's guide, and unfortunately FF7 now looks and runs like garbage =/ The screen is stretched (even though I have preserve aspect ratio set to "yes"), and everything is low-rez and pixelated (even though I can tell it's loading the high-res texture packs). The AA isn't working, even though I have that set, and even the music now sounds worse =/ It takes extra time to loads scenes (field to battle, battle to EXP up screen, exp up screen to field, field to menu, etc). It's displaying the version number and rendered in the top left, which is distracting... Any idea what I may have done incorrectly? The only thing I can think is that I'm running windows 7, but you said that shouldn't be an issue, so....
 
So, I tried following OatBran's guide, and unfortunately FF7 now looks and runs like garbage =/ The screen is stretched (even though I have preserve aspect ratio set to "yes"), and everything is low-rez and pixelated (even though I can tell it's loading the high-res texture packs). The AA isn't working, even though I have that set, and even the music now sounds worse =/ It takes extra time to loads scenes (field to battle, battle to EXP up screen, exp up screen to field, field to menu, etc). It's displaying the version number and rendered in the top left, which is distracting... Any idea what I may have done incorrectly? The only thing I can think is that I'm running windows 7, but you said that shouldn't be an issue, so....
That sounds like a lot of things that went wrong. I'd say just jump on Discord and we will be happy to help.

Until then those are my personal suggestions:
1) Make sure you install the game on an internal HDD ( no USB attached HDDs, or if any, make sure it's at least USB 3.0 )
2) Make sure you GPU driver settings are not using "fancy" settings. Better reset them to stock and then run the game with FFNx
3) Try the game with FFNx only, default cfg file and vanilla. It will look like how the game came out but it's the best way to check if the game runs smoothly.
4) Once you start to install mods using 7th 2.x, make sure you read the FAQ section. And use official FFNx installation steps. Run the game without mods but through 7h. If it starts with FFNx then you're good.
5) Start to mod the game gradually. Try on each step and make sure the game runs fine. If not, then starts to toggle the last downloaded and so on. Until you find out which one it is.

It works fine as said on Windows 7 ( which is the minimum target version for FFNx ) up to the latest Windows 10 May 2020 update.
 
Please make sure to give me and NFITC1 credit for the 60fps you are adding to source if it's based on or using the Hext file I released.  Cheers.  If using interpolated files, also give Obesebear credit.
There's no 60 FPS patch for battles on the source code yet, but if it will happen I'll let you know.

Likewise please do remember to release your fork source as well.

Cheers.
 
Hey Trueodin

Just a quick question here, will i be able to play the ff7 NT mod on your FFNX plugin Mod at all?
 
Hey Trueodin

Just a quick question here, will i be able to play the ff7 NT mod on your FFNX plugin Mod at all?
This is up to Sega Chief :) You need to ask him. AFAIK he has planned that, but I'm not sure when it will happen.
 
Your shader settings are wrong, so your FMVs are playing without full 0-255 range (so black is not black).  This was fixed a while back in Reunion by changing the shader file - but your shaders are different.  Definitely something to look into.  You'll need a properly calibrated monitor to see this and also need to set graphic card to use full range in main graphic control panel.


Reunion yuv.frag

#version 110

uniform sampler2D y_tex;
uniform sampler2D u_tex;
uniform sampler2D v_tex;

uniform bool full_range;

const mat3 rgb_transform = mat3(
   1.0,    1.0,   1.0,
   0.0,   -0.344, 1.77,
   1.403, -0.714, 0.0
);

void main()
{
   float y = texture2D(y_tex, gl_TexCoord[0].st).x;
   float u = texture2D(u_tex, gl_TexCoord[0].st).x - 0.5;
   float v = texture2D(v_tex, gl_TexCoord[0].st).x - 0.5;
   
   if(!full_range) y = (y - (1.0 / 255.0) * 16.0) * (255.0 / (255.0 - 16.0));
   
   vec3 yuv_color = vec3(y, u, v);
   vec4 rgba_color = vec4(rgb_transform * yuv_color, 1.0);
   gl_FragColor = rgba_color;
}
 
Last edited:
_snprintf(dds_name, sizeof(png_name), "%s/%s/%s_%02i.dds", basedir, Mod_ID, name, palette_index);
   _snprintf(png_name, sizeof(png_name), "%s/%s/%s_%02i.png", basedir, Mod_ID, name, palette_index);

Looks suspicious? 

(dds_name, sizeof(png_name)


-- Additionally, png loading times are around 4x as long as they were under aali's opengl code.  So something is making it take a long time to load compared.
 
Last edited:
-- Additionally, png loading times are around 4x as long as they were under aali's opengl code.  So something is making it take a long time to load compared.
Do you use compress_textures option in Aali's OpenGL on your benchmark? You can use DDS directly instead of PNGs to improve performance.
 
png remains for compatibility but it's not optimised at all (also because the driver search for a dds and only if not here search for a png file).
png is useless compared to dds in ff7 even with high quality background like jusete's ones.
so go for dds you'll be happy with it ^^
 
The difference between the drivers is that FFNx uses bimg and bgfx to create the texture, and Aali's driver uses libPNG directly without bgfx.
It is possible that something is wrong either in how we use these libs or inside bimg/bgfx. Maybe address this will also speedup DDS, dunno
 
The difference between the drivers is that FFNx uses bimg and bgfx to create the texture, and Aali's driver uses libPNG directly without bgfx.
It is possible that something is wrong either in how we use these libs or inside bimg/bgfx. Maybe address this will also speedup DDS, dunno
TrueOdin said on Discord that he has found bugs in bgfx's engine and submitted patches upstream.  Whether or not any of those bugs address this, though, I'm not sure.
 
The difference between the drivers is that FFNx uses bimg and bgfx to create the texture, and Aali's driver uses libPNG directly without bgfx.
It is possible that something is wrong either in how we use these libs or inside bimg/bgfx. Maybe address this will also speedup DDS, dunno
I've already clarified it here, in order to avoid duplicating the effort: https://github.com/julianxhokaxhiu/FFNx/issues/56#issuecomment-638129028

Let's see where this goes :)
 
DDS will be used, but PNG support in current FFNx is not fit for purpose.  It's excruciatingly slow and in fault, which definitely needs to be looked at.  If not- I'd say PNG support should just be removed.
Why? PNG is a failsafe for people using existing mods. But DDS is suggested and the way to go. When all the mods will be DDS only, then I guess that will be the time to deprecate the PNG layer. Until then it will stay in place.
 
The load time is too slow to be usable.  With the battle PNGs alone, the game pauses for 0.25 - 1 second every time an action is made.  Field screens take 5 seconds to load every time.  With Aali's - it was no delay in battle and very little in field.
Feel free to not use FFNx if you judge is not good enough for your own use case. I'm tired of this attitude. Either you don't want to understand or you want to create a thread where you just complain about FFNx. Either way, you're not forced to use it. If you prefer Aali DLL use that one.
 
I am reporting to you a bug.  One that makes PNG loading unusable.  You either fix it or you don't - I won't be using PNG because no one can with latest FFNx and hope to play the game.
And I already replied three threads above why this is happening, that I am working on it. I also replied to your own issue on GH. You should have received a notification about it.

Everyone is using DDS textures with FFNx because of many improvements going on behind the scenes. Is not only about "speed", is about everything that has to do with GPU memory, RAM, GPU cycles, etc.
 
That's fine.  If you're working on it - so be it.  You replied:Why?

To my earlier query.  You made no mention of actively working to fix it here.
I'm not actively working on it because, as you said too, it's going to be deprecated. So the less effort we put on this, the better it is. PNG textures should just fade away. Until then, you can still load them, despite being "slower" than DDS. This means that you should convert all of your textures to DDS, and most of the community is now well aware of this, as well as conversion tools done by Satsuki. Just hop on the train and forget about PNGs.
 
Status
Not open for further replies.
Back
Top