Language…
17 users online:  AmperSam, Cardioid, crocodileman94, CroNo, DanMario24YT, Dark Prince, Green, Green Jerry, GRIMMKIN, mtheordinarygamer, RPG Hacker, Rykon-V73,  Shoujo, Skewer, SMW Magic, W3aper, Zavok - Guests: 292 - Bots: 514
Users: 64,795 (2,373 active)
Latest user: mathew

Trinkets v1.1

Tools → Trinkets v1.1

This file is obsolete. The latest version is Trinkets v1.2. For other versions, check the version history.

Submission Details

Name: Trinkets v1.1
Author: Burning Loaf
Added:
Version History: View
Operating System: Windows
Platforms: SNES
Games: SMW
Source Available: Yes
Featured: No
Website: None
Description: Trinkets is a workspace and a series of batch scripts to help shorten and organize the process of SMW hacking by stuffing all commonly used hacking tools into a lunar magic toolbar.

Other features include:
- A patch list file, where you can insert all specified patches at once to the current ROM
- Saving and loading backups
- Inserting all sprites from a folder while creating a list for said sprites
- Changed default LM icons for better clarity
- Opening the current level's UberASM code
- User-defined bookmarks accessible by certain keybinds

Changelog is in the readme.
Tags: addmusic asar gps inserter level asm lunar magic pixi toolbar
Comments: 24 (jump to comments)
Rating:
5.0 (5 ratings)
No rating
Download 439.26 KiB | 463 downloads

Screenshots

Comments (24)

ElectricMario Link
Mine says "the rom doesn't have a config.bat".
SmokyShroom Link
Why isn't this featured?
MoxieCat Link
Okay, this is probably my favourite tool/addon on the whole site right now. It took a while to figure out and re-build my workflow around this, but having everything available from one window is ridiculously helpful and efficient.

My one complaint is there are buttons to open every single folder associated with the project, except for Graphics and ExGraphics... but that's a pretty minor inconvenience compared to literally everything else this does.
Burning Loaf Author Link

Well, i've ignored adding that because Lunar Magic expects the Graphics and ExGraphics folders to be in the same location as the rom, so really it's two clicks away from the "Open ROM Folder" button. Meanwhile the other folders can be anywhere and not restricted to the template. (also thanks for the kind words)
Rouge Link
Step 9 for the setup doesn't make much sense to me. "Copy and paste GPS's "Routines" folder to the folder with the same name to the "Blocks" folder in your project."
Im guessing this means to just merge the routines folders from GPS and resources.
 Major Flare Link
Tested within: Windows 11, Windows 10 (Xubuntu's Oracle VM).

There is only small problem: I could not get the additional .ssc file to work alongside the one Trinket indirectly generates (via PIXI). However, all of the other additions work, so I won't remove the tool because of this. That being said, I recommend you revisit this particular feature or improve the readme.
crocodileman94 From older version: Trinkets v1.0 Link
Originally posted by UTF
In your hack project's config.bat file, do you have your resources folder path properly pointing to your .resources folder? That's my only guess as to what could be happening.


The resources folder is set to
C:\Users\username\Desktop\SMW Hacking\Trinkets 1.0\.resources

flips has the location
C:\Users\username\Desktop\SMW Hacking\Trinkets 1.0\.resources

When trying to open flips through Lunar Magic, it says
Environment variable C:\Users\username\Desktop\SMW Hacking\Trinkets 1.0\.resources not defined

flips.exe not found.

[\flips.exe]



EDIT: Figured it out. I was supposed to replace resources_path in every section with the above mentioned path. The instructions saying that I only needed to change one thing confused me.
UTF From older version: Trinkets v1.0 Link
Originally posted by Burning Loaf
That's odd. Never heard of or had that happen to me before (of course #tb{¬_¬})
I just tried that myself with that same patch and it assembled correctly... can you please PM me your patch folder's contents? there might be more to discuss.
(btw try not to use imgur if you send any images, it's blocked on my router (don't ask))

Here is a link to my patches folder. It doesn't contain much.

I have Kevin's UberASM retry in my UberASM folder, but it inserts just fine. I also inserted the SA-1 1.40 patch as the first patch applied to my ROM, but I didn't insert it with Trinkets so it's not in my patches folder. I may try inserting that with Trinkets to see how that works.

I'm busy today so I can't spend too much time debugging this issue, but I am able to replicate the issue by following these steps:

Make a new Trinkets Project folder, start with a clean SMW ROM and expand it to 4MB
Extract and insert GFX as 4bpp and insert ExGFX, then modify and save the Overworld. You need to do this to insert LM-related hacks for the 32x32 patch.
In the Trinkets patches folder, you can reduce the amount of patches inside to only contain the 32x32 player patch with its dependent files (excharactertilemap.asm, hexedits.asm, ow_mario.asm, PlayerGFX.bin), or you can just use my patch folder I linked above.
Put 32x32_tilemap.asm in the Trinkets' Patch List txt and insert it with the Apply ASM Patches From List button.
You will get this error message:

Code
This file may not be used as the main file.The main file is '32x32_tilemap.asm'. [includefrom 32x32_tilemap.asm]
A fatal error was detected while assembling the patch. Assembling aborted. Your ROM has not been modified.

Again, seems like Trinkets thinks I'm trying to insert a patch other than the main file. However, when you run the ROM after getting this error, it seems like the patch is actually inserted? Is it just a weird error message that doesn't mean much? I can work around this issue for now, but I'm still not sure why Trinkets is doing this.
crocodileman94 From older version: Trinkets v1.0 Link
The program can't find the non-Lunar Magic exe files in the .resources folder despite the files being there.
UTF From older version: Trinkets v1.0 Link
In your hack project's config.bat file, do you have your resources folder path properly pointing to your .resources folder? That's my only guess as to what could be happening.
UTF From older version: Trinkets v1.0 Link
Does Trinkets have issues when using the "Apply ASM patches from list" button to insert patches that use incsrc? I've been getting an error while trying to insert the 32x32 Player Patch into my ROM with Trinkets' patch list.

To my knowledge, the 32x32 patch is dependent on having incsrc commands to the files "hexedits.asm" "ow_mario.asm" "excharactertilemap.asm" and a incbin to "PlayerGFX.bin" so they need to be in the same directory as the main patch. I have all those files in my patches folder, but when attempting to insert "32x32_tilemap.asm" using the patch list feature, I get this error:

Code
c:/*redacted*/luigiGoes/code/patches/excharactertilemap.asm:1: error: (E5123): 
This file may not be used as the main file.The main file is '32x32_tilemap.asm'. [includefrom 32x32_tilemap.asm]
A fatal error was detected while assembling the patch. Assembling aborted. Your ROM has not been modified.

I'm not well-versed with the ASM involved, but it looks like Trinkets thinks I'm trying to insert excharactertilemap.asm instead of the main 32x32_tilemap.asm patch. Is there a way to fix this?

Also, I even went and made "32x32_tilemap.asm" the only patch in my list.txt file, but I still get the error. I'm still able to successfully insert the 32x32 patch with the "Apply a single ASM Patch" button, so I'm wondering if something is up with the "Apply ASM patches from list" feature.

Other than this issue, I've had a great time with Trinkets. Anything that helps organize hack development workflow is a fantastic addition for any SMW hacker
Burning Loaf Author From older version: Trinkets v1.0 Link
That's odd. Never heard of or had that happen to me before (of course #tb{¬_¬})
I just tried that myself with that same patch and it assembled correctly... can you please PM me your patch folder's contents? there might be more to discuss.
(btw try not to use imgur if you send any images, it's blocked on my router (don't ask))
smwln From older version: Trinkets v1.0 Link
Originally posted by Burning Loaf
The only different thing trinket does with GPS is that if insertion fails because of any error, the backup GPS executable kicks in, which is a modified build of GPS 1.4.3 to fix a bug with the routines path not accepting spaces. So basically if you're using GPS 1.4.4 and encounter an error with it, the backup 1.4.3 build gets used instead and errors that might not be in 1.4.4 show up instead. Right now this was all a hacky solution because while 1.4.4 fixes this it's still in the waiting tools section.
But, if you're not using 1.4.4, then i have no idea what went wrong. For the time being i can't do anything about that other than telling you to wait for an update to trinkets.


For now I'm just using GPS by itself to insert blocks, which isn't too bad. And yeah, it's 1.4.3.
smwln From older version: Trinkets v1.0 Link
Update: Replacing the GPS 1.4.3 in Trinkets with 1.4.4 seems to have fixed it.
smwln From older version: Trinkets v1.0 Link
It seems these blocks crash the game when inserted via Trinkets but not regular GPS, not sure why. Maybe something to do with the included routine not being applied?
Burning Loaf Author From older version: Trinkets v1.0 Link
The only different thing trinket does with GPS is that if insertion fails because of any error, the backup GPS executable kicks in, which is a modified build of GPS 1.4.3 to fix a bug with the routines path not accepting spaces. So basically if you're using GPS 1.4.4 and encounter an error with it, the backup 1.4.3 build gets used instead and errors that might not be in 1.4.4 show up instead. Right now this was all a hacky solution because while 1.4.4 fixes this it's still in the waiting tools section.
But, if you're not using 1.4.4, then i have no idea what went wrong. For the time being i can't do anything about that other than telling you to wait for an update to trinkets.
Sbark200 From older version: Trinkets v1.0 Link
it keep saying this rom do not have a that bat file help!
 MANGOMILK From older version: Trinkets v1.0 Link
this is an outstanding addition!! i am less familiar with the tools this toolbar calls so i can't point out any particular faults but rest assured i will definitely be using this if i ever start working on a hack :>
Burning Loaf Author From older version: Trinkets v1.0 Link
Originally posted by Major Flare
However, I must point one small thing, but consider it if you're planning on update this tool: Be cautious with the "Auto Insert All Custom Sprites" option. While it works fine and it is quite a useful addition, it does introduce a small problem: say your sprite spawns another sprite, and the number is configurable inside the .asm file rather than an extra byte. Since the aforementioned option does potentially rearrange the sprites, since it uses alphabetical order, thus forcing the user to open all the .asm files of the sprites that do have the ability to spawn so they can fix the projectile number. And this can occur several times. My suggestion for the next update is: Tweak this option to either append the new sprites (or delete) maintaining the old order... or issue an warning about this particularity when the sprites console opens. That's all.

That's true... it's gonna be a challenge to try and do that in batch, i think it can be done, but thanks for notifying me either way

Originally posted by HammerBrother
Quote
A patch list file, where you can insert all specified patches at once to the current ROM


Uhh, was wondering - does it let you specify the order in which the patches are inserted? Some patches may modify each other's hijack or their code, such as the FuSoYa's screen scrolling pipes modifies code from GPS, and if you last insert GPS, glitch or a crash could happen, because the latter reverts the pipes hijack.

Isn't the order normally from top to bottom of the list file? Try to check again, i'm not sure if i have it in my version or not, but if that's the case i'll mention that somewhere in the next update

(thanks everyone for the compliments btw, i appreciate it)
HammerBrother From older version: Trinkets v1.0 Link
Quote
A patch list file, where you can insert all specified patches at once to the current ROM


Uhh, was wondering - does it let you specify the order in which the patches are inserted? Some patches may modify each other's hijack or their code, such as the FuSoYa's screen scrolling pipes modifies code from GPS, and if you last insert GPS, glitch or a crash could happen, because the latter reverts the pipes hijack.
 Major Flare From older version: Trinkets v1.0 Link
Tested within: Windows 10.
Tools used: UberASMTool 1.5, PIXI 1.32, GPS 1.4.4 and AddmusicK 1.0.9.

Incredibly ingenious tool. I easily recommend it to be featured. The initial setup isn't so hard, and the results after? A nifty "ROM Hacking Manager" toolbar inside Lunar Magic that makes your like way easier when developing your SMW Hack. Kudos to you, Burning Loaf.

However, I must point one small thing, but consider it if you're planning on update this tool: Be cautious with the "Auto Insert All Custom Sprites" option. While it works fine and it is quite a useful addition, it does introduce a small problem: say your sprite spawns another sprite, and the number is configurable inside the .asm file rather than an extra byte. Since the aforementioned option does potentially rearrange the sprites, since it uses alphabetical order, thus forcing the user to open all the .asm files of the sprites that do have the ability to spawn so they can fix the projectile number. And this can occur several times. My suggestion for the next update is: Tweak this option to either append the new sprites (or delete) maintaining the old order... or issue an warning about this particularity when the sprites console opens. That's all.
Link13 From older version: Trinkets v1.0 Link
I tried to achieve this back in 2017 knowing custom toolbars are possible but I gave up immediately. This is hopefully the thing I've been looking for since then. I'm glad Burning Loaf is going to make my life easier, instead of constant folder opens and locating files. Trying it out asap. #smw{:peace:}
Ralshi02 From older version: Trinkets v1.0 Link
Can't even express how usefull this is
FedoraFriday From older version: Trinkets v1.0 Link
I feel like, even if you don't use these tools, all of pixi, addmusic, gps, uberasm, should all be included with lunar magic. This toolbar makes using all that SUPER convenient, you'll save SO much time on some of the most mundane parts of rom hacking.