Please login or register.

Login with username, password and session length
Advanced search  

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!

ASM Requests  (Read 38745 times)
Pages: 1 ... 10 11 [12] 13
Glain [Posts: 485]
  • View Profile
  • share
  • [September 12, 2018, 05:26:46 AM]
Re: ASM Requests
« Reply #220 on: September 12, 2018, 05:26:46 AM »
...A camera hack would be interesting... hmm...
French Maid
Xifanie (Webmistress) [Posts: 4391]
  • View Profile
  • Final Fantasy Hacktics
  • http://steamcommunity.com/id/Xifanie
  • share
  • [September 12, 2018, 12:20:08 PM]
Re: ASM Requests
« Reply #221 on: September 12, 2018, 12:20:08 PM »
I personally haven't tested the camera instruction theory, but I think it wouldn't be enough and it would get reset after an ability's effect plays. You probably need to also toggle the flag controlling the angle state, otherwise "I'm at 30 degrees, but this flag says I'm not, so I better switch to 30 degrees".

My take would be a bit silly, scanning all the event instructions until EventEnd(), and overriding the very last camera instruction. Whoever, this would be far from perfect and you would need to somehow detect if an event is a battle. DarkScreen() is usually a good indicator of battles, but it's also used to make characters join. Thus, I think that DisplayConditions() in an event is the best indicator of a battle... either that or March(), but if you're going to force the camera to adjust, it's probably better to do it during a DarkScreen().

...and you'd also have to somehow make it compatible with your event skip hack.

    • Modding version: PSX
  • <R999> My target market is not FFT mod players
    <Raijinili> remember that? it was awful
    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [September 12, 2018, 01:27:24 PM]
    Re: ASM Requests
    « Reply #222 on: September 12, 2018, 01:27:24 PM »
    Thanks xifanie (elric and nyzer too) ;), i was trying to find a good way to know when an event was or not a battle (nice tips).
    Code: [Select]
    DarkScreen and DisplayConditions --> 129 files have that
    March --> 119 files

    Quote
    You probably need to also toggle the flag controlling the angle state, otherwise "I'm at 30 degrees, but this flag says I'm not, so I better switch to 30 degrees".
    Well that kills, at least for now, my idea to change to a higher angle (60 or so)

    old, an issue with the editor i solved somehow:
    « Last Edit: September 12, 2018, 06:05:53 PM by xjamxx »
    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    Glain [Posts: 485]
    • View Profile
    • share
    • [September 12, 2018, 02:14:47 PM]
    Re: ASM Requests
    « Reply #223 on: September 12, 2018, 02:14:47 PM »
    Yeah, what interests me about this is more the idea of having free rotation/zoom with the L and R buttons.  I think what is to be done with the camera at the start of the battle (if anything) would depend on where that leads me.

    Ability effects do reset the camera zoom, but I think we can change the value it resets back to.  I ran into this when I was figuring out how to skip ability effects...  if you skip Galaxy Stop, for example, the camera would stay zoomed really far out, so I had to figure out how to reset the zoom.  That in turn led me to find some of the values controlling zoom and rotation, and through the debugger I was doing some pretty crazy things (zooming in ridiculously far, zooming out so far you could barely see the map), so allowing the player more control over zoom and rotation mid-battle could be interesting... and might finally provide an out for the scenario where you can't quite get the view you want in the middle of a battle.

    I've also seen that a weird camera can cause ability effects to get messed up though, doing huge rotations that look really weird... so in theory we would want to avoid that as well.  Not sure how this would all pan out but it does at least seem interesting.

    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [September 12, 2018, 02:46:09 PM]
    Re: ASM Requests
    « Reply #224 on: September 12, 2018, 02:46:09 PM »
    i began modding by differential file comparison, it will take some time.

    The idea of free rotation (we have some sort of step rotation around z axis, but not for x or y axis) and zoom, would be awesome, but i aim lower. The game has two states for zoom and angle, i was willing to have a asm patch that allow me to change those values, ex: close would be 100% and 30º, far would be 50% (33?) and (60º) plus setting initial values, cuz after 30 fights, is a pain to adjust camera manually in every battle...

    OLD (i can delete it but if any want to see whole process):

    UPDATE 3:
    Well, i edited all event files (EVT_ 010 to 012) in test.evt for the first battle with Delita still camera reset in combat mode, so its clear that battle events are not there or at least they aren't sorted with text events. Now i don't have any clue where to look...
    Video:
    « Last Edit: September 12, 2018, 06:04:09 PM by xjamxx »
    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    Glain [Posts: 485]
    • View Profile
    • share
    • [September 12, 2018, 08:14:32 PM]
    Re: ASM Requests
    « Reply #225 on: September 12, 2018, 08:14:32 PM »
    This patch changes what the camera zoom values are when you press L and R.

    The values for both zoom-in and zoom-out are hardcoded in two places (each).  One place is for how far in/out the camera goes while zooming, and the other is where the camera stays after zooming.  That's for both zoom-out and zoom-in, so there are four variables total in this patch.  You'll probably want to make the zooming and fixed values for each set the same but you don't have to.

    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [September 12, 2018, 08:16:42 PM]
    Re: ASM Requests
    « Reply #226 on: September 12, 2018, 08:16:42 PM »
    Thanks Glain,  ;)  i will test it asap.

    A silly question if u recommend same values why zoom out have c00 and c01?

    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    The Puppet ---Master---
    Elric (Overseer) [Posts: 4050]
    • View Profile
    • Youtube Channel
    • http://steamcommunity.com/id/Bones42
    • share
    • [September 12, 2018, 08:28:09 PM]
    Re: ASM Requests
    « Reply #227 on: September 12, 2018, 08:28:09 PM »
    i began modding by differential file comparison, it will take some time.

    The idea of free rotation (we have some sort of step rotation around z axis, but not for x or y axis) and zoom, would be awesome, but i aim lower. The game has two states for zoom and angle, i was willing to have a asm patch that allow me to change those values, ex: close would be 100% and 30º, far would be 50% (33?) and (60º) plus setting initial values, cuz after 30 fights, is a pain to adjust camera manually in every battle...

    OLD (i can delete it but if any want to see whole process):

    UPDATE 3:
    Well, i edited all event files (EVT_ 010 to 012) in test.evt for the first battle with Delita still camera reset in combat mode, so its clear that battle events are not there or at least they aren't sorted with text events. Now i don't have any clue where to look...
    Video:

    Each event condition, like when someone talks mid battle, would have its own camera, yes. And yes, battles are in with the text only events. I've made over 250 custom events, and the camera is present in all of them, but you'd need to edit it in every battle event as well as their conditional events

    • Modding version: PSX
  • <@Angel> Teach a man to fish and he'll open up a fishery to compete against yours.
    Journey of the Five Youtube ChannelThe Lion War Current Status
       
    Jot5 Leader :: Eventer :: OtherTLW Leader :: Eventer :: Other
    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [September 12, 2018, 08:48:24 PM]
    Re: ASM Requests
    « Reply #228 on: September 12, 2018, 08:48:24 PM »
    First, Glain I tried. a)flip values, and the zoom in and zoom out went anti-smooth b) try with 00F0 in zoom-out, and i could barely see the map.

    Second, I don't think i am getting you Elric, all events are in test.evt or the are more files? cuz lets put the second video as an example:
    a) 0- 15 sec it is controlled by EVT_010
    b) 16- 57 sec i dont know what controls it...
    c) 58- 72 sec it is controlled by EVT_011
    d) 73- end sec controlled by player... (yet it still resets)

    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    The Puppet ---Master---
    Elric (Overseer) [Posts: 4050]
    • View Profile
    • Youtube Channel
    • http://steamcommunity.com/id/Bones42
    • share
    • [September 12, 2018, 08:52:16 PM]
    Re: ASM Requests
    « Reply #229 on: September 12, 2018, 08:52:16 PM »
    Every single event in the game is in test.evt.


    • Modding version: PSX
  • <@Angel> Teach a man to fish and he'll open up a fishery to compete against yours.
    Journey of the Five Youtube ChannelThe Lion War Current Status
       
    Jot5 Leader :: Eventer :: OtherTLW Leader :: Eventer :: Other
    Glain [Posts: 485]
    • View Profile
    • share
    • [September 12, 2018, 08:57:59 PM]
    Re: ASM Requests
    « Reply #230 on: September 12, 2018, 08:57:59 PM »
    Thanks Glain,  ;)  i will test it asap.

    A silly question if u recommend same values why zoom out have c00 and c01?

    The comparison it's doing is whether the current zooming value is >= 0x0c01.  By contrast it checks for zooming value < 0x1000 when going the other way.  I guess it's so that the zooming will stop in the case of the value being exactly equal.  It's probably not a big deal either way.

    EDIT:

    a) 0- 15 sec it is controlled by EVT_010
    b) 16- 57 sec i dont know what controls it...
    c) 58- 72 sec it is controlled by EVT_011
    d) 73- end sec controlled by player... (yet it still resets)

    For scenarios (b) and (d) it's the battle engine controlling the camera since the event has already played.
    « Last Edit: September 13, 2018, 12:52:44 PM by Glain »
    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [September 14, 2018, 02:34:01 PM]
    Re: ASM Requests
    « Reply #231 on: September 14, 2018, 02:34:01 PM »
    I was sorting stuff, still not much progress, but remade your patch (though it uses weird syntax so current ASM wont read)
    Still the initial values are not there so every time i enter a battle it resets...

    Also there is a weird behaviour with the angle, bird view is only for map and not toons, plus some squares are not getting drawn...
    « Last Edit: September 15, 2018, 01:03:39 AM by xjamxx »
    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    The Puppet ---Master---
    Elric (Overseer) [Posts: 4050]
    • View Profile
    • Youtube Channel
    • http://steamcommunity.com/id/Bones42
    • share
    • [September 14, 2018, 03:41:51 PM]
    Re: ASM Requests
    « Reply #232 on: September 14, 2018, 03:41:51 PM »
    Also there is a weird behaviour with the angle, bird view is only for map and not toons...

    If you looked at a spritesheet for FFT, you'd see why this angle wont work

    • Modding version: PSX
  • <@Angel> Teach a man to fish and he'll open up a fishery to compete against yours.
    Journey of the Five Youtube ChannelThe Lion War Current Status
       
    Jot5 Leader :: Eventer :: OtherTLW Leader :: Eventer :: Other
    Glain [Posts: 485]
    • View Profile
    • share
    • [September 15, 2018, 05:17:38 PM]
    Re: ASM Requests
    « Reply #233 on: September 15, 2018, 05:17:38 PM »
    Interesting routines/code:

    Routine 0x8008e468 might be initializing the battle camera.  Particularly interesting:
    Code: [Select]
    8008e488: 3c04800c lui r4,0x800c
    8008e48c: 24847ca0 addiu r4,r4,0x7ca0
    8008e490: 34051000 ori r5,r0,0x1000
    8008e494: 34061000 ori r6,r0,0x1000
    8008e498: 0c010acb jal 0x80042b2c
    8008e49c: 34071000 ori r7,r0,0x1000

    Sets the camera zoom values to default zoomed-in value 0x1000.

    Further in the same routine:
    Code: [Select]
    8008e4a0: 3c04800a lui r4,0x800a
    8008e4a4: 24847784 addiu r4,r4,0x7784
    8008e4a8: 3405012e ori r5,r0,0x012e
    8008e4ac: 34060e00 ori r6,r0,0x0e00
    8008e4b0: 0c010ac7 jal 0x80042b1c
    8008e4b4: 00003821 addu r7,r0,r0

    Copying some more values, including 0x12e which is what you listed as the default angle-in value.

    Routine 0x8012dde8 is also playing with some camera values, including here:
    Code: [Select]
    8012dee4: 34021000 ori r2,r0,0x1000
    8012dee8: ac620080 sw r2,0x0080(r3)
    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [September 15, 2018, 09:26:19 PM]
    Re: ASM Requests
    « Reply #234 on: September 15, 2018, 09:26:19 PM »
    Thanks, you are awesome  ;).

    The routine at 0x8008e468, is not initializing the battle camera at least for the zoom. Haven't try the angle.

    But this code:
    Code: [Select]
    34021000 ac620080which can be found twice in the iso, the first occurrence is the one for initializing the battle camera (zoom only tested)

    You really are top  :oops:
    UPDATE:
    Added to patch both angle (3 places not sure which is the key, all are near) and zoom:
    Still there is an issue with r2 and l2, cuz a flag or smt like that make the game believe that the starting camera is always zoom in, so if u start with zoom out values, the first time u press r2 or l2 u won't notice anything.

    Again, thanks for everything to Nyzer, Elric, Xifanie, special thanks to Glain (you really did it). I won't post anything else, at least about this camera hack, all credit goes to Glain (you found it plus you wrote the initial xml structure).

    Now back to play my custom modded FFT, cya!
    « Last Edit: September 16, 2018, 01:10:04 AM by xjamxx »
    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    TheAvelon [Posts: 4]
    • View Profile
    • share
    • [October 01, 2018, 02:43:58 PM]
    Re: ASM Requests
    « Reply #235 on: October 01, 2018, 02:43:58 PM »
    I have a request. After messing around in FFTP I think this is an ASM quandary.

    I'd like for Teleport's 100% success range to be MA/2 rounding down. A character with 15 MA can teleport 7 tiles and has a 90% success rate for teleporting 8 tiles.

    It may be best to make it MA/2.5 or 3; but if this gets made I can tinker with the exact number from there. My hack's base is a TO style job growth change so pure mages will have higher base MA growth and I'm not sure yet what they're going to look like at level 99.

    Then again a level 99 mage SHOULD be able to teleport halfway across the map.

    • Modding version: PSX & WotL
  • Truly, if there is evil in this world, it lies within the heart of mankind.
    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [October 01, 2018, 04:16:14 PM]
    Re: ASM Requests
    « Reply #236 on: October 01, 2018, 04:16:14 PM »
    Read following post.
    « Last Edit: October 03, 2018, 12:58:55 PM by xjamxx »
    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    Glain [Posts: 485]
    • View Profile
    • share
    • [October 01, 2018, 11:03:31 PM]
    Re: ASM Requests
    « Reply #237 on: October 01, 2018, 11:03:31 PM »
    Instead of, or in addition to, using MA Factor as a label (and actually i'd use .eqv if you want a constant... labels are for addresses), you could set it up as a variable at RAM 0x176C64 = BATTLE.BIN 0x10FC64.  Clever using 8/80 instead of 10/100 to gain space in the code, but then why not just do 1/10 and not shift at all?

    It also might make sense to multiply by the variable then divide by 128 so you could effectively divide by something like 2.5...
    xjamxx [Posts: 34]
    • View Profile
    • https://steamcommunity.com/id/xjamxx
    • share
    • [October 01, 2018, 11:19:14 PM]
    Re: ASM Requests
    « Reply #238 on: October 01, 2018, 11:19:14 PM »
    use .eqv if you want a constant... labels are for addresses)
    thanks didn't knew it
    you could set it up as a variable at RAM 0x176C64 = BATTLE.BIN 0x10FC64
    I don't like using variable cuz i usually forget to change them at the .exe, yeah i know its not an excuse but i like asm entire block
    but then why not just do 1/10 and not shift at all?
    I thought the same, but may be that would fk the RNG calculation? not sure, still haven't check RNG.
    It also might make sense to multiply by the variable then divide by 128 so you could effectively divide by something like 2.5...
    Yeah but since the one who asked for this didn't tested I went back to another thing and stop this optimization.

    UPDATE: here it goes if any1 wants it as Glain:
    UPDATE 2: tested, as i fear it doesn't read MA, so it needs :more: hacking, with this should suffice for definitive version:
    « Last Edit: October 03, 2018, 01:14:41 PM by xjamxx »
    • Modding version: PSX
  • <Random> This seems to be a PSX issue.
    <Elric> A psx issue? That makes no sense. Sounds more like an issue with your OS.
    TheAvelon [Posts: 4]
    • View Profile
    • share
    • [October 02, 2018, 04:10:14 AM]
    Re: ASM Requests
    « Reply #239 on: October 02, 2018, 04:10:14 AM »
    Awesome! This is exactly what I was hoping for! Thanks muchly, I will figure out how to implement this and test it tomorrow. Been consumed all evening with another area of the patch I'm working on and didn't check the forums


    You rock.

    • Modding version: PSX & WotL
  • Truly, if there is evil in this world, it lies within the heart of mankind.
    Pages: 1 ... 10 11 [12] 13