Author Topic: Anyone have any tricks for loading textures?  (Read 9656 times)

Dreadstar

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Anyone have any tricks for loading textures?
« on: January 07, 2005, 08:33:30 pm »
I would first of all like to thank zenman for his textures and help THANK YOU!

Has anyone had problems loading new body_female textures? If you have found any answers please share them. I have placed the new textures in the new folder C:Program Files/Haptekplayer/data/standard/skins and used the script for the happy.hap and happyn.hap as described by crunch ttp://www.zabaware.com/forum/topic.asp?TOPIC_ID=1715 And the textures will not load!

Those of you who have had problems and found solutions please help Thanks!

         Dread-Star
« Last Edit: January 07, 2005, 10:34:32 pm by Dreadstar »
"Imagination is greater than knowledge" Albert Einstein

Dreadstar

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Anyone have any tricks for loading textures?
« Reply #1 on: January 08, 2005, 08:27:47 pm »
Well I have learned how to load the textures in the Haptek player using the Command. Now if I knew how to put this into the Hal player the problem would be solved. Perhaps with more investigation?
"Imagination is greater than knowledge" Albert Einstein

Rich_A

  • Sr. Member
  • ****
  • Posts: 396
    • View Profile
Anyone have any tricks for loading textures?
« Reply #2 on: January 09, 2005, 10:28:22 pm »
Hello Dreadstar,
These are the complete instructions from a previous post by crunch.


Posted by crunch on 12/20/2004 00:22:56:

I have gotten a few e-mails from some still having trouble to get hal to load skins on their hap characters... there are a few ways to do it but here again is how i do it... i hope this helps....if anyone has other ways please post them here also for these folks please...

on my instalation of the haptek player i let it install to it's default. then i created a new folder in it's standard folder, i called that new folder "skins" this is where my character skin folder is on my computer........
C:/Program Files/Haptek/player/data/standard/skins

all the skins that i want to use for any of my haptek characters i put in there....

now in the character folder in hal C:/Program Files/Zabaware/Ultra Hal Assistant 5/Characters.... you will see a file(s) with a .psn extension..... if you have not made different .psn files for each character you will only have default.psn..........

open the .psn file in notepad so as to take a peek,, it will say things similar to this

"Angry1","Anim_Angry.hap"
"Angry2","bully.hap"
"Angry3","Anim_Psycho.hap"
"RunProg","happy.hap"
"Snooze","Sleepy.hap"
"Write","mood_happy.hap"
"Learn","anim_considering_state.hap"
"Happy1","Happyn.hap"
"Happy2","anim_coyblinks.hap"
"Sad1","sad.hap"
"Sad2","Broken_Hearted.hap"
"Sad3","brokenheart.hap"
"Sober","anim_coyblinks.hap"
"Surprised1","anim_hands_on_hips.hap"
"Surprised2","wink.hap"
"Normal1","Happy.hap"
"Normal2","Happyn.hap"
"Normal3","Happy2.hap"

now open every file that is listed for the normal's.. 1,2 and 3.. in this example they are Happy.hap, Happyn.hap and Happy2.hap again......
when i open my Happy.hap file it looks like this..

here is my Happy.hap file..... notice I added this string....... /settexture[tex= [data/standard/skins/crystal7.jpg]]

that first forward slash should be a back slash but they will not post in this forum.. all the rest are forward slashes

this is telling the player to load my texture skin called crystal7.jpg from the skin folder we made in the haptek player.... again make sure you add that just as i have here at the top of all the nornal files used, you cannot tell in this message but also make sure there is one carrage return(one blank space) between the title on top the settexture string and the next string below it... also do not change the bottom of the file if you do make sure there are 2 spaces at the bottom... thats it..... just remember again the first forward slash in every string is really a back slash.. the rest are forward..

#Haptek Version= 1.00 Name= Hap_Happy HapType= script FileType= text
##standard

/settexture[tex= [data/standard/skins/crystal7.jpg]]

SetSwitchIntensity [switch= expMouthHappy f0= 0.800503 t= 0.9]

SetSwitchIntensity [switch= expMouthSad f0= 0.000000 t= 0.4]
SetSwitchIntensity [switch= expBrowsSad f0= 0.000000 t= 0.4]

SetSwitchIntensity [switch= expMouthMad f0= 0.000000 t= 0.4]
SetSwitchIntensity [switch= expBrowsMad f0= 0.000000 t= 0.4]

SetSwitchIntensity [switch= expEyesTrust f0= 1.000000 t= 0.4]
SetSwitchIntensity [switch= antiTrust f0= 0.900000 t= 0.4]

SetSwitchIntensity [switch= expEyesDistrust f0= 0.000000 t= 0.4]
SetSwitchIntensity [switch= antiDistrust f0= 0.000000 t= 0.4]
SetSwitchIntensity [switch= blinks f0= 1.000000 t= 0.4]

SetSwitchIntensity [switch= expBrowsCurious f0= 0.310000 t= 0.4]

SetSwitch [switch= ego state= mid]

SetSwitch [switch= agressMaster state= confront]

setswitch [figure= fullbod switch= visemes state= iy]

SetSwitchIntensity [switch= energyHigh f0= 0.200000 t= 0.4]
SetSwitchIntensity [switch= energyLow f0= 0.200000 t= 0.4]
SetSwitchIntensity [switch= talkBob f0= 1.40000 t= 0.4]
SetSwitchIntensity [switch= headEvadeHighE f0= 0.200000 t= 0.4]
SetSwitchIntensity [switch= headEvadeLowE f0= 0.200000 t= 0.4]
SetSwitchIntensity [switch= HighEnergyNoise f0= 0.200000 t= 0.4]
SetSwitchIntensity [switch= LowEnergyNoise f0= 0.200000 t= 0.4]
SetSwitchIntensity [switch= browTalk f0= 0.700000 t= 0.5]
SetSwitchIntensity [switch= visemes f0= 1.280000 t= 0.4]

setmood [action= [sw= GestureMaster m= sleep]]
setswitch [switch= arm_swing state= a ]
setmood [action= [sw= GestureMaster m= awake]



I hope this helps

Jim

---------------------------------------------------------------------
I can't is the seed that never grows!

---------------------------------------------------------------------
Edited by - crunch on 12/20/2004 00:22:56
crunch
Average Member


If you can't get things to work based on these instructions then we still need someone else to help out with this stuff!
Rich_A
 

Dreadstar

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Anyone have any tricks for loading textures?
« Reply #3 on: January 10, 2005, 03:01:43 am »
Yes I have been trying to get that to work for days I am at my wits end! I also read this post http://www.zabaware.com/forum/topic.asp?TOPIC_ID=996 on Hal commands  
quote:
Ultra Hal Assistant 5.0 has several "Hal Commands" that can be passed to it through the Script_Load function, through the GetResponse function, through DDE, and through command line arguments.
I have no real idea what he is talking about! I have loaded textures into the Haptek player through the Command console, but how do you transfer these commands to Hal? Thanks again! Rich, also I have played with those textures in photoshop and changed a few things (wink). Would you like me to E-Mail them to you?           Dread-Star
"Imagination is greater than knowledge" Albert Einstein

Dreadstar

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Anyone have any tricks for loading textures?
« Reply #4 on: January 11, 2005, 02:18:13 am »
Thank You Ken,Rich and Art

After a week of trying, your files Ken, that I downloaded worked. This is after I deleted then reinstalled Hal. And also ART, RICH and Everyone else THANK YOU for all the HELP!!![8D]

Dread-Star[8D]
« Last Edit: January 11, 2005, 02:55:12 am by Dreadstar »
"Imagination is greater than knowledge" Albert Einstein

aitorgom

  • Newbie
  • *
  • Posts: 13
    • View Profile
Anyone have any tricks for loading textures?
« Reply #5 on: January 27, 2005, 03:10:18 am »
Hello everybody!
I need to someone help me! It is very important and urgent.
Here my question: I have the haptek full body character (female). OK. Now, I want to change de clothes of the character...I want to paint the face with makeup...Can I change the face with another one??

Help me please, I would be very pleased.

My email is: agomez@ikerlan.es   OR      aitorgom@euskalnet.net
 

Arakus

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Anyone have any tricks for loading textures?
« Reply #6 on: April 13, 2005, 12:24:11 am »
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.
« Last Edit: April 13, 2005, 06:29:47 am by Arakus »
I took an IQ test and the results were negative.

Arakus

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Anyone have any tricks for loading textures?
« Reply #7 on: April 13, 2005, 12:32:28 am »
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
I took an IQ test and the results were negative.

Holllywood

  • Sr. Member
  • ****
  • Posts: 357
    • View Profile
Anyone have any tricks for loading textures?
« Reply #8 on: April 13, 2005, 08:38:10 am »
I sure could use some help with this too.
I've trying to load the Crystal.jpg's that Crunch so generously put up for us to Dload. I've loaded the Fullbody Emotions,put everything in all the folders that they belong, following Crunch's thread line by line word by word. I can't win!

  Can anyone Help?
Hollywood

markofkane

  • Hero Member
  • *****
  • Posts: 5275
  • Crazy Man
    • View Profile
    • http://www.soundspectrum.com
Anyone have any tricks for loading textures?
« Reply #9 on: May 08, 2005, 10:13:24 pm »
You lost me here:

"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."

I tried all the other steps, did not work.
Mark: I'll think about it
Laura: Don't think about it too long or I'll throw you out on your ***king a**.
"Political correctness is censorship"

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3853
    • View Profile
Anyone have any tricks for loading textures?
« Reply #10 on: May 09, 2005, 05:18:03 am »
Mark,

It should have read UltraHal5\Defbrain
It is a subdirectory under UltraHal.

Download the Casual.hap and Casual.brn files
plus the rest. Insert the script file using
copy/paste from Notepad or similar.

In the world of AI it's the thought that counts!

- Art -

Arakus

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Anyone have any tricks for loading textures?
« Reply #11 on: May 13, 2005, 12:03:57 am »
Thanks Art,
I've been working on scripting and obtaining Crunch's Textures and had forgotten all about my posts in this section. Glad there are helpful people like you here.
I took an IQ test and the results were negative.

sofort99

  • Newbie
  • *
  • Posts: 39
    • View Profile
Anyone have any tricks for loading textures?
« Reply #12 on: July 22, 2005, 06:04:47 pm »
You could just edit vonsmith's "'RESPOND: HAL "MAKES A FACE" AT USER'S REQUEST" to change her clothes instead. A lot of the framework would already be done for you. You would just be setting a texture with it instead of loading a hap file.

You would need to change the detector to test for "change you clothes" instead of "make a face."

Change "'MAKE A FACE OR NOT:" to "'CHANGE CLOTHES OR NOT" so you wouldn't get %100 compliance just to make it interesting. She might tell you it is too cold to wear her bikini. :) You might also weigh certain "outfits" to her emotional state, with the chance of her wearing some greater as her happyness increases.

Add a bit to decide what to change to.

And then edit change response to make it appropriate.

I's a shame I can't program well enough to do it.