What map-making feature would you like emulators to have?

Started by ReyVGM, August 23, 2026, 06:29:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ReyVGM

Quote from: Guard Master on August 27, 2026, 07:55:01 PMSome features I'd like to have in an emulator in use for map-making are:


-The ability to directly copy to clipboard, whether the emulation screen, the tilemap viewer, sprite viewer, or tile viewer. You can even copy multiple images to clipboard and select them via WIN+V.


This will be available on the next release. You can use a hotkey to copy to clipboard the game screen and the viewers. You can even copy multiple images to clipboard and select them via WIN+V.




mechaskrom

Quote from: ReyVGM on October 17, 2026, 11:38:46 AMI'll add it to the requests, but it can be a bit complicated to grasp especially since none of us use those tools. Could you make a short video showing how it works and how you want that canvas thing to work? Although, it feels like this is getting a bit to close to image-editor territory.
There are already quite a lot of guides and videos for emulator scripting. Some examples:
How to Write Lua Scripts for Video Games with the BizHawk Emulator
Bizhawk: Intro to Lua Scripting
CPS2/3 Romhacking: The basics of LUA
Scripting is basically an interface (API) the emulator provides that makes it possible to programmatically interact with the emulator and the emulated game. Lua is commonly used as the programming language in these scripts.

The in memory canvas thing would only need these four script functions for my use cases:
canvas = create(width, height) //New canvas with specified dimensions in pixels.
canvas.clear(color) //Clear whole canvas with specified color.
canvas.copyFromScreen(screenX, screenY, width, height, canvasX, canvasY) //Copy rectangular part of screen to canvas.
canvas.saveToFile(filepath) //Save canvas as a PNG-file.
The canvas is just a 2D array of RGB pixels. A big screenshot made up of many normal screenshots you could say. This is where the screenshots are stitched together into a map.

So it's not really an image editor. However you probably want/need some basic graphic functions in the script API so you can display text and other things. I often make scripts that show info about tilemaps, sprites and hidden items in the emulator's screen (script overlay) for example. A canvas window is useful for displaying more complicated stuff. Like this script for SimCity that displays the whole city in a canvas:
SimCity SNES map viewer script


Quote from: ReyVGM on October 17, 2026, 11:38:46 AMQuestion, if SuperSNES9x adds LUA support, is there a script you can use or does the emu author have to write its own script?
Users write the scripts (they are just txt-files the emulator can open). You can probably even get an AI to help write one for you today. There exists many scripts, but unfortunately they are generally not compatible between different emulators. You often have to rewrite them a bit to get them working in another emulator.


Quote from: ReyVGM on October 17, 2026, 11:38:46 AMThere is a debugger in the works and once that's added, scripting can also be added.
As SuperSNES9X is a fork of Snes9X, maybe it's possible to copy the lua scripting implementation from Snes9X Rerecording (snes9x rr)?
https://github.com/gocha/snes9x-rr


Quote from: ReyVGM on October 17, 2026, 11:38:46 AMI see you've written tools too. Can't you write your own tool and add it to SS9X once scripting is available? That way you can make the tool exactly how you (and other mappers) would like it.
Probably depends on how much functionality the emulator exposes in its scripting API. With enough functionality you could probably write most tools, like a debugger, in scripts if you wanted too.

You can do a lot of crazy stuff with emulator scripting and that's why I love it :). Like give Mega Man laser eyes or Mario a jetpack:
Best Scripts for Nintendo NES Emulator FCEUX!
Some tools and other stuff I've made:
https://github.com/mechaskrom

ReyVGM

Quote from: mechaskrom on October 21, 2026, 10:33:52 AMProbably depends on how much functionality the emulator exposes in its scripting API. With enough functionality you could probably write most tools, like a debugger, in scripts if you wanted too.

You can do a lot of crazy stuff with emulator scripting and that's why I love it :). Like give Mega Man laser eyes or Mario a jetpack:
Best Scripts for Nintendo NES Emulator FCEUX!

I think it's best if you post this in SuperSNES9X's github so you can interact with the author directly.

He's working on adding LUA right now, but it's best if you post exactly how it should work for people like you.

https://github.com/shanytc/snes9x/issues

ReyVGM


mechaskrom

Awesome! It's exciting to see more emulators with script support.

I tried porting some of my scripts and most seemed to work fine. Some things are missing, such as the ability to specify a file path in emu.screenshot() and functions for toggling layers on or off, but it's a good start.

I'll definitely keep an eye on this emulator and maybe make some feature requests via its github.
Some tools and other stuff I've made:
https://github.com/mechaskrom

ReyVGM

Quote from: mechaskrom on November 03, 2026, 10:40:46 AMAwesome! It's exciting to see more emulators with script support.

I tried porting some of my scripts and most seemed to work fine. Some things are missing, such as the ability to specify a file path in emu.screenshot() and functions for toggling layers on or off, but it's a good start.

I'll definitely keep an eye on this emulator and maybe make some feature requests via its github.

Please request that on the github soon. The author is pretty quick to add stuff like that.

ReyVGM

Quote from: mechaskrom on November 03, 2026, 10:40:46 AMAwesome! It's exciting to see more emulators with script support.

I tried porting some of my scripts and most seemed to work fine. Some things are missing, such as the ability to specify a file path in emu.screenshot() and functions for toggling layers on or off, but it's a good start.

I'll definitely keep an eye on this emulator and maybe make some feature requests via its github.

The author added those features now.  You can use the nightly version of the emu if you don't want to wait for the final release. See the screenshots.

What other ones do you think are missing?


mechaskrom

I've been quite busy lately, so I haven't had time to submit any github requests. It looks like it wasn't necessary though, as SuperSnes9x now has everything I need to create mapping scripts.

If I find the time, I'll submit github requests for a few "nice-to-have" (but not essential) features, like that screenshot canvas thing I mentioned earlier.
Some tools and other stuff I've made:
https://github.com/mechaskrom

Cyartog959

Well, why not the GBA emulators? I think its been way long since they were last worked on, and updated with any new features were added for charting game maps there.

We do enjoy the SNES, but we can't forget the GBA, too. There's just so much not many thought of for improvements...

gamingirdb

Quote from: Guard MasterSomething BizHawk lacks in its scripting and I would like to see is an in memory drawing canvas that you can blit copy a rectangular part of the current screen to.

Yeah, that's the bit I keep running into too. For NES and Game Boy stuff I've been leaning on Mesen's tilemap viewer, you can switch the BG layers and the sprites off and save what's left straight from the viewer, which covers maybe half the games without any stitching at all. Anything with a scrolling camera still ends up being screenshots plus an external stitcher like yours, so an in-memory canvas you could blit parts of the screen into really would be the thing that keeps the whole job inside one script. Until then the txt-file-of-blits workaround is probably as good as it gets.
Long-time map ripper and retro console player. I like poking at how tile-based maps are put together (NES/SNES/Genesis era mostly) and keeping a log of performance quirks on older PC ports. Happy to help with map-ripping tools and emulator setup questions.

ReyVGM

This has been added to SS9X (if you can't wait for release, you can download the nightly version):
Viewers: Layer stack priority manager, profiles, Profiles folder and canvas scrollbars
https://github.com/shanytc/snes9x/pull/322


Quote from: gamingirdb on November 28, 2026, 11:10:06 PM
Quote from: Guard MasterSomething BizHawk lacks in its scripting and I would like to see is an in memory drawing canvas that you can blit copy a rectangular part of the current screen to.

Yeah, that's the bit I keep running into too. For NES and Game Boy stuff I've been leaning on Mesen's tilemap viewer, you can switch the BG layers and the sprites off and save what's left straight from the viewer, which covers maybe half the games without any stitching at all. Anything with a scrolling camera still ends up being screenshots plus an external stitcher like yours, so an in-memory canvas you could blit parts of the screen into really would be the thing that keeps the whole job inside one script. Until then the txt-file-of-blits workaround is probably as good as it gets.

The request about selecting parts of the canvas is going to be added soon. I assume what people want is to be able to use the mouse to "draw" a square or rectangle and copy a specific part of the canvas, right? Like how it works in windows paint, right?

Let me know what other request has gone unfulfilled.

ReyVGM

Next release is going to be great for map makers and sprite rippers.

Not only will you be able to select the type of background color, but you can also choose a checkerboard pattern to take screenshots with transparent backgrounds!



For the sprite/title viewers you can now:

1) Turn on/off sprite & backgrounds directly in the viewer and stack layers in your desired priority.
2) Have profiles to save specific layer stacks
3) Select any part of the screen to copy to clipboard or to save as a screenshot. There's also a lasso and magic wand option.



Guard Master

This is all awesome! The exact features that will make mapping easier and more flexible. Perhaps I may begin using it as a regular in 2027, but there are still additional features and adjustments I'd really like to see implemented.

A major annoyance I find with viewers is that the windows aren't resizable and they are always over the emulation windows. All the viewer windows appear unnecessarily too large on my screen and make it extremely difficult to work with. Also, I'd still like some way to combine multiple tool windows (the viewers, cheats, etc.) to form tabs so a million separate windows aren't all over my screen and in the taskbar, all the while needing to constantly switch between any windows hiding behind. BSNES does the tabbing well for some tools.

Also about windows, it would be wonderful if all the currently opened windows could be saved after closing the emulator, and all automatically reopen after opening the emulator. Nothing more tedious than needing to constantly reopen them all manually.

Although I know it's planned, but it would be great if the debugger with hex editor could be implemented the upcoming release or one after. This I find pretty much essential while working on maps. Even if they're initially limited in functionality it would be better than nothing.

With all of the features and options added, it may be a good idea to take a similar approach as how BizHawk does by grouping all the tools together. Needing to go all over the place in the toolbar (as most of these appear unable to be assigned hotkeys) to access the viewers, cheats, scripting, recording, debugging, etc. seems a bit disorganized.