Page 47 of 70

Re: Random Hits OXP

Posted: Sun Dec 18, 2011 10:48 am
by DGill
I've just re-downloaded the file RandomHits1.4.12oxp.oxp and it is working fine now - it has the right files.

Re: Random Hits OXP

Posted: Mon Dec 19, 2011 12:15 am
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?

Re: Random Hits OXP

Posted: Mon Dec 19, 2011 8:19 am
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.

Re: Random Hits OXP

Posted: Tue Dec 20, 2011 11:54 pm
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.

Re: Random Hits OXP

Posted: Wed Dec 21, 2011 7:26 am
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

Re: Random Hits OXP

Posted: Wed Dec 21, 2011 8:41 am
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.

Re: Random Hits OXP

Posted: Sat Sep 22, 2012 10:35 am
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).

Re: Random Hits OXP

Posted: Sat Sep 22, 2012 7:27 pm
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:

Re: Random Hits OXP

Posted: Tue Jan 08, 2013 11:13 am
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.

Re: Random Hits OXP

Posted: Tue Jan 08, 2013 6:34 pm
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.

Re: Random Hits OXP

Posted: Wed Jan 09, 2013 11:52 pm
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.

Re: Random Hits OXP

Posted: Thu Jan 10, 2013 8:31 am
by Commander McLane
Hi LittleBear,

nice to see you strolling by. :D

Re: Random Hits OXP

Posted: Tue Jan 15, 2013 8:52 am
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.

Re: Random Hits OXP

Posted: Tue Jan 15, 2013 10:14 am
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:

Re: Random Hits OXP

Posted: Tue Jan 15, 2013 10:41 am
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.