Jedit Text Editor

Discussion about computers: Hardware, Problems, etc.

Jedit Text Editor

Unread postby SMMDigital » Tue Dec 06, 2011 3:06 pm

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.
SMMDigital
 

Re: Jedit Text Editor

Unread postby Chacal » Tue Dec 06, 2011 3:19 pm

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.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6563
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Jedit Text Editor

Unread postby PapaXpress » Tue Dec 06, 2011 3:47 pm

I have UltraEdit, how do you get it to show the file as XML?
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

Re: Jedit Text Editor

Unread postby Chacal » Tue Dec 06, 2011 6:06 pm

In my version: View / View as... / XML
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6563
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Jedit Text Editor

Unread postby PapaXpress » Tue Dec 06, 2011 7:02 pm

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.
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

Re: Jedit Text Editor

Unread postby sleepyto » Tue Dec 06, 2011 7:13 pm

I think I would use RW_Tools. It will open just about any file for editing.
Make Sure Brain is Engaged Before Operating Tongue or Fingers
SEMPER FI USMCR
User avatar
sleepyto
 
Posts: 197
Joined: Wed Feb 25, 2009 9:18 pm
Location: Corona, California

Re: Jedit Text Editor

Unread postby SMMDigital » Tue Dec 06, 2011 7:55 pm

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.
SMMDigital
 

Re: Jedit Text Editor

Unread postby PapaXpress » Tue Dec 06, 2011 8:38 pm

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).
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

Re: Jedit Text Editor

Unread postby Chacal » Wed Dec 07, 2011 1:11 am

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
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6563
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: Jedit Text Editor

Unread postby sleepyto » Wed Dec 07, 2011 1:13 pm

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"
Make Sure Brain is Engaged Before Operating Tongue or Fingers
SEMPER FI USMCR
User avatar
sleepyto
 
Posts: 197
Joined: Wed Feb 25, 2009 9:18 pm
Location: Corona, California


Return to Geek Speak

Who is online

Users browsing this forum: No registered users and 1 guest