Author Topic: Background Changer?  (Read 13466 times)

NIGE

  • Hero Member
  • *****
  • Posts: 1592
  • Bringing things to life
    • View Profile
Background Changer?
« Reply #30 on: October 20, 2009, 04:37:08 am »
Hi, Oog.
Try this.
You will have to change the 2 haps so they lead to where you put the pics.
WON"T UPLOAD$^&*&^^*&**((*()^$
Send me a mail & i will send it to you.
neiljenko@optusnet.com.au

GT40

  • Hero Member
  • *****
  • Posts: 2095
  • Hey, I see you!
    • View Profile
    • My Bots
Background Changer?
« Reply #31 on: October 20, 2009, 06:44:03 am »

Hello everyone!

When I was young (one year ago), I made this "moving background" for a stuff (with two lovely skins by Nige):

http://zabaware.com/forum/topic.asp?TOPIC_ID=5877

If it doesn't work for you, put a copy of your htr in the folder and launch it (the Haptek window must have a 4:3 ratio).

I don't know anything about Hal but I guess this could work with it.

« Last Edit: October 20, 2009, 06:55:35 am by GT40 »
Time to waste with skits, bots & other useless things? Why not visit
http://gt40.chez-alice.fr/Haptek/MyBots.htm ? Oops, sorry, a museum!

snowman

  • Hero Member
  • *****
  • Posts: 956
  • Ai + Feelings + Supercompter = End of World
    • View Profile
    • http://www.MinervaAi.com
Background Changer?
« Reply #32 on: October 20, 2009, 01:19:56 pm »
I haven't tried a large hap file in Hal. So I don't know how well it would work or if it would work at all. GT40's hap file as well as the large hap file I added in this thead is a good example of an general large one.

I'll experiment with it and see what I can do later today and show you my results.
Live long and prosper or die trying.

snowman

  • Hero Member
  • *****
  • Posts: 956
  • Ai + Feelings + Supercompter = End of World
    • View Profile
    • http://www.MinervaAi.com
Background Changer?
« Reply #33 on: October 20, 2009, 04:08:26 pm »
So I loaded a single hap file.

#Haptek  Version= 1.00 Name= Hap_Angry  HapType= script FileType= text
##standard

clock [t= 0] setswitch [switch= h_gest_03 state=  a       ]
clock [t= 0] setswitch [switch= hand_thru_hair state= a1  ]


..........................
And the results is that it worked great!
Then I tried this
..........................


#Haptek  Version= 1.00 Name= Hap_Angry  HapType= script FileType= text
##standard

clock [t= 0] setswitch [switch= h_gest_03 state=  a       ]
clock [t= 1] setswitch [switch= hand_thru_hair state= a1  ]


..........................
And it would not load the second line. I then tested this on changing to different backgrounds and the same thing happened. Whenever I set the clock to anything about 0 then it would not be read.
..........................


So then I thought maybe I could do this in Hal.

HalCommands = "<HAPFILE>" & "touchhair.hap" & "</HAPFILE>"
HalCommands = "<HAPFILE>" & "Wild.hap" & "</HAPFILE>"

But that just loaded the second hap file and not the first.
So then I thought that maybe we could load a haptar that has a hap file compressed in it, like one of Nige's. But When I finally got one to load, it only loaded the background and the haptar but not the actual movie or song.

I had success with this command:
HalCommands = "<HAPFILE>" & "WillieNelson.htr" & "</HAPFILE>"
But not with this one:
setperson [ figure= "C:/Program Files/Zabaware/Ultra Hal Assistant 6/Characters/WillieNelson.htr"]
But like I said before it didn't actually play the movie.


So I come to the conclussion that a hap cannot contain the clock function, cannot be played one at a time, and connot be ran through a compressed haptar.. in Hal. Which means that a long hap like the one you propose is not possible undercurrent conditions.

Of course, I didn't actually try everything. So there is a possibility of a command that makes all this possible or that I made a mistake in syntax somewhere.

You can add this to your plugin insteed of actually calling up a hap file.

<HAPTEXT>Hap text</HAPTEXT>

Never tried it...

HalCommands = "<HAPTEXT> setperson [ figure= " & Chr(34) & "C:/Program Files/Zabaware/Ultra Hal Assistant 6/Characters/WillieNelson.htr" & Chr(34) & "]</HAPTEXT>"

« Last Edit: October 20, 2009, 04:09:44 pm by snowman »
Live long and prosper or die trying.