Author Topic: New Materia  (Read 41156 times)

Masa-Buster

  • *
  • Posts: 249
    • View Profile
New Materia
« on: 2009-08-27 00:48:21 »
Is there anyway to add in New Materia?

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #1 on: 2009-08-27 00:57:21 »
I think this should go in Tech related or Game tweaking :-P

I'm not sure if there are any known ways to add new materia*, but there are a few dummied materia that are never used in the game, so maybe you could replace them with something? I've never tried this myself, so I don't know whether it works (there could be some hidden complications), but it's worth a shot and might be a nice and easy way to add materia to the game.

*Obviously, everything is possible in theory, but it could mean a lot of hard work and reverse engineering of the executable
« Last Edit: 2009-08-27 01:21:04 by Kudistos Megistos »

Masa-Buster

  • *
  • Posts: 249
    • View Profile
Re: New Materia
« Reply #2 on: 2009-08-27 01:22:30 »
Well I don't know which Materia to DEVOUR (Evil Laugh) Anyone have any ideas on which is the most usless Materia? I was thinking throw but I use that sometimes.

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #3 on: 2009-08-27 01:34:56 »
No, no, I was talking about this kind of thing; materia that is in the kernel.bin but that has been dummied out and never appears in the game.

If you want to get rid of an actual materia, I recommend Exit. Does anyone use the escape and remove spells? I wouldn't miss Fullcure either (they're the two materia I got rid of when I made water and wind magic)

Masa-Buster

  • *
  • Posts: 249
    • View Profile
Re: New Materia
« Reply #4 on: 2009-08-27 01:39:00 »
ah those spots. I was gonna use one of those but then i thoght "Sigh....I think if you put anything here it crashes." Thank you, YOUR MY NEW BEST FRIEND! XD

« Last Edit: 2009-08-27 01:51:37 by Masa-Buster »

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #5 on: 2009-08-27 01:39:57 »
Er, I can't be sure that it'll work... :-P (or maybe you were being sarcastic :|)

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
Re: New Materia
« Reply #6 on: 2009-08-27 01:46:14 »
You can absolutely add new materia to the game! I've done this by overwriting the dummy slots in Wallmarket, just be careful because I think some of them actually do something. Only problem is you can't add new spells, and you can't sell it in shops. If you want new materia in game, you're gonna have to use Wallmarket to make a character have it on his/her initial equiment. Alternatively you could also figure out how to work meteor and add it to one of the field maps with that.

Oh, and @Kudistos, I made Exit materia useful in my AI mod... "remove" has the effects of ruby weapon's "whirlsand" attack, meaning you remove allies rather than enemies.
« Last Edit: 2009-08-27 01:51:15 by titeguy3 »

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #7 on: 2009-08-27 01:51:38 »
Yeah, I've just tried it and the game didn't crash (although I haven't checked it in the materia menu because it was a new game).

BTW, I think you should be able to have it in shops. A certain wonderful person found out a lot about shops one day and how to choose what they sell and how much it costs.

EDIT:

OK, I made some new materia, and I've got it working in a shop. Screenies:







And yes, I'm aware that I messed up with its levels :roll:
« Last Edit: 2009-08-27 02:20:58 by Kudistos Megistos »

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
Re: New Materia
« Reply #8 on: 2009-08-28 00:59:39 »
That's pretty cool, kudistos! 2 questions:

1. You did this using a hex editor?
2. Did you overwrite the shop slot for some other materia or add a new one in?

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #9 on: 2009-08-28 01:00:50 »
1. Yep, I hex edited the executable (very safe, if you're only making little mods like this)

2. I overwrote the slots for the other materia; I was too lazy to work out how to add extra slots.

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: New Materia
« Reply #10 on: 2009-08-28 01:49:47 »
Yeah, I've just tried it and the game didn't crash (although I haven't checked it in the materia menu because it was a new game).

BTW, I think you should be able to have it in shops. A certain wonderful person found out a lot about shops one day and how to choose what they sell and how much it costs.

EDIT:

OK, I made some new materia, and I've got it working in a shop. Screenies:







And yes, I'm aware that I messed up with its levels :roll:

That's a great name for a Materia. :D

drfeelgud88

  • *
  • Posts: 1355
  • da DOC iz here!
    • View Profile
    • My YouTube
Re: New Materia
« Reply #11 on: 2009-08-28 04:44:59 »
damn kudistos u beat me to it! was gna suggest to get rid of full cure also cuz i mean, restore is enough already and full cure is OP obviously.

Masa-Buster

  • *
  • Posts: 249
    • View Profile
Re: New Materia
« Reply #12 on: 2009-08-29 20:28:22 »
I never knew Full-Cure Materia was in Cosmo Canyon  :lol: Never bothered to find it.

Tsetra

  • *
  • Posts: 329
    • View Profile
Re: New Materia
« Reply #13 on: 2009-08-30 22:53:01 »
It's easy until you actually try to add completely new materia with completely new magic spells. The problem is that somewhere, attacks are identified as being a certain type. Even though there are lots of dummied attack IDs, trying to turn them into spells and make them appear (much less function...) is a pain in the ass task.

Summary:


Possible:
New materia with pre-existing spell sets
New materia with new spells, having overwritten previous ones

Not Possible (at least not without pioneering):
New materia with completely new spells

Awhile back I was working on the last one as part of a project I'm working on, which I ran into a wall with and haven't really attempted to break ground there since that's low priority. Still, it would be nice to be able to do and would bring materia mods away from being just a novelty and into a full blown aspect of modding.

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #14 on: 2009-08-31 19:22:28 »
It's easy until you actually try to add completely new materia with completely new magic spells. The problem is that somewhere, attacks are identified as being a certain type. Even though there are lots of dummied attack IDs, trying to turn them into spells and make them appear (much less function...) is a pain in the ass task.

Summary:


Possible:
New materia with pre-existing spell sets
New materia with new spells, having overwritten previous ones

Not Possible (at least not without pioneering):
New materia with completely new spells

Awhile back I was working on the last one as part of a project I'm working on, which I ran into a wall with and haven't really attempted to break ground there since that's low priority. Still, it would be nice to be able to do and would bring materia mods away from being just a novelty and into a full blown aspect of modding.

I had a go at this last night and got the same result. Shame...

I thought it might have been something to do with attack indexes that have been discussed elsewhere, and tried using attack ID 54 (which is currently unused and comes right after player magic and before summons) as both a magic materia ability and a summon materia ability, but it didn't work. The attack name showed up in the materia menu, but not in the magic menu and not in battle :cry:

I might try doing something different soon, but I wonder whether it will work.

BTW, what unused attack IDs were you using? There are a few different sets of them in the kernel.bin

Tsetra

  • *
  • Posts: 329
    • View Profile
Re: New Materia
« Reply #15 on: 2009-08-31 22:46:51 »
Oh man, it's been awhile I don't even remember. I went through several trying to get different results, but no dice. Several were in the 100s series, and I think I tried the few scattered ones in the double digits that weren't being used. I think you can substitute the choco/mog attack for a magic attack, but then you can't place that elsewhere - because I remember trying to swap that attack around to buy an extra magic attack ID, but there weren't any open summon slots to place the choco attack back into after I had done so.

I wonder if the IDs are stored in the menu.lgp, seeing how they fit perfectly into the magic menu at a predetermined location, and those IDs are called upon and given a title by kernel.bin afterwards. But it's a wild guess, at best.


Edit: Nevermind, just a bunch of textures in there.
« Last Edit: 2009-08-31 22:50:36 by Tsetra »

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #16 on: 2009-08-31 22:55:35 »
I wonder if the IDs are stored in the menu.lgp, seeing how they fit perfectly into the magic menu at a predetermined location, and those IDs are called upon and given a title by kernel.bin afterwards. But it's a wild guess, at best.

Edit: Nevermind, just a bunch of textures in there.

Damn, I was just about to say that :-P

If they're anywhere, it will be in the executable, since most of the stuff that was in the .mnu files in the PSX version is in there for the PSX version (the shop data is a good example, and just before that in the .exe is the text from the menu).

Tsetra

  • *
  • Posts: 329
    • View Profile
Re: New Materia
« Reply #17 on: 2009-08-31 23:00:29 »
Yeah that's what I was thinking/worried about, since the movie IDs are in there as well. I think exe hacks are best avoided, but there might not be a better solution. In addition, it's out of my realm of things I can do.  :x

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #18 on: 2009-08-31 23:04:50 »
Yeah that's what I was thinking/worried about, since the movie IDs are in there as well. I think exe hacks are best avoided, but there might not be a better solution. In addition, it's out of my realm of things I can do.  :x

Hold on, I've just remembered something! The spell order is in the kernel.bin, and can be edited by WallMarket (initial data ->  Spell Order). I'm going to play with this for a while.

EDIT: My first result was making the game crash as soon as it started, so I can't tell whether it worked :roll:

We also have the problem that messing around with the spell order means that we have to either make the magic menu hold more spells (hard to do, methinks), or replace another spell, which defeats the point of using an empty ID :|
« Last Edit: 2009-08-31 23:13:27 by Kudistos Megistos »

Tsetra

  • *
  • Posts: 329
    • View Profile
Re: New Materia
« Reply #19 on: 2009-08-31 23:17:41 »
Yeah, we'd definitely need to expand the menu to hold more spells. Right now it's configured to hold the existing ones and nothing more. This, on top of the spell ID debacle as you pointed out.

More or less just agreeing with you here.

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
Re: New Materia
« Reply #20 on: 2009-09-01 04:18:06 »
There's definitely room in kernel.bin for new spell menu locations, the difficulty lies in making the executable recognize them and display them somehow... which entails changing *alot* of things... it's so funny to think how, if the original source for the game were in our hands, a task like that would probably be as simple as modifying an integer or two...

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: New Materia
« Reply #21 on: 2009-09-01 05:02:40 »
I gave this a lot of thought way-back-when and discovered some....problems with it.

#1. Attack IDs are stored sequentially in the KERNEL.BIN (it's just the way I always type it and I've noticed that no one does that either :( ) and the "Spell Order" only allows for 54 slots in the magic menu. Those last two slots do absolutely nothing. I'm not sure what they're for, tell the truth.

#2. The Magic menu both in and out of battle will have to be extended from 54 to some multiple of 3 (57, 60, 63, etc). I played around with looking for this and the closest I got was in the window.bin, but in the most bizarre turn of events, the value 54 is only used ONCE in the entire 33,312 bytes of the uncompressed window.bin file. Ergo, I don't think the size of the menu is located here. It could be somewhere else, of course. Several references to 18 exist (the number of rows in the magic menu).

#3. The KERNEL.BIN would have to be made larger if the magic menu were to be added on to. This is not a hard feat, but the game's load sequence would have to be edited to accept the enlarged KERNEL.BIN Spell Order section.

#4. Adding more than two spells would mean displacing all the other attacks after it. This isn't difficult, necessarily, but that means re-pointing a LOT of things. Start indexes for all the other menus. Adjusting the Relative Animation Index increment table for account for the displaced Indexes. Re-pointing EVERY limit break for every character. For the PC version at least, as long as the new magics don't displace "Blade Beam shock wave" past 127 this wouldn't be an issue.

#4a. If it did displace further than 127 (eight or more attacks to be added), the KERNEL.BIN would have to be further enlarged to have more than 128 attacks in the attack data section.

#4b. Same "if" as 4a; Several attacks would have to be edited to reflect these changes. Satan Slam, Blade Beam, Choco/Mog, Zantetsuken, etc because they use the "Perform XX attack after condition Y" effect. Each "XX" would have to be changed for these.

#5. The KERNEL.BIN would AGAIN have to be enlarged to hold an extra name/description of the attack. This isn't bad for the PC users, but this means instant no-go for the PSX users as the barely under 11 block KERNEL.BIN would likely grow too large (153 extra bytes is too large for this file).

The list went on, but those are the main points I couldn't get around.

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: New Materia
« Reply #22 on: 2009-09-01 05:09:47 »
I gave this a lot of thought way-back-when and discovered some....problems with it.

#1. Attack IDs are stored sequentially in the KERNEL.BIN (it's just the way I always type it and I've noticed that no one does that either :( ) and the "Spell Order" only allows for 54 slots in the magic menu. Those last two slots do absolutely nothing. I'm not sure what they're for, tell the truth.

#2. The Magic menu both in and out of battle will have to be extended from 54 to some multiple of 3 (57, 60, 63, etc). I played around with looking for this and the closest I got was in the window.bin, but in the most bizarre turn of events, the value 54 is only used ONCE in the entire 33,312 bytes of the uncompressed window.bin file. Ergo, I don't think the size of the menu is located here. It could be somewhere else, of course. Several references to 18 exist (the number of rows in the magic menu).

#3. The KERNEL.BIN would have to be made larger if the magic menu were to be added on to. This is not a hard feat, but the game's load sequence would have to be edited to accept the enlarged KERNEL.BIN Spell Order section.

#4. Adding more than two spells would mean displacing all the other attacks after it. This isn't difficult, necessarily, but that means re-pointing a LOT of things. Start indexes for all the other menus. Adjusting the Relative Animation Index increment table for account for the displaced Indexes. Re-pointing EVERY limit break for every character. For the PC version at least, as long as the new magics don't displace "Blade Beam shock wave" past 127 this wouldn't be an issue.

#4a. If it did displace further than 127 (eight or more attacks to be added), the KERNEL.BIN would have to be further enlarged to have more than 128 attacks in the attack data section.

#4b. Same "if" as 4a; Several attacks would have to be edited to reflect these changes. Satan Slam, Blade Beam, Choco/Mog, Zantetsuken, etc because they use the "Perform XX attack after condition Y" effect. Each "XX" would have to be changed for these.

#5. The KERNEL.BIN would AGAIN have to be enlarged to hold an extra name/description of the attack. This isn't bad for the PC users, but this means instant no-go for the PSX users as the barely under 11 block KERNEL.BIN would likely grow too large (153 extra bytes is too large for this file).

The list went on, but those are the main points I couldn't get around.

Yes, that's a real pickle. Would you excuse me for a moment?

*yells out indistinguishable profanities*

sl1982

  • Administrator
  • *
  • Posts: 3764
  • GUI Master :P
    • View Profile
Re: New Materia
« Reply #23 on: 2009-09-01 05:16:10 »
Say someone hypothetically got this to work, what materia would they make? Other then ZOMG! that is

Costa07

  • *
  • Posts: 306
    • View Profile
Re: New Materia
« Reply #24 on: 2009-09-01 05:18:23 »
Even if you were able to expand the magic menu to add a new materia would you have to have it so you start off with it at the begging of the game or would you be able to pin point a location to find your newly created materia