Ai Dreams Forum

Chatbots => Avatar Talk => Haptek => Topic started by: squarebear on July 22, 2009, 08:37:09 am

Title: Terminator head htr file
Post by: squarebear on July 22, 2009, 08:37:09 am
I've just downloaded the extremely impressive Terminator cyborg head from the files section but it is wearing a balck T-shirt saying "ninja" rather than then robot body shown in the picture.

I notice there is a robot shoulders picture in the zip file but I don't know how to apply it.

Thanks for any help.
Title: Re: Terminator head htr file
Post by: Freddy on July 22, 2009, 10:25:14 am
Hi Square Bear,

Assuming you have the Haptek player; load up the terminator head.  Then find that shoulders file and drag and drop it onto the terminator.  That will at least show you if it's the right one.  I'll show you how to do it with code later if you want.  Thinking of using this for a new bot ?
Title: Re: Terminator head htr file
Post by: squarebear on July 22, 2009, 01:30:16 pm
Dragging and dropping the shoulder picture mapped it on to the bot's head rather than its shoulders.
Yes, I am planning to make a Terminator bot.
What happened to the KaracterKing site? It doesn't seem to be their any more  :'(

Thanks Freddy
Title: Re: Terminator head htr file
Post by: Freddy on July 22, 2009, 07:11:46 pm
Jack Gephart's (KaracterKing) hosting people folded or something like that.  Now he posts things here in the 'Files' area.  If you want some help with the Terminator model I suggest you send Jack a private message here, he's usually pleased to help people.

I forgot it would load into the head, sorry - you need a hap file specially made to load it.  Jack should have some handy.

Best of luck.  :)

Let me know if I can be of any help.
Title: Re: Terminator head htr file
Post by: jackgephart on July 23, 2009, 12:35:37 am
Well Squarebear, I'm glad you like him. Here is a post that I sent another person to show them how to use the skin for the shirt. You need to go into your Haptek/player/data/standard folder which is in your C: drive in program files, and make a folder named skins. You put the TerminatorBody.jpg into that folder then you can use the text file to put the body over the nija shirt.

I hope this was helpful, and I'm glad you like the head.
Title: Re: Terminator head htr file
Post by: squarebear on July 23, 2009, 08:40:22 am
Thanks Jack. I'll give that a go.
Yes I am impressed with all of the models I have seen you make so far.

*edit* I've put the TermintorBody.jpg into the correct directory but am not sure how to use the text file to overlay the jpg on his shoulders. Hope you don't think I'm too dumb  ;D

*edit 2 * Ok. I've figured out that you drag and drop the text file onto the player to load the shoulders but is there a way that this can be done automatically, as I can't really expect the people who visit it to do this. Is there anything like a startup file I can use, which would do this for the user?

*edit 3 * I am using this to start the player in the browser:
<script language=JavaScript src="http://www.square-bear.co.uk/simon/HapPlayer411.js"></script><script language="JavaScript">function Startup() { UseFile("http://www.square-bear.co.uk/simon/TerminatorRobot.htr","A"); } VFBox("450","350", "none"); AddToInitQueue("Startup();"); </script>

Could I put the text file anywhere in there to have it start automatically? I've changed the text file so it points at the uploaded version of TerminatorBody.jpg rather than the one on my local machine.

Thanks again for any help.
Title: Re: Terminator head htr file
Post by: Freddy on July 23, 2009, 05:19:09 pm
Try something like this to use Jack's hap file :

{
UseFile("http://www.square-bear.co.uk/simon/TerminatorRobot.htr","A");
UseFile("http://www.square-bear.co.uk/simon/myHapFile.hap","A");
}

I think that would work, been ages since I messed with Haptek coding...
Title: Re: Terminator head htr file
Post by: GT40 on July 23, 2009, 05:35:06 pm

Hi SquareBear! Really glad the King of AIML and the King of PuttyHeads finally met on AI Dreams, the home of The Chatterbot Collection.

I'm always sad and disappointed when thinking that Haptek bots have definitely left KnyteTrypper's site, where only "pure" textbots are now welcome.

Sure Jack and you will make a fantastic Pandorabot. THE problem is the Terminator TTS voice, lol. ;)

Title: Re: Terminator head htr file
Post by: squarebear on July 23, 2009, 06:08:32 pm
Thanks guys. I don't have a .hap file with the text in it just a TerminatorBody.txt file which says:

#Haptek  Version= 1.00 HapType= command FileType= text

\settexture [figure=ninja_shirt tex=[http://www.square-bear.co.uk/simon/TerminatorBody.jpg]]

Using:
{
UseFile("http://www.square-bear.co.uk/simon/TerminatorRobot.htr","A");
UseFile("http://www.square-bear.co.uk/simon/TerminatorBody.txt","A");
}
doesn't work. I get the terminator's head but he still wears the "ninja" black T-shirt. AARGH!!

GT40 - all types of bots are welcome over at Knyte's site. We don't discriminate.
Title: Re: Terminator head htr file
Post by: Freddy on July 23, 2009, 06:40:44 pm
Try renaming TerminatorBody.txt to TerminatorBody.hap and also alter your code so the extension is hap...

If that doesn't work I will have to download it all and mess around with it.
Title: Re: Terminator head htr file
Post by: squarebear on July 23, 2009, 07:11:20 pm
Thanks Freddy. No unfortunately, that didn't work either.

I appreciate any help anyone can give me.
Title: Re: Terminator head htr file
Post by: Freddy on July 23, 2009, 07:23:40 pm
OK my friend, no problem.  I just downloaded it, just give me a while to shake off the rust and I will be back with you.
Title: Re: Terminator head htr file
Post by: squarebear on July 23, 2009, 08:07:15 pm
Thanks Freddy. I appreciate the help and I'm sure the Terminators will spare you when the robots rise against their human creators.  ;D
Title: Re: Terminator head htr file
Post by: Freddy on July 23, 2009, 08:19:40 pm
LOL, yeah I hope so.

What's the URL of where your TerminatorBody.jpg is located please ?
Title: Re: Terminator head htr file
Post by: Freddy on July 23, 2009, 08:32:11 pm
It's okay I found it...

Try this HTML page for starters :

Code
<html>
<head>
<title>Terminator</title>
</head>
<script language=JavaScript src="http://www.square-bear.co.uk/simon/HapPlayer411.js"></script>
<script language="JavaScript">

VFBox("450","350", "none");
function Startup() {
UseFile("http://www.square-bear.co.uk/simon/TerminatorRobot.htr","A");
}

var dl = new Downloader();
dl.AddFile('http://www.square-bear.co.uk/simon/TerminatorBody.jpg', 'A');
dl.FinishedString('\\settexture [figure=ninja_shirt file=[TerminatorBody.jpg]]');

AddToInitQueue("Startup();");
AddToInitQueue('dl.DoIt();');

</script>

<body>
<p>Let's hope this worked...</p>
</body>
</html>

That should get you on track.  I used the Haptek Downloader object thingy to load the texture and then apply it.

There's documentation here : http://www.haptek.com/developers/HaptekGuide4/Programmin/Javascript/javascriptdoc.html#file_downloading

Still forget how to load hap files on the fly though- maybe GT40 can advise on that, but this seems to work for now.
Title: Re: Terminator head htr file
Post by: squarebear on July 23, 2009, 08:40:48 pm
WAHOOO!!!!!

The man's a genius. Yes that works a treat.

Cheers for that Freddy. Now to build Skynet MUAHAHAHA ;D
Title: Re: Terminator head htr file
Post by: Freddy on July 23, 2009, 08:53:03 pm
HAHA yes that would seem like the thing to do   :D
Title: Re: Terminator head htr file
Post by: GT40 on July 23, 2009, 10:05:42 pm

As always, if it works, don't touch anything anymore! ;D

Title: Re: Terminator head htr file
Post by: lightspeed1 on February 14, 2011, 10:22:34 pm
freddy do you still have this terminator that you have done , did you share it or do you want to ? i have been looking for the same thing are you the same freddy in the hal forum? i am lightspeed.
anyway if you don't mind sharing that terminator file i would like to have it. 
Title: Re: Terminator head htr file
Post by: Freddy on February 14, 2011, 10:29:32 pm
Yes it's me from Zabaware, same guy.

I didn't actually make the head, Jack Gephart did.

Is this what you are looking for : http://aidreams.co.uk/forum/index.php?action=tpmod;dl=item119 ?

There's loads of things in the downloads area.
Title: Re: Terminator head htr file
Post by: lightspeed1 on February 15, 2011, 03:29:24 am
thanks freddy but their seems to be a problem when i drag and drop the jpg files they end up all over the body of the full body male i am using , what am i doing wrong? how do i need to use these files?  :-[
Title: Re: Terminator head htr file
Post by: lightspeed1 on February 15, 2011, 03:44:54 am
ok is that it is a head only file and i got the head on ok but how do you do the body jpg? otherwise my mike haed has a white tshirt on.? thanks in advance this time!
Title: Re: Terminator head htr file
Post by: Freddy on February 15, 2011, 12:06:16 pm
I think it is just a head with T-Shirt attached.  You'll need to add textures to the t shirt too.
Title: Re: Terminator head htr file
Post by: squarebear on February 15, 2011, 03:38:37 pm
Yes, you need to follow the instructions on page one of this thread. I used this model and am very pleased with it. Here is a demo video: http://www.youtube.com/watch?v=c2iIuiT3IW8