Online Gconvert JS
Posted: Fri Jan 11, 2019 6:54 am
I have put together an online version of Gconvert. It is not an Emscripten build of Gconvert with a web interface (although I am interested in doing that.) It is a web application where all conversion happens through JavaScript. You do not actually even need PHP either. Just host it on whatever since all the work happens in JavaScript.
The Online Gconvert JS tool does NOT support mega-tiles or code tiles. Sorry. It does however, support 6x8 tiles, 8x8, tiles, or whatever dimension as long as it is specified in the .xml. Perhaps I could work with those in the future if I gain some experience with them.
This software is intended for Uzebox, the Retro Minimalist Game Console.
Uzebox website: http://www.uzebox.org
Uzebox software, including Gconvert can be found here: https://github.com/Uzebox/uzebox
Gconvert, specifically, can be found here: https://github.com/Uzebox/uzebox/tree/m ... s/gconvert
OnlineGconvertJS is a complete rewrite of the Uzebox Gconvert.
New features in OnlineGconvertJS:
Tile de-duplication is optional.
Final tileset is shown as an image.
Original tileset image is shown but with duplicate and unused tiles grayed out.
Lots of downloads. Nearly all output (and input) can be downloaded from the program.
Has integration with the Uzebox Asset Manager which allows for additional features:
* Saving the output .inc files to the web server.
* Querying the UAM database for known games and their asset resources (.xml, .png, etc.)
* Requires UAM to be integrated and a valid login to UAM with assigned permissions.
Does not require UAM to be integrated. Will work without it but minus the UAM features.
OnlineGconvertJS FULL FEATURE LIST:
INPUT:
Load XML, load IMG, Validate XML.
Download XML, download IMG.
Includes some sample data files as templates.
MAP EDITOR:
Load XML and IMG into map editor.
Can create new tile maps.
Has hover preview options and an easy double-click to create map feature.
Tilemaps can have different output types. (PROGMEM, C2BIN, SKIPMAP, NOWHERE.)
Tile de-duplication is optional. On by default.
Can specify tileset output types (PROGMEM, C2BIN.)
OUTPUT:
Outputs .inc files into text boxes.
Final tileset is shown and can be downloaded.
Original tileset with used duplicate tiles is shown.
Any tile used in a map and seen more than once will be grayed out.
Any unused tile will also be grayed out. Can download this image also.
Final tileset has a hover preview that will indicate the tile id in the tileset.
Lots of download features available:
input xml, input img, maps img,
tileset img, marked dupes img, progmem.inc, c2bin.inc,
All input files in zip, all output files in zip, everything in a zip.
PERFORMANCE:
Each portion of the conversion portion of the application (OUTPUT) is timed.
You can see what takes the most time in the conversion.
Conversions are very fast!
On my computer, an overworld tileset consisting of 94856 tiles was reduced down to 88 tiles (it was a simple tileset) and the process took 1.94 seconds. This includes tile deduplication.
A more typical tileset consisting of 9270 tiles reduced down to 196 tile and took 0.23 seconds.
COMPATIBILITY:
Works in Firefox, Chrome, as well as Internet Explorer 11.
LINKS:
https://nicksen782.net/UAM/APP_gconvert
https://github.com/nicksen782/OnlineGconvertJS
The Online Gconvert JS tool does NOT support mega-tiles or code tiles. Sorry. It does however, support 6x8 tiles, 8x8, tiles, or whatever dimension as long as it is specified in the .xml. Perhaps I could work with those in the future if I gain some experience with them.
This software is intended for Uzebox, the Retro Minimalist Game Console.
Uzebox website: http://www.uzebox.org
Uzebox software, including Gconvert can be found here: https://github.com/Uzebox/uzebox
Gconvert, specifically, can be found here: https://github.com/Uzebox/uzebox/tree/m ... s/gconvert
OnlineGconvertJS is a complete rewrite of the Uzebox Gconvert.
New features in OnlineGconvertJS:
Tile de-duplication is optional.
Final tileset is shown as an image.
Original tileset image is shown but with duplicate and unused tiles grayed out.
Lots of downloads. Nearly all output (and input) can be downloaded from the program.
Has integration with the Uzebox Asset Manager which allows for additional features:
* Saving the output .inc files to the web server.
* Querying the UAM database for known games and their asset resources (.xml, .png, etc.)
* Requires UAM to be integrated and a valid login to UAM with assigned permissions.
Does not require UAM to be integrated. Will work without it but minus the UAM features.
OnlineGconvertJS FULL FEATURE LIST:
INPUT:
Load XML, load IMG, Validate XML.
Download XML, download IMG.
Includes some sample data files as templates.
MAP EDITOR:
Load XML and IMG into map editor.
Can create new tile maps.
Has hover preview options and an easy double-click to create map feature.
Tilemaps can have different output types. (PROGMEM, C2BIN, SKIPMAP, NOWHERE.)
Tile de-duplication is optional. On by default.
Can specify tileset output types (PROGMEM, C2BIN.)
OUTPUT:
Outputs .inc files into text boxes.
Final tileset is shown and can be downloaded.
Original tileset with used duplicate tiles is shown.
Any tile used in a map and seen more than once will be grayed out.
Any unused tile will also be grayed out. Can download this image also.
Final tileset has a hover preview that will indicate the tile id in the tileset.
Lots of download features available:
input xml, input img, maps img,
tileset img, marked dupes img, progmem.inc, c2bin.inc,
All input files in zip, all output files in zip, everything in a zip.
PERFORMANCE:
Each portion of the conversion portion of the application (OUTPUT) is timed.
You can see what takes the most time in the conversion.
Conversions are very fast!
On my computer, an overworld tileset consisting of 94856 tiles was reduced down to 88 tiles (it was a simple tileset) and the process took 1.94 seconds. This includes tile deduplication.
A more typical tileset consisting of 9270 tiles reduced down to 196 tile and took 0.23 seconds.
COMPATIBILITY:
Works in Firefox, Chrome, as well as Internet Explorer 11.
LINKS:
https://nicksen782.net/UAM/APP_gconvert
https://github.com/nicksen782/OnlineGconvertJS