LIGHTNING RETURNS: FINAL FANTASY XIII

LIGHTNING RETURNS: FINAL FANTASY XIII

View Stats:
SkacikPL Dec 14, 2015 @ 4:25pm
Quick tool for replacing 1920x1080 with (almost) any resolution you want
Somebody discovered proper offsets for .exe patching, as not everybody has or wants to use hex-editors i've quickly put together a tool that does that for you.

For now it only supports replacing 1920x1080 with other 4 digit resolutions, since other resolutions will require removing or adding to the executable, which may or may not work.
For now, enjoy the initial release.
Kudos to whoever found the offsets.

I guess the usage is as simple as it can be, simply select your LRFF13.exe and set your width/height in the text boxes, then click "PATCH IT!".
If you still feel you can screw this up, make sure to make a backup of the .exe prior to messing with it in any way.

You can get it from here:
http://skacik.pl/index.php?option=com_phocadownload&view=category&id=3&Itemid=119

Update, please read:
Until i'm back to my working PC in January, you need to use external config file provided on my website to make the tool patch newest version of the game correctly (it'll still replace 1920x1080 resolution).

http://skacik.pl/index.php?option=com_phocadownload&view=category&id=3&Itemid=119
Last edited by SkacikPL; Dec 26, 2015 @ 11:55am
< >
Showing 1-15 of 80 comments
wsgroves Dec 14, 2015 @ 4:46pm 
Thank You.
Sh1nRa358 Dec 14, 2015 @ 5:06pm 
3840x2160
4096x2304

neither works. it patches but is still in 1080p. I can still see jaggies and whatnot on the floor and reshade initiation dialogue still the same size (would be smaller if rez was higher).

Does it rely on registry entries?

The 3840 rez is my DSR rez. If I keep my desktop rez at 1080p, nothing seems to change.

If I change my desktop rez to the 3840 rez, the reshade dialogue gets smaller which makes you believe it's working, but when you go in-game, the jaggyness of the floor is worse.

The 4096 rez has no effect either way.

So for me, tool isn't working correctly.

SkacikPL Dec 14, 2015 @ 8:54pm 
Originally posted by Sh1nRa358:
3840x2160
4096x2304

neither works. it patches but is still in 1080p. I can still see jaggies and whatnot on the floor and reshade initiation dialogue still the same size (would be smaller if rez was higher).

Does it rely on registry entries?

The 3840 rez is my DSR rez. If I keep my desktop rez at 1080p, nothing seems to change.

If I change my desktop rez to the 3840 rez, the reshade dialogue gets smaller which makes you believe it's working, but when you go in-game, the jaggyness of the floor is worse.

The 4096 rez has no effect either way.

So for me, tool isn't working correctly.
You will always see jaggies, especially on distant objects, because DOF resolution is always 1280x720.

If you wish to do a real test ,then you can look for cheat engine table and see whether the resolution really stays at 1080.

You also may need to manually select highest resolution again, for the game to actually apply the new changed resolution, though that shouldn't be happening on a "clean" executable.
Last edited by SkacikPL; Dec 14, 2015 @ 8:56pm
Sh1nRa358 Dec 14, 2015 @ 9:51pm 
I was in the first area right before the first boss of the game. So there really isn't anything distant for you are in a hallway. All the jaggies are close up on the character and on the character herself. I'll try to select the rez again though.

Yes, it's a clean exe.

Also, the tool doesn't detect my highest rez. With dsr, other games detect highest rez of the 3840 rez even though my desktop rez stays at 1080p. Well, the tool saying that highest rez detected is still 1080p even when I have the 3840 rez on standby.

Edit: okay, it detected the real max rez once the game started. The lines on the floor near the character and far still get jaggied at an angle though. So perhaps with all the useless effects they added that seem to do nothing, they forgot to add aniso :P

Also, the game now resets to 720p on every start. So I have to keep setting it to 1080p every time I want to play. Checkmark beside 1080p also disappears when selecting 1080p.




Last edited by Sh1nRa358; Dec 14, 2015 @ 10:01pm
SkacikPL Dec 14, 2015 @ 10:21pm 
Patcher detects max resolution supported by game, which would be 1920x1080 by default. If you're patching LRFF13.exe and it still says that your maximum resolution is 1920x1080 even right after patching, then something goes really wrong here. Maybe try running it as an administrator.
Nonetheless if it says patching succeeded and resolution did not change then I wouldn't expect the game even to run, because in such case it would mean that data got written in wrong place

Also it seems that using advanced scaling gives you even more aliasing than standard option.

Once it shows that detected max resolution is the one you wanted, it has done it's job.
Last edited by SkacikPL; Dec 14, 2015 @ 10:27pm
Sh1nRa358 Dec 14, 2015 @ 11:19pm 
How come you wrote a whole paragraph about what I already noticed which was "Edit: okay, it detected the real max rez once the game started."?

If the first 2 could support 4096, why wouldn't this one?

Any new insight to the other things that I talked about such as graphics resetting on every start? Or the other things?

Kinda defeats the point of using if the same amount of jaggies remain onscreen.
SkacikPL Dec 15, 2015 @ 12:02am 


Originally posted by Sh1nRa358:
How come you wrote a whole paragraph about what I already noticed which was "Edit: okay, it detected the real max rez once the game started."?

If the first 2 could support 4096, why wouldn't this one?

Any new insight to the other things that I talked about such as graphics resetting on every start? Or the other things?

Kinda defeats the point of using if the same amount of jaggies remain onscreen.

It's not related to the game being started at all, it's an executable patch, not a memory patch.
If done correctly it should work perfectly at the first try by patching the executable while the game is NOT running. Trying to patch it while it's running won't work. You can't write into opened file.

It most certainly works and reduces most of the aliasing, but there's nothing we can do about certain buffers being locked to 1280x720

Technically it does support custom resolutions almost as well as prior games, only difference is the awful DOF buffer, which much like first XIII pre-patch has fixed size and would need to be hacked via DX calls interception (unless its size is also stored somewhere in the executable)

As for the resolution reset on each start I have my theory which I'll put to a test once I get home in a few hours
Last edited by SkacikPL; Dec 15, 2015 @ 12:13am
wsgroves Dec 15, 2015 @ 4:55am 
It worked great for me at 4k. I did have to turn scaling on, I think advanced however.
Sh1nRa358 Dec 15, 2015 @ 5:22am 
I just told you though that the patching process was successful. So that means it was patched with the game not running which is pretty obvious.

I set it to 5k. Something is definitely not complete onscreen words and floors are shimmering and aliasing all over. I know it's been set to 5K because the menu bar is smaller and so is the reshade dialogue and I hear by cpu working harder. I'll actually turn on some AA in reshade to see if it makes a difference. Aliasing and shimmering didn't happen with gedo on the other 2 FFxiii games.
SkacikPL Dec 15, 2015 @ 5:48am 
Originally posted by Sh1nRa358:
Aliasing and shimmering didn't happen with gedo on the other 2 FFxiii games.
Blame, Square, not me.

It used to be the same with FF XIII at first, before Durante intervened.
But IIRC he's not going to fix this game - so unless someone else writes a good hack to scale all buffers properly ot Square does that for us - this is all what we get.
SkacikPL Dec 15, 2015 @ 6:42am 
Anyways, i've just uploaded new version, here are some changes:
  • Fixed available resolutions, now selectable range is from 256 to 16384(higher value crashes the game)
  • Upon starting, tool will now detect whether the game is running and ask user to close it before proceeding
  • Using the tool for first time will now make backup of the executable.
  • Offsets have been moved to a settings file, in case anyone wants to try different one or the game is updated and current ones won't work anymore.
SkacikPL Dec 15, 2015 @ 12:14pm 
Bump for visibility.
wsgroves Dec 15, 2015 @ 12:22pm 
Thanks for the update. Still burns my arse that it took u what, couple hours to patch in something that should of been there from the start. So tired of this.
SkacikPL Dec 15, 2015 @ 12:49pm 
Originally posted by wsgroves:
Thanks for the update. Still burns my arse that it took u what, couple hours to patch in something that should of been there from the start. So tired of this.
I was on the righ track since day one, but i forgot basics of data representation. I was looking for actual values instead of hex representations of what would be 1920x1080.

Someone obviously knew better and actually found the place where it's stored in executable.

I merely automatized the process so it can be done much faster and easier, especially for those who don't know anything about hex-editing.
wsgroves Dec 15, 2015 @ 1:54pm 
Yes and its appreciated. A lot easier then cheat engine etc.4
< >
Showing 1-15 of 80 comments
Per page: 1530 50

Date Posted: Dec 14, 2015 @ 4:25pm
Posts: 80