Friday 27 May 2016

Chat-Robots ("chat-bots")

Deutsch:

(see English below)



1. Chat-Bots (Chat-Roboter)

In Opensim und Simonastick kann man zusätzlich "Roboter" einbauen,
mit denen man sich unterhalten kann ("Chat-Bots")
.


A
) voll-automatischer Chat-Bot

http://forums.osgrid.org/viewtopic.php?f=5&t=138

Dieser Chat-Bot ist sehr leicht zu installieren und funktioniert sofort.

Das Programmier-Script muss man vom Link oben herunterladen. 

1. Öffne dein "Inventar" ("inventory"), klicke auf "Scripts" und dann auf "New Script".
Kopiere den Text aus dem Script in dem Link oben in das neue Script hinein und speichere es ab.

2. Klicke mit der rechten Maustaste in die Landschaft.
Wähle "Build". 
Klicke erneut in die Landschaft.
Es entsteht nun ein Quader oder eine Kugel.
Dieses Objekt nennt man "Prim" (primitives Objekt).


3. Füge das Programmier-Script in den "Content" von dem "Prim"
(Man zieht das Script aus dem "Inventory" auf das Prim).


 4. Klicke auf den "local Chat" unten links.
Gib einen Text ein, z. B. "Hi!".
Der Chat-Bot wird nun im Chat antworten.
 
Zunächst sind alle Fragen und Antworten nur auf Englisch.
Will man deutsche Fragen und Antworten hinzufügen,
muss man sie entsprechend dem englischen Muster in das Script von Hand eintragen.
 


B) selbstgemachter Chat-Bot mit "Scratch4Opensim"

Du hast mit dem Programm "Scratch4Opensim ein Programmier-Script für den Chat-Bot erstellt (s. Blog-Eintrag).

Gehe nun die folgenden Schritte durch:
 
Den Programmier-Code in Opensim /Simonastick importieren (8 Schritte):
1. Öffne Opensim / Simonastick.
2. Erstelle ein "Prim".
Klicke mit der rechten Maustaste auf das "Prim".

Klicke auf "edit".
Es öffnet sich das Bearbeitungs-Fenster für das "Prim".
Klicke auf "Content".
3. Klicke auf "New Script"
4. Doppel-Klicke auf das "New Script", das gerade erschienen ist.
5. Es öffnet sich das Script in einem Fenster.
Lösche den gesamten Text in dem Script.
6. Klicke mit der rechten Maustaste in das Script und wähle "einfügen".
Der Text des Scriptes, den du vorher kopiert hattest, wird nun eingefügt.
7. Klicke auf "save" und schließe das Fenster.
8. Klicke auf "local chat". 


Gib den Text in die leere Zeile des Chatfensters ein, den du als erstes in dem Programmiersript einprogrammiert hast.
Der Chat-Bot sollte nun mit dem von dir programmierten Antwortsatz antworten.

Ein fertiges Beispielscript für einen Chat-Bot kannst du hier herunterladen und in ein Prim einfügen.



                

C) Einen nicht-spielbaren Charakter (NPC) in einen Chat-bot verwandeln

1. Erstelle einen nicht-spielbaren Charakter (NPC) mit "Blender" oder "Makehuman"
(
http://www.makehuman.org/download.php; "NightlyBuild"-Version).

Exportiere den Charakter als "Collada"-Datei (die Datei-Endung lautet: .dae).

Importiere den Charakter als "Mesh" in Opensim / Simonastick
(im "Singularity-Viewer" oben links klicke auf "file"
und dann auf "import Mesh" [s.o. die Beschreibung zu "Blender objects".])


2. Der NPC ist nun in deinem Inventory.
Ziehe ihn in deine Welt hinein.

3. Rechts-klicke auf den NPC, klicke auf "edit" und "content".

Erstelle ein neues "Script" und kopiere den Programmiertext deines Chat-Bot-Scripts,
das du vorher erstellt hattest, hinein.
Klicke auf "save" und schließe das Script-Fenster.



Du kannst dich jetzt mit dem nicht-spielbaren Charakter unterhalten.
Er wird die Antworten geben, die du in dem Script vorher einprogrammiert hattest. 



Ein paar einfache Beispiele kannst du unten herunterladen. 
Sie sind auf Englisch und beantworten folgende Aussagen bzw. Fragen:

Hi!
Hello!
What's your name?
How are you?
Where do you live?
Where do you work?
Who do you know?
What do you like?
Why do you like it?
Thanks!
Bye!


Die Chatbots sind für die Umgebung "New Victoria for Educators" gebaut,
die du im Internet als "oar"-Datei herunterladen und mit Simona Stick installieren kannst.

(Dies ist eher für Fortgeschrittene gedacht.
Die grundsätzliche Gebrauchsanweisung findest du hier.

Die Chat-Bots funktionieren auch in allen anderen Umgebungen.)



Die Chatbots können Weg-Beschreibungen geben
für die Straßen von "New Victoria",
mit den folgenden Fragen:


Where is the police station?
Where is the hospital?
Where is the train station?
Where is the Whatever Burger?
Where is Georgio's Fancy Pastries?
Where is the Blue Birch Shopping Center?
Where is Maxwell Public School?

Where is the Science Institute?

(Das Science Institute ist einfach ein leeres Haus,
das von mir so genannt wurde.)



Startpunkte sind dabei die folgenden (der zu befragende Chat-Bot steht in Klammern):    

- from Blue Birch Shopping Center to Georgio’s Fancy Pastries:
(Diane Lee)

- from school
to hospital:
(Fred Hanson)

- from hospital
to police station:
(Dr. Susan Baker)

- from the Whatever Burger
to Blue Birch Shopping Center:
(Stephanie Cook)

- from Georgio’s Fancy Pastries
to Maxwell Public School:
(Jack Sandman)

- from Science Institute to the Whatever Burger:
(Dr. Hueltner)
 

- from police station to Science Institute:
(Police chief Geral Voss)



Die Frage-Antwort-Programmier-Scripts wurden mit Scratch4opensim geschrieben
(s. Artikel im Blog).


Bei Simona Stick muss man die Chatbots im "Singularity Viewer"
unten links mit der "Chat"-Funktion (Sprechblasen-Symbol) ansprechen.
 

Man tippt den Text in das sich öffnende Fenster ein.
Die Chatbots antworten mit geschriebenem Text.

(Theoretisch antworten sie auf manche Aussagen, z. B. "Hello!" auch mit einer Sound-Datei.
Dieses Script funktioniert jedoch nicht immer.

Die Sound-Dateien sind in den Chat-Bots enthalten.)

 

Du lädst die Chat-Bots bei Simona Stick in der "OpenSim"-Programm-Konsole,
die du beim Start gestartet hast,
in "Simona Stick" als "iar"-Datei hoch.


Die Chat-Bots-Datei kannst du unten herunterladen.

Lege sie in den folgenden Ordner in deinem Simonastick-Programm:

diva-r25084\bin  

Dann, schreibe den folgenden Befehl in die OpenSim-Konsole und drücke auf die "Enter"-Taste:

load iar Simona Stick Objects 123 people_small_file_27_01_2017.iar


Die Datei wird nun in den Ordner "Objects"
in deinem "inventory" im "Singularity-Viewer" hochgeladen.
Dies dauert ein paar Minuten.


Anschließend findest du im Ordner "Objects" die verschiedenen Chat-Bots.
Klicke auf einen von ihnen
und ziehe ihn in die Landschaft im "Singularity Viewer".

Dort baut er sich dann von alleine auf und kann sofort verwendet werden.
 



Lade die Chatbots hier herunter. (update: 19.02.2017)

-------------------------------------------------------------------------------------------

 

Englisch:

 

Chat-Bots

 

 In Opensim / Simonastick, you can create robots that you can talk to ("Chat-bots")

A) fully-automatic chatbot:

http://forums.osgrid.org/viewtopic.php?f=5&t=138

Very simple chat-bot:
Download the script from the link above.
Build a prim, put the script into the "content" (or simply drag the script onto the prim) and start talking to the prim through the "local chat".

For more sentences, you must enter additional prompts and replies into the script by hand.


B) Self-made chat-bot using "Scratch4opensim" (see post):

Import your script into Simonastick / Opensim (8 steps):

1. Open Simonastick / Opensim.
Build a prim.
2. Open the "content" of the prim in the "edit" area.
3. Click on "New Script".
4. Double-click that script.
5. Delete all the text in the script.
6. Paste your copied programming code into that script.
7. Click "save" and close the "edit" window.
8. Open "local chat" and type in your phrase / question.
The chat-bot should reply with the sentence you programmed it with.

An example can be downloaded here.

                


CTurn a non-playing character (NPC) into a chat-bot

1. Create a non-playing character (NPC) either through a "Blender object" (see post on that topic),
or through the program "Makehuman", especially the "NightlyBuild" version:

http://www.makehuman.org/download.php

(Simply install the program "Makehuman",
build a human character,
and export it as a "Collada" (.dae) file.
Import that file into Simonastick / Opensim as "Mesh" [see post on "Blender objects"].)

2. Drag the NPC from your inventory into your world.
3. Paste the chat-bot script into the "content" of your Blender character.
Check its "content" tab in its "edit" section (right mouse-click).
The script should be in the content.


You can now talk to the character.
It will give the replies you have programmed in your script before.




You can download some examples below.The question-answer-scripts were written using Scratch4opensim
(see post).


The chat-bots give replies to the following questions:


Hi!
Hello!
What's your name?
How are you?
Where do you live?
Where do you work?
Who do you know?
What do you like?
Why do you like it?
Thanks!
Bye!


They are made for the environment "New Victoria for Educators",
which you can download as an "oar"-file online and install it in Simona Stick.

(However, this is rather for advanced users.
You can find the basic instructions here.
The chat-bots also work in any other environment.)



The chat-bots can also give directions in the streets of  "New Victoria",
replying to the following questions:


Where is the police station?
Where is the hospital?
Where is the train station?
Where is the Whatever Burger?
Where is Georgio's Fancy Pastries?
Where is the Blue Birch Shopping Center?
Where is Maxwell Public School?

Where is the Science Institute?

(The "Science Institute" simply is an empty building, randomly named that way by me.)



Starting pints in "New Victoria" are the following
(the Chat-Bot to be asked the question is in brackets):
 
 


- from Blue Birch Shopping Center to Georgio’s Fancy Pastries:
(Diane Lee)

- from school
to hospital:
(Fred Hanson)

- from hospital
to police station:
(Dr. Susan Baker)

- from the Whatever Burger
to Blue Birch Shopping Center:
(Stephanie Cook)

- from Georgio’s Fancy Pastries
to Maxwell Public School:
(Jack Sandman)

- from Science Institute to the Whatever Burger:
(Dr. Hueltner)
 

- from police station to Science Institute:
(Police chief Geral Voss)



Talk to the chat-bots using the "chat"-function in the "Singularity Viewer" at the bottom left
(click on speech-bubble symbol).
 

Type in the question in the opening window.

The chat-bots will reply in written text.

In theory they also reply to certain questions,
e.g. "Hello!", through a sound file,
but that script does not always work.
The sound file is included in the chat-bot.

 

Upload the chat-bots into Simona Stick using the "openSim" console
which you started at program start.


Therefore, put the chat-bot-file, which you can download below,
into the following folder of your Simonastick:


diva-r25084\bin 


Then, type in the following command and press the "enter"-key


load iar Simona Stick Objects 123 people_19_02_2017.iar


Deutsch:

(see English below)



1. Chat-Bots (Chat-Roboter)

In Opensim und Simonastick kann man zusätzlich "Roboter" einbauen,
mit denen man sich unterhalten kann ("Chat-Bots")
.


A
) voll-automatischer Chat-Bot

http://forums.osgrid.org/viewtopic.php?f=5&t=138

Dieser Chat-Bot ist sehr leicht zu installieren und funktioniert sofort.

Das Programmier-Script muss man vom Link oben herunterladen. 

1. Öffne dein "Inventar" ("inventory"), klicke auf "Scripts" und dann auf "New Script".
Kopiere den Text aus dem Script in dem Link oben in das neue Script hinein und speichere es ab.

2. Klicke mit der rechten Maustaste in die Landschaft.
Wähle "Build". 
Klicke erneut in die Landschaft.
Es entsteht nun ein Quader oder eine Kugel.
Dieses Objekt nennt man "Prim" (primitives Objekt).


3. Füge das Programmier-Script in den "Content" von dem "Prim"
(Man zieht das Script aus dem "Inventory" auf das Prim).


 4. Klicke auf den "local Chat" unten links.
Gib einen Text ein, z. B. "Hi!".
Der Chat-Bot wird nun im Chat antworten.
 
Zunächst sind alle Fragen und Antworten nur auf Englisch.
Will man deutsche Fragen und Antworten hinzufügen,
muss man sie entsprechend dem englischen Muster in das Script von Hand eintragen.
 


B) selbstgemachter Chat-Bot mit "Scratch4Opensim"

Du hast mit dem Programm "Scratch4Opensim ein Programmier-Script für den Chat-Bot erstellt (s. Blog-Eintrag).

Gehe nun die folgenden Schritte durch:

Den Programmier-Code in Opensim /Simonastick importieren (8 Schritte):
1. Öffne Opensim / Simonastick.
2. Erstelle ein "Prim".
Klicke mit der rechten Maustaste auf das "Prim".

Klicke auf "edit".
Es öffnet sich das Bearbeitungs-Fenster für das "Prim".
Klicke auf "Content".
3. Klicke auf "New Script"
4. Doppel-Klicke auf das "New Script", das gerade erschienen ist.
5. Es öffnet sich das Script in einem Fenster.
Lösche den gesamten Text in dem Script.
6. Klicke mit der rechten Maustaste in das Script und wähle "einfügen".
Der Text des Scriptes, den du vorher kopiert hattest, wird nun eingefügt.
7. Klicke auf "save" und schließe das Fenster.
8. Klicke auf "local chat". 


Gib den Text in die leere Zeile des Chatfensters ein, den du als erstes in dem Programmiersript einprogrammiert hast.
Der Chat-Bot sollte nun mit dem von dir programmierten Antwortsatz antworten.

Ein fertiges Beispielscript für einen Chat-Bot kannst du hier herunterladen und in ein Prim einfügen.



                

C) Einen nicht-spielbaren Charakter (NPC) in einen Chat-bot verwandeln

1. Erstelle einen nicht-spielbaren Charakter (NPC) mit "Blender" oder "Makehuman"
(
http://www.makehuman.org/download.php; "NightlyBuild"-Version).

Exportiere den Charakter als "Collada"-Datei (die Datei-Endung lautet: .dae).

Importiere den Charakter als "Mesh" in Opensim / Simonastick
(im "Singularity-Viewer" oben links klicke auf "file"
und dann auf "import Mesh" [s.o. die Beschreibung zu "Blender objects".])


2. Der NPC ist nun in deinem Inventory.
Ziehe ihn in deine Welt hinein.

3. Rechts-klicke auf den NPC, klicke auf "edit" und "content".

Erstelle ein neues "Script" und kopiere den Programmiertext deines Chat-Bot-Scripts,
das du vorher erstellt hattest, hinein.
Klicke auf "save" und schließe das Script-Fenster.



Du kannst dich jetzt mit dem nicht-spielbaren Charakter unterhalten.
Er wird die Antworten geben, die du in dem Script vorher einprogrammiert hattest. 



Ein paar einfache Beispiele kannst du unten herunterladen. 
Sie sind auf Englisch und beantworten folgende Aussagen bzw. Fragen:

Hi!
Hello!
What's your name?
How are you?
Where do you live?
Where do you work?
Who do you know?
What do you like?
Why do you like it?
Thanks!
Bye!


Die Chatbots sind für die Umgebung "New Victoria for Educators" gebaut,
die du im Internet als "oar"-Datei herunterladen und mit Simona Stick installieren kannst.

(Dies ist eher für Fortgeschrittene gedacht.
Die grundsätzliche Gebrauchsanweisung findest du hier.

Die Chat-Bots funktionieren auch in allen anderen Umgebungen.)



Die Chatbots können Weg-Beschreibungen geben
für die Straßen von "New Victoria",
mit den folgenden Fragen:


Where is the police station?
Where is the hospital?
Where is the train station?
Where is the Whatever Burger?
Where is Georgio's Fancy Pastries?
Where is the Blue Birch Shopping Center?
Where is Maxwell Public School?

Where is the Science Institute?

(Das Science Institute ist einfach ein leeres Haus,
das von mir so genannt wurde.)



Startpunkte sind dabei die folgenden (der zu befragende Chat-Bot steht in Klammern):    

- from Blue Birch Shopping Center to Georgio’s Fancy Pastries:
(Diane Lee)

- from school
to hospital:
(Fred Hanson)

- from hospital
to police station:
(Dr. Susan Baker)

- from the Whatever Burger
to Blue Birch Shopping Center:
(Stephanie Cook)

- from Georgio’s Fancy Pastries
to Maxwell Public School:
(Jack Sandman)

- from Science Institute to the Whatever Burger:
(Dr. Hueltner)
 

- from police station to Science Institute:
(Police chief Geral Voss)



Die Frage-Antwort-Programmier-Scripts wurden mit Scratch4opensim geschrieben
(s. Artikel im Blog).


Bei Simona Stick muss man die Chatbots im "Singularity Viewer"
unten links mit der "Chat"-Funktion (Sprechblasen-Symbol) ansprechen.
 

Man tippt den Text in das sich öffnende Fenster ein.
Die Chatbots antworten mit geschriebenem Text.

(Theoretisch antworten sie auf manche Aussagen, z. B. "Hello!" auch mit einer Sound-Datei.
Dieses Script funktioniert jedoch nicht immer.

Die Sound-Dateien sind in den Chat-Bots enthalten.)

 

Du lädst die Chat-Bots bei Simona Stick in der "OpenSim"-Programm-Konsole,
die du beim Start gestartet hast,
in "Simona Stick" als "iar"-Datei hoch.


Die Chat-Bots-Datei kannst du unten herunterladen.

Lege sie in den folgenden Ordner in deinem Simonastick-Programm:

diva-r25084\bin  

Dann, schreibe den folgenden Befehl in die OpenSim-Konsole und drücke auf die "Enter"-Taste:

load iar Simona Stick Objects 123 people_small_file_27_01_2017.iar


Die Datei wird nun in den Ordner "Objects"
in deinem "inventory" im "Singularity-Viewer" hochgeladen.
Dies dauert ein paar Minuten.


Anschließend findest du im Ordner "Objects" die verschiedenen Chat-Bots.
Klicke auf einen von ihnen
und ziehe ihn in die Landschaft im "Singularity Viewer".

Dort baut er sich dann von alleine auf und kann sofort verwendet werden.
 



Lade die Chatbots hier herunter. (update: 19.02.2017)

-------------------------------------------------------------------------------------------

 

English:

 

Chat-Bots

 

 In Opensim / Simonastick, you can create robots that you can talk to ("Chat-bots")

A) fully-automatic chatbot:

http://forums.osgrid.org/viewtopic.php?f=5&t=138

Very simple chat-bot:
Download the script from the link above.
Build a prim, put the script into the "content" (or simply drag the script onto the prim) and start talking to the prim through the "local chat".

For more sentences, you must enter additional prompts and replies into the script by hand.


B) Self-made chat-bot using "Scratch4opensim" (see post):

Import your script into Simonastick / Opensim (8 steps):

1. Open Simonastick / Opensim.
Build a prim.
2. Open the "content" of the prim in the "edit" area.
3. Click on "New Script".
4. Double-click that script.
5. Delete all the text in the script.
6. Paste your copied programming code into that script.
7. Click "save" and close the "edit" window.
8. Open "local chat" and type in your phrase / question.
The chat-bot should reply with the sentence you programmed it with.

An example can be downloaded here.

                


CTurn a non-playing character (NPC) into a chat-bot

1. Create a non-playing character (NPC) either through a "Blender object" (see post on that topic),
or through the program "Makehuman", especially the "NightlyBuild" version:

http://www.makehuman.org/download.php

(Simply install the program "Makehuman",
build a human character,
and export it as a "Collada" (.dae) file.
Import that file into Simonastick / Opensim as "Mesh" [see post on "Blender objects"].)

2. Drag the NPC from your inventory into your world.
3. Paste the chat-bot script into the "content" of your Blender character.
Check its "content" tab in its "edit" section (right mouse-click).
The script should be in the content.


You can now talk to the character.
It will give the replies you have programmed in your script before.




You can download some examples below.The question-answer-scripts were written using Scratch4opensim
(see post).


The chat-bots give replies to the following questions:


Hi!
Hello!
What's your name?
How are you?
Where do you live?
Where do you work?
Who do you know?
What do you like?
Why do you like it?
Thanks!
Bye!


They are made for the environment "New Victoria for Educators",
which you can download as an "oar"-file online and install it in Simona Stick.

(However, this is rather for advanced users.
You can find the basic instructions here.
The chat-bots also work in any other environment.)



The chat-bots can also give directions in the streets of  "New Victoria",
replying to the following questions:


Where is the police station?
Where is the hospital?
Where is the train station?
Where is the Whatever Burger?
Where is Georgio's Fancy Pastries?
Where is the Blue Birch Shopping Center?
Where is Maxwell Public School?

Where is the Science Institute?

(The "Science Institute" simply is an empty building, randomly named that way by me.)



Starting pints in "New Victoria" are the following
(the Chat-Bot to be asked the question is in brackets):
 
 


- from Blue Birch Shopping Center to Georgio’s Fancy Pastries:
(Diane Lee)

- from school
to hospital:
(Fred Hanson)

- from hospital
to police station:
(Dr. Susan Baker)

- from the Whatever Burger
to Blue Birch Shopping Center:
(Stephanie Cook)

- from Georgio’s Fancy Pastries
to Maxwell Public School:
(Jack Sandman)

- from Science Institute to the Whatever Burger:
(Dr. Hueltner)
 

- from police station to Science Institute:
(Police chief Geral Voss)



Talk to the chat-bots using the "chat"-function in the "Singularity Viewer" at the bottom left
(click on speech-bubble symbol).
 

Type in the question in the opening window.

The chat-bots will reply in written text.

In theory they also reply to certain questions,
e.g. "Hello!", through a sound file,
but that script does not always work.
The sound file is included in the chat-bot.

 

Upload the chat-bots into Simona Stick using the "openSim" console
which you started at program start.


Therefore, put the chat-bot-file, which you can download below,
into the following folder of your Simonastick:


diva-r25084\bin 


Then, type in the following command and press the "enter"-key:


load iar Simona Stick Objects 123 people_19_02_2017.iar



The file is now being uploaded into your "Objects" folder
in your "inventory" in the "Singularity-Viewer".
This will take a few minutes.


Afterwards you are going to find the chat-bots in the folder "Objects".
Click on one of the chat-bots and drag it into the "Singularity Viewer".

There it will be created and can
immediately be used.


Download the chat-bots here   
(update: 02/19/2017)