TIDE Problem: Beanshell error?
by Michael Rogers · in Torque Game Engine · 07/11/2005 (1:52 pm) · 7 replies
Hi, All:
As I've been trying to figure out how scripts work and load, I've realized that if I can't get a script debugger to work, I may as well give it up. I've installed JEdit 4.2final, and, according to the Plugin manager, have these installed:
ProjectViewer 2.1.0.1
Tide 1.0.0
TIDEBrowse 0.0.1
TideDebug 1.0.0
Previously I had been using ProjectViewer 2.0.4 or thereabouts, and had been getting an error about patching. So I upgraded to 2.1.0.1 and now get this wonderful error:
Any idea on what's going wrong? I'm on a Mac, so using the Tribal IDE isn't an option.
Michael
As I've been trying to figure out how scripts work and load, I've realized that if I can't get a script debugger to work, I may as well give it up. I've installed JEdit 4.2final, and, according to the Plugin manager, have these installed:
ProjectViewer 2.1.0.1
Tide 1.0.0
TIDEBrowse 0.0.1
TideDebug 1.0.0
Previously I had been using ProjectViewer 2.0.4 or thereabouts, and had been getting an error about patching. So I upgraded to 2.1.0.1 and now get this wonderful error:
java.lang.NoSuchMethodError: projectviewer.ProjectManager.addProject(Lprojectviewer/vpt/VPTProject;)V at com.garagegames.torque.tide.Tide.createProject(Unknown Source) at com.garagegames.torque.tide.Tide.newProject(Unknown Source) at com.garagegames.torque.tide.Tide.newProject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324)
Any idea on what's going wrong? I'm on a Mac, so using the Tribal IDE isn't an option.
Michael
About the author
#2
java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-215)
Java HotSpot(TM) Client VM (build 1.4.2-50, mixed mode)
so I guess I'm OK in that respect. Right now I'm trying to find an older version of Project Viewer, with no success.
Michael
07/11/2005 (2:08 pm)
Thanks, Claudio. When I run java -version, I get:java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-215)
Java HotSpot(TM) Client VM (build 1.4.2-50, mixed mode)
so I guess I'm OK in that respect. Right now I'm trying to find an older version of Project Viewer, with no success.
Michael
#3
Any ideas, anyone? If II double click on the Torque Demo Debug OSX.app icon, it launches just fine.
Thanks,
Michael
07/11/2005 (2:37 pm)
I'm making progress -- I think. I discovered an older version (2.0.2) of the ProjectViewer and installed it. Now, after making a project and then clicking the run button, this appears:This error received connecting to Torque Debugger: "Unable to launch game: /Applications/Developer/TorqueGameEngineSDK/example/Torque Demo Debug OSX.app"
Any ideas, anyone? If II double click on the Torque Demo Debug OSX.app icon, it launches just fine.
Thanks,
Michael
#4
Can you check that? Maybe the path to the torque executable is wrong.
07/11/2005 (2:40 pm)
I'm not actually a mac user, but maybe the icon points to another location and not to /Applications/Developer/TorqueGameEngineSDK/example/Torque Demo Debug OSX.app?Can you check that? Maybe the path to the torque executable is wrong.
#5
/Applications/Developer/TorqueGameEngineSDK/example/CH4/Torque Demo OSX.app
with the real application, namely,
/Applications/Developer/TorqueGameEngineSDK/example/CH4/Torque Demo OSX.app/Contents/MacOS/Torque Demo OSX
then I get this error instead:
which is correct, main.cs isn't inside the Contents/MacOS/Torque Demo OSX/ subfolder of Torque Demo OSX.app.
Update: in desperation, I deleted ProjectViewer 2.0.2, and upgraded to the latest (again), and replaced the TIDE .jar files. Now JEdit/TIDE finds the game, and merely reports that
I'm off to search the forums for this error, which I *have* seen discussed here before, but if somebody wants to chime in here, that'd be great.
Michael
07/11/2005 (3:02 pm)
Excellent point, Stefan: the executable, Torque Demo OSX.app, looks like an icon, but it's really a folder. So, if I replace /Applications/Developer/TorqueGameEngineSDK/example/CH4/Torque Demo OSX.app
with the real application, namely,
/Applications/Developer/TorqueGameEngineSDK/example/CH4/Torque Demo OSX.app/Contents/MacOS/Torque Demo OSX
then I get this error instead:
TorqueDebugPatcher: main.cs does not exist: /Applications/Developer/TorqueGameEngineSDK/example/CH4/Torque Demo OSX.app/Contents/MacOS/Torque Demo OSX/main.cs
which is correct, main.cs isn't inside the Contents/MacOS/Torque Demo OSX/ subfolder of Torque Demo OSX.app.
Update: in desperation, I deleted ProjectViewer 2.0.2, and upgraded to the latest (again), and replaced the TIDE .jar files. Now JEdit/TIDE finds the game, and merely reports that
Patch Failed: unable to apply all patches.
I'm off to search the forums for this error, which I *have* seen discussed here before, but if somebody wants to chime in here, that'd be great.
Michael
#6
Create a link to your torque.exe (your executable) and specify the directory in which main.cs resides as working directory. The latter is done in the properties of the link under windows. I guess there should be something comparable on Mac. You could also write a batch programm that changes directory.
07/11/2005 (10:15 pm)
Again, I'm not a Mac user, so this is what I would do under Windows:Create a link to your torque.exe (your executable) and specify the directory in which main.cs resides as working directory. The latter is done in the properties of the link under windows. I guess there should be something comparable on Mac. You could also write a batch programm that changes directory.
#7
07/11/2005 (11:22 pm)
If you can't get TIDE to work, you can always use the Torque builtin debugger in common/debugger/debugger.cs. It actually works pretty good!
Torque Owner Claudio Martinez