Talking to passengers

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Talking to passengers

Post by Diziet Sma » Sat Jul 26, 2014 1:20 pm

byronarn wrote: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. :-(
Ouch.. to avoid this in future, install Dropbox, if you don't already have it, and (Windows) set your oolite-saves folder to be a Dropbox folder, or (Linux & Mac) make a link in the Dropbox folder, pointing to your oolite-saves folder. That way, your game-saves and screenshots are always instantly backed up online, whenever you have internet access. And you can access them from any computer.
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
byronarn
Dangerous
Dangerous
Posts: 85
Joined: Thu Nov 18, 2010 6:08 am
Location: United States

Re: Talking to passengers

Post by byronarn » Sun Jul 27, 2014 12:34 pm

Finally got to the point where I could check this out. Works pretty well. :-) Thank you for making it. In the current implementation, however, It makes the passenger seem repetitive, as they almost always say "I'm bored, are we there yet?" Do you mind if I mess around with the script, and add a few more sentences, and have the script randomly choose one?

User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Disunited Kingdom
Contact:

Re: Talking to passengers

Post by Smivs » Sun Jul 27, 2014 12:55 pm

byronarn wrote:... they almost always say "I'm bored, are we there yet?"
Sounds like my kids! :roll:
Commander Smivs, the friendliest Gourd this side of Riedquat.

User avatar
Bangbangduck
Deadly
Deadly
Posts: 169
Joined: Tue Apr 29, 2014 5:57 pm
Location: My God it's full of stars

Re: Talking to passengers

Post by Bangbangduck » Sun Jul 27, 2014 1:20 pm

Could you have one [Passenger], when in a combat situation, Says ............ 'Use the force <Insert Cmdr Name Here>' :?:

BBD
Do not press this button [O].....Oh Bugger!
Cobra MKIII Grendal's Dam

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 » Sun Jul 27, 2014 1:44 pm

byronarn wrote:
Finally got to the point where I could check this out. Works pretty well. :-) Thank you for making it. In the current implementation, however, It makes the passenger seem repetitive, as they almost always say "I'm bored, are we there yet?" Do you mind if I mess around with the script, and add a few more sentences, and have the script randomly choose one?
Go ahead! I believe all Wildeblood's OXPs are on a free share-alike license.

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Talking to passengers

Post by Wildeblood » Sun Jul 27, 2014 2:31 pm

Zireael wrote:
byronarn wrote:
Finally got to the point where I could check this out. Works pretty well. :-) Thank you for making it. In the current implementation, however, It makes the passenger seem repetitive, as they almost always say "I'm bored, are we there yet?" Do you mind if I mess around with the script, and add a few more sentences, and have the script randomly choose one?
Go ahead! I believe all Wildeblood's OXPs are on a free share-alike license.
In this case it barely rates as an OXP, just the skeleton of a script. There are two ways you need to proceed to make into something worthwhile: replace the single console message in each case with a random selection, and add more cases. Planetary vicinity would be the next case I'd add - "Ooh, that's a great view of the planet". It's not in there because I couldn't remember off the top of my head how to test for it. :D "Use the documentation, Luke."

Hmm, I've looked now and there is no withinPlanetaryVicinity boolean, the closest thing is player.ship.withinStationAegis

Also the green alert "I'm bored" message should most often say nothing and just fall through to resetting the timer. Otherwise the illusion will be ruined and the player will soon notice the regularity of the messages.

Neelix
---- E L I T E ----
---- E L I T E ----
Posts: 288
Joined: Sat May 31, 2014 9:02 pm
Location: Melbourne, Australia

Re: Talking to passengers

Post by Neelix » Sun Jul 27, 2014 3:34 pm

Wildeblood wrote: Also the green alert "I'm bored" message should most often say nothing and just fall through to resetting the timer. Otherwise the illusion will be ruined and the player will soon notice the regularity of the messages.
Perhaps every now and then one of them should break into song... excerpts from some of the filks that have been recently published hereabouts would probably be good candidates... ;-)

- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]

User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Disunited Kingdom
Contact:

Re: Talking to passengers

Post by Smivs » Sun Jul 27, 2014 3:53 pm

Neelix wrote: Perhaps every now and then one of them should break into song...
<Appropriate song :) >
Commander Smivs, the friendliest Gourd this side of Riedquat.

Neelix
---- E L I T E ----
---- E L I T E ----
Posts: 288
Joined: Sat May 31, 2014 9:02 pm
Location: Melbourne, Australia

Re: Talking to passengers

Post by Neelix » Sun Jul 27, 2014 4:09 pm

Smivs wrote:
Neelix wrote: Perhaps every now and then one of them should break into song...
<Appropriate song :) >
Oooh, good choice! :-)

How about this one?

- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]

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 » Sun Jul 27, 2014 4:19 pm

Or a full version of One Hundred Bottles of Beer on the Wall? :twisted:
--
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 » Sun Jul 27, 2014 4:24 pm

Wildeblood wrote: In this case it barely rates as an OXP, just the skeleton of a script. There are two ways you need to proceed to make into something worthwhile: replace the single console message in each case with a random selection, and add more cases. Planetary vicinity would be the next case I'd add - "Ooh, that's a great view of the planet". It's not in there because I couldn't remember off the top of my head how to test for it. :D "Use the documentation, Luke."

Hmm, I've looked now and there is no withinPlanetaryVicinity boolean, the closest thing is player.ship.withinStationAegis

Also the green alert "I'm bored" message should most often say nothing and just fall through to resetting the timer. Otherwise the illusion will be ruined and the player will soon notice the regularity of the messages.
I am currently going through an interactive Javascript tutorial through CodeAcademy so that I know what I am doing. I have programmed in many different languages so it seems pretty easy so far. Then I will take your skeleton script and make it into something you can be proud of! :-)

Neelix
---- E L I T E ----
---- E L I T E ----
Posts: 288
Joined: Sat May 31, 2014 9:02 pm
Location: Melbourne, Australia

Re: Talking to passengers

Post by Neelix » Sun Jul 27, 2014 4:29 pm

mossfoot wrote:Or a full version of One Hundred Bottles of Beer on the Wall? :twisted:
*snickers* That's just evil! :-)

Mind you for some reason I find Star Trekkin to be surprisingly appropriate... :twisted:
(Especially with lines like: "Boldly going forward 'cause we can't find reverse" and "We come in peace, Shoot to kill! Shoot to kill! Shoot to kill!") ;-)

byronarn wrote: I am currently going through an interactive Javascript tutorial through CodeAcademy so that I know what I am doing. I have programmed in many different languages so it seems pretty easy so far. Then I will take your skeleton script and make it into something you can be proud of! :-)
Now there's a novel concept.. actually learn the language before you start scripting... ;-)

- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]

User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Disunited Kingdom
Contact:

Re: Talking to passengers

Post by Smivs » Sun Jul 27, 2014 4:31 pm

Neelix wrote: Now there's a novel concept.. actually learn the language *before* you start scripting... ;-)
:shock: Can you actually do that!
Commander Smivs, the friendliest Gourd this side of Riedquat.

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 » Sun Jul 27, 2014 4:35 pm

Neelix wrote:
byronarn wrote: I am currently going through an interactive Javascript tutorial through CodeAcademy so that I know what I am doing. I have programmed in many different languages so it seems pretty easy so far. Then I will take your skeleton script and make it into something you can be proud of! :-)
Now there's a novel concept.. actually learn the language before you start scripting... ;-)

- Neelix
If I didn't learn the language first, I'd probably keep relapsing to trying to program the oxp in c++ (my favorite programming language!). That wouldn't get me anywhere! Lol.

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 » Sun Jul 27, 2014 4:38 pm

Smivs wrote:
Neelix wrote: Now there's a novel concept.. actually learn the language *before* you start scripting... ;-)
:shock: Can you actually do that!
It's doable, but very difficult. I wanna jump right in and start editing the script. But in order to do it efficiently, I think the skeleton script will need reorganized a little to add functions, and I will need arrays to store the responses. It'll be easier to just learn the language than try to selectively learn just what I need.

Post Reply