Sonic and Sega Retro Message Board: FW-KENSC Windows Shell Extension - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

FW-KENSC Windows Shell Extension

#1 User is offline Clownacy 

Posted 06 December 2016 - 02:06 PM

  • Layin' the Wax and Spinnin' the Sounds
  • Posts: 616
  • Joined: 06-July 13
  • Gender:Male
  • Location:Englandland
Posted Image

This is a Windows shell extension for flamewing's FW-KENSC (and MarkeyJester's Twizzler), made by MainMemory and I.

If you're like me, you were constantly juggling the command line set of FW-KENSC tools around with the KENSSharp shell extension, jumping between the two when you either wanted something easy to use, or something with a better compression ratio. Now, with this, you can have both!

This uses the (as of writing) latest version of FW-KENSC, complete with Rocket/Kosinski+ support, and the ability to module-compress all formats (bar No-Size Saxman) with a module size of 0x1000.

Source is available at https://github.com/M...-KENSC-ShellExt
Download here: https://github.com/M...leases/tag/v1.1
This post has been edited by Clownacy: 10 December 2016 - 10:50 PM

#2 User is online MainMemory 

Posted 06 December 2016 - 02:17 PM

  • Every day's the same old thing... Same place, different day...
  • Posts: 3703
  • Joined: 14-August 09
  • Gender:Not Telling
  • Project:SonLVL
  • Wiki edits:1,339
To be clear on who did what here, I took the basic skeleton of the KENSSharp shell extension and wrote some code for the context menu handler to interface with the compressors, Clownacy made it actually work, updated the compressors to the latest versions, and added all the extra format options.

This extension should actually use less resources than the KENSSharp one, because the compressors are native code that runs in-process, instead of having to call out to a separate C# program.

Glad to see this finally getting a proper release.

#3 User is offline rata 

Posted 06 December 2016 - 05:18 PM

  • Posts: 348
  • Joined: 11-January 15
  • Gender:Male
  • Location:Argentina
  • Project:Trying to be useful somehow.
This is nothing but great news for people who hate command line on almost 2017. Thank you for sharing this thing.

#4 User is offline winterhell 

Posted 06 December 2016 - 05:23 PM

  • Posts: 1017
  • Joined: 16-October 10
  • Gender:Male

View Postrata, on 06 December 2016 - 05:18 PM, said:

This is nothing but great news for people who hate command line on almost 2017. Thank you for sharing this thing.

I think 2 mouse clicks beats writing up 2 filenames and arguments.

#5 User is offline Caverns 4 

Posted 07 December 2016 - 04:13 PM

  • Posts: 321
  • Joined: 07-December 12
  • Gender:Male
  • Project:Sanik Quest: Journey To The Right
Okay, this is just awesome, and it's gonna be a HUGE timesaver for us all!

... But what is Kosinski+ ?

#6 User is offline Clownacy 

Posted 07 December 2016 - 04:43 PM

  • Layin' the Wax and Spinnin' the Sounds
  • Posts: 616
  • Joined: 06-July 13
  • Gender:Male
  • Location:Englandland
https://github.com/f...60fb19199782fb2

The Kosinski format is poorly-optimised for the 68k: for example, an 'add' instruction is faster than an 'lsr #1' instruction, so the Description Field should have been big-endian instead. Also, the Description Field would have been better off 8-bits long instead of 16, and the Fields in general should not be fetched early. Patching all of this up produces a new format this is incompatible with standard Kosinski, but decompresses quicker. flamewing also tried to improve the compression ratio, but the situations for the improvements to kick in never occur in S1-S&K's data, so it has no effect.

#7 User is offline Caverns 4 

Posted 07 December 2016 - 05:52 PM

  • Posts: 321
  • Joined: 07-December 12
  • Gender:Male
  • Project:Sanik Quest: Journey To The Right
Thank you. I tried searching it on Retro and Google, but well, as for google, when your second result is titled "Oral Pleasure: Kosinski as storyteller" on GoogleBooks, that's a pretty good tell that search won't end well.

#8 User is offline rata 

Posted 07 December 2016 - 08:14 PM

  • Posts: 348
  • Joined: 11-January 15
  • Gender:Male
  • Location:Argentina
  • Project:Trying to be useful somehow.

View Postwinterhell, on 06 December 2016 - 05:23 PM, said:

View Postrata, on 06 December 2016 - 05:18 PM, said:

This is nothing but great news for people who hate command line on almost 2017. Thank you for sharing this thing.

I think 2 mouse clicks beats writing up 2 filenames and arguments.


What is pretty much what I said.

#9 User is offline flamewing 

Posted 08 December 2016 - 07:27 AM

  • Emerald Hunter
  • Posts: 1084
  • Joined: 11-October 10
  • Gender:Male
  • Location:Brasil
  • Project:Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
  • Wiki edits:12
Kosinski+ is a Kosinski tweak I made based on ideas Vladikcomper and I discussed on IRC some time ago. There was another tweak that Vladik created (MegaKosinski) based on some of those ideas which unfortunately had worse compression than Kosinski.

Kosinski+ theoretically has better compression than Kosinki (in practice, it ends up being either the same or 2 bytes smaller) and is designed to decompress faster due to not making some mistakes that Kosinski format does.

At some point I will actually release a decompressor; I just need ssome time to work on this again.

And FYI, command line vs mouse depends on use case: in SCH and BFD, the build script recompresses all compressed files that were modified since the last build, and having a GUI for that would be horribly inefficient. As is, the build script finds the new files and generates the command line to recompress them.

#10 User is offline rata 

Posted 08 December 2016 - 12:32 PM

  • Posts: 348
  • Joined: 11-January 15
  • Gender:Male
  • Location:Argentina
  • Project:Trying to be useful somehow.
Well, yes, for blast batch processing something you're going to do modify every time you build the ROM then of course it's better if you automatize it, but if you're going to do one file, compress it, do another one, etcetera, then mouse wins.

#11 User is offline flamewing 

Posted 08 December 2016 - 01:22 PM

  • Emerald Hunter
  • Posts: 1084
  • Joined: 11-October 10
  • Gender:Male
  • Location:Brasil
  • Project:Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
  • Wiki edits:12
Even the case you describe might be better done in batch: instead of doing one file, compress, repeat, you can do all files and compress them all in batch at the end :v:

But yes, I did say it depends on use case.

#12 User is offline Natsumi 

Posted 09 December 2016 - 02:57 AM

  • Miss Fox
  • Posts: 145
  • Joined: 08-February 12
  • Gender:Female
  • Location:Otter's lap
  • Project:Being with my boyfriend
This is great that this is finally released; Too often I'd have to recompress one or few files to another format or uncompress, edit, and recompress. So much time wasted with crappy quick batch scripts and finding the file paths, etc.. Finally I can be actually efficient about this!

#13 User is offline MarkeyJester 

Posted 09 December 2016 - 03:30 AM

  • Full of surprises, pull the ribbons for details~
  • Posts: 1759
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
I had been using MainMemory's original KENS Windows Shell for months, and I can tell you, the amount of time saved is absolutely useful. I am pleased to see the more efficient compressors applied to with it now too, I shall now pop ahead and install.

Fantastic work guys, you are true pioneers~

...having said that, if I supplied the source code, any chance of including Twizzler?

#14 User is offline flamewing 

Posted 09 December 2016 - 08:52 AM

  • Emerald Hunter
  • Posts: 1084
  • Joined: 11-October 10
  • Gender:Male
  • Location:Brasil
  • Project:Sonic Classic Heroes; Sonic 2 Special Stage Editor; Sonic 3&K Heroes (on hold)
  • Wiki edits:12
Speaking for myself, I would love to include it on my mdcomp repository (with proper attribution, of course).

#15 User is offline Clownacy 

Posted 09 December 2016 - 10:08 AM

  • Layin' the Wax and Spinnin' the Sounds
  • Posts: 616
  • Joined: 06-July 13
  • Gender:Male
  • Location:Englandland
Sure, I could add it in. That'd mean I could use it on my 32-bit machine, too :U
This post has been edited by Clownacy: 09 December 2016 - 10:10 AM

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users