News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: Utilities: NINJA 2.0 July 26 Beta  (Read 19431 times)

RHDNBot

  • Guest
Utilities: NINJA 2.0 July 26 Beta
« on: July 25, 2006, 06:24:37 pm »
This is an automated message generated by Romhacking.net's RHDNBot.

Update By: D

A new beta has been uploaded for NINJA 2.0. The following changes have been made since the last version archived on ROMHacking.net:
  • Added a check to make sure target file is writeable before patching.
  • Added icon previews to the GUI.
  • Added a detection for GB ROMs using magic bytes provided by Aerdan.
  • Rewrote a lot of NINJA code to use escape strings instead of chr() evilness.
  • Added support for using NINJA as a frontend for applying xdelta format patches. Required you have the xdelta executable (xdelta.exe) in the program path.
  • Added icons for xdelta format and options for it to the file association menu.
  • Fixed a glitch that was preventing users' language selection from actually being applied.
  • Edited the German translation to match Tauwasser's suggestions.
  • Retored ninja.bat for command-line users who refuse to install .NET 2.0.
  • Fixed a glitch that prevented the command line options from showing when you entered no arguments.
  • Added a "Please Wait" dialog to the patch creator since it can take a while, and otherwise people may think the application has frozen (seems a little flaky because all the power goes to the console read).
  • Fixed IPS patching to work with the corrupt patches some IPS creators produce that do not end in "EOF".
  • Changed the About dialog's address to the new page at http://ninja.cinnamonpirate.com/.


NINJA 2.0 is a new patch format that supports internal display data, file validation, directory patching, and can create patches that will work on any ROM format for NES, SNES, Game Boy, Nintendo 64, TurboGrafx-16, Sega Genesis, Sega Master System and Atari Lynx.

The official NINJA patcher can apply the following patch formats:
  • RUP (NINJA 2.0)
  • IPS (International Patching System)
  • PPF (PlayStation Patch Format 1.0/2.0/3.0
  • FFP/PAT (FireFlower Patch)
  • PAT (Microsoft Binary File Compare output)
  • GDIFF (Generic Diff Format)

If you add xdelta.exe to the NINJA folder, NINJA can also be used as a graphical front end for xdelta format patches.

This will be the final beta. Please report any and all bugs and behavioral issues in either this post's thread on ROMHacking.net's forum or on the NINJA support forum at http://ninja.cinnamonpirate.com/bb/.

Relevant Link: (http://ninja.cinnamonpirate.com/)

D

  • Guest
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #1 on: July 28, 2006, 11:16:57 am »
Just a note: the GUI has undergone a rewrite and the final release will now support an asynchronous process for accessing the NINJA back end. This means output will be printed to the screen in realtime and you won't see NINJA completely lock anymore while the patching completes. To take advantage of this, I am making output more verbose so users can know things are still chugging along.

Also, I'm trying to rewrite libPirate this weekend to be a class-based library. If I succeed, the final NINJA release will be what I planned all along, little more than an interface to libPirate (which FEIDIAN 1.0 will also be).

RedComet

  • Hero Member
  • *****
  • Posts: 3166
    • View Profile
    • Twilight Translations
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #2 on: July 28, 2006, 03:10:52 pm »
I've been using Ninja to create the patches during the testing phase of my latest patch, and I was wondering if there's anyway to save a template for the creator? I like to be thorough and fill in every blurb even if it's a private patch and filling in the same fields with same information over and over is a bit tedious. Having the ability to save a template would be a godsend. :)
Twilight Translations - More than just Dragonball Z. :P

D

  • Guest
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #3 on: July 28, 2006, 07:44:55 pm »
I don't really want to write anything that complex, but how about just storing your last used values to the registry then reloading them when you start the patch creator?

RedComet

  • Hero Member
  • *****
  • Posts: 3166
    • View Profile
    • Twilight Translations
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #4 on: July 28, 2006, 08:19:27 pm »
Yeah, that'd work. Maybe a way to toggle it so people who don't want it don't have to deal with it?
Twilight Translations - More than just Dragonball Z. :P

Nightcrawler

  • Hero Member
  • *****
  • Posts: 5768
    • View Profile
    • Nightcrawler's Translation Corporation
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #5 on: July 28, 2006, 08:28:32 pm »
Why it would be much work? You can just save a structure containing the data to a file and call it up again.
TransCorp - Over 20 years of community dedication.
Dual Orb 2, Wozz, Emerald Dragon, Tenshi No Uta, Glory of Heracles IV SFC/SNES Translations

Kiyoshi Aman

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 2261
  • Browncoat Captain
    • View Profile
    • Aerdan's Blog
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #6 on: July 29, 2006, 04:44:32 am »
...eww.

Please don't advocate using the registry ever again, D. Even Microsoft wants people to stop raping it.

D

  • Guest
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #7 on: July 29, 2006, 06:03:28 am »
I already use it to store all NINJA's settings because it's easy.

Nightcrawler: I won't add that because I don't care enough.

creaothceann

  • Hero Member
  • *****
  • Posts: 2619
  • SPINESHARK
    • View Profile
    • creaothceann's website
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #8 on: July 29, 2006, 07:00:54 am »
Quote from: Dumbledore
... you have to make a choice between what is right and what is easy ...


D

  • Guest
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #9 on: July 29, 2006, 09:50:50 am »
I have no idea what a Dumbledore is, but I do know registry takes me two lines of code while some stupid system of INI files will take me 20, not to mention a week to implement since I haven't read an INI file with VB since 1997.

The patch creator is very much an afterthought UI. That is why it does not have multiple languages in its interface. The patch applier is what most people will be using, and therefore what gets the most effort.

creaothceann

  • Hero Member
  • *****
  • Posts: 2619
  • SPINESHARK
    • View Profile
    • creaothceann's website
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #10 on: July 29, 2006, 12:38:06 pm »
Uhm...

GetPrivateProfileInt - reads integer value
GetPrivateProfileString - reads string value
GetPrivateProfileStruct - reads binary data
WritePrivateProfileString - sets string value
WritePrivateProfileStruct - sets binary data

Kiyoshi Aman

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 2261
  • Browncoat Captain
    • View Profile
    • Aerdan's Blog
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #11 on: July 29, 2006, 05:49:00 pm »
I dunno about you, but using the registry makes the app less portable; I could engineer .ini reading in Perl that could take an .ini NINJA made and applied those values when creating patches.

Using the registry requires me to add more functions, including one that's OS-specific, and in the end is pointless addition of code anyway.

D

  • Guest
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #12 on: July 30, 2006, 12:47:50 am »
Aerdan: Because Visual Basic is a portable language? This is the UI. The UI is VB.

Kiyoshi Aman

  • RHDN Patreon Supporter!
  • Hero Member
  • *****
  • Posts: 2261
  • Browncoat Captain
    • View Profile
    • Aerdan's Blog
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #13 on: July 30, 2006, 01:00:30 am »
*shrug* I'd support value-saving in the CLI version, too. [In fact, Samurai will support such.]

Lilinda

  • Hero Member
  • *****
  • Posts: 4539
    • View Profile
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #14 on: July 30, 2006, 02:32:58 am »
I have no idea what a Dumbledore is,

never read/watched harry Potter?

and/or lived in a cave for the past 7 years?
Retired moderator/staff member as of July 14th 2016

RedComet

  • Hero Member
  • *****
  • Posts: 3166
    • View Profile
    • Twilight Translations
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #15 on: July 30, 2006, 02:47:31 am »
I have no idea what a Dumbledore is,

never read/watched harry Potter?

and/or lived in a cave for the past 7 years?

I had to look it up, too. And for that, I am happy.
Twilight Translations - More than just Dragonball Z. :P

Lilinda

  • Hero Member
  • *****
  • Posts: 4539
    • View Profile
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #16 on: July 30, 2006, 02:50:28 am »
you should actually be really, really sad, as the books are completely awesome.
Retired moderator/staff member as of July 14th 2016

RedComet

  • Hero Member
  • *****
  • Posts: 3166
    • View Profile
    • Twilight Translations
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #17 on: July 30, 2006, 03:14:16 am »
Well, I'll try not to be. I got about halfway through the first one and put it down.
Twilight Translations - More than just Dragonball Z. :P

creaothceann

  • Hero Member
  • *****
  • Posts: 2619
  • SPINESHARK
    • View Profile
    • creaothceann's website
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #18 on: July 30, 2006, 04:26:27 am »
The best one is the 3rd...

Aerdan: Because Visual Basic is a portable language? This is the UI. The UI is VB.

It'd be easily portable from one PC to the next.

D

  • Guest
Re: Utilities: NINJA 2.0 July 26 Beta
« Reply #19 on: July 30, 2006, 05:11:12 am »
I'm probably going to make it registry now just to spite you.