Search found 2443 matches

by hiran
Mon Jul 15, 2024 9:00 pm
Forum: Discussion
Topic: OoliteStarter
Replies: 267
Views: 48833

Re: OoliteStarter

Does starter oxp only manifest during a run? Sometimes (on both MacOS) I get a grumble about it being a duplicate. You guessed right: It gets injected by OoliteStarter just before Oolite is fired up, and it gets removed right after Oolite terminates. Let me know what to prod next. Not sure. You are...
by hiran
Mon Jul 15, 2024 7:26 am
Forum: Oolite-Mac
Topic: Attempting to get 1.91 built on Mac
Replies: 111
Views: 192108

Re: Attempting to get 1.91 built on Mac

This does not answer a question but may make it easier for more people looking at the code in the future: Add Doxygen style comments . These comments not only sit in the code - they also get extracted by Doxygen and placed in the easy-to-browse Oolite API Documentation . Or, should someone have the ...
by hiran
Mon Jul 15, 2024 7:18 am
Forum: Discussion
Topic: OoliteStarter
Replies: 267
Views: 48833

Re: OoliteStarter

WIlco. When I''m sure of the situation above. Also.. does 1.90 take that args to load save games on the other platforms? I've not tried it. See here: https://bb.oolite.space/viewtopic.php?p=291772#p291772 This is a strange error. Could you post your $HOME/.oolite-starter.conf? <AddonDir/> This is w...
by hiran
Sun Jul 14, 2024 9:51 pm
Forum: Discussion
Topic: OoliteStarter
Replies: 267
Views: 48833

Re: OoliteStarter

I've built a real-metal MacOS 10.15 (Catalina) x86_64 hack, where I've found it's do-able to build with OpenJDK 21.02, but alas not 22.x... so the end is nigh for MacOS 10.15. Even the Homebrew devs won't take bug reports about anything Catalina any more. I'll try to keep 'nigh' vague for as long a...
by hiran
Fri Jul 12, 2024 5:40 pm
Forum: Discussion
Topic: Cockpits, HUDs and other displays
Replies: 100
Views: 18421

Re: Cockpits, HUDs and other displays

I seem to be doing something wrong as I do not see the desired reaction from Oolite. While I get the acknowledge that my request was received the expected response is missing... @MrFlibble: Could you check if these commands can be used in a meaningful way on the debug console? You must have read my...
by hiran
Fri Jul 12, 2024 3:54 pm
Forum: Outworld
Topic: Science Fiction Trivia
Replies: 7635
Views: 2338303

Re: Science Fiction Trivia

Where is the computer game category?

How about Zak McCracken and the alien mindbenders?
by hiran
Thu Jul 11, 2024 10:18 pm
Forum: Discussion
Topic: Cockpits, HUDs and other displays
Replies: 100
Views: 18421

Re: Cockpits, HUDs and other displays

MQTT MQTT is the IoT protocol, yes? Are we ever going to get, "Hey Google, fire a missile."? Asking for a friend. So if I triggered such a command, what would you expect to happen? mosquitto_pub -h <brokerHost> -p <brokerPort> -t <topic> -u <username> -P <password> -m "Hey Google, fi...
by hiran
Thu Jul 11, 2024 5:14 pm
Forum: Expansion Pack
Topic: Information desired!
Replies: 46
Views: 11104

Re: Information desired!

How will this persuasion work? The simplest way is a single magic reset button, labelled "Change test ship AI to follow player" or "Transmit secret code-word provided by Free The Slaves! NGO" where pressing the (n) activate key calls the AI resetting function immediately. Other ...
by hiran
Thu Jul 11, 2024 6:50 am
Forum: Expansion Pack
Topic: Information desired!
Replies: 46
Views: 11104

Re: Information desired!

setAI function setAI(AIName : String ) Set the current AI, leaving the old one suspended. Equivalent to the setAITo: AI method. May not be used on player. From 1.79 onwards AI files may either be plist-based (with a .plist extension) or Javascript-based (with a .js extension). See also: AI, switchA...
by hiran
Wed Jul 10, 2024 9:54 pm
Forum: Expansion Pack
Topic: OXP Event handlers
Replies: 11
Views: 2752

Re: OXP Event handlers

Wildeblood wrote: Wed Jul 10, 2024 9:13 pm
player.ship.target.setScript("hiran-ship-script.js")
How do I get that script name? Is it the filename? Relative to my OXP root? What if I need subdirectories? And then think of subdirectories in Windows and in Linux...
by hiran
Wed Jul 10, 2024 8:49 pm
Forum: Discussion
Topic: Cockpits, HUDs and other displays
Replies: 100
Views: 18421

Re: Cockpits, HUDs and other displays

For 1, player.ship.target.energy For 2, you could try player.ship.fireMissile() But I’m not sure if that would work for the player ship. Worth a try though. I seem to be doing something wrong as I do not see the desired reaction from Oolite. While I get the acknowledge that my request was received ...
by hiran
Wed Jul 10, 2024 6:59 pm
Forum: Expansion Pack
Topic: OXP Event handlers
Replies: 11
Views: 2752

Re: OXP Event handlers

phkb wrote: Wed Jul 10, 2024 12:42 pm
The worldscript event handles events for the player ship. If you want to link up to the same event for any other ship, the code needs to be in a ship script.
Ok, that is a difference.
How would I, from one OXP, hook a ship script onto some other ship?
by hiran
Tue Jul 09, 2024 7:29 pm
Forum: Expansion Pack
Topic: OXP Event handlers
Replies: 11
Views: 2752

Re: OXP Event handlers

You spot a useful looking event in the list of Ship Script Event Handlers ). You write a function for it, and include it in a world script. Test it. It will probably work. If it's one of the rare ones that are only for non-player ships, it won't work. If so, come back to the BB and have a whinge ab...
by hiran
Mon Jul 08, 2024 4:54 pm
Forum: Expansion Pack
Topic: OXP Event handlers
Replies: 11
Views: 2752

OXP Event handlers

So there are numerous event handling functions for world scripts (see World Script Event Handlers ), but apart from that there seem to be ship scripts (see Ship Script Event Handlers ). Now I do not intend to create my own ship, so shipdata.plist tweaking won't help. Instead I'd like to attach my ev...
by hiran
Mon Jul 08, 2024 4:45 pm
Forum: Discussion
Topic: Oolite External Programmes
Replies: 2
Views: 1668

Re: Oolite External Programmes

[When you forget to include one word in a sentence, and that word happens to be "forgot", there has to be a fancy Latin term for that phenomenon?] Many years ago, when translating a small email for my manager I forgot one letter. The customer suggested to meet in 'your' office while I tra...