Noxid's TSC Editor

Aug 8, 2011 at 6:36 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
This is something I whipped up in Java and then subsequently put off working on for several weeks. It's similar to CE's TSC parser but it also can show you if you're running out of text on a line, and highlight redundant commands after an <END or such. You can also load the mapdata from an executable (Untested with Sue's) as well as an extracted and shrunk .bin format that I am using in my new engine. There is a find feature that's pretty much all carrotlord's doing and a picture of a cat with some yarn.
And like, hey, it'd even work on a mac (in theory).

So please enjoy!

Oh, also I should mention, there is a sort-of major change. You see, in order to make the text replacement gimmick feasible, the program will now save two copies of your scripts: One, the .tsc file, cypher'd with all word replacements and good (hopefully) to go with the game, and the "Script Source" file, a plaintext file in the ScriptSource subfolder of wherever the original tsc file was. The ScriptSource is saved exactly as it appears in the editor, without keywords replaced. Opening either the script source or the original TSC file should work the same way. When you release your mod, you oughta delete all ScriptSource folders before you make your zip...

p134604-0-scriptedit1002.png


Script Editor V1.2.0.0
Editor mediafire mirror
V1.2.0.0 source code
Source mediafire mirror


Script Editor V1.1.1.0
Editor mediafire mirror
V1.1.1.0 source code
Source mediafire mirror

Script Editor V1.1.0.4
Editor mediafire mirror
V1.1.0.4 source code
Source mediafire mirror

Script Editor V1.0.0.3
V1.0.0.3 source code

V1.2.0.0 adds:
The ability to load stage.tbl from Cave Story+ for use as a stage list
Fixes a scrolling issue that may have been introduced by V1.1.1.0
Defines should now not corrupt your script files if they are a different size than the text they are replacing.

V1.1.1.0 adds:
The ability to generate a listing of all <TRA use

V1.1.0.4 adds:
Keyboard shortcuts for menu items
Ability to generate a listing of all flags used by your mod, and where they are used
A search button that actually works
TSC command listing on right updates as you type to show you relevent information on the command you are working on

V1.0.0.3 has a tsc_list.txt without all my custom commands
and also fixes a small error with the default define pane dialogue
("first = second" should have been "first=second").
Functionally equivalent to 1.0.0.2

Please report if you have any bugs, errors, etc.
 
Aug 8, 2011 at 11:29 AM
CUSTOMIZED!
"The Ultimate Sword of Extraordinary Magnitude"
Join Date: May 28, 2011
Location: Australia/Scotland
Posts: 281
If this was food I would say Om nom nom... unfortunately it's a script editor. But also a bloody good one! I really like the feature of being able to have more than one script editor. Is this compatible with Cave editor?
 
Aug 8, 2011 at 11:40 AM
Creating A Legacy...
Bobomb says: "I need a hug!"
Join Date: Sep 6, 2009
Location: The Balcony
Posts: 852
Age: 29
This is pretty awesome Nox. Its really good to know how much text fits in the speech box instead of just guessing.

Oooh and have a nice vacation :)
 
Aug 8, 2011 at 12:11 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
@Kick Ass, yes it is compatible with CE. it also works with Sue's but I dunno how many people use that buddy any more.
 
Aug 8, 2011 at 2:12 PM
CUSTOMIZED!
"The Ultimate Sword of Extraordinary Magnitude"
Join Date: May 28, 2011
Location: Australia/Scotland
Posts: 281
Ok cool.

OMG!!!!!!!!!!!!!! It is awesome how you can see how much text will fit in the speech box. I didn't realise :)
 
Aug 8, 2011 at 2:38 PM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6211
Age: 38
Permission to host on the site?
 
Aug 8, 2011 at 5:48 PM
Only Love, Maximum Love, Forever
"Life begins and ends with Nu."
Join Date: May 6, 2009
Location: somewhere new
Posts: 2137
Age: 29
Neato.
Just port it to Mac and nice things will happen
 
Aug 8, 2011 at 5:53 PM
Creating A Legacy...
Bobomb says: "I need a hug!"
Join Date: Sep 6, 2009
Location: The Balcony
Posts: 852
Age: 29
It should work on mac in theory dude,
You can get JAVA for mac :)
 
Aug 8, 2011 at 7:36 PM
Only Love, Maximum Love, Forever
"Life begins and ends with Nu."
Join Date: May 6, 2009
Location: somewhere new
Posts: 2137
Age: 29
Herp-derp
I still need a .app :D
 
Aug 8, 2011 at 10:05 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Just tested this on Windows and Linux. Works on both.

Comparison:
Windows:
diph.php


Linux:
diph.php
Cultr1, are you sure you can't run the JAR directly?

Oracle said:
Because Mac OS X ships with the Jar Launcher application, the end user needs only double click on the jar file and the application will launch.

Source: http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac3/

Anyway, I await the final release of this custom TSC editor, especially the source code.
 
Aug 8, 2011 at 10:11 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
.....
Does the dialogue actually change when you switch operating systems?


Edit: Holy shit I have a lot of posts. That wasn't related to the topic at all.
 
Aug 8, 2011 at 10:17 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Lace said:
Does the dialogue actually change when you switch operating systems?

That would be a funny easter egg, but sadly no. I just wrote different things for the two files.
 
Aug 8, 2011 at 10:47 PM
Only Love, Maximum Love, Forever
"Life begins and ends with Nu."
Join Date: May 6, 2009
Location: somewhere new
Posts: 2137
Age: 29
haha okay I'll try that.

EDIT: derp it works
 
Aug 8, 2011 at 11:49 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
andwhyisit said:
Permission to host on the site?

Yes, but I would prefer to wait until I have the "complete" version finished. There are a few major features this is missing, namely a #define - like macro thing, and an ability to load a cave story .exe to bring up some kind of listing of tsc files by stage name to pick from. If anybody has other ideas or suggestions feel free to mention them, I figured that I might as well put it out for some feedback while I am still in the process of adding to it, rather than somebody having a good idea and me going "no wai" because i have things at a point where *I* am satisfied and don't want to do it anymore. Please note that doesn't mean I now have to implement everything you mention, I'm just a smidge more apt to this way.

p.s. typing on a 3ds is ungodly slow D:
 
Aug 9, 2011 at 12:55 AM
Banned
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 19, 2010
Location: South of Nowhere
Posts: 304
When you complete this, I would like to see this merged with a decent map editor, to become a kind of CE 2.0.
 
Aug 9, 2011 at 4:36 AM
Absentee Modder
"Ha! Ha! Ha! Mega Man is no match for my Mimiga Man!"
Join Date: Sep 7, 2010
Location: Outside your window. No no, don't check, it's okay
Posts: 272
Age: 29
Looks awesome, but on my (linux-running) computer it says it's missing tsc_list. And it doesn't seem to be able to open any files.
EDIT: And the kitten image doesn't load up. Hmmm.
 
Aug 9, 2011 at 5:34 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
jed37 said:
Looks awesome, but on my (linux-running) computer it says it's missing tsc_list. And it doesn't seem to be able to open any files.
EDIT: And the kitten image doesn't load up. Hmmm.

Oh yeah. That problem.

Windows will set the working directory to the folder that the JAR is located in.
In Linux, the JAR file still remains inside its folder but the working directory is set to the home folder or the user's personal folder for some weird reason.

In order to fix this, you should create a bash script (name the script file anything you'd like) and paste in the following:

Code:
#!/bin/bash

java -jar 'ScriptEdit.jar'
echo "[Program Finished.]"
echo "Press return to exit..."
read nothing

Put it in the same folder as the JAR file. Run the script to open the TSC Editor. Then you'll see the kitty and stuff.
 
Aug 9, 2011 at 7:37 AM
Absentee Modder
"Ha! Ha! Ha! Mega Man is no match for my Mimiga Man!"
Join Date: Sep 7, 2010
Location: Outside your window. No no, don't check, it's okay
Posts: 272
Age: 29
Perfect. Thanks, that fixed it.

...

As a linux user, I probably should've known how to fix that.
 
Sep 7, 2011 at 3:37 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
So hey I updated the OP with a new version that has MORE FEATURES

I am calling this, "V1.0.0.2" and additionally the source is free for having now
If someone else can confirm that it works fine then Andwhy can put it on the tribute site

Also, I did a thing that maybe hopefully means linux users won't have to use a hack to run the program properly. Or maybe it'll just cause it to not work at all?
I don't know! :eek:
 
Top