Random Hits OXP

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

Moderators: winston, another_commander

MostlyHarmless
Poor
Poor
Posts: 6
Joined: Fri Oct 20, 2017 10:22 am

Re: Random Hits OXP

Post by MostlyHarmless »

Yes - I'm running 1.84. I'm wondering if it's because I started the missing running Oolite on Windows then moved to Linux and just copied the commander over. Maybe there is some state / config that didn't make it across...
MostlyHarmless
Poor
Poor
Posts: 6
Joined: Fri Oct 20, 2017 10:22 am

Re: Random Hits OXP

Post by MostlyHarmless »

Cody wrote: Fri Oct 20, 2017 2:41 pm
I'm not sure if an entity dump (pause+0) works in a deployment build. One of the boffins would know.
I've just tried it. Left the space station, pressed "p" for pause and then pressed "0". Nothing appeared on the screen and nothing appeared on the console where I launched oolite from either. I'm guessing that this is disabled in the main release...
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Random Hits OXP

Post by phkb »

Debug info would appear in the latest.log file, not on the screen. See this [EliteWiki] wiki page for info on how to find the file on your computer.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Random Hits OXP

Post by Cody »

It would display a debug message on-screen though.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Random Hits OXP

Post by another_commander »

Cody is right. Pause followed by 0 to dump entity list works only with the Test Release builds of the game.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Random Hits OXP

Post by Diziet Sma »

MostlyHarmless wrote: Fri Oct 20, 2017 2:44 pm
I'm wondering if it's because I started the missing running Oolite on Windows then moved to Linux and just copied the commander over. Maybe there is some state / config that didn't make it across...
Game save files are cross-platform compatible.. so long as the version of Oolite is the same in both cases, you should be fine.

(But do be sure that the Linux version you use was installed directly from Oolite.org, and not Devuan's repository. Oolite uses customised versions of a number of libraries, and we find that package maintainer's builds tend to just link to their standard libraries, leading to all kinds of problems. The custom libraries are bundled with Oolite, and won't cause any problems with the rest of your Linux install, as they're invisible to the system.)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Random Hits OXP

Post by montana05 »

Well, this was the first time my targets didn't show up as well:

after accepting the mission the system wasn't marked like usually
when I arrived there (Xexeti G1) no sign of the target, even the long range scanner didn't show anything
docking twice (main station and pirate cove) and still no signs
finally after docking at the spacebar the destination changed suddenly to Isveve G1 but only on the F5 &F6 screens,
bb still shows Xexeti

canceled the mission, the bb is gone and F5 still shows the mission for Isveve
restarted the game from scratch, docked again at the spacebar bb shows Xexeti while F5 & F6 shows Isveve

Maybe a new feature to make the targets travel but I personally doubt so :?
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Random Hits OXP

Post by phkb »

montana05 wrote:
docked again at the spacebar bb shows Xexeti while F5 & F6 shows Isveve
Quick question: are you using the Bulletin Board System OXP and the Contracts On BB OXP, moving all the Random Hits contracts onto the Bulletin Board? Sorry if that's confusing, but I'm just trying to determine if RH is actually responsible or if it's 3rd party interference.
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Random Hits OXP

Post by montana05 »

phkb wrote: Mon Nov 06, 2017 8:30 pm
montana05 wrote:
docked again at the spacebar bb shows Xexeti while F5 & F6 shows Isveve
Quick question: are you using the Bulletin Board System OXP and the Contracts On BB OXP, moving all the Random Hits contracts onto the Bulletin Board? Sorry if that's confusing, but I'm just trying to determine if RH is actually responsible or if it's 3rd party interference.
I am using both of the OXPs so the problem could be there as well. I admit I didnt check if Isveve got marked when I accepted the contract, bb was good enough for me. If required I got 2 saved games I could send BUT its my test setup so neither the ship nor some of the equipment are published yet.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Random Hits OXP

Post by phkb »

montana05 wrote: Mon Nov 06, 2017 11:58 pm
I am using both of the OXPs so the problem could be there as well.
Ah, OK. I'll do some digging at my end as well.
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Random Hits OXP

Post by montana05 »

phkb wrote: Tue Nov 07, 2017 12:33 am
montana05 wrote: Mon Nov 06, 2017 11:58 pm
I am using both of the OXPs so the problem could be there as well.
Ah, OK. I'll do some digging at my end as well.
Just had a similar experience again:

bb didnt show up at F4 first, I needed to go to F5 and back before it appeared
I took a contract to Zaerla from bb
Zasoceat was marked instead, F5 shows this destination while bb still insist on Zaerla
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Random Hits OXP

Post by phkb »

Could you send me a save game with this situation in play? Thanks!
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: Random Hits OXP

Post by montana05 »

[script.javaScript.exception.ooliteDefined]: ***** JavaScript exception (Random_Hits 1.11.3): Error: System.addGroup: Invalid arguments (67) -- expected number (positive count no greater than 64)

Actually not an error from Random Hits, just an overflow of grieving relatives after me. Btw, did the restriction to 64 exist before ? I believe I spawned more than that in tests. :?
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
RockDoctor
---- E L I T E ----
---- E L I T E ----
Posts: 813
Joined: Sat May 01, 2010 9:05 pm
Location: Scotland

Re: Random Hits OXP

Post by RockDoctor »

I'm trunding along with random hits turning up from time to time, which is fun.

I particularly like the insulting descriptions that turn up for the various miscreants when their terminal laser-tan is being proposed for the goat-sucking smegheads. I had a look through the code and see that in some way these are generated by random (?, -ish?) selection from phrases within or around the variable "random_hits_prejective1c" list in oolite.oxp.spara.random_hits.oxz/Config/descriptions.plist and thereabouts.

Is there some relatively easy way to pull the code and (with some modifications) have something like a "Creationist insulting description generator" for ... well, you can probably guess who my targets are. I'm probably thinking something along the lines of a (local) web page on the lines of the "Daily Mail headline generator" ("Will underage mums affect your breast cancer negative equity?").

Actually, I'm sort of answering my own question, aren't I? Grab a headline generator's J(Script), modify the fixed and variable texts (with acknowledged starting material from Spara's work), then let rip for an easy-insult generator. Which, given my target's habits of randomly quoting well-answered questions from RandomGodSquad.org , is an insultingly automated form of insult generation.
--
Shooting aliens for fun and ... well, more fun.
"Speaking as an outsider, what do you think of the human race?" (John Cooper Clark - "I married a Space Alien")
User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2691
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: Random Hits OXP

Post by spara »

All credit for that random text generation and especially for the content goes to Little Bear. This oxp is one of the oldest oxps still around I think. The original was done way before my time here and actually before it was possible to script with javascript. To my understanding, it was Eric Walsh that made the initial conversion to javascript. I'm responsible for modernizing the oxp by updating the models with more up to date ones, doing my best to modernize what I could of the script s and AIs and such and stuff like adding the f4-interface, taming the market and so on.

In short, I can't really say a thing about the sentence generator. I'm just happy it seems to work and does not need fixing :).
Post Reply