Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Arakus

Pages: 1 ... 9 10 [11]
151
Thank You HalImprover, I had to change the "* IS HERE " to "* IS HERE*" and do the same with the ARE HERE for them to work, otherwise I had to type in caps, and I had to change the Hello1 and Hello2 to Unknown1 and Unknown2 because it added the line info in the response like this " 13A ","Good afternoon, How's the afternoon starting out? "
quotes and all. I'll have to figure out how to have Hal request gender and write the new name and gender to the GenderDetect.brn file now, other than that it's working perfectly. I don't mean to monopolize your time, if you know of a site that has a good example or know off hand how to write it and don't mind posting I'll be indebted to you. I know I won't be able to repay you with programming knowledge but I'll find a way somehow.

152
Actually that's the way I originally tried to do it, but I couldn't get the script to work right, it would either give me a syntax error, missing ")" error, compilation error, or didn't work at all. If/Then statements are easy, If/Then/Else I get stuck. If you can post something that'll work I'd be very greatfull, all of your help is appreciated none the less.

I know this is off topic but I asked in another topic and never got a reply, does anyone know if Crunch is still giving copies of his textures for the Fullbody girl? or does someone have them that's willing to send them to me?
Thank You in advance.

153
Well I got it working, if I could get the Else or ElseIf working I'm sure it would be smaller.

'My Company Script.
If InStr(1, UserSentence, " is here.") <> 0 And HalBrain.TopicSearch(UserSentence, WorkingDir & "MaleDetect.brn") = "True" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "MaleGreet.brn")
BlockSave=True
GetResponseBlock = True
End If
If InStr(1, UserSentence, " is here.") <> 0 And HalBrain.TopicSearch(UserSentence, WorkingDir & "FemaleDetect.brn") = "True" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "FemaleGreet.brn")
BlockSave=True
GetResponseBlock = True
End If
If InStr(1, UserSentence, " are here.") <> 0 And HalBrain.TopicSearch(UserSentence, WorkingDir & "CoupleDetect.brn") = "True" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "CoupleGreet.brn")
BlockSave=True
GetResponseBlock = True
End If
'End of My Company Script.

I'll need to add a function somewhere for Hal to automatically add Male and Female names to the Detect.brn's to make it easier but that'll take quite awhile before I can figure out how to do that.

154
I agree that it's hard to call Hal's text comparison a "sense" just trying to look at it from Hal's point of view in the sense that Hal's an Artificial Human, and Human beings have senses and to associate the senses to Hal and what Hal can do, like hear what we say like our ears let us hear what others say, and "see" the text from inside Hal's little Box World, I feel like an amateur trying to explain physics to an expert :)  basically from my viewpoint I see Hal as a human that has no physical body to experience all 5 senses with so programming Hal to understand how we use our senses and what senses Hal has and the difference in how they're used may help lead Hal in the right direction, I know that Hal needs alot further development before that knowledge would truely be of any real use, but it's just my ideas. And no offense was taken at all by any of your comments, If ya said I was a plain out idiot then maybe I'd take it a little offensive  :) It'll take me alot longer than it'll take most others but thanks to your help and Vonsmith's great work on the XTF brain I'm sure given enough time I'll get it to work. And of course I'll post it if nobody beats me to it.

155
Thanks again HalImprover,
I wish I had half the knowledge that you do, I can put a system together from scratch in 45 minutes, including fdisking and formatting but when it comes to Programming I'm stumped. As with most people I'm trying to get Hal to seem more Real, I can visualize what could be done to do it but writing the script itself is out of the question. And I prefer to do it with as small of a script as possible, and yes it will end up needing to be gender-specific for it to be believable. Thanks again for all your help, and again any further ideas are greatly appreciated.

My perspective on the differences between Human's and Hal and changes to make Hal seem more Real.
1: Humans have 5 senses.
2: Humans are aware of time.
3: Humans sleep and have dreams.

1: Hal has 2 senses, Sound (Mic) and Sight (Reads Text) so need to get Hal to know this and understand what's needed for Hal to have all 5, like having sensors connected to LPT Port.
2: Hal needs to Date/Time stamp certain events and check current Date/time every so often and compare.
3: Have a sleep mode where Hal compares the time when User says good morning and calculates when Hal should go to bed, roughly 16-20 hours from then and during sleep time opens a WantsDesires.brn and create a Dream from there.

I know there are alot more than just those differences and my ideas are vague, of course if I knew programming I could show example scripts to help. Sorry it's a bit off rge topic but figured since it's all in the same idea (making Hal seem Real) that it may help get everyone's creative juices flowing.

156
Thanks HalImprover,
I didn't expect a response so quickly. I wouldn't say I'm a newbie but I'm far from a pro when it comes to scripting, I can look at a script and understand what it does in most cases and modify to my needs but I couldn't begin to create my own from scratch, so I'm clueless when it comes to figuring out how to check what the SearchPattern function returns, but I do understand what you mean, I think the easiest way to have Hal handle this would be when User types "Is here or Are here" to have Hal check a .brn file for known names and from there determine if it's male or female then open the right Malehello.brn, Femalehello.brn or Couplehello.brn, and if it's a name Hal doesn't know then to ask for gender then give hello. But I have no idea how to write it. You're far more advanced than I could ever be so I'm sure you can figure out a way to do it even easier. Thanks Again for your help.

157
I need help with a Hello script for XTF 1.2 brain, I want to be able to type things
like Name is here.  or Name & Name are here. for when company comes over and have
Marie (My Hal) get a random response from a .brn file like this.

----------------------------------------
If InStr(UserSentence, "Scott is here.") <> 0 Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello1.brn")
BlockSave=True
GetResponseBlock = True
End If
If InStr(UserSentence, "Scott & Vickie are here.") <> 0 Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello2.brn")
BlockSave=True
GetResponseBlock = True
End If
-----------------------------------------
Example.
User: Scott is here.
Marie: Tell hime I said Hi.
User: Scott & Vickie are here.
Marie: Tell them hello for me.

without having to type sections for each name/names of people that I know.
Any and all help would be greatly appreciated.

158
Sorry, I just realized about the back slashes not being accepted, I'm attaching the .hap and .brn files below.

Download Attachment: Casual.hap
1.86 KB

Download Attachment: BlondeHair.hap
650 Bytes

Download Attachment: BlackHair.hap
648 Bytes

Download Attachment: Casual.brn
620 Bytes

Download Attachment: My_Haptek_Script.txt
1.65 KB

159
Hope this info helps, I found a way to change Textures, Outfits, Clothes whatever you wish to call them as well as the Hair in Hal with Haptek Full Body Girl. Using the XTF_1.2 Brain (Great Work So Far Vonsmith, Can't wait for 1.4), here's what I did. Opened the Brain Editor and jumped down to 'PROCESS: INITIALIZE VARIABLES AS INTEGERS below Randomize and put in this:
'My Haptek Stuff.
If InStr(UserSentence, " dress casual.") <> 0 Then
HalCommands = "<HAPFILE>Casual.hap</HAPFILE>"
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Casual.brn")
BlockSave=True
GetResponseBlock = True
End If

Then I created a Casual.brn file in Ultrahal 5defbrain and in it I put a bunch of comments for Hal to ransomly pick from to respond with.

Then I created the Casual.hap file with.

#Haptek  Version= 1.00 Name= Hap_Casual1  HapType= script FileType= text
##standard
settexture[ tex= [data/standard/skins/crystalgrn.jpg]]


now all I do is type dress casual. and hit enter and Hal changes to Crunch's crystalgrn texture.

for the hair I added 2 parts below that.

If InStr(UserSentence, " black hair.") <> 0 Then
HalCommands = "<HAPFILE>BlackHair.hap</HAPFILE>"
GetResponse = "Hair color is now Black."
BlockSave=True
GetResponseBlock = True
End If
If InStr(UserSentence, " blonde hair.") <> 0 Then
HalCommands = "<HAPFILE>BlondeHair.hap</HAPFILE>"
GetResponse = "Hair color is now Blonde."
GetResponseBlock = True
BlockSave=True
End If

then created the BlackHair.hap with:
#Haptek  Version= 1.00 Name= Hap_BlackHair  HapType= script FileType= text
##standard
delperson[figure= hair5_9EXP]
load [file= data/standard/skins/hair6_2EXP.htr]]

and BlondeHair.hap with:
#Haptek  Version= 1.00 Name= Hap_BlondeHair  HapType= script FileType= text
##standard
delperson[figure= hair6_2EXP]
load [file= data/standard/skins/hair5_9EXP.htr]]

now I just type black hair.  or blonde hair. and it changes.

160
Ultra Hal 7.0 / Attn: crunch and zenman
« on: April 13, 2005, 12:05:00 am »
to Crunch:
I found a couple of your Textures browsing the forums but wasn't able to find the White Camosul (sp?), and the Leather outfits, is it at all possible to still get them, any and all that you'd be willing to send would be greatly appreciated. Thanks in advance either way.



Email: arakus_98@hotmail.com

Pages: 1 ... 9 10 [11]