Search found 12 matches
- Sat Jan 25, 2014 11:16 am
- Forum: Expansion Pack
- Topic: Berth Control for OXP authors
- Replies: 28
- Views: 10064
Re: Berth Control for OXP authors
For one thing, the berthControl-conditions.js that you posted above, is not the same as the one you e-mailed me... .... I did not do that on mine, but what exactly is the purpose of that? Would that prevent this from working? I guess I can go try it again on my ships to see... I will let you know w...
- Thu Jan 23, 2014 8:11 am
- Forum: Expansion Pack
- Topic: Berth Control for OXP authors
- Replies: 28
- Views: 10064
Re: Berth Control for OXP authors
Hmm, it seems to work OK at this end, both with 1.77.1 & oolite-trunk.
Hang on, I'll PM you what I've got.
Hang on, I'll PM you what I've got.
- Wed Jan 22, 2014 5:47 pm
- Forum: Suggestion Box
- Topic: Equipment conditions scripts.
- Replies: 3
- Views: 2959
Re: Equipment conditions scripts.
Ok, I was specifically thinking of the berth control thread (I'll get back to you with the link). If someone wants to use my tweak and to be both 1.77 & 1.79 compatible, with minimal disruption to installed OXPs, there needs to be an extra // OXP hook to allow ships to forbid specific "avai...
- Wed Jan 22, 2014 5:36 pm
- Forum: Expansion Pack
- Topic: Berth Control for OXP authors
- Replies: 28
- Views: 10064
Re: Berth Control for OXP authors
Thanks, appreciated!
- Wed Jan 22, 2014 5:28 pm
- Forum: Discussion
- Topic: Source Code and Ideas question
- Replies: 94
- Views: 33862
Re: Source Code and Ideas question
Fair enough! Still, some out-of-scope shenanigan does seem to be happening, regardless. Failing everything else, an old, old debugging trick all the way from BASIC was to add a PRINT statement every other line, like this: 10 do something 20 PRINT "done something" 30 something else 40 PRINT...
- Wed Jan 22, 2014 5:15 pm
- Forum: Expansion Pack
- Topic: Berth Control for OXP authors
- Replies: 28
- Views: 10064
Re: Berth Control for OXP authors
Thanks for the info, another_commander: unlimited power, kind of tempting, though it looks like I'll have to learn yet more stuff!
Among those god-like powers, what's the command that adds a specific ship to the market?
Among those god-like powers, what's the command that adds a specific ship to the market?
- Wed Jan 22, 2014 5:32 am
- Forum: Discussion
- Topic: Source Code and Ideas question
- Replies: 94
- Views: 33862
Re: Source Code and Ideas question
Exactly how didn't it work? Did the game crash to desktop? You've got 2 independent arrays there, and by the look of it, there's no guarantee in the code that rating_names has got as many entries as rating_kills. If you try to get a string or a number from past the end of the array, any array, progr...
- Wed Jan 22, 2014 2:57 am
- Forum: Suggestion Box
- Topic: Equipment conditions scripts.
- Replies: 3
- Views: 2959
Equipment conditions scripts.
I'm slightly uncomfortable with the way conditions scripts completely override the standard ones, and worried that in the future a custom OXP conditions.js might well not be testing all the (new) required conditions. Adding an extra option to equipment.plist like "apply_standard_conditions"...
- Tue Jan 21, 2014 11:48 pm
- Forum: Expansion Pack
- Topic: Berth Control for OXP authors
- Replies: 28
- Views: 10064
Re: Berth Control for OXP authors
I couldn't really call it anything else, could I? :D Couldn't agree more! :) Anyway, I did a couple of copy and paste snafus, but I've got a very nice script & plist combo thing going now, combining both fixed berths & min berths! I'll do some renaming / cleaning up, & some testing to m...
- Tue Jan 21, 2014 11:43 pm
- Forum: Testing and Bug reports
- Topic: Trunk nightly
- Replies: 1013
- Views: 429731
Re: Trunk nightly
As I was trying to figure out a proper berth control method :lol: I left my ship docked to the main station. After about half an hour I got a series of these: Exception: ReferenceError: ai is not defined Active script: Oolite Assassin AI 1.79 oolite-priorityai.js, line 3051: if (ai.getParameter(&quo...
- Tue Jan 21, 2014 8:24 pm
- Forum: Expansion Pack
- Topic: Berth Control for OXP authors
- Replies: 28
- Views: 10064
Re: Useful scripts for OXP authors
Paradox, wow, that oolite-barred-equipment thing looks very interesting! As well as what you used it for, it should be possible to incorporate that concept to my 1.1 tweak to just show 'remove berths' as an option if missionVariables.minBerths_removableBerths > 0 I'll need some time to look into it ...
- Tue Jan 21, 2014 7:02 pm
- Forum: Expansion Pack
- Topic: Berth Control for OXP authors
- Replies: 28
- Views: 10064
Re: Useful scripts for OXP authors
Hi, I've recently downloaded Oolite 1.77, & Oolite-trunk, and I'm really interested in programming. I've got a few ideas that might eventually become OXPs in the fullness of time, but I'm not yet sure when. Smivs, thank you very much for the example, it was very useful, the Oolite specific stuff...