Top 3 Awesome Posts by # of thumbs up over past 24 hours

Moderators:

  • JeffMan
  • And our supermoderators and administrators.

Mr. Saturn sprite PK Hack v0.5.14: Mr. Tenda takes over

sprite AnyoneEB

  • pkhack
This is the continuation of the JHack topic on the old boards. Here is that topic for reference: http://oldforum.starmen.net/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=8;t=0003 63

JHack is a Java replacement for PK Hack and other Earthbound ROM hacking tools, it is still a work in progress, but currently can do everything PK Hack v0.2 can do plus a lot more. Download it here. Source is included.

JHack site: http://www.anyoneeb.net:83/jhack/

---------------------------------------------------------------

v0.3.7.4:
# Reset Button v0.5: Added comp and decomp buttons
# SPT names (edited with SPTEditor) are now specific to each rom and stored in the file X:\path\to\rom\romname.smc.sptNames.txt
# Tile Editor: added palette import/export (1 palette = 1 set of subpalettes)

Also, I made some changes to comp and decomp (made them use byte's instead of int's) so they should use slightly less memory. I tested it with the tile editor and it worked, so I'm pretty sure I did it correctly, but be careful, there may be a hidden bug.

New .jar below.

sprite JamesPicard_007

Are you still listening?

  • dragon
  • funfest
  • plo
For anyone completely new to JHack you must have the Java Runtime Environment which you can get here.

Java Runtime Environment

This is just for those people who don't have Java and have tried to run JHack without it.

sprite AnyoneEB

  • pkhack
Thank you for providing that link, but I'd rather have people getting the latest version which is 1.4.2, not 1.4.1. I don't think it matters, but people might as well be running the latest version. Hmmm... I think I know why you put a link to that version, that's the link on the JHack page, I fixed it now Smile.

EDIT: You can't delete your own messages?!?

sprite JamesPicard_007

Are you still listening?

  • dragon
  • funfest
  • plo
Well I updated my link as well. I'll now leave the rest of the thread for actual JHack discussion.

sprite Black Genesis

    When had you added Comp & Decomp?!!! I didn't know!!! I'll be using this from now, of course! This does mean comp/decomp graphics, right...

    sprite AnyoneEB

    • pkhack
    BG: Yeah, graphics comp and decomp, just like comp.exe and decomp.exe.

    v0.3.4.7.1: Playable Sprite Table Editor works (was broken by v0.3.7.4). Thanks to EBisumaru for pointing this out.

    EDIT: v0.3.4.7.2: Reset Button: Made comp and decomp work better.
    Decomp: Now decompresses without buffer problems (Unless the graphics happen to decompress to over a megabyte. If this happens tell me, and I'll fix it Wink). Also made output files be filled with zeros at the end up to 8kb so that TLP will read them.
    Comp: Cuts off and zeros found at the end of the input file.

    New .jar below.

    Attachments:

    sprite SoulBlazer X

      What, we can compress stuff with JHack now!?

      Of course, I still need to get my PkHack folder back and reinstall java.

      The above needs to happen yet again!

      I'm not referring to the top line, though.

      To whomever is reading this, I find it quite amazing how immature I was at the time of the original post.

      Blue Antoid

      • dragon
      • pkhack
      Ah, yes, I almost forgot I had a suggestion in mind for an enhancement to the SPT editor. ^_^

      In short, adding a tile-editor style interface for selecting individual sprite locations would be a great asset, particularly when building new sprites entirely from scratch. To obtain the address values you're going to have to look at the data in Tile Layer Pro or something in the same ballpark anyway... so why not toss in a viewer with the ability to visually select the sprites you want while you're at it?

      sprite L

        Strange. In my MacOS X, when I click on Reset Button, I get an unnerving pause, then a window that's blank except for buttons. Not only that, but any other editor does that too. Help?

        sprite SoulBlazer X

          Ans.: Don't use mac.

          sprite AnyoneEB

          • pkhack
          SBX: Please don't bash Mac in a topic about a Java program. (You may bash it elsewhere Wink)

          L: Ummm... that's bad, I'll have to ask Dr. A if he's having the same problem. A couple suggestions: first, do you have Java v1.4.1? It's in the Mac OS X update program somewhere. If you do have the lastest Java version, try running JHack from the command line ("java -jar JHack.03742.jar" in the same directory as the .jar) and seeing if it prints out any error messages. If it does PM them to me or try to find me on IRC.

          EDIT: BA: Sounds like a good idea, I'll make that.

          sprite SoulBlazer X

            Nobody cares Razz

            [This Message Stomped by Teh Antoid]

            sprite EBisumaru

              Who wants an idiot that posts in big text and never stays on topic?
              AEB: I think the comp/decomp would be better as its own window. Or change the name of the Reset Button. Something to make it less confusing for the newbs.

              sprite SoulBlazer X

                heheh, just kidding

                sprite Shy

                Hate Fairy

                • dragon
                Could you maybe switch around the order of the things in JHack?
                Like, I think you're going to use the Tile Editor and Sprite Editor(s) more often than the Condiment Editor, but the Condiment Editor is easier to get to Confused

                sprite Black Genesis

                  Shy: Deal with it.

                  SBX: Shut up.

                  Dude with the MAC Problem: Maybe it's a java problem and not the computer.

                  AEB: This just keeps getting better and better!

                  sprite AnyoneEB

                  • pkhack
                  Shy: The order of the module buttons is determined by JHack.???.jar!/net/starmen/pkhack/modulelist.txt (! = inside jar/zip file). If you think you have a more logical order send it to me Smile.

                  sprite Black Genesis

                    Really? So that means you can edit it, yeah? I can come up with a better way. Can you figure out a way of putting in 'dividers' so you can group buttons together?

                    sprite AnyoneEB

                    • pkhack
                    Yes, I can add that, just put a line of "######"'s in the file for now.

                    sprite L

                      The thing about my problem is, some of the editor windows in JHack.03742.jar don't work right, but I can still run JHack.0374.jar perfectly. This makes me think that the problem might lie between those two version numbers. By the way, I do have the highest Java version available.

                      sprite L

                        This would be a double-post except for the fact that I have a report: for some reason, when opening an unmodified ROM, the Store editor seems to gum up a bunch of store entries, displaying Nulls or random junk instead of the original items. This applies to stores 1-14, after which it goes normal.

                        sprite Shy

                        Hate Fairy

                        • dragon
                        That's still a double post

                        AEB, would it be difficult to add something that lets you edit decomp'd things in JHack, sorta like the sprite editor?

                        sprite Black Genesis

                          AnyoneEB wrote on Fri, 07 November 2003 13:42

                          Yes, I can add that, just put a line of "######"'s in the file for now.

                          Yeah, but that doesnt show up in JHack.

                          sprite AnyoneEB

                          • pkhack
                          L: Oh, I know what you're talking about in the store editor. That's one line of code to fix... done Smile. (see further down on post)

                          Shy: Nope, probably not, I guess you should get started Wink. It will exist eventually, but don't expect it anytime soon.

                          Black Genesis: Yep, that's that right. Hence the "just ... for now". I'll add it later.

                          (In case you haven't gotten the hint yet, I'm taking a break from JHack for a couple days. Excepting minor quick bugfixes, of course.)


                          v0.3.7.4.3: Store Editor: fixed bug where the combo boxes would appear to not change.

                          New .jar below.

                          sprite Shy

                          Hate Fairy

                          • dragon
                          Okay AEB, I've already gotten it written out in Shy++

                          sprite Red80

                            Cool dude after all this constant work you more than deserve a break! keep it up!

                            sprite L

                              Well. Did I say it was JHack .0374 that was fully functional? I did, and I was wrong. It's faulty too. But I used JHack .3731 for quite some time without fault prior to this.

                              But I've made a step that might lead to the fissure. With the Console running in the background, I clicked on one of the buggy buttons, "Item Editor." As soon as it happened, the following immediately came up in the Console window:

                              You said that right now you're sitting back and applying the old Heel Coolant, but I may as well post this before I forget to.

                              sprite AnyoneEB

                              • pkhack
                              Well, I got that bug well debugging orginally, and I made sure it was absolutely impossible to occur. I just checked my code, and it is still impossible, but here's a fix anyway!

                              v0.3.7.4.4: Fixed some GUI bugs

                              New .jar below.

                              sprite L

                                Well, I got 03744, and guess what? They still don't work for some reason. This is most inexplicable. It occurs only on the Reset Button, Item Editor, Condiment Editor, Store Editor, [1F 21 XX] editor, Enemy Editor, SPT Editor and Playable Sprite Table Editor. All the others work fine.

                                Also, might I dare mention that the Level-Up Stats editor seems to be replacing nearly all the default values with zeroes, except for Ness's offense, and Poo's IQ and luck.

                                EDIT - By the way, can you make it so that the item fields in the Starting Stats Editor change properly when you switch characters? It worked in 03731, but now it doesn't.

                                sprite AnyoneEB

                                • pkhack
                                That would be a list of editors affected by me changing combo boxes so they're done correctly, I guess it doesn't like that... Is is printing out any exceptions or just not working right?

                                Opps... I forgot that Starting Stats Editor used item combo boxes, fixed (that's one more line of code Smile).
                                v0.3.7.4.5: Fixed GUI bug in Starting Stats Editor

                                New .jar below.

                                sprite Black Genesis

                                  You thought of inserting that menu divider thing in yet?! Surprised

                                  sprite AnyoneEB

                                  • pkhack
                                  v0.3.7.5: Added Flyover Editor (by daemionx)
                                  Anyone else feel like writting some editors? Smile

                                  New .jar below.

                                  sprite Shy

                                  Hate Fairy

                                  • dragon
                                  Dear daemionx:
                                  There is more than one flyover.

                                  Sincerely,
                                  Shy

                                  sprite AnyoneEB

                                  • pkhack
                                  Dear Shy,
                                  There are three tabs in the flyover editor.

                                  Sincerly,
                                  AnyoneEB

                                  EDIT: deamionx informs me that he may add the others eventually, but he currently does not know the pointers for them.

                                  sprite L

                                    Yeah, I get relatively the same errors for each of the buttons. For a complete list (not that it'll do you too much good - or will it?) click down there for the chance to win a hypothetical $35.

                                    sprite AnyoneEB

                                    • pkhack
                                    Oh! That's easy to fix! Yet another difference between Apple's Java and Sun's Java. Sad

                                    v0.3.7.5.1: Fixed Mac compatiblity bug

                                    New .jar below.

                                    sprite L

                                      Well, now every button except the Enemy, SPT and Playable Sprite Table Editors is functional.
                                      The Enemy Editor is a special case. Now, instead of a blank window, I get the enemy selection/search tabs, but when I click on them, this error comes up:

                                      Attachments:

                                      sprite AnyoneEB

                                      • pkhack
                                      Sad more? I'll look at that later. I'll be pretty busy today and tomarrow. Speaking of which, I should be eating breakfast by this time...

                                      sprite DrAndonuts

                                        AnyoneEB, I'd wait on fixing anything until Apple finalizes their implementation of Java. As of yesterday, there was a new Java updater (found here <41MB>). The latest version of OSX (Panther/10.3) is less than a month old and Apple has already updated Java. I highly recommend that all Mac-users that love JHack take the time to install this update (56k users could turn on the dl and let it go all night). If you don't keep up with these Java updates, don't complain to AEB or I'll beat you (because I love JHack). As it stands, if this update doesn't fix problems in what should be solid code, then I'd wait at least another month or so before sending reports again. Apple could release another update.

                                        Edit: Because not all Macs are made equally, I found this tech note on Apple's site in case this new version of Java produces some errors.

                                        sprite AnyoneEB

                                        • pkhack
                                        Thank you for pointing that out. Hopefully that will make it be more compatible with Sun java.

                                        New .jar below.

                                        sprite Black Genesis

                                          Could you please consider my seperator remark!

                                          sprite EBisumaru

                                            The separator is not really that important in the scheme of things. If you'd rather have a separator than a new editor, go program it yourself.

                                            sprite AnyoneEB

                                            • pkhack
                                            v0.3.7.5.3:
                                            # Added separators to modulelist.txt format. Put in any number of -'s (dashes). You may put a title in like "--IPS---" if you wish. (As a side note, if anyone ever meets the people who wrote Java's regexp implementation, could you please kill them for me?)
                                            # IPSDatabase: bug fix: automatically expands ROMs for .IPS's that require an expanded ROM
                                            # More .IPS's from CD (including fixed Christmas wreath)

                                            New .jar below.

                                            sprite EBisumaru

                                              The Condiment Editor doesn't work, it has Ketchup packet for all of the condiment entries. Also, I don't think it works when you try to apply more than one patch at a time (dragging over more than one, then clicking apply patch) in the IPS Database.

                                              sprite AnyoneEB

                                              • pkhack
                                              On the Condiment Editor... Sad I'll check that out. EDIT: Yeah, I get the same thing, shouldn't be too hard to fix.

                                              On the IPS Database... It's not supposed to work, I was just too lazy to make it so you can't select multiple, I'll go do that now. The reason is that odd bahavior would occur with conflicting patches.

                                              EDIT: both fixed

                                              v0.3.7.5.4:
                                              # Condiment Editor: bug fix: works (v0.3.7.4 killed it, I think)
                                              # IPS Database: bug fix: made it so you can only select one patch at a time

                                              New .jar below.

                                              sprite ChrisDavis

                                              • donor1
                                              • wallpaper
                                              IMPORTANT! For those running Java 1.4.1, this new update will not work. You need to update to Java 1.4.2. That is all.

                                              sprite JamesPicard_007

                                              Are you still listening?

                                              • dragon
                                              • funfest
                                              • plo
                                              Here's a link to 1.4.2 for those who are too lazy to look at AEB's page or even the front page of this topic.

                                              Java Runtime Download

                                              sprite L

                                                But if it requires Java 1.4.2, then how are the Mac users who have 10.2 meant to do it? I so kindly ask.

                                                sprite JamesPicard_007

                                                Are you still listening?

                                                • dragon
                                                • funfest
                                                • plo
                                                That's for Sun Java. Apple Java is different.

                                                sprite DrAndonuts

                                                  OSX 10.3 ("Panther") using Apple's latest Java 1.4.1 and JHack.03752:

                                                  Pop-up menu too large in Item Transformation Editor, Teleport Table Editor, Enemy Editor->Actions, Sprite Editor.
                                                  SPT Editor a bit wonk.

                                                  This is the extent of the graphical problems that I'm having with JHack. Nothing serious or that prevents me from using JHack to its fullest extent, so I'm not worried about it. I, however, expect Apple to release an updated version of Java for OSX (maybe Panther only, sorry 10.2 and below) sometime relatively soon. I believe that when 1.4.1 was released, AEB mentioned it about one or two weeks before Apple's implementation. Hopefully I'll get an updated JRM within a month. It probably won't fix the pop-up menus, but I'm not worried about them anyway. The latest version of JHack (which requires 1.4.2) has no buttons to show the editing windows!

                                                  Most current Java information for OSX:
                                                  % java -version
                                                  java version "1.4.1_01"
                                                  Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-99)
                                                  Java HotSpot(TM) Client VM (build 1.4.1_01-27, mixed mode)