Random Hits OXP

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

Moderators: another_commander, winston

User avatar
CaptSolo
---- E L I T E ----
---- E L I T E ----
Posts: 891
Joined: Wed Feb 23, 2011 10:08 pm
Location: Hermit's Pipe
Contact:

Re: Random Hits OXP

Post by CaptSolo »

For my personal enjoyment, I modified RH 1.4.18 to produce an ultra-light version. Not into hit jobs anymore but Griff's space bar is a logical addition to the game. Posting to thank you, Spara, for the script you provided elsewhere that brings back the market for older OXP's.

Switeck
---- E L I T E ----
---- E L I T E ----
Posts: 1998
Joined: Mon May 31, 2010 11:11 pm

Re: Random Hits OXP

Post by Switeck »

CaptSolo, is your ultralight version available somewhere online?

I too don't much care for the hit jobs... but more importantly the sheer number of ships it adds makes it run the game slower.

I do like having the Space Bar as ambience and am looking into getting a replacement market for it that works using Oolite 1.8x style market controls rather than reusing the old style.

User avatar
CaptSolo
---- E L I T E ----
---- E L I T E ----
Posts: 891
Joined: Wed Feb 23, 2011 10:08 pm
Location: Hermit's Pipe
Contact:

Re: Random Hits OXP

Post by CaptSolo »

Switeck wrote:
Sun Dec 02, 2018 11:29 pm
CaptSolo, is your ultralight version available somewhere online?
Not at the moment. I could PM you a link if it is okay with Spara.

User avatar
BlackWolf
---- E L I T E ----
---- E L I T E ----
Posts: 289
Joined: Thu Feb 15, 2018 9:30 am
Location: Texas

Re: Random Hits OXP

Post by BlackWolf »

I also would like to try the light version if possible. Kind of working on a Pirate occupation pathway, and the spacebars are perfect.
Creativity is a gift, use it well.

User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 311
Joined: Mon May 30, 2016 3:54 am

Re: Random Hits OXP

Post by montana05 »

BlackWolf wrote:
Mon Dec 03, 2018 12:45 am
I also would like to try the light version if possible. Kind of working on a Pirate occupation pathway, and the spacebars are perfect.
Last time I managed to dock on a spacebar with a (small) bounty on my head I had a rather unpleasant experience, ending by getting kicked out of the station. I believe its more a meeting point for assassins and mercenaries while pirates are not welcome. :)
Trying to survive behind the controls of a Caduceus Psi XT in Alpha test :lol:

dybal
Deadly
Deadly
Posts: 147
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Re: Random Hits OXP

Post by dybal »

I've got a bunch of error messages from this OXP in my Latest.log:

Code: Select all


14:45:48.300 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_second_nam
e] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_address1] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_poster_name] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_address2] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_race_part2
] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_ship_ad_na
me] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_gender] in
 string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_first_name
] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_second_nam
e] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_job_name] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_job_name] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_address1] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_poster_name] in string.
14:45:48.301 [strings.expand.warning.unbalancedClosingBracket]: ----- WARNING: Unbalanced ] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_assassination_b
oard_address2] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_ship_ad_na
me] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_gender] in
 string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_first_name
] in string.
14:45:48.301 [strings.expand.warning.unknownExpansion]: ----- WARNING: Unknown expansion key [mission_random_hits_store_mark_second_nam
e] in string.
14:45:49.779 [script.javaScript.warning.ooliteDefined]: ----- JavaScript warning (oolite-random-hits-pod1 2.3): Unknown expansion key [
mission_random_hits_store_mark_first_name] in string.
14:45:49.779 [script.javaScript.warning.ooliteDefined]:       /home/dybal/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolit
e.oxp.spara.random_hits.oxz/Scripts/oolite-random-hits-pod.js, line 15.
14:45:49.779 [script.javaScript.stackTrace]:  0 (oolite-random-hits-pod.js:15) <anonymous function>
14:45:49.779 [script.javaScript.stackTrace]:     this: [Script "oolite-random-hits-pod1" version 2.3]
14:45:49.779 [script.javaScript.warning.ooliteDefined]: ----- JavaScript warning (oolite-random-hits-pod1 2.3): Unbalanced ] in string.
14:45:49.779 [script.javaScript.warning.ooliteDefined]:       /home/dybal/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolit
e.oxp.spara.random_hits.oxz/Scripts/oolite-random-hits-pod.js, line 15.
14:45:49.779 [script.javaScript.stackTrace]:  0 (oolite-random-hits-pod.js:15) <anonymous function>
14:45:49.779 [script.javaScript.stackTrace]:     this: [Script "oolite-random-hits-pod1" version 2.3]
14:45:49.779 [script.javaScript.warning.ooliteDefined]: ----- JavaScript warning (oolite-random-hits-pod1 2.3): Unknown expansion key [
mission_random_hits_store_mark_second_name] in string.
14:45:49.779 [script.javaScript.warning.ooliteDefined]:       /home/dybal/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns/oolit
e.oxp.spara.random_hits.oxz/Scripts/oolite-random-hits-pod.js, line 15.
14:45:49.779 [script.javaScript.stackTrace]:  0 (oolite-random-hits-pod.js:15) <anonymous function>
14:45:49.779 [script.javaScript.stackTrace]:     this: [Script "oolite-random-hits-pod1" version 2.3]

User avatar
Milo
Deadly
Deadly
Posts: 192
Joined: Mon Sep 17, 2018 5:01 pm

Re: Random Hits OXP

Post by Milo »

Random Hits has a lot of strings in it, but it looks like the number of opening and closing brackets is the same. It would be helpful to have more information in the log messages to trace this back to a particular string. I might look into this more later.

Can you provide a save file that can reproduce these easily?

Actually, I didn't notice I could scroll down your error log. The ones that are not defined, like mission_random_hits_store_mark_first_name, would be a good place to start.

Also, line 15 in oolite-random-hits-pod.js is missing a semicolon at the end of the line.

dybal
Deadly
Deadly
Posts: 147
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Re: Random Hits OXP

Post by dybal »

Milo wrote:
Wed Jun 24, 2020 6:12 pm
Random Hits has a lot of strings in it, but it looks like the number of opening and closing brackets is the same. It would be helpful to have more information in the log messages to trace this back to a particular string. I might look into this more later.

Can you provide a save file that can reproduce these easily?
Yes, I will upload something to dropbox and PM the link - it will be a few hours though, can't do that now.
Milo wrote:
Wed Jun 24, 2020 6:12 pm
Actually, I didn't notice I could scroll down your error log. The ones that are not defined, like mission_random_hits_store_mark_first_name, would be a good place to start.
Looking at the stack trace from the bottom up, it refers to oolite-random-hits-pod.js line 15:

Code: Select all

    this.ship.displayName = expandDescription("[random_hits_escape_name]") // Show the Victim's name on the ID Computer when targeted.
description.plist has the definition of random_hits_escape_name:

Code: Select all

// ***********************************************************************************************
// Strings to make up the display name for a Mark's Escape Pod.

   "random_hits_escape_name" = (
      "Escape [random_hits_escape_name2]: [mission_random_hits_store_mark_first_name] [mission_random_hits_store_mark_second_name]"
   );
   "random_hits_escape_name2" = (
      Craft,
      Vehicle,
      Vessel
   );
Couldn't find definitions for mission_random_hits_store_mark_first_name and mission_random_hits_store_mark_second_name anywhere - and I have all the 432 OXPs I run unzipped in a directory subtree and search down that showed oolite.oxp.spara.random_hits.oxz and oolite.oxp.Commander_McLane.Anarchies.oxz using them, but nobody defining them.

Post Reply