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 - apollon

Pages: [1]
1
Ultra Hal 7.0 / Is it possible to disable the pronoun switch?
« on: May 05, 2009, 01:20:28 pm »
I would like to make my Hal a copy of myself. To that end, every sentence that refers to me, Hal should also interpret as refering to himself.
I thought of simply deleting the part of Hal's brain that switches the pronouns, but then I noticed that there are some other parts that seem to rely on it. Is there a way to disable the switching of pronouns without breaking Hal's brain?

2
Going one step further:
Would it be possible to make the background change not based on what _I_ say, but based on what _Hal_ says? Like, for example, if were to I ask: "What is your favourite colour?", and Hal would respond "Blue!" and trigger a blue background to appear.

3
Ultra Hal 7.0 / Appointment book only displays dashes
« on: May 04, 2009, 05:54:40 pm »
Update:
The problem never was the time stamp, but the name of the days and months. The appointment book doesn't take them from the user input, but directly from the Windows clock. The only solution would be to find a way to make Windows use English names for days and months.
Does anyone know where the Windows clock application (i mean the .exe file) is located? By editing it with a hex editor perhaps something could be done.

4
Ultra Hal 7.0 / Appointment book only displays dashes
« on: May 03, 2009, 12:24:51 pm »
Right, here's a workaround I came up with:
If you edit the apptmnts.dat and change all the base-24 time signatures to base-12, the appointment book will display everything correctly.

The reason why the appointment book is broken with non-English OSs is that almost all countries, other than the US and the UK, use 24 hour time.
I think that writing a script that replaces all base-24 time inputs with base-12 strings, would be the best solution.
Another, less elegant, alternative would be to change my Windows tray clock to base-12, but I don't know how to do that. Does anybody know?

5
Ultra Hal 7.0 / Appointment book only displays dashes
« on: May 02, 2009, 05:33:33 pm »
I see, thank you.

6
Ultra Hal 7.0 / Appointment book only displays dashes
« on: May 02, 2009, 01:56:01 pm »
Thanks for the reply, Bill. You seem fairly certain about it. However, I could find nothing in this forum mentioning such a thing. Does there exist a workaround, perhaps?

7
Ultra Hal 7.0 / Appointment book only displays dashes
« on: May 02, 2009, 11:47:35 am »
When I tell Hal to remember an appointment, he gives me an appropriate reply.
I say: "Appointment today 18:00",
to which he replies: "Appointment on samstag, 2. mai 2009 at 6:00 pm . I'll Remind you when this time is near."
(I'm running a German WinXP, that's why he says "Samstag" and "Mai".)

Then I check the apptmnts.dat and find in there the entry:
appointment on samstag, 2. mai 2009 at 6:00 pm
5.2.2009
18:00:00

But still, he never remembers to remind me.
So I check the appointment book, and what I see is a number of dashes were there should be text. There is a dash on each day where I had entered an event, but nothing else.

Does the address book only work with an English operating system?

8
Ahoy, Snowman! I finally figured it out. There was nothing wrong with the script. Both your version and mine work just fine. I just had put them into a bad location inside the main script, and so it kept being overruled by another part of the brain. [:I]
Thanks for pointing me in the right direction! [:)]

9
Hello Snowman, thanks for your reply![:)]
I looked at your script, and it's very similar to the one I'm trying to make work. Different variables, but same syntax. Unfortunately, it, too, doesn't work. I tried to append it to the main brain .uhp, rather than having it as a separate plugin. Is that even possible, or am I just being foolish?

10
I'm trying to get Hal to change his background image in response to certain keywords. Please understand that I've already searched the forum, and I did find some relevant threads, but they weren't of any help because I either don't understand what's being said, or the proposed solutions simply don't work. (However, I did try to copy quite a few of their ideas)

Here's what I did:
I created a file named change.hap. I put that file into the characters folder, where the other .hap files are.
The .hap file does work when I drag it onto a separate haptar (I mean a .htr file started and running separately from Hal). When I drop the file onto the haptar, the background image changes to the one I specified.
I opened the main brain .uhp and added the following lines after the very last line:

Code: [Select]
File = ""
UserSentence = LCase(UserSentence)

If InStr(UserSentence, "change background") <> 0 Then
File = "change.hap"
End If

If file <> "" Then
HalCommands = "<HAPFILE>" & File & "</HAPFILE>"
BlockSave = True
GetResponseBlock = True
End If

However, the thing doesn't work when I enter the key phrase. There's no error message, Hal is just ignoring it.

I respectfully ask that you do not direct me to any plugins that already do this sort of thing. I would very much prefer to learn how to do it myself, rather than messing with plugins. :-)

11
Ultra Hal 7.0 / Please explain some of the different .brn formats.
« on: April 24, 2009, 07:17:21 am »
I'm not sure how your reply addresses any of the questions asked. Thanks for your time, though.

12
Ultra Hal 7.0 / Please explain some of the different .brn formats.
« on: April 23, 2009, 10:16:32 pm »
Wow... It's been 5 years, and no one bothered to give an answer? I came here to find answers to the very same problem, and all I found was this. Is there really no one who knows?

Pages: [1]