Page 2 of 3
Posted: Thu Oct 22, 2009 12:09 am
by PhantorGorth
Just to let people know how I expect the AIs of NPC to be able to react would be along the lines of:
If you are responding to a message sent to you then an AI message is sent to that ship only. The same applies when you select narrowcast. If you broadcast then the AI message is sent to all ships, stations, etc that match the channel type.
The message itself will be a simple message such as "PlayerResponds" (if following an NPC message to you) or "PlayerMessage" (when the message is a cold call) and maybe a few special ones such as "MayDay". The options/fields the player selects are stored for later accessing by the AI. NPC AIs can then be altered to have actions on those messages and can also use new AI methods (to be written) such as "PlayerCommsOption:RESPONSE1 OPER:EQ VALUE:PAID AIMSG:PLAYERPAID" which sends to the ship's AI the message "PLAYERPAID" if the option RESPONSE1 equals PAID. JS scripts should also be able to access the select response options of the player. All of this together should give the ability for complex interactions.
Posted: Thu Oct 22, 2009 8:11 am
by unteer
i really like this idea. I wonder if this grammar based approach could work, or I wonder if some sort of expanding menu approach works as well.
sorry I have been MIA from this baord. couple issues popped up that needed attention.
Posted: Thu Oct 22, 2009 8:57 am
by PhantorGorth
The grammar nature supports the branching nature of possibilities. Also it mean converting a simple internal grammar to an actual human readable sentence is much easier. There will three grammars. One very simple for internal use that is language independent so scripts can use the results. One for short on screen display in the interface and one for creating the text that goes into the already existing comms log. These last two could be altered for localisation purposes.
Posted: Thu Oct 22, 2009 1:40 pm
by Griff
this sounds great! Good luck with the coding PhantorGorth
Posted: Thu Oct 22, 2009 5:34 pm
by Kaks
As I said somewhere else, you don't actually need to recode oolite to achieve something like that, it should be pretty feasible to code an oxp with a lot of the above functionality with 1.73.4 already.
<grumble> it looks like I'll have to make a bare-bone example, then</grumble>
Posted: Thu Oct 22, 2009 6:15 pm
by PhantorGorth
Kaks wrote:As I said somewhere else, you don't actually need to recode oolite to achieve something like that, it should be pretty feasible to code an oxp with a lot of the above functionality with 1.73.4 already.
<grumble> it looks like I'll have to make a bare-bone example, then</grumble>
Yes the text itself could be derived and manipulated in JS and messages could be sent to AIs but how would you do the overlaid screen and populate it with the text? How would you intercept key presses for toggling, option selection, field typing (when required) etc.? Does Oolite's JS engine support file loading?
Posted: Thu Oct 22, 2009 11:12 pm
by Kaks
I'm not sure you absolutely need all those extra bits in order to get the functionality you're after. I'll be back on this subject on Sunday, hopefully with the kernel an actual ship-to-ship comms oxp, something that works on 1.73.4
Posted: Fri Oct 23, 2009 7:35 am
by PhantorGorth
Kaks, remember this needs to be easy to use and doesn't stop you flying and fighting.
What you are going to include in this test oxp?
Posted: Mon Oct 26, 2009 8:02 pm
by Kaks
Ok, better late than never. I ran out of ideas for dialogues, but this demo should at least hint at the possibilities.
commsDemo 0.1
To see the demo in action, target a trader, then press F8.
The Comms Screen could have been activated by F5, F6 or F7, but I kind of liked F8.
In future, if I get the time, I'm going to expand on it, to make it practical to use as a dialogue framework - and I'll also add the ability to talk to police, stations, etc...
The only reason I've restricted the comms function to traders is that it would have taken me an exceedingly long time to come up with dialogues for the others...
Also, at the moment it offers between 1 and 3 choices per dialogue, but it could as easily offer 4.
5 or more choices per dialogue are not technically possible, and would probably be too taxing. It seems that we're all geared for 3 choices in the majority of cases!
Please have a look, dissect, offer dialogue trees, whatever!
Posted: Sat Nov 14, 2009 6:27 pm
by Kaks
Hmm, almost 3 weeks later, and 0 comments, 7 downloads for this one.
I'm pretty sure one of those 7 downloads is from me too. It looks like that working 2-way comms with another ship is not that interesting, then.
Good job I didn't try anything more elaborate!
Sad but true: just before uploading it, I thought I'd try to have it automatically slow down Oolite when looking at comms, then change the game speed back.
After a little reflection, I thought it would be too much trouble for a .1 release!
Posted: Sat Nov 14, 2009 6:33 pm
by Cmd. Cheyd
I didn't see this, Kaks... Will download it once I start playing again. Spend most of my time right now doing texturing...
Posted: Sat Nov 14, 2009 6:56 pm
by Cody
I missed this as well.
Just tried it. The Captain of a Boa just refused to give me 1 credit.
I had to laugh. Very promising, Kaks. Thanks.
(And I am interested).
Posted: Sat Nov 14, 2009 9:24 pm
by Cody
This time he changed his mind:
This is very entertaining.
Posted: Sat Nov 14, 2009 9:40 pm
by Kaks
Suddenly a new career opportunity opens!
Only 599 more
suckers generous people, and you can get an ECM!
PS: good to know someone appreciates!
Posted: Sat Nov 14, 2009 10:27 pm
by Rustybolts
Downloaded and tried out loooking forward to the possibilities this could open up if completed. I'd say don't give up on it yet. It probably has not been downloaded much as its still only at test status and people skip it waiting for a more complete release.