Haptek for Pandorabots

  • 5 Replies
  • 7032 Views
*

KnyteTrypper

  • Electric Dreamer
  • ****
  • 102
  • Onward thru the fog!
    • AI Nexus
Haptek for Pandorabots
« on: July 01, 2005, 02:19:23 am »
I've noticed that the Clone3D Forum has vanished, and with it the Haptek for Pandorabots scripts written by Mark Chavez. While the scripts are still available at AI Nexus Forum, I thought it wouldn't hurt to repost them here, as well.

These two scripts will add a Haptek avatar to a Pandorabot. Both scripts must be uploaded to Pandorabots for this to work. However, as Pandorabots provides no webspace for anything other than AIML or HTML files, the Haptek player.js, your .htr, and any other graphics files you use must be uploaded elsewhere and remote-linked to the Pandorabots page.

The MAINPAGE contains the code for the Haptek avatar, and an i-frame to the bot's chat frame:
Code

    <html>
    <head>
    <title>Haptekmain</title>
    </head>
    <body>
    <script language=JavaScript src="http://www.yourdomain.com/js/HapPlayer411.js"></script> Be sure to incllude this file!

    <script language="JavaScript">
    function Startup() {
    UseFile("http://www.yourdomain.com/data/yourcharacter.haptar","A");
    }
    VFBox("256","256", "none");
    AddToInitQueue("Startup();");
    </script>

    <iframe width="450" height="310" name="input" src="!TALKREF!&skin=test" frameborder="0"></iframe>
    </body>
    </html>

The TEXT page is the working Pandorabots interface. This version was written by myself to incorporate the AIML-embedded HTML described by Dr. Wallace in Pandorabots Embrace and Extend which allows the bot interface to display a portion of the conversation history, as well as the current input and reply:
Code

    <html>
    <head>
    <title>text page</title>
    <script>
    <!--
    function sf() {document.f.message.focus();}
    // -->
    </script>
    </head>

    <body onload="sf()" bgcolor="#FFFFFF">
    <font face="arial" size="3" color="000000">
    <script language="javascript">
    var elizaresponse= "<template context="tts"><response index="1"/></template>";

    var hapA= "\\q2[s0=[";
    var hapB= "]]";
    function nadiaTalk(){
    parent.SendText(hapA+elizaresponse+hapB);
    }
    nadiaTalk();
    </script>

    <center>
    <form method="POST" name="f">!CUSTID!
    <i><b>Tell <template><bot name="name"/></template>:</b></i>
    <input autocomplete="off" type="TEXT" name="message" maxlength="120" size="30"><input type="submit" value="enter">
    </form></center>
    <P>
    <center><font face="arial" size="2" color="#000000">

    <template>
    <think>
    <set name="_history_1"><input index="1"/></set>
    <set name="_history_2"><input index="2"/></set>
    <set name="_history_3"><input index="3"/></set>
    <set name="_history_4"><input index="4"/></set>
    </think>
    <condition name="_history_1" value="*">
    You: <input index="1"/><br/>
    <bot name="name"/>: <that index="1"/><br/>
    <br/>
    </condition>
    <condition name="_history_2" value="*">
    You: <input index="2"/><br/>
    <bot name="name"/>: <that index="2"/><br/>
    <br/>
    </condition>
    <condition name="_history_3" value="*">
    You: <input index="3"/><br/>
    <bot name="name"/>: <that index="3"/><br/>
    <br/>
    </condition>
    <condition name="_history_4" value="*">
    You: <input index="4"/><br/>
    <bot name="name"/>: <that index="4"/><br/>
    <br/>
    </condition>
    </template>
    </font>
    </center>
    </font>

    </body>
    </html>

The MAINPAGE code, of course, can be modified like any regular HTML page to the look you desire, and the TEXT page can be co-ordinated with it, as long as the basics contained here remain intact.

This process can also be adapted to ALICE Program D, and probably, with a bit of tinkering, to any bot which has an absolute URL for the text page.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Haptek for Pandorabots
« Reply #1 on: July 01, 2005, 04:46:42 am »
Thanks KnyteTrypper, weird about Clone3D...that was a good site too.  Maybe he's re-doing it.

Cheers.

*

KnyteTrypper

  • Electric Dreamer
  • ****
  • 102
  • Onward thru the fog!
    • AI Nexus
Re: Haptek for Pandorabots
« Reply #2 on: July 01, 2005, 07:53:19 am »
As far as I know, only the forum is down at Clone3D. It was really just a place to post his Haptek for Pandorabots scripts. I and a couple of other folks had posted links to our bots there, too, but it was otherwise untended, and had become a focal point for some singularly bizarre links and spamming. So Mr. Chavez may have just gotten disgusted with that stuff. I know I would have, lol. I know he's recently changed jobs and moved to Japan, so getting rid of what was there might have been all he's currently had time to do.

*

Maviarab

  • Trusty Member
  • **********
  • Millennium Man
  • *
  • 1231
  • What are you doing Dave?
    • The Celluloid Sage
Re: Haptek for Pandorabots
« Reply #3 on: July 01, 2005, 08:03:57 pm »
Thanks for that Knyte, much appreciated. This is the kind of thing we were wanting to get going in this forum, not just specialise in one area. Everything that can help ppl within AI is useful.

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6860
  • Mostly Harmless
Re: Haptek for Pandorabots
« Reply #4 on: July 02, 2005, 03:40:52 pm »
That sounds bizarrly interesting Knyte, Japan hey, maybe we'll see a lot more from him soon then, I hope so.

*

KnyteTrypper

  • Electric Dreamer
  • ****
  • 102
  • Onward thru the fog!
    • AI Nexus
New Link
« Reply #5 on: July 23, 2005, 03:39:18 am »
Mr. Mood of Clone3D has posted a new link for his Haptek for Pandorabots scripts.

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

333 Guests, 0 Users

Most Online Today: 461. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles