Author Topic: Finishing Touch - Automagically get Q-Gears to run the game! (Revision 3)  (Read 8358 times)

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
The Finishing Touch
Automagically fix Z-Index, LUA errors, savemap and dialogs




This program is aimed at fixing all those little bugs here and there that have plagued Q-Gears. It is meant to be applied OVER the data installer in a binary patch way.  You could say this is Q-Gears' first mod :)  It will fix up the Z-Index, meaning you won't walk above walls and obstacles anymore!  Implements a framework in order to add dialogue in a future revision,  it also adds Q-Gears' own custom main menu background that I designed in Blender.

Currently after you run the Q-Gears data installer you get the data in order to run the game however some basic things like a main menu or a level selection menu are not added, meaning that the game will crash upon starting.  This adds the special sauce is needed to get it all going :)

Heres what your game will look like once you have installed it:
(Minus a few menu options because those are debug options.)

How to install (Revision 3)
0. Make sure you don't have previous q-gears installs in your program files directory!
1. Download and install *this version* of Q-Gears from: http://qgears.itscovarr.com/dd454d2c2884f2d8b1125dfc15f500ddf0a24e7e/windows/
2. Open your Q-Gears directory in C:\Program Files\q-gears 0.22.0
3. Run q-gears-launcher and switch to the data installer tab
4.1 In the Import Data Source point it to Final Fantasy 7's /data/ folder (Not the actual Final Fantasy folder but the data folder inside it!)
4.2 In the Q-Gears data path point it to your q-gears/data folder Example: C:/Program Files/q-gears 0.22.0/data
5. Click the "Install data" button and let it finish. Don't worry if windows says it is not responding, give it some time to do its job!
6. Download the latest Finishing Touch patch and install it.
7. Run q-gears.exe and enjoy the game  ;)

Now on to the real deal:
Revision 3: We enter the reactor
Fixes bug in nmkin_1 where you would crash when you talked to Barret
Script now correctly executes in nmkin_1
Added extensive documentation and commenting in nmkin_1 to make it easy to read/modify



Download Revision 3: http://www.mediafire.com/download/5a39zi23fbx8m0y/Revision3.exe
Revision 3 works with this Q-Gears: http://qgears.itscovarr.com/dd454d2c2884f2d8b1125dfc15f500ddf0a24e7e/windows/

Revision 2: C'mon newcomer
Fixes the 2 guards that get killed, they now have on_interact scripts and drop potions when they are killed
Dialog implementation
Field background animations re-added
Fixed hang bug in nmkin_1
Added doors in nmkin_1
Works with a more updated q-gears



Download Revision 2A: https://www.mediafire.com/?c9w7h5ex8js3ir7.
Revision 2A works with this Q-Gears: http://qgears.itscovarr.com/dd454d2c2884f2d8b1125dfc15f500ddf0a24e7e/windows/

Download Revision 2B: Replaced by Revision 3, scroll up to download
Revision 2B works with this Q-Gears: http://qgears.itscovarr.com/602e2a895de4bd8f6474cbe9c81a3c891ad9b8e1/windows/
(Revision 2A and 2B are the same except they are compiled against 2 different versions of Q-Gears)


Revision 1: Hide and Seek
Fixes tiles Z-Index allowing you to walk behind stuff and not over it!


Download Revision 1: https://www.mediafire.com/?zko6npc5innbcsd
Revision 1 works with this Q-Gears: http://qgears.itscovarr.com/9684ed83f853428a3a17a1b4e20926b8be5d9455/windows/
« Last Edit: 2015-10-04 15:36:24 by Tom »

paul

  • Moderator
  • Crazy poster
  • *
  • Posts: 180
  • Karma: 33
    • View Profile

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Does that one fully install data or freeze like the other one did?

paul

  • Moderator
  • Crazy poster
  • *
  • Posts: 180
  • Karma: 33
    • View Profile
Of course it doesn't freeze else I wouldn't be suggesting to use it would I? This build has more fixes:

http://qgears.itscovarr.com/dd454d2c2884f2d8b1125dfc15f500ddf0a24e7e/windows/

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Okay since the files change with the update the new installer will not be compatible with the old qgears build this means when the Revision 2 is released you will have to uninstall qgears and download the new revision and repeat the FT install instructions.

KnifeTheSky77

  • Freak
  • *
  • Posts: 521
  • Karma: 18
  • Somnambulistic Paraphile
    • View Profile
I think it is cool that mods are being made for q-gears, don't get me wrong, but doesn't it seem wiser to fix these issues in source rather than spending time making a band-aid? We don't need to reverse engineer q-gears itself. Q-Gears is the band-aid for the original engine as it is

paul

  • Moderator
  • Crazy poster
  • *
  • Posts: 180
  • Karma: 33
    • View Profile
I don't think Tom knows C++ so thats why hes done it this way, fixing Z order is probably easy. Adding dialogs just needs that section of the  field parsing for PC data and integrating in to SUDM. The nil vars in the script need fixing by extracting the save map from kernel.bin in the installer and changing SUDM to read/write banks from this rather than its own named vars. For mods they can use their own locals in lua scripts however they want - but to get stuff working a Read/WriteBank API is probably going to be a lot easier.

Someone just needs to take the time to do these things :) I can provide help as needed about the structure/solution - not "what does int mean" etc level of help.

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Currently, I only do Java programming, visual basic 6 and HTML.  I understand what the c++ does if I look at the files but don't really know how the syntax and all the commands exactly work.  This may change later on if I'm motivated enough to seriously do c++.

Anyways at least I can find all the problems as this is done and point them out in github if I can't fix them.

PS The field converter is better than you think, the amount of code that has to be fixed to have a field working 100% usually does not exceed 20-30 lines of modifications. :) And that's a bit overkill because I changed a lot more than the bare minimum to get them working like convert on/off bits to booleans and renaming labels.

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Revision 2 has been released, enjoy :)
Also post any improvements you make on the scripts so I can add them into the mod.

paul

  • Moderator
  • Crazy poster
  • *
  • Posts: 180
  • Karma: 33
    • View Profile
Latest built should install texts now too

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Revision 3 - Descend into the Mako Reactor will be released a little after August 10th. Fixes glitches with the elevator field and adds animations for cloud and barret hitting the button (in the elevator).  Also work done in the later mako fields and fixes softlock in nmkin_1.

Salk

  • Insane poster
  • *
  • Posts: 416
  • Karma: 11
    • View Profile
Thank you for all your work on Q-Gears, guys!

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Sorry for the very very long delay, things have gotten quite busy because Windows 10 came out and broke the original FF7 PC98 installer, so that needed remaking.  Don't worry, the project is totally not abandoned and progress to Finishing Touch HAS been made however not enough to warrant another revision release.
~Stay tuned for the next revision of the Finishing Touch!~

Fischkopf

  • Crazy poster
  • *
  • Posts: 214
  • Karma: 1
    • View Profile
That's funny, because when I switched to Windows 10 from 8.1 I just copied my old FF VII installation over, set the disk drive manually via regedit, mounted the dummy iso and I could play my previously modded installation without problems. xD

Kaldarasha

  • No life
  • *
  • Posts: 2120
  • Karma: 126
  • Prince of Model Editing
    • View Profile
That's funny, because when I switched to Windows 10 from 8.1 I just copied my old FF VII installation over, set the disk drive manually via regedit, mounted the dummy iso and I could play my previously modded installation without problems. xD

And now uninstall it and try to install it again...

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Now you can install it using Tom's Installer Remake, its in the tools section of the forums or here: http://forums.qhimm.com/index.php?topic=16328
Fixed a few bugs in Q-Gears fields today, might get a release later this week

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Finishing Touch Revision 3 is up for download: http://www.mediafire.com/download/5a39zi23fbx8m0y/Revision3.exe
Fixes a bunch of stuff in nmkin_1 and adds a ton of dialogue and some smaller bugs on other fields.

Depending on how 7-Gears develops we might not even need Finishing Touch anymore so consider the project somewhat transitional for now.

Scripts now execute in nmkin_1! Hooray! (It was a very tough field to get working)
« Last Edit: 2015-10-04 15:38:31 by Tom »

obesebear

  • Administrator
  • No life
  • *
  • Posts: 3219
  • Karma: 109
    • View Profile
Forgive my ignorance, but what is 7-Gears?

Covarr

  • Covarr-Let
  • Administrator
  • No life
  • *
  • Posts: 3906
  • Karma: 116
  • The Great Redarr.
    • View Profile

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
For 7-Gears it would be nice if more developers could join the team and help with the project :) . 7-Gears is about making 1:1 replacement of the ff7.exe, so we gotta reproduce already existing behavior instead of adding new things.

You don't have to be an expert C++ developer to help, we also need people that understand the game formats and how to read and execute them.

Until 7-Gears reaches a state in which it surpasses Q-Gears 0.22 useability the Finishing Touch project will continue :)

KnifeTheSky77

  • Freak
  • *
  • Posts: 521
  • Karma: 18
  • Somnambulistic Paraphile
    • View Profile
Q-Gears is a bit of an enigma machine to me as I'm mostly a Java/C# kinda guy. On top of the c++ witch-speak, Ogre is crap in a lot of ways that make learning it and using it very challenging. I mean, c'mon, go look at their docs and their forum. I don't think I could do much with it without some really good directions.

Hellbringer616

  • No life
  • *
  • Posts: 1915
  • Karma: 12
    • View Profile
OpenMW recently switched to OpenSceneGraph: http://www.openscenegraph.org/

Since you're starting sorta from scratch it might be worth your while to look into?

Tom

  • Moderator
  • Crazy poster
  • *
  • Posts: 207
  • Karma: 38
    • View Profile
Currently we are going to go with SDL: https://www.libsdl.org/
This is totally not starting from scratch, this is going to are going to reuse code from many different versions of Q-Gears to make something actually worth playing.
Since theres plenty of code that will work with it for 7-Gears.
We don't want anything anything that's system heavy or filled with bloat (Like unreal/unity) or prevents low level access.
« Last Edit: 2015-10-08 18:53:04 by Tom »

KnifeTheSky77

  • Freak
  • *
  • Posts: 521
  • Karma: 18
  • Somnambulistic Paraphile
    • View Profile
This looks interesting, is this just a plan or have steps actually been taken to migrate from ogre?

Akari

  • Moderator
  • Freak
  • *
  • Posts: 759
  • Karma: 25
    • View Profile
Quote
Currently we are going to go with SDL: https://www.libsdl.org/
This is totally not starting from scratch, this is going to are going to reuse code from many different versions of Q-Gears to make something actually worth playing.

Look at the version 0.14 and earlier https://github.com/q-gears/q-gears-reversing-data/tree/master/media/version_old. It uses SDL. It can play movie work with native scripts and so on. It uses PSX version of native data but youcan easily convert to PC version. Some of features support pretty lame but definetly worth looking at.