Author Topic: [PSX/PC] Shop Editor - White Chocobo (v0.7b)  (Read 77349 times)

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #50 on: 2010-03-06 22:50:51 »
there should be two: whitechoco_s.ico and whitechoco_l.ico.

Immortal Damyn

  • *
  • Posts: 432
  • Lord of the Twilight
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #51 on: 2010-03-06 23:01:09 »
And there is, its just for some reason, when i open the exe it doesn't read whitechoco_l.ico

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #52 on: 2010-03-06 23:42:25 »
wierd. I'll have to look into that. I can't fix it unless i can reproduce it, though.

Immortal Damyn

  • *
  • Posts: 432
  • Lord of the Twilight
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #53 on: 2010-03-06 23:46:17 »
Eh, it's not too much to worry about for me, its just an icon. The program itself still works as well as it's supposed to.


Edit:
So any progress on a price modifier?
« Last Edit: 2010-03-11 01:42:34 by Immortal Damyn »

vareal

  • *
  • Posts: 24
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #54 on: 2010-03-13 02:27:17 »
Yeah, curious as to the progress on this one? I'm highly addicted to using it, lol.

Immortal Damyn

  • *
  • Posts: 432
  • Lord of the Twilight
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #55 on: 2010-03-13 02:30:42 »
I'd like to use it, but personally only need there to be price editing before I can. Many of the things I want to do to the shops require price changes.

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #56 on: 2010-03-16 01:54:00 »
v0.5b has been released, and you can now edit the prices of all items and materia, as well as modify the multiplier for mastered materia prices. Enjoy, and be sure to report any bugs you might encounter so I can fix 'em.

Immortal Damyn

  • *
  • Posts: 432
  • Lord of the Twilight
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #57 on: 2010-03-16 09:13:10 »
Well, as far as i can tell it works. I only did a minor run though, and added a new materia in a dummied materia slot, and then threw it into the chocobo sages shop for 400 gil. Worked like a charm. Thanks a lot titeguy, this has made my work on a custom difficulty mod  so much more badass. Now if i could just figure out what the shops at the bottom of the list were.... they seem to almost be... dummy shops?

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #58 on: 2010-03-16 11:38:37 »
Well, as far as i can tell it works. I only did a minor run though, and added a new materia in a dummied materia slot, and then threw it into the chocobo sages shop for 400 gil. Worked like a charm. Thanks a lot titeguy, this has made my work on a custom difficulty mod  so much more badass. Now if i could just figure out what the shops at the bottom of the list were.... they seem to almost be... dummy shops?

Yeah, it's weird...almost as if they were planning on adding them to the game and never did. Shop 64 sells "Edincoat"s...I don't remember any shop in the game selling that item...

Kranmer

  • *
  • Posts: 766
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #59 on: 2010-03-16 12:08:32 »
nice program titeguy3, great work, 1 small problem is i get a error everytime i run the program (program still runs fine).
It seems whitechoco_l.ico is corrupt (i found it easy to fix by remaking the ICO from your PNG)

If you have a look at whitechoco_l.ico in a hex editor you will see its a PNG and NOT a ICO file and thats why it doesnt work (well for me anyway)
« Last Edit: 2010-03-16 12:28:07 by kranmer »

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #60 on: 2010-03-16 13:57:37 »
nice program titeguy3, great work, 1 small problem is i get a error everytime i run the program (program still runs fine).
It seems whitechoco_l.ico is corrupt (i found it easy to fix by remaking the ICO from your PNG)

If you have a look at whitechoco_l.ico in a hex editor you will see its a PNG and NOT a ICO file and thats why it doesnt work (well for me anyway)

I see, it's weird because it loads properly for me. I'll try recompiling the .ico file. A better solution would be to figure out how to embed the images into the code so I don't need to outsource to .ico files...

EDIT: I see, I had the large icon compressed in .png format by accident. Oh well, this should be fixed now.
« Last Edit: 2010-03-16 14:02:25 by titeguy3 »

Kranmer

  • *
  • Posts: 766
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #61 on: 2010-03-16 15:42:08 »

I see, it's weird because it loads properly for me. I'll try recompiling the .ico file. A better solution would be to figure out how to embed the images into the code so I don't need to outsource to .ico files...

EDIT: I see, I had the large icon compressed in .png format by accident. Oh well, this should be fixed now.
[/quote]

If you want to know how to insert the icon into the EXE it can be done easily. For example here is your EXE with your big icon inserted
http://www.mediafire.com/?jkim1j3zjjn
(this is just the EXE, you will still need your DLL and CFG)

sithlord48

  • *
  • Posts: 1632
  • Dark Lord of the Savegame
    • View Profile
    • Blackchocobo
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #62 on: 2010-03-16 17:23:08 »
 congratulations, your program works just fine in wine , thanks for the new tool.

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #63 on: 2010-03-16 18:35:16 »
congratulations, your program works just fine in wine , thanks for the new tool.

That's cool! Thanks for finding that out!

drfeelgud88

  • *
  • Posts: 1355
  • da DOC iz here!
    • View Profile
    • My YouTube
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #64 on: 2010-03-16 18:50:21 »
Wow, congratulations titeguy3.
Looks like I missed the debut when you made this fancy too! Nice.  ;D

Kranmer

  • *
  • Posts: 766
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #65 on: 2010-03-16 22:42:35 »
@titeguy3 also the shop that sells Edincoat's is the shop in rocket town (in the games menu its called "weapons store")
« Last Edit: 2010-03-16 22:47:47 by kranmer »

Immortal Damyn

  • *
  • Posts: 432
  • Lord of the Twilight
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #66 on: 2010-03-16 22:45:01 »
yea, but from shop 67 down the shops all sell

Potion
Hi-Potion
Phoenix Down
Ether
Tent

Up until 80 which sell

Potion
Hi-Potion
Phoenix Down
Ether
Potion.... Wait wut?

Bosola

  • Fire hazard!
  • *
  • Posts: 1752
    • View Profile
    • My YouTube Channel
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #67 on: 2010-03-19 17:36:39 »
Out of interest, how did you write this application?

Also, have you considered adding PSX functionality? I *believe* it would be a case of simply loading and writing from a different offset for different files.

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #68 on: 2010-03-19 19:55:14 »
Out of interest, how did you write this application?

Also, have you considered adding PSX functionality? I *believe* it would be a case of simply loading and writing from a different offset for different files.
I wrote it in C while learning how to use the Win32 library package from a tutorial I found on the web.

And yes, PSX functionality is on my list of things to do (along with kernel2.bin synchronization and default character name editing), however I don't have the PSX files myself to use for testing.

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #69 on: 2010-03-22 14:53:58 »
Gr... I've been working on adding PSX functionality to WhiteChoco, but I can't seem to find a string that matches the Master Materia Price Multiplier signature from ff7.exe anywhere in SHOPMENU.MNU.

If anyone knows which file and at which address one can find this data, I'd be really appreciative.

If anyone wants to help me search, search the psx game files (preferably starting with SHOPMENU.MNU) for the value "46", which is 70 in decimal, and try modifying it and seeing if the master materia multiplier changes. Until I find this information, that feature will just have to remain left out of WhiteChoco on the psx side...

sithlord48

  • *
  • Posts: 1632
  • Dark Lord of the Savegame
    • View Profile
    • Blackchocobo
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #70 on: 2010-03-22 18:16:05 »
what size does the program expect ff7.exe to be, i can't seam to open my ff7.exe your program returns "invalid size" im using, v 1.02 w/ no other exe hacks applied ...

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #71 on: 2010-03-22 18:26:40 »
what size does the program expect ff7.exe to be, i can't seam to open my ff7.exe your program returns "invalid size" im using, v 1.02 w/ no other exe hacks applied ...
5,882,880 bytes exactly. That's odd, you're the first to not have WhiteChoco recognize ff7.exe. I've checked that size time and time again:


EDIT: It could be a Linux compatibility issue...I'll see what I can do to maximize compatibility... maybe implement a "force open" option if this is a real problem...
« Last Edit: 2010-03-22 18:47:04 by titeguy3 »

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #72 on: 2010-03-22 19:51:15 »
Instead of checking a file's size (or perhaps in addition to) you should check for a known pattern inside the file. For example: 0x0056CB8C begins the text: "C:\FF7\chocobo\". Checking for that string at that position (or at least close by) will likely guarantee that the file is correct.

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #73 on: 2010-03-22 20:22:27 »
Instead of checking a file's size (or perhaps in addition to) you should check for a known pattern inside the file. For example: 0x0056CB8C begins the text: "C:\FF7\chocobo\". Checking for that string at that position (or at least close by) will likely guarantee that the file is correct.
Done and done. White Choco v0.6b is loose! I've added signature checks just in case the filesize isn't recognized, and added SHOPMENU.MNU support (untested, since I don't actually have the PSX version of the game) minus the master materia price multiplier since I haven't found that data yet...

titeguy3

  • *
  • Posts: 1283
  • A jack of all trades
    • View Profile
[v0.2b] White Choco Shop Editor by titeguy3
« Reply #74 on: 2010-04-01 17:38:16 »
Alright another update for people who couldn't get WhiteChoco to load their FF7.exe, Price and Shop editing now works for all versions of ff7.exe! Compatibility for the Master Materia Multiplier is to be implemented, though...