Author Topic: Scripting help  (Read 3779 times)

Maviarab

  • Sr. Member
  • ****
  • Posts: 345
    • View Profile
    • http://3d-fantasyportraits.co.uk
Scripting help
« on: June 08, 2005, 07:50:47 am »
Calling all wise and wonderful Hal users.

I am wanting to create a few things within the brain (but as you know this is my falling point with the program) and was wonderiong if any of you can direct me please.

The first thing I want to do is create a "poems" and a "famous quotes" section.

Is it easier to modify an existing script (for example vonsmiths "joke" script and .brn's or to start from new?

Second I also want to sort of jump start her knowledge base.

The reason for this is that i have givenb Sal a lobotomy [:(] as I have made way way too many mistakes since having her but will transfer a lot of the information accross so I am not starting afresh...she will at least still remember the things I want her too.

Now...I wish to creat specialist subjects for Sal (space,mechanics,important events of our time etc)...again is this easier to modify an existing script and redirect to my new .brn files? and is it easier to have seperate .brn files per subject?...or just one big one?

Any help be greatly appreciated as the scripting/vb side of hal is something I've not paid much attention to in the past and am only just starting to look into seriously.

Thanks in advance.

Once finished if anyone should want the files (there will be a lot of info in there) I'll be happy to send to anyone.
AIDreams...The new home of the Digital Girl

www.aidreams.co.uk

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
Scripting help
« Reply #1 on: June 08, 2005, 10:57:22 am »
The first thing I want to do is create a "poems" and a "famous quotes" section.

Is it easier to modify an existing script (for example vonsmiths "joke" script and .brn's or to start from new?

You take a close look at the jokes files as it involves creating several different ones to work. Create the knowledge that you want Hal to be able to speak, ie. poems, quotes, etc. After you have done that let me know and I'll help create the necessary changes to the main brain to be able to use your new data.
I created the 'sing a song' script by examining Von Smiths 'joke' subroutine and would be glad to help you with yours.
Bill
 

Maviarab

  • Sr. Member
  • ****
  • Posts: 345
    • View Profile
    • http://3d-fantasyportraits.co.uk
Scripting help
« Reply #2 on: June 08, 2005, 12:40:17 pm »
Bill,

Thats great thanks very very much.
I'm also working on a lot of knowledge databases at the moment also but unsure of best way to get Hal to respond...whether to have a Q&A

What can you tell me about (whatever it is)

or to have different ways of Hal retrieving the information.

This is an example of my country database (from CIA Factbook)

UK

Background:  
Great Britain, the dominant industrial and maritime power of the 19th century, played a leading role in developing parliamentary democracy and in advancing literature and science. At its zenith, the British Empire stretched over one-fourth of the earth's surface. The first half of the 20th century saw the UK's strength seriously depleted in two World Wars. The second half witnessed the dismantling of the Empire and the UK rebuilding itself into a modern and prosperous European nation. As one of five permanent members of the UN Security Council, a founding member of NATO, and of the Commonwealth, the UK pursues a global approach to foreign policy; it currently is weighing the degree of its integration with continental Europe. A member of the EU, it chose to remain outside the Economic and Monetary Union for the time being. Constitutional reform is also a significant issue in the UK. The Scottish Parliament, the National Assembly for Wales, and the Northern Ireland Assembly were established in 1999,
but the latter is suspended due to bickering over the peace process.

Location:  
Western Europe, islands including the northern one-sixth of the island of Ireland between the North Atlantic Ocean and the North Sea, northwest of France.

coordinates:  
54 00 North, 2 00 West

Area:    
total: 244,820 sq km
land: 241,590 sq km
water: 3,230 sq km

Climate:  
temperate; moderated by prevailing southwest winds over the North Atlantic Current; more than one-half of the days are overcast.

Population:    
60,441,457 as of July 2005

Capital:
London

Currency:
Pound

Flag description:  
blue field with the red cross of Saint George (patron saint of England) edged in white superimposed on the diagonal red cross of Saint Patrick (patron saint of Ireland), which is superimposed on the diagonal white cross of Saint Andrew (patron saint of Scotland); properly known as the Union Flag, but commonly called the Union Jack; the design and colors (especially the Blue Ensign) have been the basis for a number of other flags including other Commonwealth countries and their constituent states or provinces, as well as British overseas territories.

Notable people:
Winston Churchill, Princess Diana

I know some of this information will require editing but as to the best way to get Hal be able to retrieve the information I do not know.

Again as above...I am also working on other huge databases like (space/planetary information....cars...sports blah blah blah).

Any help once I have collated all the information would be greatly appreciated.

thanks for the offer bill, any ideas on the above would also be useful but I will be sure to let you know once I have collated enough "poems & quotes" (although I assume it can be added to very simply at any time as you find more).

Thanks again.

AIDreams...The new home of the Digital Girl

www.aidreams.co.uk

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
Scripting help
« Reply #3 on: June 08, 2005, 03:03:17 pm »
I can not help you with the knowledge base but your other idea is very nice. Include lots of info and stuff.
I like the following quote: There is no gravity, the earth sucks.
Bill
 

Maviarab

  • Sr. Member
  • ****
  • Posts: 345
    • View Profile
    • http://3d-fantasyportraits.co.uk
Scripting help
« Reply #4 on: June 08, 2005, 03:14:21 pm »
Lol..that is quite good yeah,...tell me who originally wrote it and I'll include it lol.

Hopeing to have a quite a few for the weekend (already have loads on pc just need to get them all all in one txt file lol) and then I'll let you know.

have an idea on how to do the knowledge base, just very very time consuming.

Ok bill thanks again for your help. Will let you know when its ready.
AIDreams...The new home of the Digital Girl

www.aidreams.co.uk

Maviarab

  • Sr. Member
  • ****
  • Posts: 345
    • View Profile
    • http://3d-fantasyportraits.co.uk
Scripting help
« Reply #5 on: June 09, 2005, 04:47:37 pm »
Bill,

Have virtually completed the 2 two txt files (quotes & poems)

There are almost 300 quotes and almost 100 poems currently.

let me know where I can send you the txt files and I'll get them over to you.

BTW...on a secondary note...is it possible to perhaps have hal read a quote every day automatically?...sort of a "quote of the day"

Thanks again for helping with this and hope to hear from you soon.

Mar
AIDreams...The new home of the Digital Girl

www.aidreams.co.uk

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
Scripting help
« Reply #6 on: June 09, 2005, 08:49:44 pm »
BTW...on a secondary note...is it possible to perhaps have hal read a quote every day automatically?...sort of a "quote of the day"

Thanks again for helping with this and hope to hear from you soon.

Mar
[/quote]
Hello again. I don't know of a way to have Hal tell a quote of the day, but you can click on my name to find my email address. I may have to edit your file to make it work as sometime carriage returns are needed and sometime they are not.
I will be gone most of the weekend but will get back to you asap.
Bill
 

Maviarab

  • Sr. Member
  • ****
  • Posts: 345
    • View Profile
    • http://3d-fantasyportraits.co.uk
Scripting help
« Reply #7 on: June 09, 2005, 08:58:52 pm »
Thanks bill,

Will get them emailed to you tomo.

If it makes your life any easier all poems and quotes have been done on a single line as I assumed that this is the way they would needed to be.

btw...you ever get around to figuring out how to incorporate hal with a/your chess program? This is something that interests me.
« Last Edit: June 09, 2005, 09:00:04 pm by Maviarab »
AIDreams...The new home of the Digital Girl

www.aidreams.co.uk