Author Topic: [PC] Mod manager - 7thHeaven (v1.54)  (Read 488782 times)

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #400 on: 2014-07-14 03:26:33 »
I have export every file with Ctrl+E by hand and then I re-imported them with Ctrl+I (space to check the boxes) in an unmodified flevel.lgp. This isn't a big deal but it's nasty.
« Last Edit: 2014-07-14 18:57:10 by Kaldarasha »

cmh175

  • *
  • Posts: 862
    • View Profile
    • Chris Hendrickson's Artstation
Re: 7thHeaven
« Reply #401 on: 2014-07-14 03:29:27 »
I have export every file with Ctrl+E (space to check the boxes) by hand and then I re-imported them with Ctrl+I in an unmodified flevel.lgp. This isn't a big deal but it's nasty.

Damn buddy, well done!

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: 7thHeaven
« Reply #402 on: 2014-07-14 11:36:49 »
Magic: https://docs.google.com/file/d/0B-Q_AObuWRSXaXRZdlc1aVJPXzg/edit

Save: https://docs.google.com/file/d/0B-Q_AObuWRSXVXNXUWFFME5CMjg/edit

That is the Magic folder I use for 7H. I load up Slot 04 of the save in Kalm and fight sweepers, etc. outside on the World Map.

@EQ2Alyza: I have tried packing some of the files from that mod into a .iro file and the magic textures/PNGs load fine from the .iro for me :/  so I am not sure what the problem is? The battle didn't crash either, I could finish it OK...

Could you try again and see what happens with v1.21, maybe it is only a problem with larger .iro files (I only packed a few files for a quick test) or maybe the new version fixes it somehow....??

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: 7thHeaven
« Reply #403 on: 2014-07-14 11:41:39 »
Pretty sure MR can cause some garbage data to be present in field or specifically groups within a field. I had a CTD in a field that was tied to a dummy group. Once I cut that dummy group (trying to edit it causes MR to crash) out, the field worked fine.

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #404 on: 2014-07-14 20:15:33 »
You should really explain better how a new function works. I started with a mod with a music folder in it. So the Mod looked like this Modename\music\vgmstream\rocket.oog. Well this didn't work and I had no clue why...
Many changes later I decided to change it to 'Modename\vgmstream\rocket.oog' and this was it.

Here some suggestion for the next release:
I need to add files in Hext_in. I guess currently is only replacing possible?
Is it possible to make 7th Heaven like an injector? So I would open 7th Heaven but start the FF7.exe elsewhere and 7th Heaven would still wraps the mods in. Maybe this way it will be working with the re-releases.
« Last Edit: 2014-07-14 23:42:21 by Kaldarasha »

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: 7thHeaven
« Reply #405 on: 2014-07-14 23:19:26 »
@EQ2Alyza: I have tried packing some of the files from that mod into a .iro file and the magic textures/PNGs load fine from the .iro for me :/  so I am not sure what the problem is? The battle didn't crash either, I could finish it OK...

Could you try again and see what happens with v1.21, maybe it is only a problem with larger .iro files (I only packed a few files for a quick test) or maybe the new version fixes it somehow....??

I'll try it tonight with 1.21. The fields are actually larger in size than the magic, so I'm not so sure on the larger .iro idea. Magic .iro WAS working in 1.09, so cmh175 and I thought perhaps a typo in the code happened in 1.10.

EDIT: All is well with magic textures :)
« Last Edit: 2014-07-15 02:16:31 by EQ2Alyza »

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: 7thHeaven
« Reply #406 on: 2014-07-15 04:05:45 »
I am getting the same situation for music as I did with the magic textures. Importing the folder itself works, but the .iro does not. I am going to compile the .iro on another computer and edit this post with the results.

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: 7thHeaven
« Reply #407 on: 2014-07-15 11:25:03 »
I think for the next version, I will add in a debug mode that lists what files it is looking for - that will make it simpler to work out what your folders should be named!

(It will probably have to be a special mode that is normally off because the game accesses a LOT of files! - so it will slow things down a bit. But it should be useful for getting your mods set up correctly.)

@EQ2Alyza: Music in .iro might be a naming issue again ... if it doesn't work the debug logs in the next version might help us sort it out.

@Kaldarasha: Unfortunately it is probably not possible to inject 7H into the process after it has started - FF7 reads most of the LGP files and the table of contents in the LGP as soon as it starts, so if you inject 7H later - even just a second later - it is too late to intercept the LGP files. Really 7H needs to launch FF7 because then it can control it and be SURE of installing the necessary code before FF7 starts running.

Adding extra files in a folder actually might work, but what would probably work better is that I will add proper support for a mod to contain DLL files that are injected. That should be easy.


Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #408 on: 2014-07-15 14:09:59 »
No in Hext_in are placed text files to edit the FF7.exe. Leave the Dll stuff for Dan.  :P
But I haven't tested the new Hext_Launch.exe with 7th Heaven together. I fear that I only can use one tool at once. Well I will better test it immediately.
OK, if I point 7th Heaven to Hext_Launch it will work. But now I have to start the BorderlessWindow.exe manual.
Well, only a question: could you give 7th H. an interface to edit the opengl config of Aali's driver?
« Last Edit: 2014-07-15 14:26:00 by Kaldarasha »

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: 7thHeaven
« Reply #409 on: 2014-07-15 15:19:51 »
You suggested using DebugView way back during the first release, so I still use that when testing. It shows the files inside the music .iro being read, but there are no overridden actions happening after that.

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: 7thHeaven
« Reply #410 on: 2014-07-15 17:30:43 »
No in Hext_in are placed text files to edit the FF7.exe. Leave the Dll stuff for Dan.  :P
But I haven't tested the new Hext_Launch.exe with 7th Heaven together. I fear that I only can use one tool at once. Well I will better test it immediately.
OK, if I point 7th Heaven to Hext_Launch it will work. But now I have to start the BorderlessWindow.exe manual.
Well, only a question: could you give 7th H. an interface to edit the opengl config of Aali's driver?

Oh, OK. What hext files do you suggest I should use for testing? I did a quick search but couldn't see what mods/downloads actually use hext files.

To edit the opengl ... so the driver would use a different opengl config file when 7H ran it? Yes, I think that is possible.

You suggested using DebugView way back during the first release, so I still use that when testing. It shows the files inside the music .iro being read, but there are no overridden actions happening after that.

Hm, that is confusing. Can you post for the debug output for me to look at?

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: 7thHeaven
« Reply #411 on: 2014-07-15 18:26:03 »
I was wrong in my statement. It was late, so I'll blame it on tired heavy eyes. It is trying to override, but the APP.LOG is reporting an error with it. I don't know why it's showing the \ in the directory path switching to / when it hits the music folder. I'd seen that in other APP.LOG posts before, but always ignored it :roll:

Code: [Select]
[29616] File vgmstream\UTAI.ogg overridden by [IrosArchive C:\Games\Steam\steamapps\common\FINAL FANTASY VII\mods\7th Heaven\3e2e77d3-47db-47d1-ad50-7d1b39eb1bf1_Media - Music.iro]OST Remastered\vgmstream\UTAI.ogg
[29616] Creating dummy file handle 2276 to access [IrosArchive C:\Games\Steam\steamapps\common\FINAL FANTASY VII\mods\7th Heaven\3e2e77d3-47db-47d1-ad50-7d1b39eb1bf1_Media - Music.iro]OST Remastered\vgmstream\UTAI.ogg
[29616] Closing dummy handle 2276
[29616] File vgmstream\TA.ogg overridden by [IrosArchive C:\Games\Steam\steamapps\common\FINAL FANTASY VII\mods\7th Heaven\3e2e77d3-47db-47d1-ad50-7d1b39eb1bf1_Media - Music.iro]OST Remastered\vgmstream\TA.ogg
[29616] Creating dummy file handle 3004 to access [IrosArchive C:\Games\Steam\steamapps\common\FINAL FANTASY VII\mods\7th Heaven\3e2e77d3-47db-47d1-ad50-7d1b39eb1bf1_Media - Music.iro]OST Remastered\vgmstream\TA.ogg
[29616] Closing dummy handle 3004

Code: [Select]
[00000000] INFO: FF7/FF8 OpenGL driver version 0.8.1b
[00000000] INFO: Auto-detected version: FF7 1.02 US English
[00000000] INFO: NVIDIA Corporation GeForce GT 525M/PCIe/SSE2 4.3.0
[00000000] INFO: OpenGL 2.0 support detected
[00000000] INFO: Using PBO
[00000000] INFO: Found swap_control extension
[00000000] INFO: Max texture size: 16384x16384
[00000000] INFO: Original resolution 640x480, window size 1600x900, output resolution 1200x900, internal resolution 3840x2160
[00000000] INFO: Shader limits: varying 124, vert uniform 4096, frag uniform 2048
[00000000] INFO: FFMpeg movie player plugin loaded
[00000000] INFO: FFMpeg version SVN-r25886, Copyright (c) 2000-2010 Fabrice Bellard, et al.
[00000000] INFO: VGMStream music plugin loaded
[00000000] INFO: Loading external library multi
[00000000] LOCK UNLOCK TEST
[00000001] MATRIX INITIALIZE
[00000001] INITIALIZE DD/D3D END
[00000001] initializing sound...
[00000001] creating dsound primary buffer
[00000001] reading audio file
[00000001] loading static sounds
[00000001] sound initialized
[00000001] set music volume: 127
[00000001] set music volume: 127
[00000001] Entering MAIN
[00000001] Exiting MAIN
[00000001] START OF CREDITS!!!
[00000001] INFO: C:\Games\Steam\steamapps\common\FINAL FANTASY VII\data\movies\eidoslogo.avi; h264/aac 1280x960, 15.000000 FPS, duration: 10.193000, frames: 153
[00000150] INFO: C:\Games\Steam\steamapps\common\FINAL FANTASY VII\data\movies\sqlogo.avi; h264/aac 1280x896, 15.000000 FPS, duration: 14.605000, frames: 219
[00000195] set music volume trans: 127->0, step=60
[00000260] END OF CREDITS!!!
[00000260] Entering MAIN
[00000260] set music volume: 127
[00000260] Exiting MAIN
[00000260] START OF MENU SYSTEM!!!
[00001148] END OF MENU SYSTEM!!!
[00001148] Entering MAIN
[00001152] Exiting MAIN
[00001152] Field Start
[00001152] ERROR: couldn't open music file: C:\Games\Steam\steamapps\common\FINAL FANTASY VII\/music/vgmstream/UTAI.ogg
[00001152] GLITCH: missed palette write to external texture field/uutai1/uutai1_15
[00001656] Field Quit
[00001656] Entering MAIN
[00001656] Exiting MAIN
[00001656] -=-=[START OF WORLD MAP!!!]=-=-
[00001656] stop_sound
[00001656] cross play music: 0
[00001656] set music volume trans: 127->0, step=4
[00001656] ERROR: couldn't open music file: C:\Games\Steam\steamapps\common\FINAL FANTASY VII\/music/vgmstream/TA.ogg
[00001657] set music volume: 127
[00001945] -=-=[END OF WORLD MAP!!!]=-=-
[00001945] START OF MENU SYSTEM!!!
[00002077] WM_CLOSE
[00002077] END OF MENU SYSTEM!!!
[00002077] Field Quit
[00002077] UNINITIALIZE DD
« Last Edit: 2014-07-15 18:28:15 by EQ2Alyza »

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: 7thHeaven
« Reply #412 on: 2014-07-15 19:11:53 »
Unfortunately I can't get vgmstream working at all - I don't mean with 7H, I can't get it to do anything even when I run FF7 directly :/  This is annoying, I'm sure if I could get it working, it would be simple to find out why it doesn't work with 7H!

The forward slash in the path is not important, Aali's code often uses forward slashes to access files but it works just like a back slash.


EDIT: ...suddenly it is working. I am sure nothing has changed, but... well, at least now I can try and find the problem!
« Last Edit: 2014-07-15 20:22:45 by Iros »

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: 7thHeaven
« Reply #413 on: 2014-07-16 00:36:53 »
I'm sure we'll find out what's up :)

Just a heads up to also update the OP with the latest 7H download.

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #414 on: 2014-07-16 09:19:14 »
Quote
To edit the opengl ... so the driver would use a different opengl config file when 7H ran it? Yes, I think that is possible.
I only mean an interface to make changes to the config file, so nobody has to open it in a text editor to set up the resolution for example.
The Bootleg front end can do this already for the outdated old driver. Hmm... this gives me a better idea:
Add a function for moders to add a tab in 7th Heaven. The taps should only control a text based config file. I guess it's enough if we can set up the tabs through xml files. The Tabs in 7th Heaven should work with true(1), false(0) and write a value XY. So we define which file needs to set up and how the value has to look like, for example if '1' is 'yes' in the config or on another circumstance if '1' is 'on' and so forth. 7th Heaven should also be able to automatically read the xml files and add a tab with its information.
I hope you understand what I mean.  :-D
In the end we have a very easy to maintain feature. If Aali's brings out a new driver with new functions, all what we need to do are some fine adjustments to the xml and everything works as before.

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: 7thHeaven
« Reply #415 on: 2014-07-16 13:34:39 »
@Kaldarasha: Hm, unfortunately I didn't see your latest comment when I prepared the new version so I have implemented what I thought you meant :)

Still, I see what you mean now, so perhaps in the next version.

Version 1.22:

https://mega.co.nz/#!GYMlnDQZ!J6KqxmVKcZvzFD0-inDitH6b3b7N8tgLLGKgrjaIcBs

New features/fixes:

-Replacing vgmstream files from inside a .iro should work now
-Set a profile to use a different ff7_opengl configuration (see above. oops!)
-Debug mode - right click on Launch button to run in debug. Will log exactly which files the wrapper is looking for - this should help figure out why a mod isn't working properly, perhaps...

The debug mode does log more than the wrapper normally logs, also it will open the log file in Notepad after you exit FF7 so you don't need to run Debugview (although you still can, if you want).


@EQ2Alyza: Good point, thank you.

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #416 on: 2014-07-16 18:29:04 »

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: 7thHeaven
« Reply #417 on: 2014-07-17 03:26:50 »
I loaded into Kalm with debug mode on, ran outside to the World Map, then exit the game, and it produced a 678 MB log file. Uh oh!

In v1.21, my Logitech Dual Action USB Controller works, but in v1.22 the hand in the start menu is stuck moving rapidly up and down.

Does .iro file size have any affect on them working? I can make separate categories for movies, music, and sound and all work fine. In a combined .iro of 5.41GB, a couple of the options suddenly don't work.
« Last Edit: 2014-07-17 06:23:53 by EQ2Alyza »

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: 7thHeaven
« Reply #418 on: 2014-07-17 09:09:04 »
I loaded into Kalm with debug mode on, ran outside to the World Map, then exit the game, and it produced a 678 MB log file. Uh oh!

Yes, debug mode REALLY does log almost everything - I suggest, if you are having trouble getting a mod set up, run 7H with JUST that mod active, and try to have a savegame in the place you need to check things, so you can start the game and go straight to the place that reads the file :)

Quote
Does .iro file size have any affect on them working? I can make separate categories for movies, music, and sound and all work fine. In a combined .iro of 5.41GB, a couple of the options suddenly don't work.

Ah, I think you have found a bug. The .iro file format supports files >4GB in size ... but the wrapper code did not. So...

New version v1.23:

https://mega.co.nz/#!qEtBnLzC!rpxPlnrcbcVj-TYFi6JZNQpNmqgmL8td2X5AiInzqIc

Fix: .iro files >4GB will hopefully work properly
New feature: 7H can apply Hext patches
New feature: OpenGL driver config editor

@EQ2Alyza: You should not have to make the .iro file again - I think the file is OK, just you need the new wrapper for it to work.

@Kaldarasha: You can create a mod that applies hext patches. If you create a "Hext" folder inside the mod folder and put your text patch(s) in that folder, the new version should pick them up and apply them.

(e.g. if you 7H folder is C:\games\ff7\7thHeaven then maybe put the file in C:\games\ff7\7thHeaven\MyModName\hext\SomeHextPatch.txt )

Also I have put a basic OpenGL config editor in. The config is set up in the file ConfigSpec-FF7OpenGL.xml - I have not included every setting, but perhaps this is enough to show you how it works? (You access the editor from the Workshop menu in 7H). If somebody writes a good XML file then I can easily include it in future versions.
« Last Edit: 2014-07-17 09:28:05 by Iros »

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #419 on: 2014-07-17 10:12:49 »
I see how it works and will write a new xml. Thanks for implementing it and it is pretty easy to use. ;D

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #420 on: 2014-07-17 12:12:07 »
Yes, the controller support is broken. The game crashes at start if my Xbox controller is connected.

Here is the modified ConfigSpec-FF7OpenGL.xml.
https://mega.co.nz/#!3QUxDQob!DSNibifr3fB7PX_uQdvbnYUOVFSaNUF0zvpCAQ6QgBU

If I find the time I change the resolution option with suggestions as you have made it.
I have played around with the internal renderer, the 2X*320 and 4X*240 isn't entirely correct. Actually it must be 2x*320 and 2*2x*240 (or 2x*480). This way I had lesser distortions with the upscaled field scenes.

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: 7thHeaven
« Reply #421 on: 2014-07-17 14:46:03 »
?? You mean, controller support is broken by the new version of 7H? The controller works fine if you run FF7 directly, and not when you run through 7H?

If yes, that is very weird, but I will try and work out what the cause is...

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: 7thHeaven
« Reply #422 on: 2014-07-17 14:58:37 »
The controller works without 7th Heaven. I think the new debug mode has something to do with it. I haven't used it yet, but its there since v1.22 according to EQ2Alyza.

Iros

  • 7th Heaven Crew
  • *
  • Posts: 229
  • Files for the file god! Mods for the mod throne!
    • View Profile
Re: [FF7] Mod manager - 7thHeaven
« Reply #423 on: 2014-07-17 18:44:47 »
Well, you are both correct, it is certainly broken. It was not the debug mode but the code I added to fix VGMStream. Still not sure why it broke controllers, but, easy to work around...

v1.24: https://mega.co.nz/#!PB8yBbCI!2eBAvmNhbQ-V1geUr-IchmRWvozEXJmg4vTHsLRPi9c

Fix: controllers not working for some reason
Update: OpenGL config XML with Kaldarasha's changes

EQ2Alyza

  • 7th Heaven Crew
  • Global moderator
  • *
  • Posts: 3200
  • Dilly-Dally Shilly-Shally
    • View Profile
    • EQ2Alyza - YouTube Channel
Re: [FF7PC] Mod manager - 7thHeaven
« Reply #424 on: 2014-07-17 19:51:54 »
As always, thank you :) I'll keep reporting anything else I find.