KS Java Editor (+ source code)

  • 52 Replies
  • 19941 Views
*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #30 on: May 29, 2010, 09:34:00 »
What Mr. Monkey said: run the editor directly from the .jar file. If it doesn't work for you for some reason, please tell me what exactly you're doing when attempting to run it.
Videogames are for everyone, by everyone

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: KS Java Editor (+ source code)
« Reply #31 on: May 29, 2010, 17:28:54 »
So the jar file has to be open to run the editor?

but if I double click on it it closes and gives me an error message: "Check console for possible error messages", but that IS the error message!  :S

« Last Edit: May 29, 2010, 17:31:04 by Evil »

*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #32 on: May 29, 2010, 21:18:11 »
Maybe it's a problem of Java version (this editor requires Java 1.5 or later).

Anyway, I don't know how Java error messages are shown on Mac, but you could try running the editor from a terminal to see if more specific messages are shown that way. To do that, open Terminal (under Applications - Utilities), change to the directory where the .jar file is (for example, if the .jar is in the Downloads folder, type 'cd Downloads') and type 'java -jar KSEditor.jar'.
Videogames are for everyone, by everyone

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: KS Java Editor (+ source code)
« Reply #33 on: May 29, 2010, 22:39:02 »
Maybe it's a problem of Java version (this editor requires Java 1.5 or later).

Anyway, I don't know how Java error messages are shown on Mac, but you could try running the editor from a terminal to see if more specific messages are shown that way. To do that, open Terminal (under Applications - Utilities), change to the directory where the .jar file is (for example, if the .jar is in the Downloads folder, type 'cd Downloads') and type 'java -jar KSEditor.jar'.

it came up nothing :(

Macbook-2:~ administrator$ cd desktop java -jar KSEditor.jar
Macbook-2:desktop administrator$

maybe you could have an instruction on how to set it up, like where to put it? because I think I messed up :(



*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #34 on: May 29, 2010, 22:49:12 »
Sorry, I meant typing 'cd desktop' and pressing enter (this changes to the desktop directory), and then typing the other stuff and pressing enter.
Videogames are for everyone, by everyone

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: KS Java Editor (+ source code)
« Reply #35 on: May 30, 2010, 00:12:55 »
This pooped up

Code: [Select]
Macbook-2:desktop administrator$ java -jar KSEditor.jar
Exception in thread "main" java.lang.NoClassDefFoundError: java/awt/RadialGradientPaint
at KSJavaEditor.CreateLevelPanel.<init>(CreateLevelPanel.java:89)
at KSJavaEditor.EditorWindow.addCreateLevelPanel(EditorWindow.java:173)
at KSJavaEditor.EditorWindow.reset(EditorWindow.java:215)
at KSJavaEditor.EditorWindow.<init>(EditorWindow.java:131)
at KSJavaEditor.KSEditor.<init>(KSEditor.java:49)
at KSJavaEditor.KSEditor.main(KSEditor.java:1214)
Macbook-2:desktop administrator$


*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #36 on: May 30, 2010, 09:20:05 »
It's certainly a version problem now. What's strange is that nobody else had this problem on Mac; maybe they have Java 1.6. Also I'm pretty sure I told the Java compiler to build the editor for version 1.5...

In short: Java can't find a class that's been added in version 1.6; this class is only used for a useless decoration I added to the editor and I could easily remove it (I can't do this today though, sorry), but I don't know for sure whether there are other 1.6-exclusive classes or not. If you could upgrade Java to version 1.6 it should finally work, but if you don't know how to do that I can't help you. Alternatively I'll make you another version of the editor tomorrow and we'll hope it works this time.
Videogames are for everyone, by everyone

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: KS Java Editor (+ source code)
« Reply #37 on: May 30, 2010, 19:51:21 »
I did upgrade. It would be nice if you could remove it :)

Thank you :) I can wait :)

A billion thanks :)


*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #38 on: May 31, 2010, 11:05:35 »
Updated the first post with the modified version. Hopefully this time it'll work for you; in case it doesn't, please report any error message you get as you've done for the previous version.
Videogames are for everyone, by everyone

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: KS Java Editor (+ source code)
« Reply #39 on: June 01, 2010, 01:42:00 »
the same thing popped up

Code: [Select]
Macbook-2:~ administrator$ cd desktop
Macbook-2:desktop administrator$ java -jar KSEditor.jar
Exception in thread "main" java.lang.NoClassDefFoundError: java/awt/RadialGradientPaint
at KSJavaEditor.CreateLevelPanel.<init>(CreateLevelPanel.java:89)
at KSJavaEditor.EditorWindow.addCreateLevelPanel(EditorWindow.java:173)
at KSJavaEditor.EditorWindow.reset(EditorWindow.java:215)
at KSJavaEditor.EditorWindow.<init>(EditorWindow.java:131)
at KSJavaEditor.KSEditor.<init>(KSEditor.java:49)
at KSJavaEditor.KSEditor.main(KSEditor.java:1214)
Macbook-2:desktop administrator$

*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #40 on: June 01, 2010, 08:10:49 »
Are you sure you've downloaded the right file? The one in first post of this topic, I mean. Alternatively, have you deleted the previous version? You might have run that instead by mistake.
Videogames are for everyone, by everyone

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: KS Java Editor (+ source code)
« Reply #41 on: June 02, 2010, 05:56:16 »
Thanks, this is a miracle! :D

You are awesome! :D


but one more thing it says "Couldnt find levels in. Please set your KS home directory"

And when I say create level it says "template level could not be found"
« Last Edit: June 02, 2010, 05:58:56 by Evil »

*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #42 on: June 02, 2010, 08:39:30 »
Click the 'Change' button under KS Home to set the Knytt Stories folder. That is, clicking the button will open a file dialog: select the folder where Knytt Stories is installed, and now on the left panel the list of all the installed levels should show up. This will also allow you to create new levels, as there's a level template file in the Knytt Stories folder.
Videogames are for everyone, by everyone

*

Offline Evil

  • 1112
  • 1
  • 1723
    • View Profile
Re: KS Java Editor (+ source code)
« Reply #43 on: June 02, 2010, 21:35:39 »
In which folder does the levels contain in? :)


Sorry I couldnt find it, I clicked every folder and pressed enter; nothing.  :S
« Last Edit: June 03, 2010, 00:50:22 by Evil »

*

Offline AA

  • 510
  • 23
  • Was ITA84
    • View Profile
    • Insight on Videogames
Re: KS Java Editor (+ source code)
« Reply #44 on: June 03, 2010, 08:04:27 »
You have to select the Knytt Stories folder, the one which contains the Knytt Stories.exe and Level Editor.exe files.
Videogames are for everyone, by everyone