Author Topic: GUI Editor - GuiAviBitmapCtrl --Could be useful in future--  (Read 1973 times)

Just found it, in GUI Editor. Messed around it and got it worked. Like the name says: "GuiAviBitmapCtrl" It only accepts AVI files nothing else.

Here my successful screenshot:



It could be useful for users that wanna force people to download their Client_BLAH.zip Just include the AVI file and if you enter the Add-On Creator's Server then the AVI File will be played(Intro will be played) then the AVI GUI disappears and Game begins.

I've just had the feeling to share it, because it wasn't discussed here before, or?

/discuss

Tutorial - How to add GuiAviBitmapCtrl and getting it working?
Requirements:
The Mission Editor(If you don't know how to set up, forum search helps.)

Blockland.exe(I think everyone has that.)

HyperCam 2(or another video software that records videos in AVI)

Let's start! After your blockland started, press F10 and the GUI Editor opens. Now go to File and press New Gui... You see that GuiControl Box. Doesn't change anything in settings. Press Ok. So now you have a empty GUI. Now go to New Control and search for: "GuiAviBitmapCtrl" if you found it, put it somewhere on the field. Now record your own video with HyperCam 2(or another video software that records AVI videos). After you did, go and save your video somewhere in the Blockland Folder. I used base/client/ui/myclip.avi for example, but it's your choice where you wanna put it in(But it have to be somewhere in the Blockland Folder!).

Good. After you saved it, go to GUI Editor again and press on GuiAviBitmapCtrl, look at your right, you see a list with settings. Now search for "aviFilename" if you found it, then put your video filepath in there. Now go up and press Apply. It should lag for a second, but that isn't bad either. Just wait a minute, and then your video runs!

If you do not want using that way, and you are familiar with TorqueScript then you can also use this:
Code: [Select]
//--- OBJECT WRITE BEGIN ---
new GuiControl(NewGui) {
   profile = "GuiDefaultProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "1024 768";
   minExtent = "8 2";
   visible = "1";

   new GuiAviBitmapCtrl() {
      profile = "GuiDefaultProfile";
      horizSizing = "relative";
      vertSizing = "relative";
      position = "6 1";
      extent = "1013 761";
      minExtent = "8 2";
      visible = "1";
      aviFilename = "base/client/ui/yourclip.avi";
      swapRB = "1";
      done = "1";
      letterBox = "0";
      speed = "1";
   };
};
//--- OBJECT WRITE END ---
« Last Edit: October 13, 2011, 04:14:39 AM by Cajetan »

Neat.

I was wondering if TGE had something like this, I know newer engines have Theora support.

Neat.

I was wondering if TGE had something like this, I know newer engines have Theora support.

Yeah, Badspot already said that. Im also wondering why everyone had problems with GuiAviBitmapCtrl. In the GarageGame's Forum everyone had problems with it. It works for me flawless.
« Last Edit: October 12, 2011, 06:05:54 PM by Cajetan »

good grief man you have too many tabs open

avi? as in, a video file...in blockland?

good grief man you have too many tabs open
How you found OUT? I doubt it! You are the oracle!

avi? as in, a video file...in blockland?
Yes. Sound's new though. But it's in the Engine for a longer time. No one did really knew about it.
« Last Edit: October 12, 2011, 07:01:12 PM by Cajetan »

Yes.
as in, playable? sound? no lag? ingame blockland tutorials?

as in, playable? sound? no lag? ingame blockland tutorials?
yes, it plays sound and theres also no Lag(for me). There are no ingame Blockland Tutorial's since i've just found it and got it worked.

yes, it plays sound and theres also no Lag(for me). There are no ingame Blockland Tutorial's since i've just found it and got it worked.
Well hell, you got yourself a responsibility now dont ya :o, loljk, but srsly, we need some ingame blockland tutorials for the new users

as in, playable? sound? no lag? ingame blockland tutorials?
Yeah, that all works great.

The problem is that it doesn't care what it's parented to, the image will always appear at the exact position that you specified, but on the canvas, not your window, etc. Just try to put it in a window an you'll see what I mean.

Yeah, that all works great.

The problem is that it doesn't care what it's parented to, the image will always appear at the exact position that you specified, but on the canvas, not your window, etc. Just try to put it in a window an you'll see what I mean.
afraid I don't quite get it

So if I want my image to be at the position "5 20" in my GUI, the selection box will appear in the correct place, but the actual image will appear at "5 20" on the entire window.

So if I want my image to be at the position "5 20" in my GUI, the selection box will appear in the correct place, but the actual image will appear at "5 20" on the entire window.
I see...and you can't work with that?

You play Terreria, you are in some way related to germanic things, you like osaka phones.

Thank you.

Yeah, that all works great.

The problem is that it doesn't care what it's parented to, the image will always appear at the exact position that you specified, but on the canvas, not your window, etc. Just try to put it in a window an you'll see what I mean.
Yeah, it isn't actually supposed to be put in a Window. It's actually supposed for Fullscreen. It's made for making Intro's. I think you saw many game's that had these logo intro's. Intros like that.

Also, i used Hyper Cam 2 to record videos.

EDIT: I've added a Tutorial now, on how to do this. I will correct it later, if some people can't understand it.
« Last Edit: October 13, 2011, 04:08:54 AM by Cajetan »