Qhimm.com Forums

Final Fantasy Forums => Tools => FF8 Tools => Topic started by: Omzy on 2014-06-12 01:11:53

Title: [PC] External Texture Support - Tonberry (v1.5)
Post by: Omzy on 2014-06-12 01:11:53
Tonberry v1.5
External Texture Support for Final Fantasy VIII
*Beta version, please let me know if there is something preventing you from using it


(https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/tonberry.png)      (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/greenarrow.png)             (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/FF8_Tonberry.png)

This drop-in package allows:
I) Support for Hi-Res external textures (field files for now) to 4x original size in an FF8\textures directory
II) Future support for ANY texture (characters, monsters, battles, world map, cards, spells, summons, menus, and just about anything else you can think of)

Instructions (for players):
1. Extract Tonberry_v1.x.rar into your FF8 directory (typically 'C:\Program Files (x86)\Final Fantasy VIII')
2. Make sure to drop in the most up-to-date hash map files, from hashmap_v1.x.rar.
3. Download and place your properly formatted textures from their respective projects into the 'textures' folder (see below)
4. Install VC++ 2010 Redistributable (x86) (http://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe)
5. Play!
6. (Optional) If your Windows installation is not on drive C, change your prefs.txt file 'drive_letter' from C to your drive letter. If you're using textures of different sizes, change 'resize_factor' in prefs.txt.

Formatting Textures (for modders creating texture packs):
1. Create 4x textures with dimensions exactly 4 times the width and 4 times the height of the originals (PNGs supported only).
2. For field files, use PuPu (http://forums.qhimm.com/index.php?topic=13444.0) to export and import your images (PuPu Updated and Working).
3. For non-field textures, PuPu will not work, and they will have to be renamed by hand or custom batch scripts.
4. Most textures won't require this, but field files have pages. If a field texture has a width of 1664 it has 13 pages (each 128x256 => 512x1024) and if it has a width of 1536 it has 12 pages. PuPu will automagically slice them up for you and name each page properly starting with a suffix of _0 and ending at _11 or _12 (_13 to _25 for 4-bit indexed textures).
5. Ensure your textures have the proper folder structure with 'textures\firsttwoletters\texturename\texturefile.png\'. E.g. for bghall_1 => 'textures\bg\bghall_1\bghall_1_0.png' for the first page, 'textures\bg\bghall_1\bghall_1_1.png' for the second page, etc. If you have a texture that doesn't require pages, the format would be the same, except with the page suffix '_0' (note that this has changed). E.g. mc00 (cards) => 'textures\mc\mc00\mc00_0.png'.

Adding Support for Other Types of Textures:
->How Tonberry Works (http://forums.qhimm.com/index.php?topic=15222.0)
As mentioned above, Tonberry currently only recognizes field files. This is because in order to replace textures, it must read the original paletted textures from directx, generate a key that identifies the texture, and then lookup the texture in the '/textures' folder. Generating the key takes a lot of work on my end. I have to have up to 16 versions of each texture colored with each possible palette from the original source files. I've written programs to generate keys for field files, but it will take some time to support each additional file type. If you have a project that demands support for another file type, you can make it happen if you have some basic programming experience. If not, you'll have to convince your fellow modders to do that work for you if I can't.

Here's how to add support:
1. Find the game source files that contain the type of textures you are working on. They might be LZS compressed, have weird file extensions like md5, bin, etc, but they are all binary files of zeros and ones when it comes down to it.
2. Decode the files using the wiki documentation or asking around. Myst6re has apparently decoded most of them, as is evidenced in Deling (sorry if that's negative publicity myst but its true!). Also, contribute new knowledge to the wiki if you can along the way.
3. Find out if the texture type uses palettes (IMPORTANT!)
4. Write a simple program in python/c++/your favorite language that takes the source game files and exports the textures exactly as they are in the file. No need for map files or anything that will map the blocks to the screen, just dump the image data from the file (mostly applies to fields I think).
5. Export every possible paletted version of each texture. This means that if there is an area in the file with palettes, instead of finding which palettes go to which blocks in the image data, literally export an entire image that uses 1 palette, and do that for every palette.
6. Optimize your program to only export palettes that are used. For example, if you have 3 palettes pink, green, and yellow, but the blocks of the file only make references to pink and yellow palettes and never actually use the green palette, that version of the texture will NEVER be loaded to memory anyway, so don't export it.
7. Format your textures in the manner described above but with suffixes for each palette number. For example, palette 12 on mc00 would be mc00_0_12.png. There will be 2 suffixes including the page. For example, for the 3rd page and 8th palette of bggate_1, it would be bggate_1_2_7.png.
8. You now have a directory full of images that is ready to be hashed.
9. RAR it up and send it to me and I should have it working in short order.
10. Be prepared to make mistakes at any point, they are inevitable, but persevere in the name of art!

Examples of paletted texture files (what your output should look like):
(https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/0000000360.png) (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/0000000364.png) (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/0000000370.png)

*Please DO NOT post any direct links to files, always link to this forum thread. Especially, do not make any links to adfly or any other ad site
Download: Tonberry_v1.5.rar (http://goo.gl/4OUaBE) Mirror 1 (http://goo.gl/5CCFWG)
Download: hashmap_v1.3.rar (http://goo.gl/EzvYTM) Mirror 1 (http://goo.gl/OvHwQM)
Download: Tonberry_s1.5.rar (SOURCE CODE ONLY) (http://goo.gl/e49aqS)

*hashmap contains most updated hash files, tonberry contains most updated DLLs*
*My policy on my mods is always that you have complete freedom to take them, use them, modify them, and even release derivative works--just give a line of credit in your release and do not draw any monetary profit from my links or releases. I think if you make something, including a derivative work, it is fine to solicit donations, but I encourage you to retain these same policies of openness for whatever you make so we can always further the modding community on every front.

Credits:
-Matthew Fisher at Stanford University for developing the original d3d9Callback interceptor: http://graphics.stanford.edu/~mdfisher/D3D9Interceptor.html
-Aali for developing the original work that allowed me to replace textures in FF7 (his OpenGL driver and Palmer, which PuPu is based on)
-Myst6re for her Deling field editor, which is quite an amazing tool (http://forums.qhimm.com/index.php?topic=13050.0)
-yarLson and sl1982 for their work on the FF7 field backgrounds, EQ2Alyza for her battle scene enhancements
-Salk for keeping me motivated to stay crunchy (https://www.youtube.com/watch?v=GeIAXlwVlZc)!

*Known issues:
-Memory issues--may crash after extended use. Temporary solution: Get RAMRush (http://www.fcleaner.com/ramrush.htm) and set it to automatically optimize.
-Lag during some summons or other events that resolves by itself
-Possible hash collisions resulting in glitches where random textures are replaced by other textures.
-Works with the Steam release of FF8 only. I don't have any impetus to try to make it work with anything else, but I have posted the source above.

Debug Version
How to use:
Note the 'debug0' folder inside the 'tonberry' folder with category subfolders inside. If you rename this folder to 'debug' (erase the 0), Tonberry will dump all textures into these folders while your game is running. Be careful! You may amass gigs of textures in them if you are not aware and are just playing normally. Have a save prepared at a certain point and only play for a few minutes, depending on your hard drive size. To turn this feature off, simply rename the 'debug' folder to anything else like 'debug0'. Alternatively, you can rename only some of the subfolders to turn specific types off. Subfolder categories:
-unsupported: size/format is not yet supported (256x256 currently only supported)
-nomatch: not yet hashed, but will be in the future with modder help
-nomatch2: hashed once, failed second round of hashing (shouldn't happen)
-noreplace: hashed and intended to be replaced but the new texture failed to load or didn't exist
-replaced: successfully replaced
-error: texture not otherwise accounted for (shouldn't happen)

Next on my agenda:
1. Project Eden, the FacePalmer of FF8
2. Help people build support for other texture types
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Mcindus on 2014-06-12 10:29:42
:O

I'm speechless.

We're not worthy.


ps. - you can use Omega to convert a bunch of the .TEX and .TIM files to BMPs (the ones in menu.fs, anyway) for easy editing without having to write your own program ;)
unless i misunderstood that part...
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: LeonhartGR on 2014-06-12 10:58:24
This is only for the Steam version right?
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Omzy on 2014-06-13 04:23:25
Updated PuPu today to correctly import textures to be used with Tonberry. I also had to change the hash files to reflect the changes. Main post has been updated with new hash files in hashmap_v1.0.rar. If I have to change hash files in the future, which will happen a lot I anticipate, the most updated will be there. I hope not to have to change the DLL very often at all, until I implement the trigger pre-loads.
This is only for the Steam version right?
Yes, it only supports directx 9, which is what Steam uses to draw the graphics and what made this possible.

Edit: Here's a screenshot comparison, since you asked so nicely Leonhart  :-P Keep in mind, this is just a 10 second bilinear resize in photoshop, this won't come close to fractal
(https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/before.png)(https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/after.png)
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: EQ2Alyza on 2014-06-13 06:17:53
The hashmap link is sending to a PuPu download. Is this correct?
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: LeonhartGR on 2014-06-13 10:48:06
Thanks to all! :)
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Omzy on 2014-06-13 12:40:49
The hashmap link is sending to a PuPu download. Is this correct?
Oops, fixed!
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: EQ2Alyza on 2014-06-13 13:08:11
Thanks. I pretty much have this figured out I think. I'll post a screen using the fractal methods from FacePalmer.
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Mirrorman95 on 2014-06-13 15:12:47
Awesome, Steam FF8 support! Can we use this tool to port Magochocobo's Character model retextures into the game?
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: EQ2Alyza on 2014-06-13 16:41:48
For these images, I used the same upscale and filter/fractal methods from FacePalmer, except that I upped the smoothness to 75% just for testing purposes. It's a bit washed out in fullscreen, so I'd recommend keeping the 20-30 range.

(http://i.imgur.com/e3sJz26.png) (http://i.imgur.com/e3sJz26.png)(http://i.imgur.com/XrgQBRk.png) (http://i.imgur.com/XrgQBRk.png)
(http://i.imgur.com/MUjGzo1.png) (http://i.imgur.com/MUjGzo1.png)(http://i.imgur.com/EKEaAoX.png) (http://i.imgur.com/EKEaAoX.png)

I read about the black lines/borders somewhere, but now I can't find it again. Anything I can do about them?
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Omzy on 2014-06-13 18:23:03
I read about the black lines/borders somewhere, but now I can't find it again. Anything I can do about them?
This occurs because the fractal method doesn't deal with edges well. If part of the texture has an edge that is next to blackness, the edge warps very slightly if you look closely. That's why it becomes so labor intensive and difficult without automation. You have to combine each sub-texture together to make all the different permutations of the fullscreen image and then slice each subtexture back out of the resized versions. I am running out of time because I have a big exam next month, so I'm going to try to start and finish Project Eden by the end of next week. An optimistic deadline, I know  :-X

Edit:
Awesome, Steam FF8 support! Can we use this tool to port Magochocobo's Character model retextures into the game?
Yes, but only once support is added. There are a couple problems with that right now, as you'll see in these images:
(https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/mago.png) (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/ffdtex0.png) (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/ffdtex1.png)
The left is the original and the right 2 are from Magochocobo. Notice that his mapping is very different than what's in the game's memory. These textures will need to be remapped to the appropriate sections to match the picture on the left. Also note that the size of the left image is 128x128. A 4x resize would be 512x512, not 1024x1024 like most other textures. This will also need to be changed. If all that is fixed and after support has been built in there's no reason it wouldn't work.
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Mcindus on 2014-06-14 00:54:16
This is so cool! :)

I'm working together with Omzy for a release of Triple Triad HD as well as attempting to re-create aspects of SeeD v2.0 for the Steam release!

I had almost given up hope.  I just had to finish mixing my bands Album, put it up on iTunes/Spotify, etc. and keep working on my personal goals until someone had enough patience, fortitude, and brilliance to put this together!

Thank you Omzy!

mmmmmmmm...... mods.
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Aavock on 2014-06-14 02:59:45
Most impressive Omzy, thank you for your hard work; also, I'll be working on some "HD" Triple Triad textures as well. :mrgreen:

I've just recently noticed one thing, if you have the linear filtering option on (steam version) the TT cards textures will be filtered so my question is why is this texture filtered and not the TT board one for example (wich is exactly the same kind of texture file) ? Is it possible to get linear filtering on other textures like the board, board card selection, "you win", "draw" texts etc. ?
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Kaldarasha on 2014-06-14 04:47:54
I would say the cards are 3D objects, that's why linear filtering can work on them.
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Shunsq on 2014-06-14 09:58:06
Hi Omzy,
Thank you for your dedication to this program. So you need the textures and the palette index for each one? I can do something i think.
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Omzy on 2014-06-14 20:22:03
Thanks for the props guys! I have been thinking about this project ever since I made PuPu a couple years back.
So you need the textures and the palette index for each one? I can do something i think.
Yes, the textures properly named in folders is basically it. I may release a debug version of the DLL that allows people to dump the textures straight from memory instead of decoding all these file formats, which should speed things up suppport wise.
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: LeonhartGR on 2014-06-15 03:45:49
(http://i.imgur.com/TXeKNkX.gif)
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Omzy on 2014-06-15 11:45:02
Omg Leonhart what the hell is that lol
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: LeonhartGR on 2014-06-15 13:52:50
(http://www.currentgen.com/wp-content/uploads/2010/11/squall.jpg)
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Omzy on 2014-06-15 15:27:27
Wish I could change my avatar to that now
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: magochocobo on 2014-06-15 18:40:53
Wow this its grat! so finally my textures can be used! :D
so if this  will work I can finish the kiros, ward and edea texture.
Ozmy the left texture of squall its different because its from the field model and my textures are for the battle models, I done a texture for the squall field model too. (the balle models have 2 textures and more  poligonal details)

Good luck with this!
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Omzy on 2014-06-15 19:23:10
Ozmy[sic=p] the left texture of squall its different because its from the field model and my textures are for the battle models, I done a texture for the squall field model too. (the balle models have 2 textures and more  poligonal details)
Sorry bout that, didn't realize, so that should make it easier if they are already formatted properly.

Also, I've released hashmap_v1.1.rar above, which adds support for Mcindus' cards! Check out his release when it comes out.

Edit: After realizing the original release was compiled in Debug mode, I've recompiled it with Release mode and almost all of the trigger lag is gone, zlib.dll and ann.dll are no longer required, and the DLLs are a fraction of the size. Doh =p See main post for Tonberry_v1.1.rar
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Mcindus on 2014-06-16 02:49:46
This is why I'm here.

Thank you, Omzy! I can't really thank you enough. 

Have you guys tried it out yet?

Tripod v1.0 (http://forums.qhimm.com/index.php?topic=15301.0)

It seems that the background images don't load 100% of the time...
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Omzy on 2014-06-16 04:20:26
It seems that the background images don't load 100% of the time...
That just means theres a small hashing problem (missing line in hash1map.csv). Which ones aren't loading? I'll probably release a debug version tomorrow or so that allows dumping textures so you guys can find the problematic ones easier.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Mcindus on 2014-06-16 05:27:29
That just means theres a small hashing problem (missing line in hash1map.csv). Which ones aren't loading? I'll probably release a debug version tomorrow or so that allows dumping textures so you guys can find the problematic ones easier.

The right portion of the screen seems to load less often, but I've had the whole background image not show up.  It it happens to the background, it happens to the mat.  Until you play another game I think.  I'm going to test more.

On the bright side, the cards always seem to work.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Mcindus on 2014-06-16 07:18:55
Yikes. Just had a big crash after fighting Ifrit. Got his card and then when it went into the name input screen, it crashed hard when the text loaded on screen.  I do have the new GF avatars enabled, so that might be the problem.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Omzy on 2014-06-16 13:41:45
There's no reason I can think of for that, my dlls only try to set the texture and if they fail to the default texture is used.  Are you using any other mods?
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: sen on 2014-06-16 14:17:34
I thought Aali said this was not possible?  :o wow looks like you proved him wrong many thanks for this epicness Omzy ff8 modding shall now begin :evil:
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: LeonhartGR on 2014-06-16 15:12:17
Calm yo tettas sunz :P We still get crashes... Haven't tried it myself yet though!
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Aali on 2014-06-16 16:16:30
I thought Aali said this was not possible??  :o looks like you proved him wrong many thanks for this epicness Omzy now let ff8 modding begin :evil:

For the record, and this is something I have already discussed with Omzy in the thread that led up to this project, this kind of hash based identification of textures is something I have experimented with in the past but did not, and still do not, want to support & develop because of the many unknowns and the hackish nature of it. The fact that Omzy has taken it upon himself to do so is great news for everyone involved, including me ::)
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Omzy on 2014-06-17 02:09:03
For those playtesting and trying to build support for other texture types, I just uploaded a debug version--see the main post for instructions.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Aavock on 2014-06-17 03:28:38
Omzy, would it be too much to ask for a alternate version of Tonberry that reads 2x upscaled textures instead of 4x the original size ?
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Omzy on 2014-06-17 03:36:01
Omzy, would it be too much to ask for a alternate version of Tonberry that reads 2x upscaled textures instead of 4x the original size ?
At the moment, since we are in debug phase and all, I'm not going to mess with the DLLs much unless there's something gamebreaking. I don't think it will be that difficult, however, to support 2x in the future, especially since I plan on posting the source once I'm confident everything works.

Update:
If you're experiencing crashing after playing for a while, it may be due to my inattention to garbage collection to free up unused resources--its on my priority list.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Kaldarasha on 2014-06-17 12:16:58
Will it be possible for you to make a similar tool for the FF7 rerelease?
I only ask this once because I personally have no interest to play the rerelease with is it's buggy directx9 renderer, but other people may like to have an external texture support.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Omzy on 2014-06-17 17:17:04
Will it be possible for you to make a similar tool for the FF7 rerelease?
I only ask this once because I personally have no interest to play the rerelease with is it's buggy directx9 renderer, but other people may like to have an external texture support.
I don't see any reason it wouldn't work, but its not something I plan on doing right now. If I don't end up doing it, someone could probably modify my source for it in the future. I do intend on fixing FF9's graphics in the future though, despite the fact that it was never released on PC.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Covarr on 2014-06-17 17:29:51
I do intend on fixing FF9's graphics in the future though, despite the fact that it was never released on PC.
Yet  :-X
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Aavock on 2014-06-17 18:07:03
Yet  :-X
I'm afraid it will never happen.

I do intend on fixing FF9's graphics in the future though, despite the fact that it was never released on PC.
Impressive Omzy! I can't wait for both FFIX and FFVII similar tool. Thanks for your dedication and hard work!
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Omzy on 2014-06-18 01:05:30
My reasoning on FF9 is that one of the popular emulators (pSX) uses directx 9, which should be all that I need to use my interceptor. I'd have to rewrite portions for each game, since each game sends its images to memory in a slightly different way, but I'll have to put FF7 and 9 on the backburner, big test coming up in a month.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: ElectricPrism on 2014-06-19 17:23:03
@OP - This mod is hella kickass, great work!!! :)

I can't wait to see what the community does with FF8 for PC. FF8 is a legend that deserves fresh work.

Excellent work dude.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: shOcKmAnz on 2014-06-20 14:57:44
it say , , zlib1.dll is missing from your computer
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Kaldarasha on 2014-06-20 15:08:19
Then you need to install zlib1.dll. Google will help you to find a way to do it.  ;)
There are a few self made programs which needed it as well (epsexe for example). So you better install it properly to your windows system.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: monty777 on 2014-06-20 23:23:00
I assume since the d3d9.dll gets replaced, this won't work in combination with "sweetfx" and its FXAA filtering which requires you to overwrite the original d3d9.dll file with the one that comes with sweetfx to take effect in the first place? Sorry for my noob question, was just wondering.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Mcindus on 2014-06-21 00:02:58
FF8 seems to crash and burn whenever i take a screenshot through the steam screenshot hotkey while Tonberry's active - it has a texture glitch whenever you hit F12 and hard crashes.

Just fyi
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Omzy on 2014-06-21 00:34:49
I assume since the d3d9.dll gets replaced, this won't work in combination with "sweetfx" and its FXAA filtering which requires you to overwrite the original d3d9.dll file with the one that comes with sweetfx to take effect in the first place? Sorry for my noob question, was just wondering.
FF8 seems to crash and burn whenever i take a screenshot through the steam screenshot hotkey while Tonberry's active - it has a texture glitch whenever you hit F12 and hard crashes.
These are related questions, I think. Yes, this mod will not work in conjunction with any mod that also replaces d3d9.dll or also intercepts directx calls in another way. Interestingly, steam's method of generating an overlay on top of the game for checking friends lists or opening other steam things which may include screenshots as well also uses this same interception technique, so unfortunately, I have to break it (you can still use Fraps for screenshots). These are the limitations of this approach to external texture support, but its a tradeoff we have to make if we want better textures. In the future, however, it is possible to combine user-made d3d9 dll's into single combo versions since I will provide my source files when this project is finished.

Edit: I've added support for non-256x256 textures, support for non-4x replacement textures (just for you 5way :P), and support for character and object sprites that will be in the next release. This support was built into the DLL but I have not done the hashing for anything else yet--will wait for modders to help with that.
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: LeonhartGR on 2014-06-21 00:44:00
Wonderful! Thanks for the support Omzy!
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Aavock on 2014-06-21 01:52:44
I've added support for non-256x256 textures, support for non-4x replacement textures (just for you 5way :P), and support for character and object sprites that will be in the next release.
Much appreciated Omzy, can't wait for the next release!
Title: Re: [REL] Tonberry v1.1 - External Texture Support for FF8
Post by: Hellbringer616 on 2014-06-21 02:52:20
Is there no way to do this with OGL? i only ask because of your statement about FF9 and pSX having a DX9/D3D renderer Both emulators (ePSXe, PCSX-r) and both plugins i use (Petes OLG2, GPUBladesoft) are OGL :/ i suppose i could try pSX, but if it can't raise internal resolution of the 3d models, i find it almost pointless (GPUBladesoft i use for 2d games :P)
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-06-24 01:01:08
Is there no way to do this with OGL? i only ask because of your statement about FF9 and pSX having a DX9/D3D renderer Both emulators (ePSXe, PCSX-r) and both plugins i use (Petes OLG2, GPUBladesoft) are OGL :/ i suppose i could try pSX, but if it can't raise internal resolution of the 3d models, i find it almost pointless (GPUBladesoft i use for 2d games :P)
There may be a way to do it with OGL, but I'm not going to look into FF9 for a long time, so I'll do that research in the future to see what the pros and cons are.

In other news, Mcindus has done some more work on Tripod (http://forums.qhimm.com/index.php?topic=15301.0) and I've updated the main post with Tonberry v1.2 to add support for his new version. I've also added the following features I mentioned before: support for non-256x256 textures, support for non-4x replacement textures, and support for character and object sprites. I've also decided that instead of releasing an extra debug version, I'll just include debugging in the main releases. You just have to rename the 'debug0' folder to 'debug' and it will work--you can read the main post for more instructions on debugging.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-24 02:45:57
Anyone else having issues downloading?
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: EQ2Alyza on 2014-06-24 02:49:41
It's set to private, so need to wait until he changes it public.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-06-24 03:52:07
Anyone else having issues downloading?
Sorry about that, should be working now.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-24 18:59:59
This guy says that he can't load Tripod with his best save, which bums him out.  I told him to send me a message with all of his save info so we can debug it.

http://steamcommunity.com/app/39150/discussions/0/540744475276212508/#c540744935820060545 (http://steamcommunity.com/app/39150/discussions/0/540744475276212508/#c540744935820060545)

Also - I think I found a consistent issue with the game.  If you let the game play through the opening credits, the game menu text never loads blocky black textures, but the card game doesn't show the right side of the screen texture.  It happened over a dozen times...

If I then I skip everything at the beginning, the card game runs perfectly - but the game menu usually has blocky letters for a few seconds until it loads.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-06-25 02:01:27
Yes that sounds like hashing errors. The hash algorithm needs some work, Ill try to work on it soon.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-26 19:07:16
There's a guy on the steam forums that says his game is crashing whenever it tries to sync with SE servers and the trophy icon doesn't seem to show.

http://steamcommunity.com/app/39150/discussions/0/540744936068432979/

FYI - He didn't give any more info.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-06-26 19:21:16
There's a guy on the steam forums that says his game is crashing whenever it tries to sync with SE servers and the trophy icon doesn't seem to show.

http://steamcommunity.com/app/39150/discussions/0/540744936068432979/

FYI - He didn't give any more info.
Sounds like he's crashing every time he gets an achievement. Not sure if there's a way to bypass/turn off syncing/ or if disconnecting from the net would help, if anyone has any other theories, I'm all ears.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Kaldarasha on 2014-06-27 07:50:13
Ok I have installed Tonberry and everything looks fine, but the cam movement on the world map starts to stutter. I don't know if there is a FPS slowdown, Clouds (force of habit) Squall's animation looks as smooth as before.
(Anyway the world map is a complete disaster and needs actually a new re-mesh, I mean they use a tile set for quads but here and there are distortions because of tris.)
Another thing I have noticed is that the games internal renderer is locked to 720p. While I have seen that DSfix for Darksouls can change this and your program is similar to it, do you think you can implement something to change the internal resolution?
It's not urgent the game looks pretty fine with a good AA in the correct 720p resolution (I use Nvidia's FXAA with 8xSupersample - yes I disabled both to see if this could causes the stutter).

Edit:
Here some suggestions:
The memory needs a better management. It would be good to have some kind of a prebuffer which loads nearby scenes in the memory and unloads scenes if not needed (I can imagine that this could be a lot of work to find a way to define what is nearby and what isn't).
The menu stuff should have it's own memory and should never be cleaned.
The world map: I believe that hash algorithms isn't suited for it very well, it feels like as if Tonberry wants to update the textures with every movement of the camera, the strange thing is that there aren't any textures to update yet. :?
The battle: well we can't say anything yet, but I believe that the magic should be handled similar as the menu and should be loaded in a prebuffer.
Well this are only suggestions of one who has no idea how everything works but I hope that one or two points may give you a good idea to improve the tool a bit further.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-27 09:33:10
http://steamcommunity.com/app/39150/discussions/0/540744936068432979/#p2

Definitely the issue I was having before when I crashed when I got Ifrit - It was along with the achievement.  So - when this error happens, the text blocks out and shows something to the effect of this:

(http://www.13tomidnight.net/FF8/Debugstuff/blockyglitch.png)

And then you get an unhandled exception.  It makes first playthroughs rough.
Hopefully it's a hashing problem that's easy to fix. :)

I think that if the game is pulling up the achievement window and tonberry tries to replace a texture at the same time, the texture fails to load.. which sometimes causes a nasty crash, and other times just makes you lose text res or some other res for a while.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: LeonhartGR on 2014-06-27 12:39:30
Just a heads up... some bugs are mentioned by Steam users here (http://steamcommunity.com/sharedfiles/filedetails/?id=203527336&tscn=1403848291)
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Yagami Light on 2014-06-27 15:15:38
Great work omzy, however I keep getting exceptional error crash after a few mins playing forcing me to alt tab and force close, I notice the ff8.exe reaching up to 1.6gigs of memory which is most likely related to this crash, this is with project eden installed, uninstalling both resolves the crashes and memory stays at around 52,000k, looking forward to future updates
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-27 20:16:23

Edit:
Here some suggestions:
The memory needs a better management. It would be good to have some kind of a prebuffer which loads nearby scenes in the memory and unloads scenes if not needed (I can imagine that this could be a lot of work to find a way to define what is nearby and what isn't).
The menu stuff should have it's own memory and should never be cleaned.
The world map: I believe that hash algorithms isn't suited for it very well, it feels like as if Tonberry wants to update the textures with every movement of the camera, the strange thing is that there aren't any textures to update yet. :?
The battle: well we can't say anything yet, but I believe that the magic should be handled similar as the menu and should be loaded in a prebuffer.
Well this are only suggestions of one who has no idea how everything works but I hope that one or two points may give you a good idea to improve the tool a bit further.

These suggestions are win.  I think if the menu had it's own memory and loaded seperately, that it would eliminate the crashes when people get achievements; but that's just conjecture.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Alexios on 2014-06-27 20:32:50
Hi guys. Long time lurker, first time poster here.

I've been following this topic closely for the past few days and jumped on the first opportunity to test some of the mods created with Tornberry. And as expected I got bugs by the trunkload. But I seem to have found a work around for the synchronization crashes, too.

You can check pretty much most of the bugs I've found on this album (http://imgur.com/a/qsrNG), as well as a printscreen of my task manager while the game runs. I didn't encountered problems with the game overusing RAM like our other friend did.

As for the synchronization crashes: I ran into this problem the first time, bugged fonts and all but I soon realised that this only happened if the game tried to sync the files before I opened the steam overlay. The overlay pops up, takes forever to finish loading, but after that the game seems to be able to handle the synchronizations without crashing. But the game did dropped the mic and Peaced Out when I tried to open a browser window.

Ninja Edit: i just got an achievement (Blue Magic Master or something) after doing my Overlay shenanigan and it synched with the server fine, but didn't showed any message on the left corner of the screen.

Not-so-Ninja Edit: It seems it was too early to state that I wasn't having  memory issues (http://i.imgur.com/M31b87y.png).

My game is running on Tornberry, Tripod, Seed Reborn, and Roses and Wine. I also installed Aali's driver but I don't know if it's working as expected.

I would also like to thank Mcindus and Omzy for the great work. All you guys, seriously, thanks for modding the game and generally fixing Squenix's potato ports.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Kaldarasha on 2014-06-27 21:37:22
You can reach the limit of the ram even if it isn't full used. See Fixed-size blocks allocation (http://en.wikipedia.org/wiki/Memory_management) and this too: http://en.wikipedia.org/wiki/Fragmentation_(computer)#External_fragmentation. If the memory suffers from to much fragmentation then a crash is very likely. And I think that it is what we are currently having.
The menu is always used so it should be in its own memory pool. The same counts for the magic and effects, they are used randomly but constant so this should have it's own pool too. For the field I would possibly create five or six pools, one pool is active and has the data for the current scene and the other four have the data for scenes which are next to it. When the scene switches to another, the active pool becomes inactive and the pool with data for the new scene becomes active. After this all inactive pools will be cleaned and the nearby scenes of the current scene will be loaded in them.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-06-27 22:50:32
Thanks for all the bug reports--I expected some of these issues to arise based on the way Tonberry works.

1. Steam overlay/achievements issues:
Steam's overlays use the same technique of directx interception that Tonberry uses, meaning that any time steam interrupts the game with an achievement or anything else, unexpected behavior will occur. I am not sure yet how to fix this. If anyone knows how to bypass achievements or syncs, chime in. Save files could potentially be modified as well, but I don't know much about that.

2. Memory issues/management:
I'll look into them, but I may need some help from someone experienced in C++. If anyone (maybe Kaldarasha?) would like to help make suggestions/edits for my code, I'd love to have the help. I can send the source files to interested individuals. I've tried to keep it relatively condensed and its not all that many lines.

3. Hash errors/stutter during summons or world map:
My next priority. I plan on rewriting the hash algorithms so this kind of thing happens less. I still have yet to discover why some summons lag.

4. Other issues:
Please keep reporting them--I think all issues mentioned so far fall into the categories above.

I have a lot going on IRL for the next month, so updates will not be as quick as they have been, but that doesn't mean I'm not going to be working hard on it. Over time, with community help, we should be able to resolve all of these things!  :lol:
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: sen on 2014-06-27 23:15:27
1. Steam overlay/achievements issues:
Steam's overlays use the same technique of directx interception that Tonberry uses, meaning that any time steam interrupts the game with an achievement or anything else, unexpected behavior will occur. I am not sure yet how to fix this. If anyone knows how to bypass achievements or syncs, chime in. Save files could potentially be modified as well, but I don't know much about that.
One way to bypass this is, make it already achieve all achievements then it won't ever pop up again.
There is a tool (Steam achievement manager) aka S.A.M which can give you all achievements on that game.
Really simple just select the game and press achieve all achievements.. Something like that..
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Covarr on 2014-06-27 23:18:51
One way to bypass this is, make it already achieve all achievements then it won't ever pop up again.
There is a tool (Steam achievement manager) aka S.A.M which can give you all achievements on that game.
Really simple just select the game and press achieve all achievements.. Something like that..
Not Recommended

Accidentally leaving SAM open is pretty much asking for a VAC ban next time you log into a VAC-protected game. It's highly advisable that players do not even put such software on their computer, and even more advisable not to bundle it or run it automatically with something else.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Alexios on 2014-06-28 01:05:35
@Kaldarasha
I'm currently testing for the memory fragmentation theory and it seems to be it. The game quickly builds up on RAM usage but when I run my optimization tool it's memory usage drops back too ~7mb, so as a workaround I think one could suggest running a RAM optimization tool like RAMRush alongside the game. RAMRush has a keyboard shortcut (ctrl alt o) so you can launch the optimization from inside the game, but that's just the first Ram optimization tool I found so there might be better tools around.

EDIT: =/ guess what hapened when the game's commited RAM reached about 1600mb.

@sunz
You can just deactivate the overlay (and Square's synchronization thing too) by right-clicking the game on your Steam Library and going to Properties. And using SAM won't solve the problem. If somebody sends you a chat message or one of your steam groups posts anything your game will crash.

@Omzy, @Kaldarasha
Now, into something new: one really curious thing happened, until a few hours ago the overlay was working alright, but now it loads the first few layers (the first few boxes and the name of the first person on my friend's list), and then the game crashes. It's the same installation that I was running before, so what changed? Well, some hours ago I was "working" from home so my Steam was set to Offline and thus wasn't loading my friends list. I've set it back to Offline now and the overlay works fine.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Just2good on 2014-06-28 05:22:53
Having problems with Tonberry.

I installed tonberry in my folder, but when I hit play I get "An unknown exception has occured" as soon as I hit the play button.

I have no custom textures in the folder so this is a completely new install. Downloaded the v1.2 Hash and extracted it to the correct folder, but the game still gives me the same error. I tried putting in custom textures to see if that would work but no dice.

Tried removing all Tonberry files from the Steam FF8 folder and the game launches fine, so it must be something with Tonberry? I also have RaW installed but that works perfectly fine without Tonberry.

Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Kaldarasha on 2014-06-28 08:52:29
Sadly I haven't learned programming (yet). I have found a good German side with tutorials, so one day I surely will write my own programs.
Maybe a C++ Community could help you. (http://cboard.cprogramming.com/cplusplus-programming/).
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-06-28 19:59:30
I don't mean to sound rude with this, but I added a statement above the downloads section that states:
Quote
*Please DO NOT post any direct links to files, always link to this forum thread. Especially, do not make any links to adfly or any other ad site
My reasons for this are as follows:
1) I don't believe (ethically) that anyone should be profiting in any way off of game mods unless they require donations to stay in operation
2) If people want to download these files, I prefer that they come to the forum to do so. This allows them to see the other projects on the forum and potentially become interested and also provides them a place to find support for these mods
3) I shorten my URLs now using Google URL shortener because it provides interesting analytics on the number of clicks and countries that people click from and I'd like to keep track of those things

@Kaldarasha
I'm currently testing for the memory fragmentation theory and it seems to be it. The game quickly builds up on RAM usage but when I run my optimization tool it's memory usage drops back too ~7mb, so as a workaround I think one could suggest running a RAM optimization tool like RAMRush alongside the game. RAMRush has a keyboard shortcut (ctrl alt o) so you can launch the optimization from inside the game, but that's just the first Ram optimization tool I found so there might be better tools around.

EDIT: =/ guess what hapened when the game's commited RAM reached about 1600mb.

@sunz
You can just deactivate the overlay (and Square's synchronization thing too) by right-clicking the game on your Steam Library and going to Properties. And using SAM won't solve the problem. If somebody sends you a chat message or one of your steam groups posts anything your game will crash.

@Omzy, @Kaldarasha
Now, into something new: one really curious thing happened, until a few hours ago the overlay was working alright, but now it loads the first few layers (the first few boxes and the name of the first person on my friend's list), and then the game crashes. It's the same installation that I was running before, so what changed? Well, some hours ago I was "working" from home so my Steam was set to Offline and thus wasn't loading my friends list. I've set it back to Offline now and the overlay works fine.

Thanks for this Alexios--it is really helpful. So you're saying that to avoid all steam overlay issues, you can deactivate the overlay in your Steam Library. This should be considered the permanent fix unless another way is discovered down the road. Please let me know if this works for you guys.
I will also look into memory management and caching local areas. I did build a cache in the current release that stores up to the last 100 textures and since each texture is a couple of megs at least, you might expect memory to get up to 300MB, however 1600MB should definitely not happen so I will need to assess that. I think caching menus/battle/world map textures is a great idea Kaldarasha.
*Remember, if you are seeing weird unpredictable things like random textures popping in where they shouldn't, that is a hashing error and that is my next priority.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: nRage on 2014-06-28 20:31:52
First of all thank you for these mods! I got the game on the recent steam sale and couldn't wait to try this out.

I'd like to help out but i'm not very tech savvy.  :-\

Anyway I'm also getting unknown exception crashes. If I watch my memory as a play I noticed every time there is any kind of scene change, (going from one area to another) or simply opening or closing the menu it adds to the memory on the process. Using ramrush did seem to alleviate the crashes a bit, though they still occurred. As for the overlay I just disabled it and haven't had any issues. I hope this helps somehow.

Anyway, great work! I love that my favorite FF is getting modding attention.  :-D
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Covarr on 2014-06-28 20:55:01
1) I don't believe (ethically) that anyone should be profiting in any way off of game mods unless they require donations to stay in operation
2) If people want to download these files, I prefer that they come to the forum to do so. This allows them to see the other projects on the forum and potentially become interested and also provides them a place to find support for these mods
3) I shorten my URLs now using Google URL shortener because it provides interesting analytics on the number of clicks and countries that people click from and I'd like to keep track of those things
4) If you release an update, direct links will become outdated.

This doesn't just apply to this mod, but to all mods, and to software in general. It's always better to link to the official download site/forum post/whatever.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Just2good on 2014-06-28 23:52:41
Can anyone help me with my problem? D:

I followed all directions to install Tonberry but it still won't work ;-;.

Having problems with Tonberry.

I installed tonberry in my folder, but when I hit play I get "An unknown exception has occured" as soon as I hit the play button.

I have no custom textures in the folder so this is a completely new install. Downloaded the v1.2 Hash and extracted it to the correct folder, but the game still gives me the same error. I tried putting in custom textures to see if that would work but no dice.

Tried removing all Tonberry files from the Steam FF8 folder and the game launches fine, so it must be something with Tonberry? I also have RaW installed but that works perfectly fine without Tonberry.


Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: monty777 on 2014-06-29 01:17:50
Having problems with Tonberry.

I installed tonberry in my folder, but when I hit play I get "An unknown exception has occured" as soon as I hit the play button.

I have no custom textures in the folder so this is a completely new install. Downloaded the v1.2 Hash and extracted it to the correct folder, but the game still gives me the same error. I tried putting in custom textures to see if that would work but no dice.

Tried removing all Tonberry files from the Steam FF8 folder and the game launches fine, so it must be something with Tonberry? I also have RaW installed but that works perfectly fine without Tonberry.

Same here "an unknown exception has occured" as soon as i put Tonberry in the FF8 folder.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-29 14:34:11
WORKAROUND:
Hey everyone - Alexios found a workaround dealing with the overlay.  Pull up the overlay (shift+tab) before you get an achievement while you're in game and you can avoid the 'unhandled exception' crash.  This only works if you put yourself in 'offline' mode, but still allows you to get achievements.  Hint: before getting a new GF, first time you beat the game, etc.

Thanks to Alexios for the workaround!

Hope this helps for a little while until we get some things sorted out!
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Alexios on 2014-06-29 15:34:07
@Mcindus
Like I said before, opening the overlay before you get an achievement/synchronization only works if you're offline. At least for me. Can you try oon your machine and see the overlay behaves differently for you?

@Omzy
Well it is a permanent fix if you deactivate the synchronization (http://i.imgur.com/n1IhjPg.png) too. But if you just set your status to offline you can use some of  the overlay features and make full use of the synchornization of achievements and savegames, which is a way better solution than turning everything off.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-29 17:39:47
@Mcindus
Like I said before, opening the overlay before you get an achievement/synchronization only works if you're offline. At least for me. Can you try oon your machine and see the overlay behaves differently for you?

I just tested it and it behaved smoothly in 'offline' mode, but crashed 2/3 times when I was online - so I would definitely go with the offline option.  It does allow for achievements, etc still - which is very nice.  People get a bit upset at having to deactivate sync, so it makes the mods a bit harder to want to use.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-06-29 23:14:30
I just tested it and it behaved smoothly in 'offline' mode, but crashed 2/3 times when I was online - so I would definitely go with the offline option.  It does allow for achievements, etc still - which is very nice.  People get a bit upset at having to deactivate sync, so it makes the mods a bit harder to want to use.
If only someone could make an achievements mod that had actual hard-to-accomplish achievements...
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-06-30 01:38:23
If only someone could make an achievements mod that had actual hard-to-accomplish achievements...

This made me rofl.  I know i'm easy.  whatever.  :)   I like this idea
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: nRage on 2014-06-30 03:08:09
Is there any way to get this and sweetfx working at the same time? i don't know much about the d3d9.dll thingy.  :P ;D
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: EQ2Alyza on 2014-06-30 03:25:03
There isn't, but I wonder if it's possible to enable it like they do for Skyrim mods.

http://www.hialgo.com/Skyrim_FAQ.htm#WHAT_TO_DO_WHEN_ENB_MODS_ARE_ALSO_USED
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Mcindus on 2014-07-01 00:17:34
So - currently we have a workaround for the achievement crashes - just disable the Steam overlay in settings. 

Now unfortunately, the memory allocation causes crashes at a certain point (after the app reaches 1.6 gigs of RAM use) and it's causing everyone to have to save the game and then quit/restart the .exe file every hour or so. 

Is there a way to fix the memory issue easily? I hope its not a huge hassle for Omzy.

Only 2 major bugs and one already has a solution.  Great work!

Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: nRage on 2014-07-01 00:33:15
Agreed Mcindus, this is some awesome work. I don't really mind having to disable the overlay. The exception crashes every 20min or so is annoying though. But still that is the only issue I've encountered. Can't wait for a fix. I keep anxiously refreshing the page every now and then.  :P Figured out how to use deling, looking forward to testing to help out project eden.  ;D
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Hellbringer616 on 2014-07-01 00:33:38
So - currently we have a workaround for the achievement crashes - just disable the Steam overlay in settings. 

Now unfortunately, the memory allocation causes crashes at a certain point (after the app reaches 1.6 gigs of RAM use) and it's causing everyone to have to save the game and then quit/restart the .exe file every hour or so. 

Is there a way to fix the memory issue easily? I hope its not a huge hassle for Omzy.

Only 2 major bugs and one already has a solution.  Great work!

Only works for a 64bit OS, but enabling Large Address Aware (often called the 4GB patch) may help, no 32 bit application can use more than 2GB of RAM (400MB is taken from your VRAM i bet) if they go above it, they crash, the 4GB patch can allow up to 4GB to be used, permanent solution? No, but it'll give you an extra hour, maybe even two until it's fixed. updates to steam will break this as any change to the .exe (or replacement there of) will disable it.

EDIT: Link to the patch for those interested: http://www.ntcore.com/4gb_patch.php
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: nRage on 2014-07-01 01:03:54
Thank you so much for the suggestion hellbringer!!!  ;D Using the 4gb patch and a ram optimizer (ramrush) it's not crashing at all now.  8-) It gets extremely choppy... But at least it doesn't crash.  ;D
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Omzy on 2014-07-01 03:38:13
Hey guys,
Thanks for your interest in this mod. I'm currently working to solve this memory issue. I've been trying to convert some of my arrays to c++ vectors and have experimented with using shared_ptr's, both of which have automatic garbage collection. Unfortunately, this hasn't solved the problem yet and I may have to ask for some help if I can't figure it out by tomorrow. I wouldn't be surprised if it was a 1-2 liner to fix  :-o
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Alexios on 2014-07-01 03:58:10
Ozmy, did you tried asking for help on stackoverflow or some other place? I'm pretty sure that at least someone will help, especially after you mention you project.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Just2good on 2014-07-01 09:03:31
Ozmy, did you tried asking for help on stackoverflow or some other place? I'm pretty sure that at least someone will help, especially after you mention you project.

Hopefully fixing that will fix the problem I'm having ;-;. My game won't even start with Tonberry installed.

I do have a legit steam version of FF8 btw. Someone PMed me asking, but I don't have permission to PM apparently.

http://forums.qhimm.com/index.php?topic=15291.msg214369#msg214369 (http://forums.qhimm.com/index.php?topic=15291.msg214369#msg214369)
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: Covarr on 2014-07-01 15:08:01
Someone PMed me asking, but I don't have permission to PM apparently.
PMs are only enabled for users with five or more posts. This is mostly to prevent spammers.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: ryokoshii on 2014-07-01 15:18:44
yup definite same crashing issue with tonberry,
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: EsperothVIII on 2014-07-01 23:40:01
Hello all.  I've been lurking these forums the past couple of weeks when I decided to grab FFVIII on the steam sale and I've been trying to troubleshoot the crashing issues based on the suggestions here.

So the 4GB patch does indeed increase the threshold for the memory the game can use before it crashes. I can play for about an hour now when before it would crash every 15-30 mins. However RAMrush isn't working for me how it seems to be working for others. When I run the optimizer, it does lower the memory usage for the FF8 application. However it doesn't seem to be freeing that memory up after the optimization. The memory is still "in use or modified memory" instead of "free or available" when I look at the task manager. So ultimately the game still crashes. I'm not sure why this is happening to me when others it seems to be working fine for. Any idea why this is happening?
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Omzy on 2014-07-03 04:59:08
Main post updated with v1.3. This version should be more stable and have less memory leaks, although I believe it may still crash after a prolonged period of time. Please let me know how far you get before this happens. As mentioned by others, RAMRush is a temporary and hopefully playable solution.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: EsperothVIII on 2014-07-03 06:49:46
Amazing job!  I've been playing for over an hour without RAMrush and I'm still only sitting at around 300,000K memory usage for the executable.  I think you may have fixed it permanently! I'll give an update if it crashes.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Just2good on 2014-07-03 07:43:31
I downloaded V1.3 but I still get the same error when I launch the game.

Error: http://puu.sh/9UNh8.jpg

I get the error and then game crashes. Have latest version of VCRedist, have a legit steam version, completely clean copy of Tonberry.

I also tried removing the .dlls one by one and removing d3d9.dll makes the game work again, though I'm sure I'll need that in for the custom textures.

Any advice?

Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: EsperothVIII on 2014-07-03 08:21:27
I played the game for about 3 hours straight with no issues.  It looks like the memory problem has been fixed.  Great job Omzy.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: nRage on 2014-07-03 08:35:00
It seems to be near fixed, for me anyway. It's still completely playable. The ram usage does continue to rise but it is substantially slower. I also have the 4gb patch installed and at the rate it's going it probably won't crash for like over 6 hours. Soooo the issue is still there but it's so dramatically reduced it's really not an issue. Just my observations from playin and watching my ram usage for a few hours. Great job Omzy, as always! 
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: EsperothVIII on 2014-07-03 09:00:27
It seems to be near fixed, for me anyway. It's still completely playable. The ram usage does continue to rise but it is substantially slower. I also have the 4gb patch installed and at the rate it's going it probably won't crash for like over 6 hours. Soooo the issue is still there but it's so dramatically reduced it's really not an issue. Just my observations from playin and watching my ram usage for a few hours. Great job Omzy, as always!

That's strange because my ram usage actually went down by the time I stopped playing.  It was around 300,000K at the 60 min mark and when I was ready to stop after 3 hours I checked it and it was down to around 145,000K

I did notice after I posted earlier that I did have RAMrush open but I didn't actively optimize anything because I didn't even notice I had it open while I was playing.  I don't think it does anything automatically so I don't know if that was a contributor to the stability or not.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Alexios on 2014-07-03 15:21:37
@Ozmy

I've been playing for two hours now, and the commited memory has been floating at around 341mb. It seems the memory issues have been fixed. Yay! Great job, mate.

@Just2good

It's weird that your game doesn't even start. Try using the 4gb patch and see what happens. Try running the game after setting your status as Offline on steam. Try running the game after disabling Steam overlay and Cloud Synch. Try changing the video configurations on the launcher. Try sacrificing a black chicken on a cross road to the Oxalás. There's gotta be something you can change to make it work.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: nRage on 2014-07-03 16:56:37
That's strange because my ram usage actually went down by the time I stopped playing.  It was around 300,000K at the 60 min mark and when I was ready to stop after 3 hours I checked it and it was down to around 145,000K

I did notice after I posted earlier that I did have RAMrush open but I didn't actively optimize anything because I didn't even notice I had it open while I was playing.  I don't think it does anything automatically so I don't know if that was a contributor to the stability or not.

I should mention that I was tryin to stress the game a bit to test it. I did notice usage went down every now and then but on average it did seem to slowly rise (after about 3 hours got to 600mb). I was able to produce the same effect, but faster, when I stress tested it for a few minutes. (Just closing and opening the menu a lot and running quickly in between areas. got it to 1.6gb in about 10 min) Still it is completely playable for me. The rate of usage climbs so slow it's not really an issue for me.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Just2good on 2014-07-03 18:01:37
@Just2good

It's weird that your game doesn't even start. Try using the 4gb patch and see what happens. Try running the game after setting your status as Offline on steam. Try running the game after disabling Steam overlay and Cloud Synch. Try changing the video configurations on the launcher. Try sacrificing a black chicken on a cross road to the Oxalás. There's gotta be something you can change to make it work.

Tried everything you suggested, except sacrificing a chicken, because I'd rather cook one. I've spent at least 5 hours trying to figure out how to get this to work but no dice ;-;.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Omzy on 2014-07-03 20:01:28
Tried everything you suggested, except sacrificing a chicken, because I'd rather cook one. I've spent at least 5 hours trying to figure out how to get this to work but no dice ;-;.
Sorry its taking so much effort for you--have you tried a complete reinstall (backing up saves of course)? Also, can you post some specs on your machine, operating system, video card model, maybe a couple screenshots of your install and tonberry folders and dll's. Hopefully we can help you.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Just2good on 2014-07-04 00:32:00
Sorry its taking so much effort for you--have you tried a complete reinstall (backing up saves of course)? Also, can you post some specs on your machine, operating system, video card model, maybe a couple screenshots of your install and tonberry folders and dll's. Hopefully we can help you.

I did a complete reinstall yesterday with V1.3 but that didn't work unfortunately, I could try it again though I just reinstalled in RaW.

Specs:
General: http://puu.sh/9VMZ9.png
Graphics: http://puu.sh/9VN0l.png

I'm pretty sure my specs are fine if I can run FF8 + Wildstar.

FF8 Folder:
http://puu.sh/9VNbQ.png
http://puu.sh/9VNdo.png

Tonberry Folder: (Hash is up to date) (Textures folder is completely empty, no mods inside yet. Though I also tried putting in a few but still same problem.)
http://puu.sh/9VNe4.png
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Omzy on 2014-07-04 01:55:49
Everything looks correct. The only possible problem I can see is your install directory. I always move my games out of the steam folder by preference because I'm so used to the 'C:\Program Files (x86)\GameName' convention, so try dragging and dropping your game to 'C:\Program Files (x86)\Final Fantasy VIII' and see if that changes anything. If that doesn't work, the only other thing I can think of is reinstalling Microsoft Visual C++ 2010 x86 Redistributable, which you can find on the net.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Kaldarasha on 2014-07-04 02:15:45
Search for Secunia PSI, it checks if there is an update for any of your programs.
Installing games in 'C:\Program Files (x86)' or in 'C:\Program Files' files is actually never a good idea because everything in it has ia special writing protection.
Maybe you should start the game with administrator rights.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Omzy on 2014-07-04 02:23:16
Installing games in 'C:\Program Files (x86)' or in 'C:\Program Files' files is actually never a good idea because everything in it has ia special writing protection.
I'm just recommending he try that because there may be some dependency in my dll's that expect C drive that I'm not aware of, or something in the source that Matt Fisher wrote.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Just2good on 2014-07-04 05:01:24
I'm just recommending he try that because there may be some dependency in my dll's that expect C drive that I'm not aware of, or something in the source that Matt Fisher wrote.

I made sure to set my program files security to all access, and I run all programs as admin as well.

I tried moving my FF8 folder to Desktop, but it won't even run because steam can't find it.

Also my main drive is D: since my Windows 7 OS is on D: and C: is my backup drive. Would that make a difference?
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: kisirong2501 on 2014-07-04 23:44:39
I had same problem with him as long as I started the game.
(http://www.upsieutoc.com/images/2014/07/04/15312e.png) and then
(http://www.upsieutoc.com/images/2014/07/04/2ec609.png)





Besides, when I play game without this mod, i works properly but it appear the box " FF8_EN has stopped working" everytime I quit the game.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Omzy on 2014-07-05 00:35:36
Kisirong, is your installation on C drive?
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: kisirong2501 on 2014-07-05 00:44:26
I tried installing in C drive and it still had this problem.  :( maybe this is not trouble with structure directory.

Or maybe there's some error in Tonberry v1.3.zip and hashmapv1.2.zip. Can you please repost them ? I 'll try again
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: Kaldarasha on 2014-07-05 08:23:38
I guess something like an app.log would be useful for Tonberry. I got the 'FF8.exe has stopped working' as well when I close the game.
Title: Re: [REL] Tonberry v1.3 - External Texture Support for FF8
Post by: jliencres on 2014-07-05 20:30:15
Main post updated with v1.3. This version should be more stable and have less memory leaks, although I believe it may still crash after a prolonged period of time. Please let me know how far you get before this happens. As mentioned by others, RAMRush is a temporary and hopefully playable solution.
Great job Omzy, thanks you for letting me enjoy again this game
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF84
Post by: Omzy on 2014-07-05 22:58:31
Main post updated with v1.4. With this version I've tried to fix the problem some users are having that I believe occurs because their windows installation is not on drive C. I've added a line to the prefs.txt file where you can change your drive letter from C to D or whatever yours may be. Please let me know if this doesn't fix the problem!

Edit: to clarify the above, the error occurs if your WINDOWS installation isn't on C drive, not your FF8 installation, so please change the prefs file to match your windows install. Also users with 32 bit Windows may also have had problems that this should fix.
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF84
Post by: kisirong2501 on 2014-07-06 00:10:35
Got it. I tried with tonberry v1.4 without changing drive letter beacaude my windows installation is still on drive C and it worked. I don't know why but maybe i concern to your source code.

Thank you so much.
Besides, I still saw that cardgame in game is not as clearly as in youtube clip. Is there the mod for this? Thanks
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: EsperothVIII on 2014-07-07 06:18:58
Kisirong you are seeing the Tripod mod.  You need to download Tripod.
Title: Re: [REL] Tonberry v1.2 - External Texture Support for FF8
Post by: nRage on 2014-07-07 07:50:59
There isn't, but I wonder if it's possible to enable it like they do for Skyrim mods.

http://www.hialgo.com/Skyrim_FAQ.htm#WHAT_TO_DO_WHEN_ENB_MODS_ARE_ALSO_USED
^^
(this is after I was askin about sweetfx)

I know omzy probably has enough on his plate. But would be cool if it's not too hard to implement.
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: Kaldarasha on 2014-07-07 11:54:46
You guys could use HextLaunch.exe (from DLPBs Tools 2.0). Simply name one of these directx9.dll different and place them in Dll_in which HextLaunch will create.
I haven't tested it for myself but in theory this should work.
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: EQ2Alyza on 2014-07-07 13:44:19
I'll give it a try sometime Kaldarasha :)
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: nRage on 2014-07-07 20:03:06
You guys could use HextLaunch.exe (from DLPBs Tools 2.0). Simply name one of these directx9.dll different and place them in Dll_in which HextLaunch will create.
I haven't tested it for myself but in theory this should work.

Thanks for the suggestion! Couldn't get this to work, unfortunately. No matter what I do, in the hextlaunch log file, it just says "error: xxxx.dll was not loaded."
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: Omzy on 2014-07-08 02:38:34
You guys could use HextLaunch.exe (from DLPBs Tools 2.0). Simply name one of these directx9.dll different and place them in Dll_in which HextLaunch will create.
I haven't tested it for myself but in theory this should work.
I think that hextlaunch will be successful in injecting DLLs into system memory that are used as adjuncts to the game's exe but the d3d9.dll is called specifically by the game so it may not be able to be injected. However, I'm not too educated on this topic yet, so I could be wrong.
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF84
Post by: Just2good on 2014-07-09 00:14:04
Main post updated with v1.4. With this version I've tried to fix the problem some users are having that I believe occurs because their windows installation is not on drive C. I've added a line to the prefs.txt file where you can change your drive letter from C to D or whatever yours may be. Please let me know if this doesn't fix the problem!

Edit: to clarify the above, the error occurs if your WINDOWS installation isn't on C drive, not your FF8 installation, so please change the prefs file to match your windows install. Also users with 32 bit Windows may also have had problems that this should fix.


Just came back from vacation, downloaded the latest version and now FF8 is working fine with Tonberry after changing prefs. Thank you so much!
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: kisirong2501 on 2014-07-09 01:39:49
Anyone who has FF8 steam version with Gamebooster (released recently) can share me a link for downloading? I wanna to try gamebooster to speed up for saving time when I train.

THank you
@EsperothVIII : THanks, I tried and it worked with card's texture, no background triad. :( I didn't know why?
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: monty777 on 2014-07-09 10:52:03
Finally...it's working for me too. No unknown exception error anymore. I can finally enjoy all the mods. So i assume it had something to do with a fix for Windows 32bit users or something. I had the exact same problem as "Just2Good" had. Anyhow, thanks guys, everything perfect now. Keep up the good work. You guys are making FF8 more than enjoyable.
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: hihi on 2014-07-13 02:15:52
This is so kool, something similar for FFVII would be awesome as this is much simpler than bootleg patch process
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: Kaldarasha on 2014-07-13 08:57:20
This is so kool, something similar for FFVII would be awesome as this is much simpler than bootleg patch process
Use the games converter and place all textures (Facepalmer/Re:Sampled) in the mod folder. It's not that Bootleg is needed to mod FF7.
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: Omzy on 2014-07-15 00:53:01
Main post updated with hashmap_v1.3. This version should be compatible with Mcindus' next SeeD release, which will be awesome, btw!
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: JeMaCheHi on 2014-07-15 15:40:40
Thanks for your work Omzy.

I wonder if that's the cause of the server high stress...  ;D ;D ;D
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: monty777 on 2014-07-15 19:32:35
Main post updated with hashmap_v1.3. This version should be compatible with Mcindus' next SeeD release, which will be awesome, btw!

Woohooooo, super excited here and thanks Omzy for the update. Cheers.
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: Mcindus on 2014-07-15 21:27:39
I made a Tonberry video tutorial for the community:

https://www.youtube.com/watch?v=cX5PTwQVVmo

Still in the process of subtitling it.  What a pain :P
Title: Re: [REL] Tonberry v1.4 - External Texture Support for FF8
Post by: JeMaCheHi on 2014-07-15 23:17:54
I made a Tonberry video tutorial for the community:

https://www.youtube.com/watch?v=cX5PTwQVVmo

Still in the process of subtitling it.  What a pain :P

Oh man, good job indeed. And yes, it's a real pain to subtitle that xD If you want I can help you by translating to Spanish.
Title: Re: [REL] Tonberry v1.5 - External Texture Support for FF8
Post by: Omzy on 2014-07-17 02:20:51
Main post updated with Tonberry_v1.5. This .dll release is necessary to support Mcindus' new SeeD project!
Title: Re: [REL] Tonberry v1.5 - External Texture Support for FF8
Post by: EQ2Alyza on 2014-07-17 02:58:32
Thank you Omzy :)
Title: Re: [REL] Tonberry v1.5 - External Texture Support for FF8
Post by: Mcindus on 2014-07-17 03:17:10
Main post updated with Tonberry_v1.5. This .dll release is necessary to support Mcindus' new SeeD project!

Wahoo! :D  Amazing news! Testing time!
Title: Re: [REL] Tonberry v1.5 - External Texture Support for FF8
Post by: JeMaCheHi on 2014-07-17 08:17:47
Oh man, that's a good new indeed. I can foresee that today I won't do anything but play FF8!! Hahahaha

Thanks again Omzy, you make our lifes way better  ;D ;D ;D

Edit: I have a question for you Omzy. Do you think that Tonberry will work with non-english versions o the game? Because I'm having a real pain with my spanish version, and since you all guys get it working and I can't, even when I do it everything correctly... hmmm... it makes me think...
Title: Re: [REL] Tonberry v1.5 - External Texture Support for FF8
Post by: Omzy on 2014-07-18 18:16:36
I have a question for you Omzy. Do you think that Tonberry will work with non-english versions o the game? Because I'm having a real pain with my spanish version, and since you all guys get it working and I can't, even when I do it everything correctly... hmmm... it makes me think...
I see you're having a problem with some of the text. Do you think this text is from sysfld00-01 or iconfl00-03? Are you having a problem with the backgrounds?
Title: Re: [REL] Tonberry v1.5 - External Texture Support for FF8
Post by: Mcindus on 2014-07-18 18:26:37
I see you're having a problem with some of the text. Do you think this text is from sysfld00-01 or iconfl00-03? Are you having a problem with the backgrounds?

It sounds like there's a sysfld page that is in the Spanish version that isn't in the English... it's probably the same for any foreign language that has more characters than English.
I also know via 5way that all of the foreign versions don't use the upscaled iconfl00-03, but they just use their own icon.tex (which I do have two replacements currently - they are what we have in 'iconflmaster' in SeeD Reborn's file structure.)

Would we have to have them dump debug images of them in order to have Tonberry access them?  I would do it, but I don't know how to access all of the files. Also, it seems like I would have to have different packs for different languages - since all of the text on the icon.tex image is in that language and not in English.

If I have him debug and send me all of the original files to hash, would we be able to integrate it?  i could do a version of icon.tex (iconflmaster) in spanish and send you the complete mapdata and textures for it that way, right?  Would we have to do this for all other languages, or would I just need to create the new icon.tex for each one?  sysfld should work the same way, but Tonberry might need a new exception, etc.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Kaldarasha on 2014-07-18 18:52:14
I could send you the German files you need and JeMaCheHi could send you the Spanish ones. Then you might see how they are built. For the different packages I think it's enough if you would make language patches for the main project.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: JeMaCheHi on 2014-07-18 19:01:17
Kaldarasha, do you get some letters replaced in your German version? As 5way said in some post (don't remember where), it looks that the only affected are fonts, but I'm getting some letters working and I'm a little confused. I can't understand why is this happening  :o :o
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Kaldarasha on 2014-07-18 19:11:08
Well something hinder me to download the new Seed project. ;D Google refuse to open the tab and my download manager say it's locked (when I thought it has downloaded the Seed project, it has in fact downloaded a older version which was in memory of the tool). But I'm sure I will have the same problems as you, because the older version of FF8 has different files for the languages too.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Omzy on 2014-07-18 19:29:28
For each language, I would need all of the memory dumps that differ from the english version. If someone sends those to me, I will try to work on implementing them, but it won't be for a couple of weeks because of some IRL things preventing me from having free time  :'(
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2014-07-19 09:59:26
For each language, I would need all of the memory dumps that differ from the english version. If someone sends those to me, I will try to work on implementing them, but it won't be for a couple of weeks because of some IRL things preventing me from having free time  :'(

Don't worry, Omzy - I've got you covered.  Jemachehi has already sent me a dump of everything I think I need to make the spanish version work, so I will send you the mapdata for it while I work on upscaling it :)

Kaldarasha, if you send me a debug dump of all of the icon.tex palettes that you can, I can start putting it the German release together for Omzy too.  OR, I could send you the spanish icon.tex dump that I'm working on so you can see what I'm looking for.  Basically, you're going to have to play the game and trigger certain palettes so that they dump into the debug folder in tonberry so Omzy knows what to hash. 

I found that if you get into a single battle (use a gf, hit someone, use renzokuken, almost die, and then die), go through all menu tutorials, get a status effect (and then check your status via the menu), modify your elem/status atk/def via junctioning and look at any magazines and items you might have, it should dump everything we need to make a first release.

If we can get this done, then Omzy only has to worry about hashing the files and we can let him worry about his real life. :)
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Kaldarasha on 2014-07-19 11:28:03
Kaldarasha, if you send me a debug dump of all of the icon.tex palettes that you can, I can start putting it the German release together for Omzy too.  OR, I could send you the spanish icon.tex dump that I'm working on so you can see what I'm looking for.  Basically, you're going to have to play the game and trigger certain palettes so that they dump into the debug folder in tonberry so Omzy knows what to hash. 

I found that if you get into a single battle (use a gf, hit someone, use renzokuken, almost die, and then die), go through all menu tutorials, get a status effect (and then check your status via the menu), modify your elem/status atk/def via junctioning and look at any magazines and items you might have, it should dump everything we need to make a first release.:)

"Uhhm ...
(http://s1.directupload.net/images/140719/942endwy.jpg) ... I'm selling these fine leather jackets."

I thought it would be enough to send you the files for the menu. But I will do what you want from me ...
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: eXistenZe on 2014-07-19 13:20:08
Hey guys... Exactly what textures can we use in game now? Project SeeD I guess and  something else?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: EQ2Alyza on 2014-07-19 15:49:34
SeeD, Tripod, and Eden for right now.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2014-07-19 21:54:51
"Uhhm ...
... I'm selling these fine leather jackets."

I thought it would be enough to send you the files for the menu. But I will do what you want from me ...

:)  Threepwood!!! Haha.  One of my favorite old games.  Still have the original.
I would do all the sifting through duplicates, I just don't have time.  It was a beast of a few days trying to figure out what to do in game to get the palettes to dump, and I'm still missing two from the English release... someone is bound to point them out, though.   Over the next two days, I have to make video clips for the songs from my band's album, so I'll be keeping up and organizing files and sending stuff to Omzy, but I don't have much time to work on actual upscales.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: kabooz on 2014-08-04 09:38:57
ok I get an unknown exception ... at startup (right after I click play in the launcher after the window opens)
So I tried to use old drivers and new drivers for my graphics card and I reinstalled vcredist for VC++2010 x86
but nothing helps, yes overlay is deactivated and all that stuff.
The instant crash vanishes when I deactivate tonberry or if I set the wrong drive in the prefs.txt (though it then crashes if it encounters custom textures)

Info:
Win7 64bit (English)
Nvidia GTX 570 - driver 314 and 340
Steam on drive E:\
German game version happens on the english version too though...


EDIT:
so windows says the faulty module is AF3DN.P whatever that is.
If no textures present and prefs.txt is set to drive C it starts without problem and I can even dump textures though obviously (or luckily) only noreplace and nomatch show up.
If I try to use it with textures to replace it crashes when it reaches the point when it should replace them windows says the faulty module is d3d9Callback.dll
hope this helps somehow

EDIT2: texture dumping works as long as I don't try to replace textures
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Omzy on 2014-08-05 01:21:28
ok I get an unknown exception ... at startup (right after I click play in the launcher after the window opens)
Have you tried testing by replacing only a single texture first? Also, which texture packs are you using currently? My hunch is that its a problem with a resized texture file or directory structure.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: kabooz on 2014-08-05 05:27:23
I don't know why but it seems to work now...
I tired with triple triad, project eden and project seed reborn, all of them alone and together -.-
now it just works after a few hours of pen&paper Shadow Run and a few more hours of The "Secret World" I get the error now only if I activate GeDoSaTo (Generic DownSampling Tool) from durante which is logical as it'S an injection hack too those two should not mix without extra work XD
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Sancez on 2014-08-25 23:47:06
Hi guys! First of all, thanks for all your hard work! Mods are a great incentive to play again old great games like FF8!  ;D

So.. Are you guys still trying to add in game Magochocobo's beautiful textures? From what I read in this topic, his textures are for battle models, but Magochocobo said he made also field textures (but never release it...). It would be really awesome to see his textures in game, it's just the last modification we might need at this point. :|
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Sancez on 2014-08-28 01:14:56
It's much harder then I thought playing FF8 with the normal character textures when you know there are much better ones... Damn it, why Square-enix didn't consider the modding community when they did the steam release?! >:(
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Shunsq on 2014-08-31 16:11:23
Hi Omzy,
I'm currently working on a excel sheet that generates the hash map for a given image. I've implemented the second algorithm that you posted here:http://forums.qhimm.com/index.php?topic=15222.25 (http://forums.qhimm.com/index.php?topic=15222.25)
It gives me the correct number of digits ( 20 ) but the hashcode doesn't match the one in your hashmap list ( too many differences)
Could you tell me more about your hash code generator?
Which pixels do you extract from the image ? How many are they ? How do you compare them ?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Omzy on 2014-09-01 04:59:09
Hi Omzy,
I'm currently working on a excel sheet that generates the hash map for a given image. I've implemented the second algorithm that you posted here:http://forums.qhimm.com/index.php?topic=15222.25 (http://forums.qhimm.com/index.php?topic=15222.25)
It gives me the correct number of digits ( 20 ) but the hashcode doesn't match the one in your hashmap list ( too many differences)
Could you tell me more about your hash code generator?
Which pixels do you extract from the image ? How many are they ? How do you compare them ?
PM sent
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Shunsq on 2014-09-01 19:16:49
Thank you!
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: eXistenZe on 2014-09-03 20:37:36
Hey there.

Great tool.
Gonna try it tomorrow...
Is there compatibility with aali driver and Roses and Wine?
And the DLPB Tools with the add-on dlls?

Best regards.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Kaldarasha on 2014-09-04 06:20:49
Quote
-Works with the Steam release of FF8 only. I don't have any impetus to try to make it work with anything else, but I will eventually post the source for those interested.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: eXistenZe on 2014-09-04 21:50:57
It's not the same thing as "not compatible with anything else"...
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: EQ2Alyza on 2014-09-04 23:19:47
Aali's driver is compatible with only the original releases of FF7/FF8. Tonberry is compatible with only the Steam version of FF8. Therefore, Aali's driver and Tonberry are not compatible with each other. Pretty sure that's what Kaldarasha is saying :-P

I don't know about RaW or the dll add-ons.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: eXistenZe on 2014-09-06 11:26:26
Nice surprise...
Raw and dll addons work... Don't know if in the long run they will interfere with tonberry, but for now they are just fine...
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2014-09-22 07:33:15
Hello everyone! I just spoke with Omzy and he asked me to pass on a few updates!

--------------------------------------------
- From Omzy -

Sorry I haven't had more of a presence on the forums recently-- a lot of stuff is going on that's keeping me from my me-time for a while. I hope that next month I have some more free time--my schedule should clear out a bit, hopefully.

Regarding Hashing:
I looked at what Shunsq was posting and it seems he's working hard on his end. He did message me asking for the current hashing algorithms and I sent them to him. There is yet more that needs to be done on my end to the hash algorithms so that they are better quality, but it seems like what you all are doing is working for now. Once people start trying to replace magic/battle/world map textures, etc, the problems will become more apparent, similar to some of the problems in Project Eden.

Regarding the SeeD Translations:
I think you're right that you need to replace all 16 palettes for everything to replace properly, otherwise some things that are supposed to be certain distinct colors will always be the same color.   I'll need to modify the DLL files themselves for everything to work. That will take some dedicated time that I can't really get right now.

Regarding the Source Code:
I've been thinking about releasing the source code as is.  If you find anyone that you think would be able to do some good work on that front, let me know and I'll send it their way.

Also, would you mind posting this update in some of my threads? I know people have been asking when updates will happen.

- Omzy
------------------------

So, let's hope we see more of Omzy this next month!  When we see him next, it could mean a Project Eden update, a Tonberry Update, AND a SeeD Reborn update!  I might have even made some headway on the world map textures by then.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Old Harry MTX on 2014-09-23 15:56:53
Hi all! Let me say first that i'm enthusiast about your work! I'm just trying to download Tonberry and Eden Project mods but google drive return me that the limit of downloads has been reached and i need to retry in 24 hours... The funny thing is that i'm trying from 2 days without any outcome!^^

I don't post the error message simply 'cause i'm italian as the text and you probably wouldn't understand a word, however do you know if it's a temporary issue or if there's a way to solve that?

Thanks for your help
Enrico
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2014-09-23 23:00:11
Hi all! Let me say first that i'm enthusiast about your work! I'm just trying to download Tonberry and Eden Project mods but google drive return me that the limit of downloads has been reached and i need to retry in 24 hours... The funny thing is that i'm trying from 2 days without any outcome!^^

It looks like Google Drive is going to be an issue... for now, I'm hosting some mirrors:

Tonberry v1.5 Mirror HERE (http://goo.gl/5CCFWG)
Hashmap v1.3 Mirror HERE (http://goo.gl/OvHwQM)


I'd like to create a torrent for Project Eden, but I'm not sure how to go about doing so.  Google here I come.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Hellbringer616 on 2014-09-24 01:39:58
I'd like to create a torrent for Project Eden, but I'm not sure how to go about doing so.  Google here I come.

I'll seed it for you once you get it up.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Old Harry MTX on 2014-09-24 09:24:41
Thankyou!!! Now i need only Project Eden but i see that the torrent have a lot of seeds so i think the problem is solved for me! I'll surely remain in seed hoping it could help
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2014-09-25 06:48:31
I'll seed it for you once you get it up.

It's up.  Please SeeD ;)
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: LeonhartGR on 2014-09-25 11:01:09
Send me the link to seed as well. 40/4 mbps here ;)
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Hellbringer616 on 2014-09-25 15:52:42
It's up.  Please SeeD ;)

50/10 Seeding away
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: the_trickster on 2014-10-03 00:12:17
Hi. I've been lurking around for a while and I'd be very interested in taking a look at the code.

I'm new to DLL injection and reversing in general but I'm decent with C/C++.

Thanks very much for this tool btw.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Omzy on 2014-10-03 01:12:45
Hi. I've been lurking around for a while and I'd be very interested in taking a look at the code.
I'm new to DLL injection and reversing in general but I'm decent with C/C++.
Hey guys, thanks a lot for your interest in this mod, it was a lot of fun making it. I've decided to post the source code and you'll find a download link in the main post. Be aware that I hadn't intended on releasing it until I had a chance to revamp the hashing algorithms, so some of this code will change in the future. I'm sorry I haven't had much time lately to work on this but I'm happy I was able to get people a little more excited about FF8 in the meantime. My policy on my mods is always that you have complete freedom to take them, use them, modify them, and even release derivative works--just give a line of credit in your release and do not draw any monetary profit from my links or releases. I think if you make something, including a derivative work, it is fine to solicit donations, but I encourage you to retain these same policies of openness for whatever you make so we can always further the modding community on every front. I'm feeling too tired to figure out which open source license I'm describing, so if anyone knows, educate us  :-P
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Enkanel on 2014-10-03 11:01:40
If you want to license, a CC BY-SA 3.0 should do the trick :) (here: https://creativecommons.org/licenses/by-sa/3.0/)
It authorize to share and adapt (modify) but ask to keep crediting the original author and the share or modified content must have the same license.
I'm not a pro about licenses and stuff, but it seems good enough to me ^^
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: K43SJ on 2014-10-03 13:20:24
How to install mod tonberry + sweetfx shader together working ?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Hellbringer616 on 2014-10-03 13:55:37
Hey guys, thanks a lot for your interest in this mod, it was a lot of fun making it. I've decided to post the source code and you'll find a download link in the main post. Be aware that I hadn't intended on releasing it until I had a chance to revamp the hashing algorithms, so some of this code will change in the future. I'm sorry I haven't had much time lately to work on this but I'm happy I was able to get people a little more excited about FF8 in the meantime. My policy on my mods is always that you have complete freedom to take them, use them, modify them, and even release derivative works--just give a line of credit in your release and do not draw any monetary profit from my links or releases. I think if you make something, including a derivative work, it is fine to solicit donations, but I encourage you to retain these same policies of openness for whatever you make so we can always further the modding community on every front. I'm feeling too tired to figure out which open source license I'm describing, so if anyone knows, educate us  :-P

Why not make a GITHub? Then the code is online and anyone is free to pull from, and modify it, You'll have to accept pull requests to merge the changes into master. But a lot of online communities do that with programs, it ensures the program is never lost as well :D
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Shunsq on 2014-10-03 17:50:29
Thank you for the source code Omzy!
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: essxiv on 2014-10-21 00:53:28
i'm very confused, I have no idea how to install this.

I extracted Tonberry into my FF8 Steam Folder, and it does nothing...
Why do you have to make this so complicated for people who are not very good with these sort of things?

can someone help me out?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Vgr on 2014-10-21 01:15:37
Why not make a GITHub? Then the code is online and anyone is free to pull from, and modify it, You'll have to accept pull requests to merge the changes into master. But a lot of online communities do that with programs, it ensures the program is never lost as well :D

I agree, GitHub (http://github.com/) is a definite must for most programs like these.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Omzy on 2014-10-21 01:22:29
I agree, GitHub (http://github.com/) is a definite must for most programs like these.
I don't mind if someone makes one from the source and posts the link--i'll add to main post.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Vgr on 2014-10-21 02:25:55
You should do it yourself. Then, whenever you make a change to the code, you upload it. It doesn't mean you have to update everytime.

If you want, I'll help you set up Git in PM.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Muladin on 2014-11-07 14:26:25
Hello,
is there someone who runs Tonberry on an Linux machine? I know that the program is written for Windows, but i have no windows and try to install it. No success in the moment. I installed Tonberry and Seed Reborn into the root folder / texture folder and start the game. Game starts without error, but there is no change ingame.

I think the problem is the dll injection? With winetricks i installed VC2010.

Maybe one of you have an idea what to do to get Tonberry working.

Greetins
(and sorry for the bad english ....)
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: falkTX on 2014-11-08 19:57:18
Linux user here.
I tried some time ago to get Tonberry working but couldn't either.

something tells me it's how the injection is made...
if the code ever goes public I'll be happy to take a look.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Kaldarasha on 2014-11-08 21:05:06

Linux user here.
I tried some time ago to get Tonberry working but couldn't either.

something tells me it's how the injection is made...
if the code ever goes public I'll be happy to take a look.
:?


Isn't there a 'source code only' download?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: the_randomizer85 on 2014-11-20 15:20:07
This is a very noobish question, but for some reason, my version of the Steam game does not use the same folder hierarchy that it shows in the tutorial. In fact, by default, there is no Textures folder, only when you unzip the Eden mod is there one. But on my PC, there is no C:\Program Files (x86)\Final Fantasy VIII\Textures, at all. Instead, it's C:\Program Files (x86)\Steam\SteamApps\common\Final Fantasy VIII.   However, when I installed Eden and Tonberry as per instructions, the background Jpeg files were still 320 x 240 and not the smooth ones. What am I doing wrong? Did I install these incorrectly or are they not compatible with the Steam version?  I don't know why the folder hierarchy is so weird, but, no matter what I do, the updated backgrounds are not working and I can't find the original ones that were installed to replace.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Kaldarasha on 2014-12-11 05:23:01
Some interested to contact the author of this tool?
http://blog.metaclassofnil.com/?page_id=582

http://www.neogaf.com/forum/showthread.php?t=807472

Maybe Tonberry can implemented in it and with his experience it might be possible to have a more stable program and maybe it will be also possible to unlock the 720p max resolution.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: the_randomizer85 on 2014-12-11 15:30:19
And of course my question is ignored. Fan-freaking-tastic.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Shunsq on 2014-12-11 19:12:44
to the_randomizer85:
We thought you would have found out yourself.
If you download and extract tonberry.rar in final fantasy 8 folder then you'll obtain the /tonberry and /textures folders. I can't understand how you couldn't obtain those folders :-o
To have the textures upscaled you need to download the HD textures and to provide hash1map.csv with hashcodes.
Have you seen these threads?Read the first post at least.
Seed reborn (http://forums.qhimm.com/index.php?topic=15320.0)
Eden (http://forums.qhimm.com/index.php?topic=15292.0)
BerryMapper (http://forums.qhimm.com/index.php?topic=15668.0)
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: EQ2Alyza on 2014-12-11 19:15:41
Your question is answered in the OP.


Instructions (for players):
1. Extract Tonberry_v1.x.rar into your FF8 directory (typically 'C:\Program Files (x86)\Final Fantasy VIII')
2. Make sure to drop in the most up-to-date hash map files, from hashmap_v1.x.rar.
3. Download and place your properly formatted textures from their respective projects into the 'textures' folder (see below)
4. Install VC++ 2010 Redistributable (x86) (http://download.microsoft.com/download/5/B/C/5BC5DBB3-652D-4DCE-B14A-475AB85EEF6E/vcredist_x86.exe)
5. Play!
6. (Optional) If your Windows installation is not on drive C, change your prefs.txt file 'drive_letter' from C to your drive letter. If you're using textures of different sizes, change 'resize_factor' in prefs.txt.


Extract Tonberry 1.5 and Hashmap 1.3 to your game directory: C:\Program Files (x86)\Steam\SteamApps\common\Final Fantasy VIII

Tonberry creates the texture folder in that directory. Now extract Eden textures into that folder. Done.

The project is still in development, so expect scenes to have errors or no new textures yet.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: the_randomizer85 on 2014-12-11 19:21:05
Your question is answered in the OP.

Extract Tonberry 1.5 and Hashmap 1.3 to your game directory: C:\Program Files (x86)\Steam\SteamApps\common\Final Fantasy VIII

Tonberry creates the texture folder in that directory. Now extract Eden textures into that folder. Done.

The project is still in development, so expect scenes to have errors or no new textures yet.

Okay, got it working, but uh, what exactly causes the game to show the black boxes over the HP/MP bars in-battle? I was fighting in Deling City and after I won the boss fight, victory music plays, but the game freaked out and showed a black screen. Sorry for my impatience, and sorry for the bump. Is there a section to report bugs for these mods by chance? I'd like to know why the Steam version crashed after fighting those two lizard bosses.


to the_randomizer85:
We thought you would have found out yourself.
If you download and extract tonberry.rar in final fantasy 8 folder then you'll obtain the /tonberry and /textures folders. I can't understand how you couldn't obtain those folders :-o
To have the textures upscaled you need to download the HD textures and to provide hash1map.csv with hashcodes.
Have you seen these threads?Read the first post at least.
Seed reborn (http://forums.qhimm.com/index.php?topic=15320.0)
Eden (http://forums.qhimm.com/index.php?topic=15292.0)
BerryMapper (http://forums.qhimm.com/index.php?topic=15668.0)

Sorry for being rude  :(  I was just frustrated that the game decided to lock up on  me as I did get the mod to work, backgrounds look so much better. However, I noticed black boxes in-battle and once I fought the boss, victory music plays, but the game just hangs there. Any reason why?  All I have is Tonberry, Eden and Roses and Wine installed, no other mods, and they are installed properly, but the crash I don't understand.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: LeonhartGR on 2014-12-11 22:39:50
Did you deactivate any STEAM overlays for this game? Like achievements etc.?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: the_randomizer85 on 2014-12-11 23:04:00
Did you deactivate any STEAM overlays for this game? Like achievements etc.?

That, I haven't done, is that the route cause of the crashing/black box graphics corruption mid-battle? If so, I'll so right away. No idea that it caused the game to crash after the boss battle. And if for some reason, it still persists?  Should I also disable the Steam Cloud Synchronization? I only really use the game on one PC. 
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: JeMaCheHi on 2014-12-11 23:44:48
That, I haven't done, is that the route cause of the crashing/black box graphics corruption mid-battle? If so, I'll so right away. No idea that it caused the game to crash after the boss battle. And if for some reason, it still persists?  Should I also disable the Steam Cloud Synchronization? I only really use the game on one PC.

Yes, the game will crash everytime you get a new achievement if you have Tonberry and Steam overlay at the same time. Also will crash sometimes when synchronizing your saves(but not always). I recommend you to read every post on that thread because there is a lot of information, troubleshooting and in short, a lot of knowledge over here. Maybe that will help you to understand how tonberry works and why it's crashing you.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: the_randomizer85 on 2014-12-12 00:02:35
Yes, the game will crash everytime you get a new achievement if you have Tonberry and Steam overlay at the same time. Also will crash sometimes when synchronizing your saves(but not always). I recommend you to read every post on that thread because there is a lot of information, troubleshooting and in short, a lot of knowledge over here. Maybe that will help you to understand how tonberry works and why it's crashing you.


Crap, now I really feel like a fool, sorry for wasting your guys' time. Will go over the thread... :-[
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2014-12-12 06:53:17
Some interested to contact the author of this tool?
http://blog.metaclassofnil.com/?page_id=582

http://www.neogaf.com/forum/showthread.php?t=807472

Maybe Tonberry can implemented in it and with his experience it might be possible to have a more stable program and maybe it will be also possible to unlock the 720p max resolution.

Holy crap this is awesome.... I guess I should send Omzy a message about this?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: klingsor on 2014-12-17 20:27:19
on Windows 8, the included directX files make the game crash instantly (once you press play on the launcher.)
Are the files needed, can they be replaced with a Windows 8.1/DirectX 11 friendly version?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2014-12-27 18:32:25
Omzy Update!

Hello guys - Omzy messaged me back and wanted me to share with the forum!

----------------------------------------------------------

Hey McIndus, I am positively amazed at the things you guys have been doing. It gives me a great feeling knowing that people are actually using my work and taking it seriously to make new content! I definitely have you to thank for that, for jumpstarting the Tonberry movement, and Shunsq for being brave enough to put his programming hat on to help others out.

Unfortunately, time is tight right now, even over the holidays, but I do periodically check in and read the new threads. What Shunsq needs to know is that when I made the hash codes for hash1map, which I gave him the algorithm for, I ran into some collisions for the files that were mostly black/empty that only had a few pixels or were only different by a few pixels. In order to temporarily patch that, I decided to run a second hash algorithm that is similar but uses different pixels and more pixels (like 100 instead of 64). That algorithm I hand-selected the pixels in certain regions of the images that were most likely to be different. Then I ran that and if there was a collision on the first hash from hash1map, then it would run the second hash and that value would be in hash2map. I did make special case allowances for the text files for SeeD that had different palettes and had the same hash value. Those allowances just looked at a special hand-selected pixel in the images that was different color in each and detected which file to choose.

That's what I remember. I feel like chocobo sage right now, forgetting, lol. I do know that if he digs in the source files I uploaded, he will find the algorithms for the first and second hash in there. This double hashing system needs to be completely replaced with a smarter one that has no collisions. That would solve so many problems. Fortunately, the Tonberry injector is fairly modular, so one could write a hash algorithm and implement it without too much trouble. It just takes some bravery.

Keep up the good work!
Happy Holidays!
Omzy
------------------------------------------

Thanks, guys! Information GOLD.
MCINDUS
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: BuzzDee on 2015-01-02 10:20:13
Well i finnaly managed to get the Steam Version with my mods to work... steam overlay was the reason...

BUT today i got the same error again... wasnt playing for that long and got the first Seed Mission (the one where u got to timber meet Rinoa and so on) well infront of the Garden i used the magic lamp to fight against Diabolos. Well managed to beat him got the archivement from steam and went straight to the 1st forest near the fire cave. Encounterd this big green bug (want to farm the item for quistis limit) and bam "an unkown error accured"... dunno why the message appeard again..

Maybe because i use the window mode and not playing on Fullscreen?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: JeMaCheHi on 2015-02-10 17:55:29
Hi everyone, I was PMing with Omzy about improving Tonberry and he asked me to tell you guys just in case you want to help or something. Here it goes:

While I think the directory enhancement is a good idea, the most necessary improvement lies in the hashing algorithm. That is the key to fixing all of the bugs. The way it stands Tonberry will always have bugs. You can understand this if you modify the hash algorithm to something simple like every sixteenth pixel, you will notice many more errors. If someone can sit and think hard about the best possible algorithm we will have a much better and successful Tonberry. Also if someone figures out how to avoid animation lag and incorporates that into the build. To see what directx calls are being made I used a program called PIX for Windows in case that helps.

Yes that will mean rehashing but it is as simple as running all the images through a script-- just make sure that the new algorithm is the final version so it doesn't have to be done again. If you haven't yet, refer to the pre-Tonberry thread in scripting and reverse engineering section from last year. I forgot the name of the thread but I started it.

Regarding release, I think it's a good idea to start a new thread so you can maintain it and call it something like Tonberry: Enhanced and put a link to the original.

So... Anyone interested in enhacing it's algorithm should refer to original Matthew Fisher website (look at Omzy's first post) and check the source code and... start thinking! :D
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Omzy on 2015-02-10 18:27:14
Hey guys, to add a bit more clarity, another message I sent JeMaCheHi might also be helpful:
Quote
I only wrote code in a handful of files. For the D3D9CallbackSC2 I wrote d3d9Callback.cpp/h and GlobalContext.cpp/h. ExtraCode was just unused code. For the D3D9Interceptor, I wrote d3d9Wrapper.cpp/h, Globals.cpp/h. Most all that should be needed to be modified would be in GlobalContext.cpp, I think. There you will find the hash algorithms and the logic for replacing images. It did take me a long time to understand how the directx code works, but if someone simply wants to change the way hashing works they shouldn't need to know that anyways. I think you have a good idea for bundling hash files with their mods--that would make things easier to work with and to update. The biggest thing that is needed, however, is to write new smarter hash algorithms that don't suffer from collisions. This may fix many problems and if more research is done, may decrease problems with animation lag. To compile the code you'll need Microsoft Visual Studio C++ 2010 Express (which is free). I believe you can just open the vcxproj file and then build the DLL. You might have to mess with some configuration, but hopefully it is already configured with the libraries and paths. I remember it being a pain in the ass to do the setup but you might not have to do all that since I sent out the vcxproj file.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: JeMaCheHi on 2015-02-10 18:46:57
Hey guys, to add a bit more clarity, another message I sent JeMaCheHi might also be helpful:

Oh yes, that will be more than welcome, I forgot to paste that one too...  :-[
Well, hope someone help with the hashing :)
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Kaldarasha on 2015-02-10 19:08:23
I put this on the FF8 Steam forum as well. http://steamcommunity.com/app/39150/discussions/0/612823460277021580/
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Demigod0502 on 2015-05-27 21:21:39
I'm having a problem running Tonberry. If anyone can help me out, I'd really appreciate it. I am very impressed with all the hard work and graphic/coding-intense labor that I can see, I just want to experience it real time XD. I have been trying to reorganize the folders to see if i can get it to work, but with no success.

What I have right now is:

Tonberry:
Hashmap folder
Objmap folder
collisions.csv

Hashmap folder:
hash1map
hash2map

Objmap folder:
objfile

Textures:
all mods folders

I just tried to re-install tonberry but no success
Title: Re: [REL] Tonberry v1.0 - External Texture Support for FF8
Post by: Asker ツ on 2015-06-02 08:04:39
This occurs because the fractal method doesn't deal with edges well. If part of the texture has an edge that is next to blackness, the edge warps very slightly if you look closely. That's why it becomes so labor intensive and difficult without automation. You have to combine each sub-texture together to make all the different permutations of the fullscreen image and then slice each subtexture back out of the resized versions. I am running out of time because I have a big exam next month, so I'm going to try to start and finish Project Eden by the end of next week. An optimistic deadline, I know  :-X

Edit:Yes, but only once support is added. There are a couple problems with that right now, as you'll see in these images:
(https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/mago.png) (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/ffdtex0.png) (https://googledrive.com/host/0ByMkI_Nb8OmJQ3FEcTkxYkFaUDQ/ffdtex1.png)
The left is the original and the right 2 are from Magochocobo. Notice that his mapping is very different than what's in the game's memory. These textures will need to be remapped to the appropriate sections to match the picture on the left. Also note that the size of the left image is 128x128. A 4x resize would be 512x512, not 1024x1024 like most other textures. This will also need to be changed. If all that is fixed and after support has been built in there's no reason it wouldn't work.


How to get that ?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: bobbythejobby on 2017-08-24 21:34:33
My FF8 launcher work fine. But when i try to run it with Tornberry enhanced i get teh following error.  "The application was unable to start correctly (0xc000007b). ClickOK to close the application. If I remove Tonberry the launcher work fine again. Can anyone help me out? Really want to play ff8 again with better textures
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2017-08-24 23:47:05
Hey - you posted in the old tonberry thread, so i hope you're not using it.  the new one is 'tonberry: enhanced'.

Also - try downloading the directx9c runtimes - you're probably on windows 10
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: bobbythejobby on 2017-08-24 23:53:30
I was using the latest tonberry enhanced. I am using Windows 7 Ultimate sp1 64 bit. I tried installng the visual basic packages (both x86 and x64), tried updating all versions of direct x (9,10&11) updated to latest version of .net framework. But none of that helped. I did fix it though by reverting back to tonberry enhanced 2.01 ( I just kept going back a version to I found one that worked and the first one which worked was v2.01) Really weird but oh well alls well that ends well. Got the menu mod,char, enemy and boss upscales working and looking good, Will download the big 1gb field textures one when my internet allowance gets reset again on the 1st of september
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: bobbythejobby on 2017-08-25 19:50:44
I found out that its the file d3d9callback.dll that causes the problems. My FF8 constantly crashes and its always  d3d9callback.dll that is indicated as the problem in the windows error report. So I tried replacing only the d3d9callback.dll with teh one in Tonbery enhanced 2.04 and the launcher crash is back. Windows 7 hates that file lol
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2017-08-25 21:56:42
I found out that its the file d3d9callback.dll that causes the problems. My FF8 constantly crashes and its always  d3d9callback.dll that is indicated as the problem in the windows error report. So I tried replacing only the d3d9callback.dll with teh one in Tonbery enhanced 2.04 and the launcher crash is back. Windows 7 hates that file lol

You should be posting on the other Tonberry thread (Enhanced)
You need to make sure you have VC Redistributable and the latest version of DirectX9c runtimes.  I run Win 7 and don't have those problems.  Also - read through the Tonberry Enhanced thread to see if your questions have been addressed.  It's not this thread, it's this other one here:
http://forums.qhimm.com/index.php?topic=15945.0
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: bobbythejobby on 2017-08-26 10:02:17
I have every version of VN redistributable installed from 2010 to 2017 (x86 and x64) I have upated directx and have followed the guideto the letter but nomatter what I do every of tonberry enhanced past 2.01 crashes my ff8 launcher and it wont load .
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: Mcindus on 2017-08-27 01:27:46
I have every version of VN redistributable installed from 2010 to 2017 (x86 and x64) I have upated directx and have followed the guideto the letter but nomatter what I do every of tonberry enhanced past 2.01 crashes my ff8 launcher and it wont load .

Get the developer package for directx9c redist 2010.  After you download, find the most recent one from the list and download.  You might THINK you have what you need, but this download package should fix your problem... it doesn't come with any other package and not only fixes d3d9 hooks, but does so on ALL win 10 machines (which is a huge issue). Here's the link:
https://www.microsoft.com/en-us/download/details.aspx?id=8109

DO THIS.  Please.
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: bobbythejobby on 2017-09-03 00:01:49
Thanks I will try at some point (recently bought FF9 Steam and am around halfway through disc3 I think). Though I have Windows 7 not 10. Will it still do?
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: bobbythejobby on 2017-10-02 13:04:26
Hey I finally got round to trying this. I still get the exact same error "The application was unable to start correctly (0xc000007b). ClickOK to close the application." with the directx update installed. Guess I will just have to stick with v2.1
Title: Re: [FF8PC] External Texture Support - Tonberry (v1.5)
Post by: bobbythejobby on 2017-10-02 23:09:32
Hey I managed to fix this issue after hours of digging around on these forums. What I did was download msvcp120.dll and msvcr120.dll and copied both files to the Final Fantasy VIII installation directory (the one with ff8_en.exe and ff8launcher.exe) and now my FF8 Launcher opens fine with Tonberry enhanced v2.04 installed. Just thought I would post here so anyone else experiencing this issue can fix it.