Talking to passengers

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Talking to passengers

Post by byronarn »

I think it would be cool, and also add to the realism and immersion into the game, if we could talk to passengers we are carrying around.

Anyone know of any OXPs that may already do this?
User avatar
mossfoot
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri May 30, 2014 4:07 pm
Contact:

Re: Talking to passengers

Post by mossfoot »

Perhaps just random bits of conversation that pops up on the HUD like the way ships communicate?
--
Image
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean

http://www.noahchinnbooks.com/
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: Talking to passengers

Post by Zireael »

mossfoot wrote:
Perhaps just random bits of conversation that pops up on the HUD like the way ships communicate?
That's an idea that's brilliant in its simplicity!
User avatar
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Re: Talking to passengers

Post by byronarn »

Zireael wrote:
mossfoot wrote:
Perhaps just random bits of conversation that pops up on the HUD like the way ships communicate?
That's an idea that's brilliant in its simplicity!
I agree. That would be brilliant. Perhaps a random "Thanks for taking me" or "Can this ship go any faster?" or "What a beautiful sight out this window!"

And maybe certain events could trigger comment from the passenger. For example, hitting a bouy could cause them to say, "Where did you get your piloting license?" or being fired upon could make the passenger say, "Getting in firefights was not part of my contract!"

How hard would making such an OXP be?
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Talking to passengers

Post by Wildeblood »

byronarn wrote:
How hard would making such an OXP be?
Fairly simple. On launch, check for passengers. If present, start a timer with a random time. When the timer fires, check the current context - is the ship near anything? being attacked? all quiet? - and use the context to select which list of possible messages to use. Randomly select a message from the appropriate list and display it. Restart the timer.

Code: Select all

this.shipLaunchedFromStation = function()
	{
	if (player.ship.passengers.length > 0)
		{
   this.$passengerNoiseTimer = new Timer(this, _passengerNoise, (Math.random() * 1000));
		}
	}

this._passengerNoise = function () { /* Your code here...*/ }
User avatar
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Re: Talking to passengers

Post by byronarn »

Wildeblood wrote:
byronarn wrote:
How hard would making such an OXP be?
Fairly simple. On launch, check for passengers. If present, start a timer with a random time. When the timer fires, check the current context - is the ship near anything? being attacked? all quiet? - and use the context to select which list of possible messages to use. Randomly select a message from the appropriate list and display it. Restart the timer.

Code: Select all

this.shipLaunchedFromStation = function()
	{
	if (player.ship.passengers.length > 0)
		{
   this.$passengerNoiseTimer = new Timer(this, _passengerNoise, (Math.random() * 1000));
		}
	}

this._passengerNoise = function () { /* Your code here...*/ }
I think I need to try to talk someone who knows how to programs OXPs into trying to make this... Lol.
User avatar
mossfoot
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri May 30, 2014 4:07 pm
Contact:

Re: Talking to passengers

Post by mossfoot »

Perhaps we can make a "passenger chatter" thread where we can contribute lines of passenger dialog to add to an OXP, saving whoever takes this on time from having to think them up him/herself? (or use this one)
--
Image
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean

http://www.noahchinnbooks.com/
User avatar
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Re: Talking to passengers

Post by byronarn »

mossfoot wrote:
Perhaps we can make a "passenger chatter" thread where we can contribute lines of passenger dialog to add to an OXP, saving whoever takes this on time from having to think them up him/herself? (or use this one)
Thats a great idea! Which forum would be best suited for that? This one? Or perhaps the expansion packs forum?
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Noisy Passengers OXP

Post by Wildeblood »

I'll bet anyone a dollar this thread gets moved to the OXP forum sooner or later. I've made a version 0.1, with only one message per context. You can add random text generators to it. I'll upload it in the next 24 hours. Real life beckons now.

Contexts:

alertMassLocked - "There's a lot of other ships about."
alertHostiles - "Hey, is someone shooting at us?"
alertAltitude - "You're getting awfully close to the ground aren't you?"
alertCondition === 1 "I'm bored. Are we there yet?"

etc...

http://wiki.alioth.net/index.php/Oolite ... Properties
Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: Talking to passengers

Post by Zireael »

Take a look at this thread: https://bb.oolite.space/viewtopic.ph ... +immersive

Speaking of, I should unbury it and get around to implementing all that chatter.
User avatar
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Re: Noisy Passengers OXP

Post by byronarn »

Wildeblood wrote:
I'll bet anyone a dollar this thread gets moved to the OXP forum sooner or later. I've made a version 0.1, with only one message per context. You can add random text generators to it. I'll upload it in the next 24 hours. Real life beckons now.

Contexts:

alertMassLocked - "There's a lot of other ships about."
alertHostiles - "Hey, is someone shooting at us?"
alertAltitude - "You're getting awfully close to the ground aren't you?"
alertCondition === 1 "I'm bored. Are we there yet?"

etc...

http://wiki.alioth.net/index.php/Oolite ... Properties
That sounds awesome! I can't wait to try it! :-)
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Talking to passengers

Post by Wildeblood »

User avatar
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Re: Talking to passengers

Post by byronarn »

I accidentally deleted my save game, so I had to start back at square one. As soon as I save up for the advanced navigational array and passenger berth, I will report how well this works. :-)
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Talking to passengers

Post by Wildeblood »

byronarn wrote:
I accidentally deleted my save game...
In other news, the dog ate my homework. :mrgreen:
User avatar
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Re: Talking to passengers

Post by byronarn »

Wildeblood wrote:
byronarn wrote:
I accidentally deleted my save game...
In other news, the dog ate my homework. :mrgreen:
Lol. I had to reinstall Oolite (It started acting up on me), and I thought I backed up my save file, but I backed up the wrong one. It was one when I still only had a few hundred credits and a large cargo bay. Pretty much back at square one. :-(
Post Reply