Just curious, but is this shell available in Oolite?
https://developer.mozilla.org/En/Spider ... ript_shell
I've been using the OoDebug Console via Python (I'm using Windows currently), but this looks like a more integrated solution.
Cheers.
Javascript shell in Spidermonkey ...
Moderators: winston, another_commander, Getafix
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
The JS shell is part of the Spidermonkey distribution and can be built from the sources currently in trunk, but it is not specific to Oolite. Even if built, it will still need to be fed a script that will enable Oolite to communicate with it. Given that the console we currently have works just fine, I don't see why one would want to spend time on it for reasons other than attempting a programming exercise.
"Under Mac OS X, the Debug OXP provides a menu with various debugging options and an integrated JavaScript console..."
Again, curious. Why this isn't implemented in the PC or LINUX versions?
I'm on a learning curve with Oolite and I've been discovering aspects of Javascript and Spidermonkey that are, let's say, interesting. The console was one of those items. Currently I'm working with the 1.75.x trunk and there doesn't seem to be an OoDebug console available yet ...
One thing I'm hoping to learn is how much of the functionality of standard Javascript via Spidermonkey is available in Oolite. I would like to build some fairly sophisticated scripts for a "secret Oolite project" (I don't want to reveal what it is until I'm sure the idea can be implemented) so I'm "poking around" a bit.
At this juncture, from what I've been able to learn from the wiki, user scripts and the source code, I think I should be able to program what I have in mind.
Cheers.
Again, curious. Why this isn't implemented in the PC or LINUX versions?
I'm on a learning curve with Oolite and I've been discovering aspects of Javascript and Spidermonkey that are, let's say, interesting. The console was one of those items. Currently I'm working with the 1.75.x trunk and there doesn't seem to be an OoDebug console available yet ...
One thing I'm hoping to learn is how much of the functionality of standard Javascript via Spidermonkey is available in Oolite. I would like to build some fairly sophisticated scripts for a "secret Oolite project" (I don't want to reveal what it is until I'm sure the idea can be implemented) so I'm "poking around" a bit.
At this juncture, from what I've been able to learn from the wiki, user scripts and the source code, I think I should be able to program what I have in mind.
Cheers.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
If think that this is not implemented because it relies on dependencies other than gnustep-base.SiriusCG wrote:"Under Mac OS X, the Debug OXP provides a menu with various debugging options and an integrated JavaScript console..."
Again, curious. Why this isn't implemented in the PC or LINUX versions?
The same Debug Console executable that you download from Berlios can also be used for trunk debugging.Currently I'm working with the 1.75.x trunk and there doesn't seem to be an OoDebug console available yet ...
The entire Spidermonkey library functionality is available. If Spidermonkey supports it, Oolite scripts support it too.One thing I'm hoping to learn is how much of the functionality of standard Javascript via Spidermonkey is available in Oolite.
To wit: on macs Oolite sports a whole cocoa based menu system, on other systems it doesn't.another_commander wrote:If think that this is not implemented because it relies on dependencies other than gnustep-base.
To elaborate on that: change the inside of requires.plist so that it includes the trunk version and you're good to go: however, this applies only for windows & linux computers.another_commander wrote:The same Debug Console executable that you download from Berlios can also be used for trunk debugging.
On macs - thanks to the extra integration - things are 'a bit' more fragile: older debug.oxps have been known to crash the game itself, and generally speaking a new debug.oxp needs to be created for each new version of Oolite...
Before I forget, the integrated javascript console is functionally identical to the python based javascript console, though I must say it does look prettier on a mac!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)