Page 1 of 1

Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 3:06 pm
by SMMDigital
Anyone have any experience with Jedit? I currently use Notepad++ to batch edit .bin files after "de-binning" them with Serz or RW_Tools. What i'm wanting to know is if Jedit will straight out open a .bin file, since it's just an .xml with a different extension, without having to go through the extra step.

Re: Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 3:19 pm
by Chacal
I don't know about Jedit, but UltraEdit will do that.
You can set it up so that opening a .bin file will display it with xml highlighting.

Re: Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 3:47 pm
by PapaXpress
I have UltraEdit, how do you get it to show the file as XML?

Re: Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 6:06 pm
by Chacal
In my version: View / View as... / XML

Re: Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 7:02 pm
by PapaXpress
I think I may be misunderstanding you. When I open a BIN (not converted to XML) file in UltraEdit I see the hex representation. Also, I don't have the exact View command from my drop down.

Re: Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 7:13 pm
by sleepyto
I think I would use RW_Tools. It will open just about any file for editing.

Re: Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 7:55 pm
by SMMDigital
sleepyto wrote:I think I would use RW_Tools. It will open just about any file for editing.


Don't get me wrong, as RW_Tools is a great program. But one thing it lacks is the ability to open multiple .bin files at the same time. As an example, say i've got 60 .bin files that denote all of the different script configurations for a signal. I've accidentally put "JC" in a line in the file when it was supposed to be "SMM". Using RW_Tools, I can open each file, search the line i'm looking to change, change it, and then save it. As you can see, doing this one-by-one, sixty times over, can get a bit tedious. The other option is to drag all sixty files, one at a time, onto the Serz.exe file to de-bin them. Then, I can open them all at one time in Notepad++, search for "JC", then "replace in all open documents" with "SMM". Then, i've got to re-bin them, one-by-one, with Serz. It's still tedious. I'm just looking to save some time here.

Re: Jedit Text Editor

Unread postPosted: Tue Dec 06, 2011 8:38 pm
by PapaXpress
I am thinking that there should be a way to make a macro to tell Notepad++ to open a BIN GEO or texture with serz and grab the XML.

I'll see if I can cook up something tonight.

Correction, if anything is going to happen in Notepad++ then it has be a plugin not a macro. I think I will clear off my plate of projects before I tackle this (which means next year).

Re: Jedit Text Editor

Unread postPosted: Wed Dec 07, 2011 1:11 am
by Chacal
PapaXpress wrote:I think I may be misunderstanding you. When I open a BIN (not converted to XML) file in UltraEdit I see the hex representation.


You are correct. I was mistaken by this:
SMMDigital wrote:What i'm wanting to know is if Jedit will straight out open a .bin file, since it's just an .xml with a different extension


Actually, a .bin file is a binary file storing information in a proprietary format. It is the result of "compiling" a text file (in XML format) with a proprietary utility such as serz.exe.

@SMMDigital: It is easy to write scripts, such as DOS batch files or VBscripts, that do what you want, which is:

Code: Select all
for each .bin file in a folder
   decompile the file using serz.exe into an xml file
   delete the .bin file
   replace all "JC" with "SMM" in the xml file
   compile the xml file using serx.exe into a .bin file
   delete the xml file
next file

Re: Jedit Text Editor

Unread postPosted: Wed Dec 07, 2011 1:13 pm
by sleepyto
There is a tutorial by PikeHkr that shows a easy way to modify .bin files. It is free.
You might want to look at it. Even though it talks about wagon scripts it should work for any file.
This is part of a post by PikeHkr

"This tutorial is available as a free download from my site. It is item #8 on the products page at http://www.pikesproducts.com/14201.html for anyone interested"