Romhacking.net

Romhacking => Personal Projects => Topic started by: evmatter on December 22, 2014, 06:02:38 pm

Title: Wario Land 2 editor
Post by: evmatter on December 22, 2014, 06:02:38 pm
Earlier this year, I started hacking Wario Land 2. Originally, I just wanted to hack it so that I could find all the hidden areas in the game since there are so many. Then, after seeing Drenn's Wario Land 3 editor, I figured that I could make a similar level editor from what I learned about the Wario Land 2 rom. The editor should have no problem working, but if you find any bugs please let me know. Any feedback is appreciated.

Download link on the utilities page:
http://www.romhacking.net/utilities/1098/

Screenshots:
(http://i.imgur.com/GyLpoyU.png)
(http://i.imgur.com/gt20C6X.png)
(http://i.imgur.com/B5GVhbC.png)
Title: Re: Wario Land 2 editor
Post by: Raccoon Sam on December 23, 2014, 02:09:44 am
... ! !

Wow! That looks absolutely amazing. I read the readme and I'm confident you know absolutely what you're doing. Judging by the screenshots, it looks feature-packed too.

Alas, trying to open it gives me this:
The Java JAR file “WL2Editor.jar” could not be launched.
Check the Console for possible error messages.


The console is empty. My OS is OSX 10.9.5. and my Java version is Java 7 Update 71. I will try running the jar later on my home computer with a different OS, but I can already tell this is an amazing editor.

Please log all your findings of unused data to The Cutting Room Floor (http://www.tcrf.net/)!
Title: Re: Wario Land 2 editor
Post by: Mr. Jolt on December 23, 2014, 06:32:48 am
From what I see here, this editor must be amazing! I think you have out a considerable effort into making it. I'll play with this editor later, since it looks awesome!  :thumbsup:
Title: Re: Wario Land 2 editor
Post by: evmatter on December 23, 2014, 02:28:41 pm
I'm running Java version 8 Update 20 (build 1.8.0_20-b26). This is a relatively recent version of Java, so that is probably the reason why it is not working on older versions of Java. I built it using Windows 7, but it was not working when I tried running it on another Windows 7 computer with an older version of Java.

December 24, 2014, 12:46:36 am - (Auto Merged - Double Posts are not allowed before 7 days.)
After upgrading the Java version on another computer, the program ran just fine. Regardless, I changed a setting in the compiler so that it should be compatible with JRE 1.6 and up.

The Cutting Room Floor page has also been updated: http://tcrf.net/Wario_Land_II
Title: Re: Wario Land 2 editor
Post by: wariolandgoldpiramid on January 07, 2015, 02:09:17 pm
This sounds really awesome, and I really want to try this program out.
Unfortunatly, it does not work.
It gives me a window to select a file. But, after i choose what file to open, NOTHING HAPPENS AT ALL!
I tryed opening the correct rom, a wrong rom, regadless. The rom does not open. There is no error message. The select a file window simply closes, and nothing happens.

And i just recently updated my Java to the most recent version, so I have no idea why this is happening...
Title: Re: Wario Land 2 editor
Post by: Jorpho on January 08, 2015, 09:12:54 am
To be clear, does this only work on the GBC version, or does it work with the original, too?  (And are there any interesting differences in the data?)
Title: Re: Wario Land 2 editor
Post by: evmatter on January 11, 2015, 08:01:17 pm
Thanks for the feedback. If this issue is solved, then other users won't have the same issue. I updated to the newest java version (Version 8 update 25), then recompiled the program using a different approach. See if this version works: https://app.box.com/s/uzoxhf75eip5zj53giau

As for which version of the game works, only the GBC version works as far as I know. I was unable to find the original game to test with. One thing interesting I found in the GBC data was that only the first megabyte of the data is used. The second megabyte appears to contain parts of the original game such as the original sprites. If you compare images between the original and the color version, some of the sprites appear to be slightly different (apart from the fact that one isn't in color).
Title: Re: Wario Land 2 editor
Post by: 90s Retro Gamer on January 15, 2015, 05:27:18 pm
Are there any Wario Land: Mario Land 3 editors???
Title: Re: Wario Land 2 editor
Post by: evmatter on January 16, 2015, 06:40:39 pm
There doesn't appear to be any editors for Wario Land: Mario Land 3. However, there's a lot of documentation about the rom in this thread: http://jul.rustedlogic.net/thread.php?id=15144
Title: Re: Wario Land 2 editor
Post by: wariolandgoldpiramid on January 17, 2015, 05:23:00 am
Thanks for the feedback. If this issue is solved, then other users won't have the same issue. I updated to the newest java version (Version 8 update 25), then recompiled the program using a different approach. See if this version works: https://app.box.com/s/uzoxhf75eip5zj53giau

Unfortunatly, this one does not open up at all :(
There's an error message "A Java Exception has occured"
Title: Re: Wario Land 2 editor
Post by: evmatter on January 17, 2015, 08:32:14 pm
Okay. Hopefully this one works. I recompiled everything with Java 6 using only the basic command line operations. Let me know if this one works. Here is the link: https://app.box.com/s/uzoxhf75eip5zj53giau
Yes, it's the same link as before, but the files in the zip file should be updated.
Title: Re: Wario Land 2 editor
Post by: wariolandgoldpiramid on January 18, 2015, 05:03:07 am
Yeah, it opened! :D
I'll try it out and tell you what I think of it later :)

January 20, 2015, 10:47:23 am - (Auto Merged - Double Posts are not allowed before 7 days.)
I tried it out, and it does seem to be very good, but some things are a bit confusing.
Still, with a bit of learning, it can be learned :P
Title: Re: Wario Land 2 editor
Post by: NekoBaron on February 04, 2015, 05:48:51 pm
I fricking love this and signed up just to post a review for it.

Is it possible to edit the tilesets that you have to select from?

And I would love if you could add a coin counter when viewing a level so I can gauge if I need to add more to a level.
Title: Re: Wario Land 2 editor
Post by: evmatter on February 05, 2015, 09:25:48 pm
Thanks for the review. One of my goals for this project was to make it easy to use.

Now that you mentioned it, I'll definitely start trying to add some tileset editing features into the editor. I'm still trying to think of a good way to implement it. The game doesn't store tilesets as a whole but instead keeps the sprites, metatiles, tile behavior, palettes, and other things in different parts of the rom and throws them together for each level. The "themes" in the editor were actually hard-coded to give the appearance that the tilesets were better organized. This is why it's a bit tricky to implement. What I'll probably end up doing is auto-generating themes from the rom as it's loading. That way, it'll be easier to maintain some sort of organization. The themes would no longer have names but would be assigned numbers.

The coin counter idea, on the other hand, should be fairly easy to implement. It'll be included it in the next release.
Title: Re: Wario Land 2 editor
Post by: NekoBaron on February 06, 2015, 11:13:57 am
I mostly would like to just be able to use more block types is why Im interested in it for puzzles and such, since you generally can only have certain ones per set sadly and I was hoping to come up with some complicated ones like enemy only platform bouncing more combined with the fire/fat/throw blocks and such but I'm enjoying it still even with the current tileset and game limits.

Im aiming to redo all 50 levels with the same chapter themes more or less and just trying thing out, like if I can mess with boss arenas and still have them work, and things like flatten wario does not like slopes >_> . Messing with the tileset pallets are pretty awesome and give quite a nice set of options and its a shame the original didn't use the more varied colours as much.
Title: Re: Wario Land 2 editor
Post by: evmatter on February 16, 2015, 01:55:45 am
Here's what the tile set editor looks like so far. "Themes" will now be called tile sets.

(http://i.imgur.com/DPbCgju.png)

So, I decided not to auto-generate tile sets to choose from, but instead made it more like how it is organized in the rom. Changing tile sets won't be as simple as in the previous version, but there is a lot more control. This way is also better because it will allow you to add more tile sets to the game. You should be able to make about 6 more tile sets, although there could potentially be much more if I created a better data management system. Also, the amount of palette sets that can be used has increased from 70 palette sets to 203 palette sets. Once I create the palette editor, it should be fairly easy to add new ones.

One thing that I found interesting when messing with the rom is that subtiles can be flipped and put in the foreground. This was a feature that was never used in the actual game, but is still fully functional. I assume this was because it was ported from the original gameboy to the gameboy color.

(http://i.imgur.com/YpGn8Td.png)
Title: Re: Wario Land 2 editor
Post by: evmatter on February 24, 2015, 12:25:03 am
The palette sets panel is now finished. Now you should be able to edit any of the palette sets that the tiles in the levels use as well as create new palette sets. Another thing I decided to add is the ability to edit the palettes of objects/enemies. The palettes for Wario's alternate forms are also contained in the object sets, so those palettes can be edited as well.

Here is a link to the editor with all the updates added:
https://app.box.com/s/xuhkx5cbhmf0c7il8mm8wmzlsc9l7jud

(http://i.imgur.com/rcx9C89.png)
Title: Re: Wario Land 2 editor
Post by: NekoBaron on February 24, 2015, 10:24:19 am
This is fricking awesome, I'm a lil scared of editing too many thing in the tilesets but its helped out big time to be able to tweek some of the pallets to correct some of the colours and adding alternate blocks, the coin counter helped out a lot too.
Title: Re: Wario Land 2 editor
Post by: evmatter on February 25, 2015, 06:38:36 pm
Small update:

Since it's hard to know what resources you're editing in the tile sets and palette sets, I added a feature to let you know what levels and regions use that resource. If you hover the mouse over the text fields found in the new panels, a list of levels and regions that use that resource will show up.

Link: https://app.box.com/s/qi8wuwy5k52bh2765fmzuimurw9nzaly
Title: Re: Wario Land 2 editor
Post by: NekoBaron on February 25, 2015, 07:11:29 pm
perfect, the only one thing I've notice is the lil hi-lighted square and selection indicators seem to be 1-2 pixels too big/off center (just a lil graphical issues).
Title: Re: Wario Land 2 editor
Post by: evmatter on February 25, 2015, 09:23:56 pm
That issue's fixed now. There was also a problem with the new feature not working with alternate tile sets, but that's also fixed.

Link to the fixed version: https://app.box.com/s/v6mkdz88qxa301kgeode957dvnjo2rnc
Title: Re: Wario Land 2 editor
Post by: NekoBaron on February 26, 2015, 01:47:26 pm
found a problem, trying to set a warp to set object set 129 which is needed when leaving a boss area, but it keeps setting to -127, guessing its a signed/unsigned issue suddenly.
Title: Re: Wario Land 2 editor
Post by: evmatter on February 26, 2015, 09:50:44 pm
It should be fixed now: https://app.box.com/s/umix40dcgjvhw9zgj3ghcu4ya3pegbos
Title: Re: Wario Land 2 editor
Post by: NekoBaron on March 02, 2015, 11:14:30 am
Turns out wario holding an enemy on a conveyor belt like the sticky block also ignores the effect of standing on the block, its really nice being able to edit the tile set and working out how the switch blocks works can do some interesting things with it, like toggle spike blocks and such.

One thing I noticed is the enemy names for the woods bee boss are switched around, basically bee hive right and boss are just reversed (Im just guessing this for the moment based on their positions in the level)

Edit: Been playing with the tileset editing more, would it be possible to have a x2 size option on the tile set edit screen to make it a lil easier to select? Also I had an idea of a button to pallet sets that makes a copy of another existing pallet based on number to make colour variations more quickly.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 03, 2015, 07:46:03 pm
The object naming is based on the address that the object uses in the rom. In some of the boss rooms, the addresses are switched around. Not sure why this is, but it didn't seem like too big of an issue at the time.

For tileset editing, I would probably make the "view" menu's zoom option affect the zoom of the tilesets.

Having an option to copy palette sets also sounds like a really good idea. At the moment, there isn't a good way to copy colors to other palettes. I'll definitely add this feature when I have the time.
Title: Re: Wario Land 2 editor
Post by: NekoBaron on March 05, 2015, 12:13:23 pm
I tried making a new alternate tile set and horribly broke the level T_T, I'll try and work out what I did or you think there's a limit to number of alternate tilesets since I tried to make a 10th set?
Title: Re: Wario Land 2 editor
Post by: evmatter on March 06, 2015, 01:11:10 am
Did you warp to the region with the alternate tile set using the special "warp door (change tile set)" tile? Even if it displays the alternate tile set in the editor, the game only knows to change the tile set whenever it goes through that type of door.

Also, make sure to keep incremental backups of the rom. I can't 100% guarantee that the editor won't corrupt the rom after saving it. If this does happen, however, send me the ips file so that I can figure out what caused the problem and manually fix the rom.

The editor has also been updated with the features requested in the previous post:
https://app.box.com/s/lnnr2p1734otet5owaw4yvh3qg8uwey7
Title: Re: Wario Land 2 editor
Post by: NekoBaron on March 06, 2015, 03:32:12 am
Well Im currently making the 1st level for the 3rd chapter but the thing is it seem to break saving the level so like 2-3's though the level all the tiles get set like like 0, thankfully only that level gets confused but its a shame since it was turning out nice until I tried loading the rom later.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 06, 2015, 12:29:44 pm
I think I might know what the problem is. The tiles in levels are stored in chunks throughout the rom. Each chunk holds the tile data for about 3 to 4 levels. However, the chunk that contains the 1st level for the 3rd chapter (Maze Woods: Get to Maze Woods) contains 5 levels. This particular level is at the end of the chunk. Since the tiles are compressed, the size that the tiles take up can increase. What probably happened is that the end of the level reached out of the chunk space and into another part of the rom. The part that it reached into gets overwritten by zeros then replaced with the part of the rom that handles the placement of objects.

I'll release a new version that fixes this problem, but for now, the level is going to keep saving incorrectly.
Title: Re: Wario Land 2 editor
Post by: NekoBaron on March 06, 2015, 05:07:57 pm
Thats fine, I love the tool and its great fun to use and help test it out <3, interesting it seemed to be for that level exactly but oh well, no harm done to the progress I've made with it.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 06, 2015, 08:57:04 pm
The problem should be fixed now. Instead of tiles being assigned to the chunk that they originally belonged in, the tiles will move on to the next chunk if it runs out of room.

Fixed version: https://app.box.com/s/itnnctk3s4o128w6m6cv4b9ejo5fryni
Title: Re: Wario Land 2 editor
Post by: NekoBaron on March 07, 2015, 08:02:04 am
Awesome <3 everything works fine again. Though it makes me wonder if I will hit a chunk limit eventually or is it designed to just move on? Just thinking since I'm making a lot of the levels take up more of the space available, though I guess the best way to find out is to keep on going.
Title: Re: Wario Land 2 editor
Post by: Dirtbag on March 08, 2015, 11:43:46 am
This is a really impressive editor., both from a technical standpoint as well as a usability perspective.  Epic job, well done  :thumbsup:
Title: Re: Wario Land 2 editor
Post by: NekoBaron on March 09, 2015, 06:11:43 pm
I'm getting an error loading the rom now, just says 'error reading file' so Im guessing I've upset it somehow since the backup I made still loads fine.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 09, 2015, 07:48:26 pm
Email me an ips patch of the error-producing rom so that I can figure out what the problem is.

As for the chunk limit, it will probably not be reached. I reserved 3 more chunks in the rom for any overflow. The rom is generally divided into sections that are each 0x4000 bytes long, so I call each section a chunk.

Also, thanks for the replies. The feedback is helping make this editor more powerful and bug-free. Right now, I'm working on a new part that will let you edit the graphics. Unfortunately, since the graphics are compressed, they will shift around the rom when saved causing the addresses to shift as well. Many of these addresses are used in the cutscenes, so allowing some graphics to be edited causes the cutscenes to look messed up. Until I find where the graphics are edited in the cutscenes, many of the graphics including enemy sprites will be uneditable.
For now, only some of the graphics will be allowed to be edited. This includes the subtile sets that are unused in the second megabyte of the rom. In the editor, you can see these by accessing the second half of the primary and secondary subtiles. They look like the original graphics but changed slightly. You'll also be able to edit animated subtiles since those are uncompressed. All of Wario's graphics will also be editable since I've found where they are referenced in the rom.
Title: Re: Wario Land 2 editor
Post by: Drenn on March 16, 2015, 05:21:53 pm
First of all, great work with the editor so far, I like it a lot. As for editing graphics - when I first implemented sprite editing in my wl3 editor I didn't even realize they were used in cutscenes. :P But there are so few cutscenes in wl3 I could just hard-code those cases in. I'm not as familiar with wl2 but I'm guessing you could use a similar approach.

I also had this "misc graphics" editor which could edit basically anything after feeding it the addresses in a text file. I went crazy with my external text approach, and it's hardly necessary for such a feature, but it would be cool to see a way to edit random compressed graphics.

My input probably isn't even necessary since you seem to have everything under control, but here it is anyway. There are some people at wario forums interested in more powerful graphics editing so that's why I'm here. Best of luck with this :)
Title: Re: Wario Land 2 editor
Post by: evmatter on March 17, 2015, 02:23:37 pm
Thanks. As you know, I got the idea to make a WL2 editor after seeing your editor. Here's the new release (version 1.2.0). Right now, only some of the graphics can be edited.
https://app.box.com/s/zmgumc6u7dxujr41dr2r2vrho4b4o2n5

The cutscenes are a bit annoying to deal with because of the address shifting with the graphics. Most of the cutscenes actually use their own graphics, but some of the graphics from tiles and objects are used in the cutscenes. Hardcoding the addresses that point to the graphics would probably be the best approach for now.

For graphics editing, I may plan to expand the amount of tile graphics that can be used in the game. Since the pointers to tile graphics use 3 bytes, it's possible to store the graphics anywhere in the rom. I'll also try to expand the amount of metatile, tile color, and tile type sets that can be added in the game. There would have to be a lot of shifting around of data in the rom for that to happen, though.

Also, out of curiosity, what was your approach to hacking the rom? I basically wrote a custom hex editor, then primarily used that to corrupt sections of the rom. Then I uncorrupted half of the corrupted section until I narrowed down which part did what. I never tried to understand the assembly code of the game, though, so I have no idea how the code of the game executes.
Title: Re: Wario Land 2 editor
Post by: Drenn on March 17, 2015, 03:43:11 pm
Hmm, are tileset subtiles really compressed? Didn't expect that. An approach you could consider, is expanding the ROM to 4 megabytes, and reorganizing various things for convenience. I never did go with this approach, and decided to trust my freespace managing system instead, but it's something to consider. Either way would be a fair bit of work though, making sure nothing breaks. :P

As for my approach to hacking, in most cases I'd reverse-engineer the assembly code. Not always, but I'd do this to trace back data in RAM to where it was stored in ROM, and things like that. I think one of the first things I found was where the tile data was stored in RAM (or rather, SRAM). Of course, that's just RAM searching - I probably used breakable tiles to search for differences or something like that... from there, though, I put access breakpoints on the tile data which would lead me to the code which puts it there, so I could understand where and how it was stored in the ROM. I used bgb of course, all its debugging bells and whistles helped a lot. I was familiar with gameboy assembly before this from writing an emulator. I never did try the ROM corruption approach...
Title: Re: Wario Land 2 editor
Post by: evmatter on March 19, 2015, 12:44:37 am
Your approach seems a lot more advanced than the way I'm doing things. From what I've heard, corruption is more of a beginner's technique. This makes sense, though, since I'm relatively new to rom hacking. Corruption's good for finding what each section in the rom does in general, but if you try to look for something in particular it can take a long time. To help me out, I created a rom map of the data. This map is now on data crystal. http://datacrystal.romhacking.net/wiki/Wario_Land_II:ROM_map

There's a lot of extra space in the second megabyte of the rom, so storing extra graphics in that area would prevent the rom from having to expand to 4 megabytes. The one tricky part about this would be telling the editor to keep track of graphics addresses since the editor only checks certain sections of the rom for loading graphics.

So, I went ahead and hard-coded the addresses of the rom that reference graphics used in cutscenes. I've been trying to avoid hard-coding for compatibility, but this should be fine since there isn't any cutscene editing. Now, all the object/enemy graphics and the rest of the tile graphics can be edited.

Version 1.2.1
Edit: If you downloaded from this link already, there was a glitch when editing object graphics. It should be fixed now.
https://app.box.com/s/y0a2azszg1sjd8y59uqtebii2p36yl9b
Title: Re: Wario Land 2 editor
Post by: NekoBaron on March 19, 2015, 03:33:45 pm
Working good so far, couple of things I can suggest if possible.

Show the current chapter/level number and name in window title bar would be useful.


Theres also a lil funny thing of if your rom is saved as .GBC (in caps) it will save it as a .GBC.gbc ,not a giant problem but a lil silly still.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 20, 2015, 08:04:06 pm
The features you requested were added. Version 1.2.2.
https://app.box.com/s/cd7r945b5l3qn3bhw76xzlad91bglxa5

I was messing around with the graphics editing to see what it was capable of and came up with this:
(http://i.imgur.com/lKOTpll.png) (http://i.imgur.com/jQH42Sf.png)

Yes, these are actual screenshots from the Wario Land 2 engine. I was able to recreate the tile set from the first region of The Peaceful Village (ladders don't actually work). The paragoom is a reskinned version the spearman, so it functions the same way.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 30, 2015, 07:30:24 pm
Update. A new panel has been added for editing object sets.
https://app.box.com/s/251tleoczjkp1v6vkka11f1xztvj4b0l

This feature will probably be more useful than graphics editing if you're not going to be changing a lot of graphics.

Edit: Version 1.3.1. Fixed a small bug.
https://app.box.com/s/6sgb73o7vlxg3w89cskkjkodvvz72d15
Title: Re: Wario Land 2 editor
Post by: PresidentLeever on April 02, 2015, 12:05:26 pm
This looks great. I'm doing an Alex Kidd romhack right now but will definitely check it out more thoroughly later.

Something I noticed a lack of that would be useful is undo/redo commands.
Title: Re: Wario Land 2 editor
Post by: Weario on February 24, 2017, 05:15:05 pm
Hi!

Not sure if you are still working on this, but I thought I'd give try to ask you something anyway. :)
I noticed that I can't edit wario's sprite and colours when he's walking back in the credits. Is it possible to add that in this editor as well?
Also, I can't seem to play Wario Land 2 in it's original gb version anymore when I've modified it using your editor.
Hope you're still on this, this is an AMAZING editor!

, Weario
Title: Re: Wario Land 2 editor
Post by: Bahamut ZERO on February 24, 2017, 07:14:28 pm
Hi!

Not sure if you are still working on this, but I thought I'd give try to ask you something anyway. :)
I noticed that I can't edit wario's sprite and colours when he's walking back in the credits. Is it possible to add that in this editor as well?
Also, I can't seem to play Wario Land 2 in it's original gb version anymore when I've modified it using your editor.
Hope you're still on this, this is an AMAZING editor!

, Weario

If the graphics in the rom aren't compressed, you could open it in a graphics editor like Tile Layer Pro or YYCHR and scour through it for the graphics in question. Idk how to tackle the palette edits, though.

Also, thank you for necro-posting in this thread. I didn't know this editor even existed until just now.  :D
Title: Re: Wario Land 2 editor
Post by: Weario on February 25, 2017, 04:55:23 am
If the graphics in the rom aren't compressed, you could open it in a graphics editor like Tile Layer Pro or YYCHR and scour through it for the graphics in question. Idk how to tackle the palette edits, though.

Also, thank you for necro-posting in this thread. I didn't know this editor even existed until just now.  :D
This was indeed what I have been trying myself, but I was unable to properly find the graphics that belong to the ending of the game. I've been editing games with tile editors before, but it still seems different with WL2.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 01, 2017, 08:51:45 pm
Not sure if you are still working on this, but I thought I'd give try to ask you something anyway. :)

After my last post, I've mostly stopped working on it. However, If you're thinking about making a rom hack with the editor, I'll gladly start working on it again.

I noticed that I can't edit wario's sprite and colours when he's walking back in the credits. Is it possible to add that in this editor as well?

Yes. It's possible to add these into the editor after I've found where the sprite data is.

Tile Layer Pro and YYCHR won't work since Wario Land 2 compresses a lot of its graphics using RLE compression. The sprites for Wario in the editor are all compressed in the rom, so
the credits sprites are most likely compressed too.

As for the Wario's colors, I haven't quite figured out how to change those yet.

Also, I can't seem to play Wario Land 2 in it's original gb version anymore when I've modified it using your editor.

I've only tested it on emulator, so I don't know if it works on an actual gameboy.

Hope you're still on this, this is an AMAZING editor!

Thank you :)
Title: Re: Wario Land 2 editor
Post by: Weario on March 02, 2017, 05:43:08 am
Thanks for coming back to me, evmatter! Wario Land 2 was my childhood, so your editor made me really excited about this, hehe.

I have been using your editor to edit most of wario's sprite so that they slightly resemble the sprites of Wario Land 3.
I've basically been cleaning all the tiny pixel errors that the developers left in Wario's (and some bosses and enemies) sprites.
I've posted a first version of it here: http://www.romhacking.net/hacks/2990/

So, the finishing touch that I just needed was to edit Wario's sprite in the ending credits, and there was some feedback that I got from friends that I have yet to implement. :) But after that, I could say that it's finished!

Oh, and what I DID manage to edit using a tile editor, was Wario's celebration sprite that you see only once when you've completed the game for the first time. It would be cool if that was in the editor as well, but it's not that mandatory, since I was able to figure that out myself. :P
Title: Re: Wario Land 2 editor
Post by: CM30 on March 02, 2017, 11:50:08 am
Huh, nice to see you're still willing to work on this editor evmatter.

Either way, while I'm not yet making a ROM hack with this editor, I will say this. I run a fairly active forum dedicated to the Wario series, with quite a few people interested in creating ROM hacks based on Wario Land II and 3. Heck, we even had an official project based on the latter a while back, though it kind of stalled in the meantime.

So if I promote the editor more over there at Wario Forums, and we can find at least a few people willing to make Wario Land 2 mods with it, would that be enough to get you to continue developing the editor? Because I'm sure that with a few improvements or fixes, at least some folk over there would be interested in making their own hacks of Wario Land II...
Title: Re: Wario Land 2 editor
Post by: Prince Manic on March 03, 2017, 12:59:48 pm
Could this editor fix this issue according to The Cutting Rom Floor?

https://tcrf.net/Wario_Land_II#Coins - says in the Hold on to the Owl level there's unbreakable wall blocks containing four 10 coins that cannot be collected. if so I would love to use this editor and create a special fix to make it accessible!
Title: Re: Wario Land 2 editor
Post by: Weario on March 03, 2017, 03:58:00 pm
Could this editor fix this issue according to The Cutting Rom Floor?

https://tcrf.net/Wario_Land_II#Coins - says in the Hold on to the Owl level there's unbreakable wall blocks containing four 10 coins that cannot be collected. if so I would love to use this editor and create a special fix to make it accessible!
[/quoteHaha, that's also one thing that I patched using this cool editor!
Title: Re: Wario Land 2 editor
Post by: evmatter on March 03, 2017, 06:09:09 pm
Huh, nice to see you're still willing to work on this editor evmatter.

Either way, while I'm not yet making a ROM hack with this editor, I will say this. I run a fairly active forum dedicated to the Wario series, with quite a few people interested in creating ROM hacks based on Wario Land II and 3. Heck, we even had an official project based on the latter a while back, though it kind of stalled in the meantime.

So if I promote the editor more over there at Wario Forums, and we can find at least a few people willing to make Wario Land 2 mods with it, would that be enough to get you to continue developing the editor? Because I'm sure that with a few improvements or fixes, at least some folk over there would be interested in making their own hacks of Wario Land II...

The Wario forums would be a great place for this! Every so often I like to visit there. If people show interest in making hacks with the editor, I will definitely put time into developing it more.

As for the Wario sprites, it may take awhile to get those in the editor. Since the sprites are compressed, changing them changes the size and moves other data around, so I'll have to make sure that it doesn't break anything else.
Title: Re: Wario Land 2 editor
Post by: Prince Manic on March 03, 2017, 10:15:17 pm
Could this editor fix this issue according to The Cutting Rom Floor?

https://tcrf.net/Wario_Land_II#Coins - says in the Hold on to the Owl level there's unbreakable wall blocks containing four 10 coins that cannot be collected. if so I would love to use this editor and create a special fix to make it accessible!
Haha, that's also one thing that I patched using this cool editor!

Well I just submitted a mini patch to let others get those four 10 coins - I call it Wario Land 2 5-2 Wall fix, waiting until it's on the list for the game soon. it was an easy fix anyway XD
Title: Re: Wario Land 2 editor
Post by: Weario on March 04, 2017, 05:44:24 am
As for the Wario sprites, it may take awhile to get those in the editor. Since the sprites are compressed, changing them changes the size and moves other data around, so I'll have to make sure that it doesn't break anything else.
I never knew that it could affect other data as well, that's really interesting to know.
Title: Re: Wario Land 2 editor
Post by: Weario on March 20, 2017, 03:53:44 pm
I managed to fix Wario up until this point now (by editing some uncompressed tiles):
(http://i.imgur.com/IcyDuA9.gif)

But I just couldn't change his eye and his flashing arm.


It seems the rest of the tiles are compressed in an odd way. But looking a bit further in those tiles You can see a pattern. They seem to get shifted up each following tile:
(http://i.imgur.com/BJYKvhz.png)

You can see it well in those numbers and letters.

Anything else I could try?
Title: Re: Wario Land 2 editor
Post by: ETG on March 20, 2017, 04:22:12 pm
Looks like none of the tiles are lined up quite right. Have you tried shifting it around a couple of bytes?
Title: Re: Wario Land 2 editor
Post by: evmatter on March 21, 2017, 09:14:17 pm
It appears that those sprites are also compressed, but they are formatted differently than a lot of the other sprites making them slightly easier to edit in an external program. It's using RLE compression which finds repeating bytes in the data and compresses it. This is what's causing the shifting. If you look between each of the letter sprites, there's a couple lines of odd-looking data. If you change that data, the compression will break, and the sprites are going to get completely messed up. However, if you change the data of the normal-looking part of the sprites, only that part will change.

Here's the section of sprites you showed me, but uncompressed (and oriented in an order that's easier to interpret):

(http://i.imgur.com/TvHlkey.png)

It looks like this part can be changed to stop the arm from flashing:

(http://i.imgur.com/uCvN82M.png)
Title: Re: Wario Land 2 editor
Post by: Weario on March 22, 2017, 04:51:22 am
Hey that uncompressed image looks really good! Do you think that can be added to the editor? =)
Thanks for showing me that flashing bit of his arm, still. xD It's really hard to find haha.

EDIT: I changed that part around, but now this happens to his arm:
(http://i.imgur.com/1QsdXrm.png)

I tried using other colours and I tried to colour other pixels but I could never get it perfect, sadly.
Title: Re: Wario Land 2 editor
Post by: evmatter on March 23, 2017, 02:11:23 pm
Changing that part seemed to work for me, but I tested it using the original Wario sprites, so it's possible for it to turn out differently in your situation.

The sprite I posted will be added in the next version of the editor along with the rest of the cutscene sprites. It's a lot tricker to get these sprites in the editor, though (which is why they were left out).
Title: Re: Wario Land 2 editor
Post by: Weario on March 23, 2017, 05:09:44 pm
The sprite I posted will be added in the next version of the editor along with the rest of the cutscene sprites. It's a lot tricker to get these sprites in the editor, though (which is why they were left out).
Sweet. =) That means I can soon finish up my rom hack. ^^ I hope things will go well with this!
Title: Re: Wario Land 2 editor
Post by: evmatter on March 26, 2017, 11:57:39 pm
Finally managed to get the sprites into the editor. Try it out for yourself:

https://app.box.com/s/a91hzfiziyfyptvh25udpes27otkeewh

The editor seems to be working good so far, but keep a backup of your current rom in case it introduces new bugs.
Title: Re: Wario Land 2 editor
Post by: Weario on March 27, 2017, 03:58:34 am
That's great, I'll try it out when I get home. I'll keep you updated! :)

March 27, 2017, 03:07:56 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
This is what I've achieved with your new version!
(http://i.imgur.com/dp95p5C.gif)

(http://i.imgur.com/ILWstjf.gif)

And after testing for a few hours, everything still seems to work perfectly!

Thanks to your amazing editor, I'll be able to finish my little hack very soon! This is such a satisfying feeling, thank you so much!   :thumbsup:
Title: Re: Wario Land 2 editor
Post by: evmatter on March 28, 2017, 01:26:32 am
I'm glad to hear that everything worked out good.  :)

I made a small fix to the editor I linked to yesterday. It's just a visual change, so it won't affect the rom in any way. The wrong graphics for Wario were showing up when viewing the "object sets" tab. The link I posted yesterday should be updated, so just re-download it to get the fixed version.
Title: Re: Wario Land 2 editor
Post by: Weario on April 07, 2017, 03:42:37 am
So I've been working on and off on my little hack, and I can now say that it's all finished. :)
It's now approved on here as well: http://www.romhacking.net/hacks/2990/

I'd like to thank you again for this amazing editor, it felt so nice to play with the sprites and iron out the little errors that the developers left in!