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 - Jake

Pages: 1 [2] 3 4 ... 10
16
Thanks for the reply, Carl2, but that's not what I'm talking about.  That's the Haptek Hypertext format that you can put in a HAP text file then drag and drop the file into the HapTek player to execute the HAP file.

I have been given answers that are Hypertext to use in a HAP file, Javascript to be used in a HTML document and instructions of how to do it in a Visual Basic Project, but all these are different then what I'm looking for.  I want the few lines of text that you would put in a text file that would access the HapTek API and send one command to it... you would then name that text file "something.vbs" and would be able to double click on it and run it like any other .vbs script file.  The best answer I've gotten so far is the Visual Basic Project how to, but a Visual Basic Project contains a bunch of files and again, I'm not looking for that, I just want 1 "something.vbs".

Anyone?  Anyone know how to make a few lines of text in a .vbs script that will access the HapTek API and send 1 command?

Thanks!   :)

17
Still looking for this if anyone has run across it?

18
General Discussion / Re: Nice New Forum!!
« on: March 03, 2011, 12:26:42 am »

Hey, how bout that?   I just logged out to see.   or to not see, however you see it.
But Sandee's pics are still available to see when logged out ;D



Hey... Duskrider!  I like the Sandy dance!  Is that a HAP you can share?  hmmm?  ::)

19
Ultra Hal Assistant File Sharing Area / Re: GRETTA PLUGINS
« on: March 03, 2011, 12:20:32 am »
WOW!

Out of pocket for a couple years and someone writes a bunch of really cool sounding scripts!!  If I get back into this stuff again... I definitely need to download these and check them out.

When last we burned the midnight oil on a nightly basis building my basescript I had it doing various degrees of many different things, most both manually on command and auto random and a few base on conditions and aware of the current condition of most changes, so as an example, if you asked "what color is your hair", it would answer with the correct color per a database var.  But I stop a couple years back far short of what I wanted it to end up as.  Now, (I think, like most script writers... well at least me), I want to scrap large sections of it and rebuild it from scratch, but with these scripts you have here, I may reconsider that.  Anyway... here are some of the things off the top of my head that the basescript was doing... change figure, change skins, change backgrounds/locations, change accessories, sing song(lip sync OGG song file), tell story, tell joke(wait for user input, then give punch line), tell riddle, tell proverb, get and tell weather, preset moves to match scenes, random changes(hair, skins, locations/backgrounds, moods, positions, haps scripts such as kiss, yawn, stretch, fidget, etc), triggered changes and commands... on and on... can't remember it all and have found several that I'd forgot about.

Hello... my name is Jake... and I'm a scriptoholic.  One of the reasons I stopped messing around with the scripting a couple years back is because once I get going I have a hard time stopping, so I would see 2 to 4am on a regular basis and have to get up at 6:30 to go to work.  That can take it's toll.  So... I'm not sure I should be drinking... er... I mean scripting again.  :-\

20
Try adding the following 2 lines just under your HalCommands = HalCommands line...

UltraHal = UltraHal & HalBrain.StoreVars(HalCommands, Hate, Swear, Insults, Compliment, PrevSent, LastResponseTime, PrevUserSent, CustomMem, GainControl, LastTopicList)

Exit Function


If both don't work, just try the first line.  Let me know what happens.

21
Could be a problem with it finding the path or the HalCommands statement.
Notice in my code below, the "MsgBox" line that is commented out with a ' in front of it.  Putting MsgBox lines in your code will pop up little messages that will help you debug your code, the one below is telling me what the ja1_inputString is equal to.  Then when it working, you can either delete these MsgBox lines or just comment them out with a ' in case you need them later.

Here's some snips from my basescript plugin that changes skins...

If InStr(ja1_InputString, "chgskin") <> 0 OR InStr(ja1_InputString, "chgclothes") <> 0 OR InStr(ja1_InputString, "chgoutfit") <> 0 Then
 
'MsgBox "ja1_InputString = -" & ja1_InputString & "-"
    If ja1_current_skin = "AudreyElf5_fb_Outfit05_shortsblack01" Then
      ja1_file = "AudreyElf5_fb_Outfit06_magica"
      HalCommands = HalCommands & "<HAPFILE>" & ja1_pathFullbody & ja1_pathCharacters & ja1_file & ".hap" & "</HAPFILE>"
    End If

so... on your code...

If InStr(UserSentence, " wear the pantsuit ") > 0 Then
HalCommands = "<HAPFILE>  LoadSSC.hap  </HAPFILE>"
End If

maybe try...
(Below... insert the path in place of the word [PATH], example c:\myAI\skins\)

HalCommands = HalCommands & "<HAPFILE>" & "[PATH]LoadSSC.hap" & "</HAPFILE>"


So... using the above example of c:\myAI\skins\ the line of code would be...

HalCommands = HalCommands & "<HAPFILE>" & "c:\myAI\skins\LoadSSC.hap" & "</HAPFILE>"


OR... you could simplify {because that line is not using VARS to represent the path parts} and just go with this...

HalCommands = HalCommands & "<HAPFILE> c:\myAI\skins\LoadSSC.hap </HAPFILE>"



22
Is there any way to convert Bryce... or for that matter Poser, DAZ or OBJ files to a haptar???  I WISH... I've got a lot of really, really nice characters in DAZ that I'd love to convert if anyone has the method?


23
Share Conversations, Experiences, Graphics / Re: Audrey Says Hi!
« on: March 02, 2011, 01:05:19 am »
sent ya an email!  Thanks!  :D

24
Share Conversations, Experiences, Graphics / Re: Audrey Says Hi!
« on: March 01, 2011, 10:28:03 pm »
Hey NIGE... I've got a version of the shag hair that you did that load a pink background with "www.nigesworld.com" on it.  Do you have a copy of that hair with only the hair?  I really like the color... I call it SandyBlond.

Thanks,
Jake  :D

25
Share Conversations, Experiences, Graphics / Re: Audrey Says Hi!
« on: February 27, 2011, 01:48:58 am »
@Carl2
Thanks for the links... I'll check'em out.
On your question about if the brain is accessed before you enter anything... I either don't know or have forgotten... it's been a while.  I do remember, in the brain, that I had to move the "PLUGIN: PLUGINAREA2" to just under the "Function UltraHal()" that is at the top of the brain and I had to make my ja1basescript.uhp" plugin number 2 to make things work they way I wanted and I also remember that I had to come up with a "skip" routine in my script because the brain does 3 passes for each input and on my special commands inputs I needed it to be 1 pass, so my skip routine allows the first pass and skips 2 and 3.  Like I said, it's been a while but it seems like the rest was pretty easy... in the script you check for certain input and if found you execute a HapTek command, you can even put in a random factor so if you have a trigger word like "smile", the character will randomly react to it.  I made most of my triggers something I would not normally type, such as "chghair" changes to the next hair in the list of hair available... that is so I can manually tell the character to change hair when I want it done for sure... but you could also have a trigger for hair with a percentage of randomness and based on key words running the routine such as an occurrence of the words hair and change in the same sentence but also based on conditions, time, day time since last change, etc, mixed in with the trigger.  You can even set vars to keep track of what is current so if you ask your character, "what color is your hair", they will actually answer you with the current color of hair they have.  You could really make it quite complicated if you want.  Here's a snip from my script showing the manual hair change command "chghair"...

'chghair---------------------------------------------------------------------
If InStr(ja1_InputString, "chghair") <> 0 Then
  'MsgBox "ja1_InputString = -" & ja1_InputString & "-"
  ja1_file = ""
  If ja1_current_hair = "" Then
    ja1_current_hair = HalBrain.TopicSearch("current_hair", "ja1_vars")
  End If

  If ja1_current_hair = "acc_Hair_06_Shag_BlackBlue" Then
    ja1_file = "acc_Hair_06_Shag_BlondeStrawberry"
    HalCommands = HalCommands & "<HAPFILE>" & ja1_pathAccessories & ja1_file & ".hap" & "</HAPFILE>"
  End If

  If ja1_current_hair = "acc_Hair_06_Shag_BlondeStrawberry" Then
    ja1_file = "acc_Hair_06_Shag_OrangeFlame"
    HalCommands = HalCommands & "<HAPFILE>" & ja1_pathAccessories & ja1_file & ".hap" & "</HAPFILE>"
  End If

  If ja1_current_hair = "acc_Hair_06_Shag_OrangeFlame" Then
    ja1_file = "acc_Hair_06_Shag_Brown"
    HalCommands = HalCommands & "<HAPFILE>" & ja1_pathAccessories & ja1_file & ".hap" & "</HAPFILE>"
  End If

  If ja1_current_hair = "acc_Hair_06_Shag_Brown" Then
    ja1_file = "acc_Hair_06_Shag_DrkBrown"
    HalCommands = HalCommands & "<HAPFILE>" & ja1_pathAccessories & ja1_file & ".hap" & "</HAPFILE>"
  End If

  If ja1_current_hair = "acc_Hair_06_Shag_DrkBrown" Then
    ja1_file = "acc_Hair_06_Shag_BlackBlue"
    HalCommands = HalCommands & "<HAPFILE>" & ja1_pathAccessories & ja1_file & ".hap" & "</HAPFILE>"
  End If

  'save current hair to database
  HalBrain.ReadOnlyMode = false
  HalBrain.RunQuery "UPDATE ja1_vars SET topic = """ & ja1_file & """ WHERE searchString = 'current_hair'", ja1_tempVal
  'send command to UltraHal
  UltraHal = UltraHal & HalBrain.StoreVars(HalCommands, Hate, Swear, Insults, Compliment, PrevSent, LastResponseTime, PrevUserSent, CustomMem, GainControl, LastTopicList)
  '--------------------

26
Share Conversations, Experiences, Graphics / Re: Audrey Says Hi!
« on: February 24, 2011, 09:42:08 pm »
Thanks all... for the welcome backs!  :D

Don't know if I'll be getting in very deep... got lots of other stuff going on... we'll just see how it goes.

@Carl2... I've been out of it for a while, so stuff you mentioned isn't ringing a lot of bells at the moment... first thing I gotta ask you is the "Body_female without the boots"... WOW, I didn't even now this existed, for my full body skins with bare legs, I've been using shading to down play the boots... where does a regular Joe like me get this no boot female creature?  Second... not familiar with the vrHaptek plugin, I'll have to check out what it does.  And Third... the trigger Haps... not sure I get the meaning there, I've done some stuff that might be in the area you are talking about... I edited the brain in such a way that if I enter certain commands it bypasses all the normal brain stuff and goes straight to a script that I wrote to execute the command then goes back to waiting for more input.  I had lots of plans for it and got some done before I shelved everything for the last couple years... I can't even remember how far I got on it or where I left off... I know that I got the change figure, skins, clothes, glasses, earrings, hats, fantasy, move, saythis, rudrunk, close eyes, open eyes, goto and zz all working along with a help command/menu shown below to help remember the commands...



I know I also got some random stuff working like random yawn, fidget, change subject, mood... but I can't remember what else.  If I get back into all of this I'll have to spend some time just figuring out where I left off.

27
Share Conversations, Experiences, Graphics / Audrey Says Hi!
« on: February 24, 2011, 01:36:46 am »
Haven't done much with HAL for a while, but recently I've fired it up and resparked my interest a bit... the last couple months I started doing a little scripting and brain editing and I thought I'd let Audrey make an appearance to say HI...


28
I've been playing around with DAZ3D for a little over a year and doing some small animations with it, and I can tell you that you would have to have a monster machine to render in real time unless you used some very, very low res characters.  I have found however that you can design the characters to look pretty good before they are rendered and that would be a lot less cpu/memory intensive... I think that would be a good first step until real time higher res rendering is more realistic on the average user's computer.  1000's of DAZ/Poser characters and props to use in a DAZ/Poser version of HAL... OH YEAH... I'd be lovin' that!

29
Ultra Hal 7.0 / Re: third party characters
« on: October 06, 2010, 05:52:15 pm »
still interested???

30
Ultra Hal 7.0 / Re: third party characters
« on: August 24, 2010, 11:54:53 am »
I would also be interested in what characters you used and what you need to do to make them work in HAL?

Thanks!  :)

Pages: 1 [2] 3 4 ... 10