Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - moreis62

Pages: [1] 2 3 ... 7
1


I want to give you some pointers on diagnosing Script Errors in Hal. If you already know this then I think someone might find this helpfull.


Whenever there is an Error in the Brain script an Error like this is thrown:

...

HalScript Error -2147024894 on line 1565 in column 2;

The file "C:\Program Files (86)\Zabaware\Ultra Hal Assistant 6
\HalScript.DBG" has been saved with the current script being used for
debugging purposes

...


What this Error Message is saying is that if you look into your Hal directory you will find a script called HalScript.DBG. If you open this script and go to the line 1565 then you will find whatever made the Error.

Now the trick is to find the 1,565th line of code. You can open the HalScript.DBG in notepad and then start counting but there are much easier ways.

The easiest way is to download a script editor that has the ability to number the lines. Then all you have to do then is scroll down to the numbered line and find which line of code was giving you problems.

NOTE: If you do find an Error, then in order to correct it you will have to find the plugin or brain script which that line of code belongs to. Which shouldn't be that hard to do. If you try to correct the Error by changing the HalScript.DBG script, then it will be errased the next time you run Hal.

There is a simple script editor that you can download and keep for free called Sc222.exe. It will open the DBG file and show the line numbers also. Of course, you have to select that option from the Menu. Just find 'View' and then select 'Line Numbers'.

You can download this program from the link at the bottom of this post (and also the website)


My advice is to first find the line or lines that seem to be giving you problems and then post that line and some surrounding lines here.
Whether or not we find what is wrong with the plugin at least you can find out what Hal is fussing about.

And no this is not SPAM, cause its totally free. ;)

http://sourceforge.net/projects/scintilla/files/SciTE/2.22/Sc222.exe/download?use_mirror=voxel

http://www.scintilla.org/

Nice work snowman I've just downloaded it, is there some sort of Manual besides the help file showing you how to better use this interface?  I would love to to use it as a tool for the ultra hal assistant as well as helping others up here on this forum.

Thanks in advance

2

Windows 7 64 bit has to directories which causes me to believe some plug-ins will not work can someone list the ones that are not working so we can work on the solution one by one please.

3
Hi Lola , on something i notice different (although mine by default goes into program(x86) is that in my pathway it shows mine as : C:\Program Files (x86)\Zabaware\Ultra Hal Assistant 6\story

yours shows story\story at the end , i don't know why yours is showing it twice on the story folder mine is just one folder and when clicked open shows it as i posted above . is your story folder only one folder or two?
i did download the balboacca program , i uninstalled the earlier one and installed the new one and tried it but it still didn't work .
can you let me know about the story file you have if its one file or two to show that way on your pathway .
the story file i downloaded from the gretta plug ins page site . so its new from their .
i don't think i need any other files then gretta read and balboacca and story file.

P.S. moreis62
i did try what you said and placed balbocca( i copied the programs ) and plced it and the story folder in the regular program folder to , that didn't help it still wouldn't work .



Windows 7 64 bit has to directories which causes me to believe some plug-ins will not work can someone list the ones that are not working so we can work on the solution one by one please.

4
Ultra Hal 7.0 / Re: HAL plugin, Client Side Server
« on: November 20, 2010, 06:15:48 am »
Update For all you Mozilla Firefox users: your plug in directories must be changed to this otherwise you get an error they come from your Internet explorer
If it's not set your default browser.  Only use this if you're Mozilla Firefox is set as your default browser.


Rem Type=Plugin
Rem Name=Auto Wikipedia Knowledge
Rem Author=Gerald L. Blakley A.K.A OnTheCuttingEdge2005 modified by Ismael Ledesma A.K.A moreis62
Rem Host=All

'This sub setups the plug-ins option panel in Hal's options dialog
Sub OptionsPanel()
    lblPlugin(0).Caption = "Just say: please study about the universe or please study about science, you can replace the word Universe or Science with any other word or noun, all information on the word is studied from the website Wikipedia"
    lblPlugin(0).Move 120, 10, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub


Rem PLUGIN: PRE-PROCESS

Set objFirefox = CreateObject("MozillaFirefox.Application")
Set HalXBrain = CreateObject("UltraHalAsst.Brain")
Set FileSys = CreateObject("Scripting.FileSystemObject")


If XDir = "" Then XDir = "C:\Program Files\Zabaware\Ultra Hal Assistant 6\"
   MyFile = "C:\Program Files\Zabaware\Ultra Hal Assistant 6\AutoText.brn"
   If File_Exists = "" Then File_Exists = False
   If FileSys.FileExists(MyFile) = True Then File_Exists = True

   If File_Exists = False Then
      HalXBrain.AppendFile XDir & "AutoText.brn", "Start of Knowledge strings"
   End If

MyInput = HalXBrain.AlphaNumericalOnly(InputString)

If WikiToLookup = "" Then WikiToLookup = HalBrain.SearchPattern(MyInput, "*PLEASE STUDY ABOUT THE *", 2)
If WikiToLookup = "" Then WikiToLookup = HalBrain.SearchPattern(MyInput, "*PLEASE STUDY ABOUT *", 2)
If WikiToLookup = "" Then WikiToLookup = HalBrain.SearchPattern(MyInput, "*DO YOU KNOW ANYTHING ABOUT THE *", 2)
If WikiToLookup = "" Then WikiToLookup = HalBrain.SearchPattern(MyInput, "*DO YOU KNOW ANYTHING ABOUT *", 2)


If WikiToLookup <> "" Then

SourcePage = "http://en.wikipedia.org/wiki/" & WikiToLookup

objFirefox.Navigate("http://en.wikipedia.org/wiki/" & WikiToLookup)

Do Until objFirefox.ReadyState=4 : Loop

myText = objFirefox.Document.Body.innerText

If XDir = "" Then XDir = "C:\Program Files\Zabaware\Ultra Hal Assistant 6\"

HalXBrain.AppendFile XDir & "AutoText.brn", Trim(myText)

UltraHal = " I have looked up the study of " & WikiToLookup & ", Thanks. "

End If

'--------------------------------------------

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile("C:\Program Files\Zabaware\Ultra Hal Assistant 6\AutoText.brn", ReadVariable())
         strText = objTextFile.ReadAll
         objTextFile.Close

'--------------------------------------------

If InStr(1, strText, "   ", vbTextCompare) > 0 Then

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Program Files\Zabaware\Ultra Hal Assistant 6\AutoText.brn", ReadVariable())

Do Until objFile.AtEndOfStream
    strLine = objFile.Readline
    strLine = Trim(strLine)
    If Len(strLine) > 0 Then
        strNewContents = strNewContents & strLine & vbCrLf
    End If
Loop

objFile.Close

Set objFile = objFSO.OpenTextFile("C:\Program Files\Zabaware\Ultra Hal Assistant 6\AutoText.brn", WriteVariable())
objFile.Write strNewContents
objFile.Close

End If

'--------------------------------------------

TextCount = StrCount()

If ClipXDir = "" Then ClipXDir = "C:\Program Files\Zabaware\Ultra Hal Assistant 6\"
For i = 1 To TextCount

If i > 0 Then ClipResX = HalXBrain.ChooseSentenceFromFile(ClipXDir & "AutoText.brn")

ClipResX = HalXBrain.AlphaNumericalOnly(ClipResX)
ClipResX = UCase(ClipResX)
ClipResX = Trim(ClipResX)

MyInputString = HalXBrain.AlphaNumericalOnly(InputString)
MyInputString = UCase(MyInputString)
MyInputString = Trim(MyInputString)

If InStr(1, ClipResX, MyInputString, vbTextCompare) > 0 And Len(ClipResX) > 50 Then
UltraHal = ClipResX
ElseIf Len(ClipResX) < 50 Then
UltraHal = UltraHal
End If

Next

'--------------------------------------------

Rem PLUGIN: FUNCTIONS

Function StrCount()

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile("C:\Program Files\Zabaware\Ultra Hal Assistant 6\AutoText.brn", ReadVariable())
         strText = objTextFile.ReadAll
         objTextFile.Close
         
Do While InStr(1, strText, "  ")
            strText = Replace(strText, "  ", " ")
            Exit Do
         Loop

         aWords = split(strText, ". ")
         StrCount = Ubound(aWords) + 1

End Function

Function ReadVariable()

Const ForReading = 1

ReadVariable = ForReading

End Function

Function WriteVariable()

Const ForWriting = 2

WriteVariable = ForWriting

End Function

5
Remember that windows 7 64 bit has two windows directories "C:\Program Files (x86)" and the "C:\Program Files" make sure you copy all the on both those directories, another thing you can do without the story plug in, is to right click on the ultra hall assistant icon by the clock and select "General options, once opened you'll be in the General window in the window you will see the options four chat window size   and also you will see boxes make sure you click on the box that says Hal should speak clipboard content when something new is copied, remember that each time you right click and copy any text file Hal will read it without any type of special reader you buy.

6
Ultra Hal 7.0 / Re: HAL plugin, Client Side Server
« on: November 19, 2010, 04:27:01 am »
Good work Jerry, I am now running windows seven 64 bit, first I had a hard time getting it to work but I remember that a has two program directories, " program files (x 86)" and the " program files" directories, all I did is copy and paste it too the Zabaware directory's.  And there it goes it worked flawlessly.

7
you would need to call the files to run via a registry script or even a batch file script threreby opening a command window to execute a 16 bit dos command.

as win32's run only under a win32 environment ie:windows

by opening a command window you are opening a 16bit dos command environment: therby in that window you may run 16bit dos commands.

If yo run a batch script "cALL" then you essesntially run the DOS window int the background "with @ECHO OFF" all scripts contained would then be able to be executed. if the dos commands had OWN WINDOWS then the "@ECHO OFF" command cannot be used. or the windows willxecute and HANG in the backgroung waiting for interaction which has been denied...


Think about it

Interesting, I'm really good at creating batch files but you wouldn't have one I can download from you?    I wonder.

8
Good to hear that sybershot  ;D
Good luck, and happy programming.

9
For the new the upcoming versions Hal

As you heard, We have done this in the past With some problems learned, First of all you need a hardware device such as a FireCracker Computer Interface, You can purchase one from Here http://www.x10.com/automation/firecracker.htm For only $39.99
Here is a software for that interface after you will need after purchasing ftp://ftp.x10.com/pub/applications/firecracker/ck18a.exe
The interface sends commands to the link module, which translates the wireless signal into an X10 signal.
Interfacing Hal would being the next up in creating voice commands for ultra Hal, What I use for voice commands is a software I use called E speaking,
Which is Great for controlling lights off and on,  stereos,  T V's, Opening trunk, Starting up your car to warm it up in the winter,  the only thing that is required windows like a laptop for testers, desktops for novelist, or in -car computers running windows.

10
As you heard, We have done this in the past With some problems learned, First of all you need a hardware device such as a FireCracker Computer Interface, You can purchase one from Here http://www.x10.com/automation/firecracker.htm For only $39.99
Here is a software for that interface after you will need after purchasing ftp://ftp.x10.com/pub/applications/firecracker/ck18a.exe
The interface sends commands to the link module, which translates the wireless signal into an X10 signal.
Interfacing Hal would being the next up in creating voice commands for ultra Hal, What I use for voice commands is a software I use called E speaking,
Which is Great for controlling lights off and on,  stereos,  T V's, Opening trunk, Starting up your car to warm it up in the winter,  the only thing that is required windows like a laptop for testers, desktops for novelist, or in -car computers running windows.

11
Ultra Hal 7.0 / UltraHal for Linux
« on: October 11, 2009, 10:56:00 pm »
Install Programs in Linux using Debian!

Click link below!
http://www.youtube.com/watch?v=7BGdPT297Ts





12
Ultra Hal Assistant File Sharing Area / KITT msagent character
« on: April 21, 2007, 11:36:11 pm »
quote:
Originally posted by Knight Rider

Does anybody know where I can get this from?  I have the VOX skin, but no KITT  [:(]



Here you go!

http://us.f13.yahoofs.com/bc/446987c0mbf40788f/bc/Work/VOXskin.zip?bfnrtKGBrbepsZWz



Here is the VOX Skin with KITT ..




13
Ultra Hal Assistant File Sharing Area / Cool Back grounds for Hal.
« on: May 13, 2006, 06:53:42 pm »
If you have a cool Back ground you would like to share post here.


14
In computer programming, if a Cobol program is
compiled and linked to produce a 32-bit Windows
Execuatable file(.exe), which is designed to run
under windows in protected mode, Can this windows
program(.exe) CALL OR RUN another 16-bit program
(.com) that is designed to run ONLY under dos?
thanks a lot for your help...!
. ;-)

15
quote:
Originally posted by CJaguar265

how is someone supposed to get A AI Brain for their knight rider replica? not AT the corner market? but where?



http://www.zabaware.com/forum/topic.asp?TOPIC_ID=3041
Here is what your looking for, scroll all the way down then move five boxes up!
It is called the (Elite real knight rider Project).
Injoy. [;)]

Pages: [1] 2 3 ... 7