• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
October 01, 2020, 02:55:41 am

News:

Don't be hasty to start your own mod; all our FFT modding projects are greatly understaffed. Find out how you can help in the Recruitment section.


Valhalla Editor

Started by Nyzer, April 12, 2020, 03:35:25 pm

Nyzer

April 12, 2020, 03:35:25 pm Last Edit: June 21, 2020, 09:51:54 pm by Nyzer
So the only reason I heard about this editor is that it was mentioned on Reddit. There seems to be next to no discussion about it on Reddit, GameFAQs, or here, so as far as I know it was just spawned out of the ether by a ghost.

It seems to allow modders a whole lot more functionality, and while I've not experimented with it at all myself, I figured I should at least put a link up to it so that people can find it more easily. A PSP ASM tool is so rare and unique it's worth it, I think.

You can find it here. I've also uploaded it to this topic just in case that link ever goes down, since who knows what's going on with the author there.

If anyone has any more to add about this, feel free to mention it in this topic. I know @BleuVII has mentioned using it before, at least, and like I said - there is just no existing discussion about this tool that I can find so far.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

Oppe

I have gotten the program to run, however I don't know if the ASMs are actually working in the game or if they are the same as PSX ASMs. If anyone has time tomorrow I'd like some help finding out if they are the same and if it's possible to use the ASMs from this site in PSP version.
  • Modding version: WotL

Nyzer

April 12, 2020, 10:27:25 pm #2 Last Edit: April 18, 2020, 01:18:00 am by Nyzer
It's not. It's absolutely not.

There's a dim chance that something works the same way, but like I mentioned, a lot of the data structure changed from PSX to PSP so I really doubt it.

At best, they would have to be ported in some way.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

Mondragon

Hello, great folks of the ffthacktics community! First time actually posting here and love the work you guys do on here anyway...

I've been messing with this tool for a little over three months now. The tool's asm feature does indeed work. PS1 asms have to be repurposed for PSP to get them to work. You can view how the asms were reworked by opening them up in data>patches>default-core-hacks.asm. More information on how to work your own can be found under the MIPS instructions of the Quick RG that comes with every copy of the tool.

Additionally, the tool features data and text tools but I found them to be somewhat broken (especially text) as they had some trouble with font files and "lines" on both Clean NTSC and PAL. (I'm guessing this is why one of the sound novels, Nanai's Histories is corrupted??- although the others work completely fine.) Interestingly font files were found on my own patch I've been making so maybe it recognizes tactext edits? Although when I did try to use the text editor on my patch I was still not able to.

One last thing that can fix some headaches is that the tool can only be used once. Patching it again with Valhalla causes some glitches and the asms will no longer work. Good luck folks.
  • Modding version: WotL
"I have absolutely no idea what I am doing."
  • Discord username: Mondragon#8319

Oppe

I've had the same issue with the text stuff. I have no idea what to do in order to repurpose the PSX ASMs. I'm trying to figure out how to keep the text files from being changed.
  • Modding version: WotL

Mondragon

Update: I've finally got to testing the event editor and it works.
  • Modding version: WotL
"I have absolutely no idea what I am doing."
  • Discord username: Mondragon#8319

Mondragon

April 17, 2020, 05:28:57 pm #6 Last Edit: May 26, 2020, 11:22:04 am by Mondragon Reason: Grammer + More Info
I've finally got everything to work! Here's a quick introduction on how to use all of its functionality based on what was included in the guide and my own research.

Make a copy of your ISO.

Rename your War of The Lions iso copy to fft-wotl and place under the data folder.

Open Valhalla and click setup files, decode text files and decode evt.

Editing Text

data>patches>files

You can only edit utt files. Valhalla uses utt files that patch over your unt files. Editing unt files directly will result in an error.

Quick Reference

rest-mes
    rest-mes-1-utt
        line 236 Job Names
        Line 564 Item Names
        Line 1300 Ability Names
        Line 2459 Skill Set Names
    rest-mes-2-utt
        Line 5 Job Descriptions
        Line 625 Item Descriptions
        Line 3194 Ability Description
        Line 5427 Skill Set Description
        Line 5864 Job Requirments

snpl-mes (Audio Novels)
    01-utt Mesa's Musings
    02-utt Nanai's Histories
    03-utt Veil of Wiyu
    04-utt Enavia Chronicles
    05-utt Scriptures of Germonique (null)
    06-utt Test

Spell-mes
    0-utt (Spell Quotes)

tuto-mes (Tutorial Dialouge)

Wld-mes (Tavern Dialogue)

When finished click Encode Text Files

WARNING: "Replace spell.mes file", "Replace snplmes.bin file", "Replace wldmes.bin file", "Replace all tutoX.mes files", "Rewrite all quick access text (aka rest-mes)" in "default-text-hacks.asm" must be present when patching (refer to asm hacking)

Event Editor

data>patches>files>

test-evt
    test-evt-unt

Valhalla Requires you to edit the unt file for this

When finished click Encode EVT

WARNING: "Replace Test.EVT file" in "default-cust-hacks.asm" must be present when patching (refer to asm hacking)

ASM Hacking

data>patches

Note: If you only wish to use the ASM patcher you only need to "Set Up Files" but if an asm file alters text then you will need to decode the text files and encode them before patching. The same goes for the EVT.

Individual ASM hacks are stored in the .asm files, you may remove-blacklist-or add ASMs as you please to any main .asm file provided they do not have a "require#" dependency or you change the require dependency to "require#none" This becomes more prevalent under "default-text-hacks.asm" where if you already have a patch/mod but just want to add spell quotes and the audio novels back into the game.

REMEMBER: Never use your original iso, make a copy of it instead! You will not be able to edit the Valhalla patched iso again but you can save the text utt files and reuse them. USE A COPY!

(For users with already modded ISO's wanting to join the ecosystem you will only have to do this once. In my experience, it was less of a hassle to just copy my own edits from the unt file into Valhalla's utt files in order to avoid errors specifically to ability names. Be Advised only Item descriptions and Ability descriptions in your unt file will be kind of messed up but you can copy-paste the edits from tactext, everything else from item names to job requirements will be a single copy-paste each from your unt file.. so if you think about it 7/9 of the job is already done for you!! yay! Make sure to save those utt files when you're done in case something terrible happens and so you can reuse them ultimately adding to them over time! That is why you should keep 2 ISOs. Your original iso you use to make edits on in FFTPatcher-NEVER PUT THIS ONE IN VALHALLA. Then when you're done with your FFTP edits make a copy of that iso and use the copy in Valhalla and plant all your utt files you saved from your last patch after you decode the text files.)

blacklist.asm (Valhalla will ignore ASMs placed here)

default-core-hacks.asm
    Slowdown fix v2
    Add spellquotes back to the game
    Spell quotes always pop up
    Unlock novels
    Smart Encounters
    Battle Initial Camera v2
    Fix gil amount needed for the lip rouge quest

default-cust-hacks.asm
    Unlocked jobs v2
    Battle jobs list
    Formula 36 is now +PA_(X) and +MA_(Y)
    Mighty sword v2
    Crits always deal 50 percent bonus damage
    Abilities in Arith skillset can be reflected
    Null slps file in fftpack
    Replace TEST.EVT file
    Treasure Hunter 9-bit rare items
    ENTD 9-bit equipment items
    Balthier gets no special ENTD items
    Poach 9-bit items
    Onion items can be equipped if lip rouge flag
    Treasure Hunter rare minimum brave
    Arithmeticks supports up to 20 skillsets
    Party Roster Extension (PRE)
    Switch formation and absorb
    Monster eggs in last roster slot only
    Level cap
    Monster do not count as Casualties nor Injured
    Treasure Hunter is Player only

default-data-hacks.asm
    Replace all data files

default-expe-hacks.asm
    Test entd 9b items

default-text-hacks.asm
    Remove dupe font data (rest-mes)
    Replace font file ENG version
    Replace font width file ENG version
    Replace spell.mes file
    Replace snplmes.bin file
    Replace wldmes.bin file
    Replace all tutoX.mes files
    Rewrite all quick access text
    Change tutorial soldier names

9b Items Miniguide

This miniguide will show you the process on how to introduce the 40 overpowered 9-Bit "Multiplayer" Items into the base game plus the additional 20 unused item slots for a grand total of 60 new items that can be added into the base game.

Treasure Hunter 9-bit rare items

In FFTPatcher open the Move-Find Item Tab
Check the unnamed box under the No Activation box and on top of the Always Trap box.
Item 00 <nothing> is now Item 100 Chaosbringer, therefore Item 01 Dagger now equals Item 101 Deathbringer and so on.

ENTD 9-bit equipment items

This one is a bit more tricky and dependent on which gear slot you want as a 9b item. I currently do not believe it is possible to have a single unit have more than 1 9b item, if someone does figure it out I will update it here for the lurkers of the future :)

Head to the ENTD, select the unit, then edit the palette of the unit to 80 for Right Hand, 40 for Left Hand, 20 for Head, 10 for Body, or 8 For Accessory.

For this example, we will change the Right-Hand weapon to 9b.
Change the Palette value of the unit to 80.
Edit Right Hand under Equipment.
Item 00 <nothing> is now Item 100 Chaosbringer, therefore Item 01 Dagger now equals Item 101 Deathbringer and so on.

Poach 9-bit items

Open default-cust-hacks.asm under the patches folder with notepad++ or whatever text editing software you use.
Go down to #Name#Poach 9-bit items
Focus on the table filled with 0's under #Location#boot.bin#ram#088b6358: next to the line telling you to write your bits.

The first top 6 lines of 0's represent Common Item (90%) in FFTPatcher under the Poaching tab.
The bottom last 6 lines of 0's represent Uncommon Item (10%) in FFTPatcher under the Poaching tab.

The lines are read from left to right, the very first 0 on the first line is common chocobo. The next 0 is common Black Chocobo and so on. Then once you reach the 7th line the first 0 = Uncommon chocobo. The next equals uncommon Black Chocobo ect.

Change the 0 to a 1 on the poach you wish to be a 9b item.
Item 00 <nothing> is now Item 100 Chaosbringer, therefore Item 01 Dagger now equals Item 101 Deathbringer and so on.

Make sure to save a copy of this file just like your utt text files so you can use it again on your next patch cycle.

Patching

Apply patch! :O
If at any point something does go wrong, Valhalla will let you know at what file and line it occurred at! Also, this is the only reason why I could figure out what I was doing and led to this guide so thank you Valhalla :)

P.S. WOTL players rise up because we have more ram and multiplayer.. in time we can hope to bring down PS1... after we get our sound fix idk..  :mrgreen:  :cool:

Update 1: I think I'm getting really close to being able to convert psx ASMs to psp. I will make another update if my lead goes anywhere.

Update 2 5/26/2020: I got semi-close with the whole conversion thing but hit a roadblock with my understanding of Valhalla's MIPS instructions and PSX's Little Endian. Will provide more info and how others can help if they wish to at a future time. Meanwhile, I added the 9-bit item guide since I personally sought it a bit confusing myself and thought others might find it too.

I also made it more clear on how you can reuse your Valhalla edits since I have seen there was some confusion on how to do it. To Reiterate, have a base that you do your FFTPatcher edits on and make copies off of it which you then use for Valhalla. Text edits can be done in utt files that can always be backed up, edited, and reused at any point for any instance of Valhalla with any copy of an iso. The same goes for ASM files.
  • Modding version: WotL
"I have absolutely no idea what I am doing."
  • Discord username: Mondragon#8319

Grillo

May 08, 2020, 05:58:00 pm #7 Last Edit: May 14, 2020, 01:48:44 pm by Grillo
Hello! Im new, i want to make a custom patch for this game so im testing this patcher, but im getting this error:
Applying patches in:
default-core-hacks.asm:
invalid literal for int() with base 16: ''

The error is caused by the ASM to restore spell quotes into the game.
Any idea to fix it (i know jack of coding so im kinda lost)

Edit: i managed, problem arised after deleting some of the other ASMs. Thanks!
  • Modding version: WotL
"Law smothers anarchy, Duty subdues instinct, Grace repels darkness, Reason exposes deception, Purity rejects artifice and Truth tempers fanaticism.     -The book of all"

Mondragon

Did you decode and then encode text data before applying the patch?
  • Modding version: WotL
"I have absolutely no idea what I am doing."
  • Discord username: Mondragon#8319

Grillo

May 14, 2020, 02:19:47 pm #9 Last Edit: May 14, 2020, 03:38:44 pm by Grillo
So sad, the iso patched in this way cannot be further moddified using FFTPatcher, it causes all sort of problems, nor can be loaded for moddifications using FFTactext.

Is there a way to reinstall the spellquotes and books without changing the rest of the game? that way it would be possible to patch an already modded iso with it, (then you could easily fix the utt text files)
  • Modding version: WotL
"Law smothers anarchy, Duty subdues instinct, Grace repels darkness, Reason exposes deception, Purity rejects artifice and Truth tempers fanaticism.     -The book of all"

Nyzer

This is the best you've got, really. I assume if it was easy then the Valhalla author would have made it do so.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

illithidbane

No matter what I try, I can't get Valhalla to make changes. I am trying:

1. Run Valhalla.bat
2. Setup files
3. Decode text files
4. Encode text files
5. Decode EVT
6. Encode EVT
7. Apply patches

Then I try running the patched iso, and there's no actual changes applied.
So looking back at the log, I see this:

Extracting fftpack.bin:
Done.
Extracting EBOOT.BIN:
Done.
Decrypting EBOOT.BIN:
Fail to decrypt EBOOT.BIN

How do I fix the decrypting? What is the prerequisite here? I the custom python distribution (from https://www.romhacking.net/utilities/1478/) deployed /python/ folder in Valhalla's folder structure. I did not modify the cfg file. I am editing an iso named fft-wotl.iso. But it always fails. Any recommendations?

Pastebin of the log: https://pastebin.com/SDuGAnHz
  • Modding version: Other/Unknown

Mondragon

Quote from: illithidbane on September 09, 2020, 01:10:54 amNo matter what I try, I can't get Valhalla to make changes. I am trying:

1. Run Valhalla.bat
2. Setup files
3. Decode text files
4. Encode text files
5. Decode EVT
6. Encode EVT
7. Apply patches

Then I try running the patched iso, and there's no actual changes applied.
So looking back at the log, I see this:

Extracting fftpack.bin:
Done.
Extracting EBOOT.BIN:
Done.
Decrypting EBOOT.BIN:
Fail to decrypt EBOOT.BIN

How do I fix the decrypting? What is the prerequisite here? I the custom python distribution (from https://www.romhacking.net/utilities/1478/) deployed /python/ folder in Valhalla's folder structure. I did not modify the cfg file. I am editing an iso named fft-wotl.iso. But it always fails. Any recommendations?

Pastebin of the log: https://pastebin.com/SDuGAnHz

I took a quick look at your log and everything seems to be in order. Even the "Decrypting EBOOT.BIN: Fail to decrypt EBOOT.BIN" is normal and I never had it disallow me from making edits. So this may be of 3 things here. You're not decoding, making your edits, encoding, then patching. Or you're trying to edit an iso that already has text edits which sometimes causes your problem. The last thing I can think of is if you removed the "replace" lines in default-text-hacks.asm. Hopes any of that helps.
  • Modding version: WotL
"I have absolutely no idea what I am doing."
  • Discord username: Mondragon#8319