Language…
10 users online:  AmperSam, Hammerer, Isikoro, JezJitzu, MorrieTheMagpie, nonamelol1, RPG Hacker, sofy lumi, timothy726, webzinn - Guests: 249 - Bots: 319
Users: 64,795 (2,377 active)
Latest user: mathew

[Tool] LM Addon Project - Asar : applying/removing patches, colliosion warning, hex edit, export (beta)

  • Pages:
  • 1
  • 2
I wanted to make this my 4000th post but given that everything in the gambling threads might be deleted anyway, who cares.

So yeah, I thought I'd do something simple. And this is it.
A GUI/Addon for Lunar Magic to apply patche+ (the + means more *wink*)
I haven't done much testing yet, so I put a sort of "use at own risk" thing here. That goes for all the "+" features, patching works just like with the command line version of asar.

So what does and will this do for your?
  • patching: Simply like the command line version, applies a patch, prints to the "console", returns errors and so on.
  • quick patch: A mix of a simple text editor and patching. Meant for simple hex edits that only need like 2-3 lines of code.
  • collision warning: If you try to apply a patch which write to data that has previously been edited by a patch, it will warn you.
  • removing of patches: Keeps track of all edits a patch makes and you can easily undo them when providing a clean ROM (by default, it uses Lunar Magics restore ROM if available)
  • exporting: Export all patches and hex edits into a single ASM file. Note that this file will use norom, meaning it expects the same rom mapping (lorom/sa1rom) on both the export and import ROM.

See the readme for more details, don't worry, it won't byte (hehe, get it?)

Some screens:



To add it to LM custom toolbar, create a file called "usertoolbar.txt" in the folder where LM is and put this in it:

Code
***START***
LM_SPACER
***START***
"path to asar addon.exe, keep the quotes" "%1"
0,Asar Addon to apply ASM patches
LM_CLOSE_ON_CLOSE
'a',VK_CONTROL
***END***


It will add the tool to the toolbar and you can start is using CTRL+A

Download
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
Why did nobody comment on this #tb{:?}

This looks like a great addition to lunar magic and I'll sure try it out.
Especially collision warning and removing of patches seem very useful to me, so nice job #tb{:]}

I'll work with it this evening and see if I encounter any problems, but it seems to be very straight forwand #tb{;)}
My Youtube channel

Currently working on:
Project C

Finished project:

This actually looks quite good. Better than my projects, anyway.
I don't think I'll be using this for my current hack, but probably will for future ones.

something is supposed to go here

Very creative, but awesome addition. keep up your great work.
I like these new tools that tries somehow an integration with Lunar Magic. One of the major problems in the SMW Hacking is simply the need of using multiple tools to do your hack and such tools can help a lot, specially newer users, to make the hacking process easier and more interactive, comfortable for these users.

Nice job.
GitHub - Twitter - YouTube - SnesLab Discord
Wow, thanks for this. I've worried before about incompatible patches because I get paranoid about anything that doesn't perfectly 'line-up'. This will make it 10x easier to manage my patches.
PM me!
Quest on Full Moon Island 2

I'm a dog. Woof.

Tag (div) is closed, I just felt like saying hi.
This integration will make programming and working on levels incredibly easier, faster and practical!

Superb work, pal!
While this looks really nice, I have this bug:
"path to asar addon.exe, keep the quotes"

Must I have Asar in the LM folder as well?
Originally posted by Rykon-V73
While this looks really nice, I have this bug:
"path to asar addon.exe, keep the quotes"

Must I have Asar in the LM folder as well?

Open the .txt file and edit that part to have full path to the asar addon.exe file, something like:
C:\something\something\asar addon.exe
I did what you said. I kept the quotes. Tool doesn't work.
What does your usertoolbar.txt look like?
Also, when you say "Tool doesn't work", can you give a little bit more information? Such as what exactly doen't work? Does the toolbar not work, does the tool not start when you click it? Details Important!!!
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
Originally posted by Rykon-V73
I did what you said. I kept the quotes. Tool doesn't work.

I did that and it worked for me, the button even has a custom icon in LM. Try running the tool directly, without LM to see if that works.

The patch seems to work fine so far. Well, I only tested the No Overworld patch, but it worked well. I very much like the idea of a version of Asar with a user interface, it really helps.

I noticed that, applying that patch via this addon works properly, but somehow ZMZ is saying it's a bad ROM (the checksum is bad), something that didn't happen when I patched the same patch with Asar. Even Lunar Magic is giving me the warning that "The ROM may be Corrupt!". Weirdly enough, undoing the patch fixes it.

The game itself looked fine and the patch worked properly, so I don't know if it's an actual issue or not.

Also "Undo the chenges of patch: "noow" (304 bytes)?"
"Chenges?" #ab{:P}
Originally posted by JackTheSpades
What does your usertoolbar.txt look like?
Also, when you say "Tool doesn't work", can you give a little bit more information? Such as what exactly doen't work? Does the toolbar not work, does the tool not start when you click it? Details Important!!!


Well, it looks like this:
Code
***START***
LM_SPACER
***START***
"G:\Games\LMt\Asar\asar addon.exe"
0,Asar Addon to apply ASM patches
LM_CLOSE_ON_CLOSE
'a',VK_CONTROL
***END***


I don't like playing around with C:.
Originally posted by Rykon-V73
"G:\Games\LMt\Asar\asar addon.exe"

Originally posted by JackTheSpades
"path to asar addon.exe, keep the quotes" "%1"

That could be the problem.

Either that or that suspicious T in your path.
<blm> zsnes users are the flatearthers of emulation
I tried changing the folder to "LMS" and I forgot the "%1". It was necessary. But even if the code looks like below:

Code
***START***
LM_SPACER
***START***
"G:\Games\LMS\Asar\asar addon.exe" "%1"
0,Asar Addon to apply ASM patches
LM_CLOSE_ON_CLOSE
'a',VK_CONTROL
***END***


it doesn't work.
Nice, this will come in handy. I wish more tools had a GUI like this.
try "Asar Addon.exe" instead of "asar addon.exe".
Lunar Magic is C++, which always sorta makes it possible for paths to be case sensitive, even though windows isn't.
Anime statistic on MyAnimeList:
400 animes completed ✓
6000 episodes completed ✓
100 Days completed ✓
... what even am I doing with my life?
Even if you helped me, I still get nothing.
Originally posted by Rykon-V73
Even if you helped me, I still get nothing.

Originally posted by RanAS
Try running the tool directly, without LM to see if that works.

Does running the tool outside of Lunar Magic work?

In other news, another thing that happened to me was, when Avast! was being annoying and analysing this program, Asar Addon crashed saying that it required .NET Framework 4.0.30319 to run. Is that actually a requirement? If so, that could be the issue.
I do have ESET NOD32 Antivirus 4 as my antivirus program. I filtered those virus programs and tested the tool again. Once more, it didn't work. Does it really require a .NET Framework like RanAS said or what?
Edit: I did try to open the "usertoolbar.txt", by changing ".txt" to ".exe". I get this message: This version of the file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (33-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
  • Pages:
  • 1
  • 2