Random Hits OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

DGill
---- E L I T E ----
---- E L I T E ----
Posts: 292
Joined: Thu Jan 01, 2009 9:45 am

Re: Random Hits OXP

Post by DGill »

I've just re-downloaded the file RandomHits1.4.12oxp.oxp and it is working fine now - it has the right files.
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Re: Random Hits OXP

Post by JazHaz »

Just checked my log, looking for errors with 1.76, and saw this. Don't think I've seen this before?

Code: Select all

00:03:30.453 [Random_Hits]: (Hatred : 0. Events Timer : 3. Dockings : 1. Events Number : 0. Special Mission Timer : 3. Revenge Status : NO. Time to Strike : QUITE_SOON. Revenge Jumps Made : 0. Special Mission : WAITING. Master Timer : 3. Dice Roll : 77)
What does "Time to Strike: QUITE SOON" mean?
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Random Hits OXP

Post by Eric Walch »

JazHaz wrote:
What does "Time to Strike: QUITE SOON" mean?
I don't know exactly. I just translated this bit from Little Bears legacy code without asking myself what it does. :P (Although it has to do with adding the revenge ships) Original above log-dump was info LB printed on the BarBill page as debugging info for himself. On translating to JS, I decided to clean that page and dump this info to the log, but until now I never looked at it.
User avatar
Fatleaf
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 1988
Joined: Tue Jun 08, 2010 5:11 am
Location: In analysis mode on Phaelon
Contact:

Re: Random Hits OXP

Post by Fatleaf »

A couple of more issues:

The exhaust plumes are in the wrong place.
Image


Something has gone a bit wrong with this message!
Image

Hope they help.
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
User avatar
Gimi
---- E L I T E ----
---- E L I T E ----
Posts: 2073
Joined: Tue Aug 29, 2006 5:02 pm
Location: Norway

Re: Random Hits OXP

Post by Gimi »

Fatleaf wrote:
Image
Richard Dennisdottir?? Girl named Richard! Oh, well, who knows what people will call their children in the future Ooniverse. :D
"A brilliant game of blasting and trading... Truly a mega-game... The game of a lifetime."
(Gold Medal Award, Zzap!64 May 1985).
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Random Hits OXP

Post by Eric Walch »

Fatleaf wrote:
A couple of more issues:

The exhaust plumes are in the wrong place.
My fault. I flattened the hopper to fit in the docking slot as I wanted the station to re-launch new hoppers when one crashed. I don't know why I never noticed the wrong exhaust.
Fatleaf wrote:
Something has gone a bit wrong with this message!

Hope they help.
When the revenge ship dies it clears all variables:

Code: Select all

this.shipDied = function (whom)
{
	missionVariables.random_hits_timer = null;
	missionVariables.random_hits_striketime = null;
	missionVariables.random_hits_revenge_mark_first_name = null;
	missionVariables.random_hits_revenge_mark_second_name = null;
	missionVariables.random_hits_revenge_warned = null;
	missionVariables.random_hits_revenge = "KILLED"; // Clear all revenge variables, so once a Revenge Ship is killed it won't appear again.

    if (whom && whom.isPlayer)
	{
        missionVariables.random_hits_criminal_hate_score++;
	}
}
But in the cases of the addition of two revenge ships, the second one still needs the names of the original target.

I'll fix both.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Random Hits OXP

Post by Eric Walch »

Yesterday I uploaded a version 1.4.14 were both minor bugs above are fixed.

I also have been playing with a new trunk feature for the F4 key. A script can add options on this page and I now used it to add an option to revisit the contract-hit pages. That means you no longer have to launch and re-dock to re-enter the pages. This feature is already implemented in above version 1.4.14, but only usable by trunk users.

If you run trunk and want to test this and don't want to download the whole oxp, you can download the worldScript file and replace the original script (inside the Scripts folder) with it. (Should work for 1.4.12 & 1.4.13).
DeathKnyte
Dangerous
Dangerous
Posts: 95
Joined: Fri Aug 31, 2012 7:31 pm

Re: Random Hits OXP

Post by DeathKnyte »

This oxp is hilarious at times.
LittleBear had such cunning wit, when he was programming this (I assume it was him who did all the contract writing).
And should you fail a contract - careful. "Steel" yourself for an ego beating...

;) :lol:
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Random Hits OXP

Post by Eric Walch »

Random Hits contains a few strings that don't display correctly when played with the today released Oolite 1.77.

This issue is fixed in RH version 1.4.17 that I uploaded a few days ago. When there are other problems with that version in combination with Oolite 1.77, please let me know.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Random Hits OXP

Post by CommRLock78 »

DeathKnyte wrote:
This oxp is hilarious at times.
LittleBear had such cunning wit, when he was programming this (I assume it was him who did all the contract writing).
And should you fail a contract - careful. "Steel" yourself for an ego beating...

;) :lol:
I absolutely love the mission offering screens - they are brilliant. LittleBear is a genius :D.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Re: Random Hits OXP

Post by LittleBear »

JazHaz wrote:
Just checked my log, looking for errors with 1.76, and saw this. Don't think I've seen this before?

Code: Select all

00:03:30.453 [Random_Hits]: (Hatred : 0. Events Timer : 3. Dockings : 1. Events Number : 0. Special Mission Timer : 3. Revenge Status : NO. Time to Strike : QUITE_SOON. Revenge Jumps Made : 0. Special Mission : WAITING. Master Timer : 3. Dice Roll : 77)
What does "Time to Strike: QUITE SOON" mean?
It's normal for RH to log this whenever you kill a mark. When you kill a mark there is a chance that relatives of the victim will decide to try and track you down and take revenge. The dice are rolled twice, once to see if they do and then again to see how long they'll take before they'll start looking for you. On this kill you got lucky and the victim wasn't the type of cove with friends how might come looking for you. If they had though, Oolite would have counted out a certain amount of time before they were sent after you. The Time to Strike variable just sets how long it is before a chance of revenge ships catching up with you is called and they might be in system with you. When you make another Random Hits kill the dice are rerolled. The net effect is that from time to time if you take random hits missions, you'll encounter a peeved relative who'll berate you for your nastiness and take a pot shot at you.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Random Hits OXP

Post by Commander McLane »

Hi LittleBear,

nice to see you strolling by. :D
skribe
Mostly Harmless
Mostly Harmless
Posts: 3
Joined: Tue Jan 15, 2013 8:25 am

Re: Random Hits OXP

Post by skribe »

Bug report:

Hi.

Just docked with the Red Light bar at Qudira and I'm stuck at the Random Hits News page.

Image
I hit space and it returns me to the same page.

It's a repeatable error.

Oolite v 1.76.1
RH v 1.4.17

Cheers!
16:05:01.439 [script.load.world.listAll]: Loaded 9 world scripts:
behemoth 2.6
GalNavy 5.4.3
hofd 5.3.0
oolite-cloaking-device 1.76.1
oolite-constrictor-hunt 1.76.1
oolite-nova 1.76.1
oolite-thargoid-plans 1.76.1
oolite-trumbles 1.76.1
Random_Hits 1.4.17
16:07:17.315 [script.javaScript.timeLimit]: ***** ERROR: Script "oolite-random-hits-hunter" ran for 1.78279 seconds and has been terminated.
16:07:17.315 [script.javaScript.stackTrace]: 0 (oolite-random-hits-hunter.js:176) <not a function frame>
16:07:17.315 [script.javaScript.stackTrace]: this: [Script "oolite-random-hits-hunter" version (nil)]
16:07:17.315 [script.javaScript.stackTrace]: getExitCoordinates: function
16:07:17.315 [script.javaScript.stackTrace]: getPatrolCoordinates: function
16:07:17.315 [script.javaScript.stackTrace]: doScan: function
16:07:17.315 [script.javaScript.stackTrace]: shipWillEnterWormhole: function
16:07:17.316 [script.javaScript.stackTrace]: shipDied: function
16:07:17.316 [script.javaScript.stackTrace]: shipBeingAttacked: function
16:07:17.316 [script.javaScript.stackTrace]: shipSpawned: function
16:07:17.316 [script.javaScript.stackTrace]: version: "2.1"
16:07:17.316 [script.javaScript.stackTrace]: description: "Gives the Bounty Hunter NPCs from the Space Bars an individual name and rank on the ID computer and sets them to the right AI. Also causes hunters to regard hits from the spacebar\'s turret gunners or ..."
16:07:17.316 [script.javaScript.stackTrace]: copyright: "November 2008 - But do what you like with it in your OXPs!"
16:07:17.316 [script.javaScript.stackTrace]: author: "LittleBear, Eric Walch & Thargoid"
16:07:17.316 [script.javaScript.stackTrace]: name: "oolite-random-hits-hunter"
16:07:17.317 [script.javaScript.stackTrace]: ship: [Ship "Unidentified Commander" position: (0, 0, 0) scanClass: CLASS_NOT_SET status: STATUS_IN_FLIGHT] [read-only]
16:07:17.317 [script.javaScript.load.failed]: ***** Error loading JavaScript script ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-random-hits-hunter.js -- could not run script
16:11:10.275 [oolite-random-hits-hopper]: The miningHopper: GalMine Hopper PY2-R16 was killed by [Ship "GalMine AutoMiner" position: (48035.2, 15374.7, 507046) scanClass: CLASS_ROCK status: STATUS_DEAD] because of scrape damage
16:14:39.158 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 434, 4294967293 } extends beyond size (1286)
16:14:39.159 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:47.802 [Random_Hits]: Got unknown mission choice: null
16:14:47.828 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 430, 4294967293 } extends beyond size (1282)
16:14:47.828 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:50.663 [Random_Hits]: Got unknown mission choice: null
16:14:50.688 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 437, 4294967293 } extends beyond size (1289)
16:14:50.688 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:51.894 [Random_Hits]: Got unknown mission choice: null
16:14:51.918 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 428, 4294967293 } extends beyond size (1280)
16:14:51.918 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:53.008 [Random_Hits]: Got unknown mission choice: null
16:14:53.038 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 427, 4294967293 } extends beyond size (1279)
16:14:53.038 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:54.075 [Random_Hits]: Got unknown mission choice: null
16:14:54.097 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 433, 4294967293 } extends beyond size (1285)
16:14:54.097 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:55.088 [Random_Hits]: Got unknown mission choice: null
16:14:55.113 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 437, 4294967293 } extends beyond size (1289)
16:14:55.113 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:56.186 [Random_Hits]: Got unknown mission choice: null
16:14:56.209 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 435, 4294967293 } extends beyond size (1287)
16:14:56.209 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:57.152 [Random_Hits]: Got unknown mission choice: null
16:14:57.176 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 435, 4294967293 } extends beyond size (1287)
16:14:57.176 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:58.182 [Random_Hits]: Got unknown mission choice: null
16:14:58.206 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 435, 4294967293 } extends beyond size (1287)
16:14:58.206 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:14:59.080 [Random_Hits]: Got unknown mission choice: null
16:14:59.103 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 424, 4294967293 } extends beyond size (1276)
16:14:59.103 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:00.177 [Random_Hits]: Got unknown mission choice: null
16:15:00.206 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 426, 4294967293 } extends beyond size (1278)
16:15:00.206 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:01.376 [Random_Hits]: Got unknown mission choice: null
16:15:01.404 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:01.404 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:02.273 [Random_Hits]: Got unknown mission choice: null
16:15:02.296 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 426, 4294967293 } extends beyond size (1278)
16:15:02.296 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:02.689 [Random_Hits]: Got unknown mission choice: null
16:15:02.737 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 432, 4294967293 } extends beyond size (1284)
16:15:02.737 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:04.104 [Random_Hits]: Got unknown mission choice: null
16:15:04.127 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 428, 4294967293 } extends beyond size (1280)
16:15:04.127 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:04.753 [Random_Hits]: Got unknown mission choice: null
16:15:04.775 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 428, 4294967293 } extends beyond size (1280)
16:15:04.775 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:05.334 [Random_Hits]: Got unknown mission choice: null
16:15:05.362 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:05.362 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:05.833 [Random_Hits]: Got unknown mission choice: null
16:15:05.856 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 424, 4294967293 } extends beyond size (1276)
16:15:05.856 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:06.332 [Random_Hits]: Got unknown mission choice: null
16:15:06.356 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 430, 4294967293 } extends beyond size (1282)
16:15:06.356 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:06.846 [Random_Hits]: Got unknown mission choice: null
16:15:06.870 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 435, 4294967293 } extends beyond size (1287)
16:15:06.870 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:08.510 [Random_Hits]: Got unknown mission choice: null
16:15:08.535 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 425, 4294967293 } extends beyond size (1277)
16:15:08.535 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:09.957 [Random_Hits]: Got unknown mission choice: null
16:15:09.982 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 437, 4294967293 } extends beyond size (1289)
16:15:09.982 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:10.988 [Random_Hits]: Got unknown mission choice: null
16:15:11.011 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 433, 4294967293 } extends beyond size (1285)
16:15:11.011 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:11.786 [Random_Hits]: Got unknown mission choice: null
16:15:11.811 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 429, 4294967293 } extends beyond size (1281)
16:15:11.811 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:12.469 [Random_Hits]: Got unknown mission choice: null
16:15:12.492 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 425, 4294967293 } extends beyond size (1277)
16:15:12.492 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:13.150 [Random_Hits]: Got unknown mission choice: null
16:15:13.175 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:13.175 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:16.543 [Random_Hits]: Got unknown mission choice: null
16:15:16.569 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 443, 4294967293 } extends beyond size (1295)
16:15:16.569 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:18.373 [Random_Hits]: Got unknown mission choice: null
16:15:18.397 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 436, 4294967293 } extends beyond size (1288)
16:15:18.397 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:19.321 [Random_Hits]: Got unknown mission choice: null
16:15:19.346 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 429, 4294967293 } extends beyond size (1281)
16:15:19.346 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:20.052 [Random_Hits]: Got unknown mission choice: null
16:15:20.076 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:20.077 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:23.395 [Random_Hits]: Got unknown mission choice: null
16:15:23.419 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 430, 4294967293 } extends beyond size (1282)
16:15:23.419 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:23.763 [Random_Hits]: Got unknown mission choice: null
16:15:23.787 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 430, 4294967293 } extends beyond size (1282)
16:15:23.787 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:24.128 [Random_Hits]: Got unknown mission choice: null
16:15:24.151 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 441, 4294967293 } extends beyond size (1293)
16:15:24.151 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:24.461 [Random_Hits]: Got unknown mission choice: null
16:15:24.485 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 427, 4294967293 } extends beyond size (1279)
16:15:24.485 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:24.842 [Random_Hits]: Got unknown mission choice: null
16:15:24.865 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 430, 4294967293 } extends beyond size (1282)
16:15:24.865 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:25.175 [Random_Hits]: Got unknown mission choice: null
16:15:25.199 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 434, 4294967293 } extends beyond size (1286)
16:15:25.200 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:25.407 [Random_Hits]: Got unknown mission choice: null
16:15:25.431 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 432, 4294967293 } extends beyond size (1284)
16:15:25.431 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:25.607 [Random_Hits]: Got unknown mission choice: null
16:15:25.630 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 430, 4294967293 } extends beyond size (1282)
16:15:25.630 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:25.791 [Random_Hits]: Got unknown mission choice: null
16:15:25.819 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 430, 4294967293 } extends beyond size (1282)
16:15:25.819 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:25.957 [Random_Hits]: Got unknown mission choice: null
16:15:25.981 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 438, 4294967293 } extends beyond size (1290)
16:15:25.981 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:26.140 [Random_Hits]: Got unknown mission choice: null
16:15:26.165 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 426, 4294967293 } extends beyond size (1278)
16:15:26.165 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:26.306 [Random_Hits]: Got unknown mission choice: null
16:15:26.330 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 428, 4294967293 } extends beyond size (1280)
16:15:26.330 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:26.473 [Random_Hits]: Got unknown mission choice: null
16:15:26.495 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 429, 4294967293 } extends beyond size (1281)
16:15:26.495 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:26.639 [Random_Hits]: Got unknown mission choice: null
16:15:26.664 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 427, 4294967293 } extends beyond size (1279)
16:15:26.664 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:26.805 [Random_Hits]: Got unknown mission choice: null
16:15:26.829 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 427, 4294967293 } extends beyond size (1279)
16:15:26.829 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:26.972 [Random_Hits]: Got unknown mission choice: null
16:15:26.997 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 423, 4294967293 } extends beyond size (1275)
16:15:26.997 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:27.138 [Random_Hits]: Got unknown mission choice: null
16:15:27.161 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 426, 4294967293 } extends beyond size (1278)
16:15:27.161 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:27.321 [Random_Hits]: Got unknown mission choice: null
16:15:27.345 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 434, 4294967293 } extends beyond size (1286)
16:15:27.345 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:27.486 [Random_Hits]: Got unknown mission choice: null
16:15:27.510 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 436, 4294967293 } extends beyond size (1288)
16:15:27.510 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:27.653 [Random_Hits]: Got unknown mission choice: null
16:15:27.677 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 429, 4294967293 } extends beyond size (1281)
16:15:27.677 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:27.836 [Random_Hits]: Got unknown mission choice: null
16:15:27.859 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:27.859 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:28.002 [Random_Hits]: Got unknown mission choice: null
16:15:28.027 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 433, 4294967293 } extends beyond size (1285)
16:15:28.027 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:28.169 [Random_Hits]: Got unknown mission choice: null
16:15:28.192 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 434, 4294967293 } extends beyond size (1286)
16:15:28.192 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:28.352 [Random_Hits]: Got unknown mission choice: null
16:15:28.376 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 423, 4294967293 } extends beyond size (1275)
16:15:28.376 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:28.518 [Random_Hits]: Got unknown mission choice: null
16:15:28.542 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 425, 4294967293 } extends beyond size (1277)
16:15:28.542 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:28.701 [Random_Hits]: Got unknown mission choice: null
16:15:28.726 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:28.726 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:28.884 [Random_Hits]: Got unknown mission choice: null
16:15:28.908 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 435, 4294967293 } extends beyond size (1287)
16:15:28.909 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:29.033 [Random_Hits]: Got unknown mission choice: null
16:15:29.057 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:29.057 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:29.217 [Random_Hits]: Got unknown mission choice: null
16:15:29.240 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 432, 4294967293 } extends beyond size (1284)
16:15:29.240 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:29.383 [Random_Hits]: Got unknown mission choice: null
16:15:29.408 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 428, 4294967293 } extends beyond size (1280)
16:15:29.408 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:29.565 [Random_Hits]: Got unknown mission choice: null
16:15:29.590 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 432, 4294967293 } extends beyond size (1284)
16:15:29.590 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:29.731 [Random_Hits]: Got unknown mission choice: null
16:15:29.756 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 431, 4294967293 } extends beyond size (1283)
16:15:29.756 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:29.899 [Random_Hits]: Got unknown mission choice: null
16:15:29.922 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 440, 4294967293 } extends beyond size (1292)
16:15:29.923 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:30.082 [Random_Hits]: Got unknown mission choice: null
16:15:30.106 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 439, 4294967293 } extends beyond size (1291)
16:15:30.106 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
16:15:30.231 [Random_Hits]: Got unknown mission choice: null
16:15:30.257 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (Random_Hits 1.4.17): Error: Native exception: in substringWithRange:, range { 437, 4294967293 } extends beyond size (1289)
16:15:30.257 [script.javaScript.exception.ooliteDefinedError]: ../AddOns/RandomHits1.4.17.oxp/Scripts/oolite-randomHits.js, line 386.
User avatar
CommRLock78
---- E L I T E ----
---- E L I T E ----
Posts: 1138
Joined: Sat Apr 07, 2012 7:35 pm
Location: US
Contact:

Re: Random Hits OXP

Post by CommRLock78 »

skribe wrote:
Bug report:

Hi.

Just docked with the Red Light bar at Qudira and I'm stuck at the Random Hits News page.

Image
I hit space and it returns me to the same page.

It's a repeatable error.

Oolite v 1.76.1
RH v 1.4.17

Cheers!
I'm pretty sure the problem is that 1.4.17 is for Oolite 1.77 only My mistake :oops:
Last edited by CommRLock78 on Tue Jan 15, 2013 8:23 pm, edited 1 time in total.
"I'll laser the mark all while munching a fistful of popcorn." - Markgräf von Ededleen, Marquess, Brutal Great One, Assassins' Guild Exterminator
---------------------------
At the helm of the Caduceus Omega, 'Murderous Morrígan'
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Random Hits OXP

Post by Eric Walch »

Bug confirmed. On the mac with Oolite 1.76 I even get a Crash To Desktop. :(

Code: Select all

Application Specific Information:
objc_msgSend() selector name: _cfTypeID
[system]: *** *** -[NSCFString substringWithRange:]: Invalid range {434, 18446744073709551613}; this will become an exception for apps linked on SnowLeopard. Warning shown once per app execution.
With Oolite 1.77 there is no problem, except a slightly wrong welcome message.

The problem is a missing '[" in the file "missiontext.plist. Search for

Code: Select all

[random_hits_security_bar_text1] mission_random_hits_playertitle]
and replace it with

Code: Select all

[random_hits_security_bar_text1] [mission_random_hits_playertitle]
This is part of the welcome message that you get on the first docking in a new galaxy. Apparently the string expansion routine does not like non-matching brackets. And 1.77 has a new handling of the string expansion that handles this better. A CTD on my mac was also an Oolite bug as no oxp bug should crash Oolite. :D

So either correct the string in your copy, or upgrade to Oolite 1.77. I'll upload a new RH version as soon as possible.
I'm pretty sure the problem is that 1.4.17 is for Oolite 1.77 only .
No, the current version of RH should work with OOlite 1.75.1 onwards. There are however special tests for 1.77 to use some of the new 1.77 features.
Post Reply