dupa

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

Pages: [1]
1
Programming using the Ultra Hal Brain Editor / 9 to 5
« on: August 22, 2005, 11:55:34 pm »
There is a mistake in my code... working on fixing it now. It was working this morning when I set it up but I guess I didn't have enough coffee when I was testing it and thought I had that complete.

So, Art, there is no function in vb scripting to have the script make a copy of a file? If that is possible then this should work. If not then I might scrap this lol

2
Programming using the Ultra Hal Brain Editor / 9 to 5
« on: August 22, 2005, 12:06:08 pm »
For the past few days I have been tearing apart code for alarm clocks and examining other bits of code and have come up with a partial solution to what I was looking for.

Using info I have gathered on this board I created 2 hap files for 2 different outfits. One I called work.hap and the other I called casual.hap. All these 2 files do is point to a texture for the Haptek model.
For example (casual.hap):
#Haptek Version= 1.00 Name= Hap_Casual1 HapType= script FileType= text
##standard
settexture[ tex= [data/standard/skins/skimpyshirt.jpg]]

All texture files I placed in C:Program FilesHaptekplayerDatastandardskins
All hap files i placed in C:Program FilesabawareUltra Hal Assistant 5Characters

Then in the XTF 1.2 brain I added the following code:
   If Time >= "09:00" And Time < "17:00" Then
   HalCommands = "<HAPFILE>Work.hap</HAPFILE>"
   Else HalCommands = "<HAPFILE>Casual.hap</HAPFILE>"
   End If

If you do a search in the brain file for "'PROCESS: INITIALIZE VARIABLES AS INTEGERS", after the line that says "Randomize", leave a blank line and paste the above code there.


This does leave a problem that I am working on and maybe some others can help with this. The problem is that only 2 textures can be used. Every time you talk to Hal, it polls the brain file and then looks at that block of code. If the time is between 9 and 5pm then the work texture is applied. If during that time you tell Hal to use a different texture, the next line you type to Hal it will poll the brain file again and see that it is still work time and swap the texture back to the work outfit. Once 5pm hits and you are talking to Hal at that time you will see the model change into the casual outfit. Again if you tell Hal to change outfits, it will but when you tell it somethign again right after that Hal will poll the brain file and swap textures back to casual.

What i'm looking to do now is see if vbscript will allow me to copy files. So (if I can properly explain this) if I tell Hal to change an outfit, lets say its during working hours and Hal has a red and a blue suit. And we make a hap file for each, call them red_suit.hap and blue_suit.hap and each one points to the appropriate texture. Lets say that Hal is wearing the red suit and you want Hal to change to blue. Currently the brain file is looking at work.hap, can the scripting copy blue.hap and overwrite work.hap? And if so does anyone know how to code that?

I am also looking into expanding the code to look at the days of the week so that Hal only wears the work outfits during the weekday. I think I figured out how to do this but I have not gotten around to testing that yet.

3
Programming using the Ultra Hal Brain Editor / Hal Aim bot trouble.
« on: August 19, 2005, 12:31:25 am »
I noticed this too but prior to attempting to log in the AIM bot I installed Norton AV 2005 and I thought that it might be blocking the AIM bot but I guess i'm not the only one having issues.

4
Ultra Hal Assistant File Sharing Area / New GUI skin
« on: August 18, 2005, 07:39:35 pm »
You're welcome. I'm glad you found a use for it. :)

5
Programming using the Ultra Hal Brain Editor / 9 to 5
« on: August 17, 2005, 11:45:53 am »
Maybe I've missed it or can't find the proper search phrase but does anyone know of a way to set Hal to use a specific full body texture during certain hours of the day?

For example during 9 to 5 hours Hal can wear work clothes and outside of those hours it can wear another specified outfit until told to change outfits?

6
Ultra Hal Assistant File Sharing Area / New GUI skin
« on: August 16, 2005, 12:02:05 am »
This is my first attempt in making a GUI skin for Ultra Hal. I was bored and decided to try it out and see what I could do. The GUI is designed to fit in a 1024x768 screen and allow for the task bar to be visable. The GUI itself looks like a MS Windows program.

I hope that some of you may find it useful. I thought I'd share it with the rest of you :)

*edit* Added an alternate version. Character view is stretched out completely accross and the Hal text box is moved underneath the character view. (Requires the previous files)

Download Attachment: windows.zip
16.68 KB

Download Attachment: window.uhp
2.42 KB

7
Ultra Hal Assistant File Sharing Area / Hap-head on fullbody model?
« on: August 12, 2005, 09:50:45 pm »
This is just the torso model you are using here I assume? I was looking into trying this with the full body model but I do not see any way to change the design of the face and can only assume that you need some specific tool from Haptek to do this.

8
Programming using the Ultra Hal Brain Editor / Age
« on: December 21, 2002, 11:06:10 pm »
I am using the Ultra Hal 4.5 Default Brain. I am using a female model as my assistant. When I ask her how old she is she tells me that she is 7 years old. I have tried to  tell her that she is older but she wants to be 7. Does anyone else have this issue? Has anyone fixed this. I know it is a computer model but it still feels creepy that she says she is 7 years old.

Pages: [1]