Author Topic: [FF7-PC] Adding Character Picture To Subtitles  (Read 5677 times)

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
[FF7-PC] Adding Character Picture To Subtitles
« on: 2016-09-16 21:35:18 »
In Makou Reactor:
The command to get the PNG for the clock to appear in the corner of the screen.
Can i make a duplicate for this command but to load a PNG i have created named something else?
This way i can make an avatar at the beginning of the text along with a timer for how long the voice lasts.

Or even recreate the HUD from the submarine minigame on a field for x amount of time.
Or the the worldmap
Or the chocobo HUD.

There's gotta be a way
« Last Edit: 2016-09-16 22:42:23 by Tsunamix »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #1 on: 2016-09-16 22:20:31 »
I'm unclear on what you are doing and why.  But if it's to add avatars of characters:

It would take a significant amount of coding in assembly to add further graphics and attach them - somehow - to the person who is talking.  It's not impossible to add different pictures with assembly, but attaching them to the person talking and all the rest of it is just so messy with assembly and a lot more work than it's ultimately worth. Any time you are doing something the engine didn't do originally, you are usually asking for changes that will take a coder a lot of time - and may even  be so difficult as to be moot.  This particular request falls into that bracket - I'd not attempt it. Other engines that do this kind of thing have been designed to do so - they are coded to attach an avatar based on something like a character ID assigned to the particular box. FF7 doesn't have any such feature. You'd have to create that in asm before anything else - and I can see that being a pain.
« Last Edit: 2016-09-16 22:50:22 by DLPB »

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #2 on: 2016-09-16 22:27:42 »
Its not even so much an automatic thing, i'll do all that myself. I would like to be able to duplicate the clock call code for get btl_win_b_l_12.png and make it my own. Create window, numerical display (My PNG instead like aerissub.png) and close after x amount of time. I can do most of this i just need to know how the code to show btl_win_b_l_12.png works and duplicate it.

Or even the coin i think, i dunno where that's used but it looks like a maybe
« Last Edit: 2016-09-16 22:30:24 by Tsunamix »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #3 on: 2016-09-16 22:30:11 »
It works in asm by calling a function that draws a section of the main texture in question. The function is fed in a number of parameters such as ID of the texture and X Y offset on the texture and the H W of the section. You'd need to call that function with your own parameters and also edit images onto the relevant texture.  From there it would be a nightmare to do the rest.

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #4 on: 2016-09-16 22:32:48 »
I, i didn't understand any of that unfortunately.

Why can't it just be clock code is fetch png and put it here for x ammount of time.
I copy this but change the png name lol, that's all i want  :\

EDIT: what about the pointer? Can i make a version of that code? Or the triangles that appear over doors and ladders
« Last Edit: 2016-09-16 22:35:33 by Tsunamix »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #5 on: 2016-09-16 22:36:53 »
Unfortunately that's like saying why can't I dig through a mountain if I have a digger.  It's not as simple as that - at all. The engine has been coded to do one thing - and to make it do anything else, even if it seems logical, is simply not a matter of a small edit. It's a significant amount of rewriting - in the most time consuming language there is - machine code. You aren;t asking to fetch a "clock png", you are asking to fetch different avatars - something that simply does not exist in the engine.  You'd have to change asm to make that happen.

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #6 on: 2016-09-16 22:38:59 »
Okay, what's asm?

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #7 on: 2016-09-16 22:39:36 »
x86 assembly. Hex editing.

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #8 on: 2016-09-16 22:40:58 »
I was afraid of that ....

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #9 on: 2016-09-16 22:43:50 »
That goes for nearly any question where the engine didn't do it originally, sadly :)

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #10 on: 2016-09-16 22:45:16 »
Alright, well it's not needed anyway, it was just a nice thought. If anyone finds a solution later then i'll be happy to use it

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #11 on: 2016-09-17 00:24:58 »
Like an overlay in a custom graphics driver. :)

Tsuna

  • Global moderator
  • *
  • Posts: 823
  • Working together to create awesome things!
    • View Profile
    • The home of Tsunamods
Re: [FF7-PC] Adding Character Picture To Subtitles
« Reply #12 on: 2016-09-17 00:30:21 »
I guess yeah, pretty much a worldmap, but there would 8 of them and i can use them in field