09-28-2009, 09:26 PM (This post was last modified: 10-03-2009, 08:45 PM by 1477.)
HELLO GUYS!
Well I haven't been really active in LF2 for a long time... mostly because of school (10th grade is a real bash in the head here in the United States).
Anyways, I got a surprise for you all !
Check this out! Thanks to Stolarz for his straightforward, easy-to-follow tutorial on opening AVIs in stream, NeHe for his great AVI (OpenGL) Player tutorial in Visual C++ (which I had to painstakingly translate all into Assembly code in order to implement, as well as make up a bunch of the structures in order to patch up the many API holes that the tutorial used and MASM didn't support, but ironically C++ did), Silva's winamp controller for giving me the awesome hooks for LF2's Device Context (even though his use for it was a bit weird, and I had to dig through/understand a lot of unrelated coding in order to figure out the hDC hooks), and Silva again for laughing at me for even coming up with this completely ridiculous and insane idea .
[youtube]_bJroaK_ag0[/youtube]
Well, the feature kind of explains it self, doesn't it?
I've attached the EXE to this post. Enjoy, and Happy Coding, folks!
P.S. Let me know via replies (to this post) if you guys want any special changes to this feature (I'm sure you guys will ).
VVEDIT @HukkoVV :
Oh, you can easily change the coordinates .
EDIT2: Improved EXE. In order to make this more "believable", now you can customize the displayed AVI! All you have to do is follow the following instructions :
1) Rename your AVI file into 'sample.avi'.
2) Move the AVI file into the 'data' folder of your LF2 directory.
3) Run LF2, and enjoy!
I also updated the video.
VVEDIT3@MagnamancyVV: It's 1477 .
EDIT4:
Hey guys, here is the 2nd update.
I need your suggestions on states, the location/size of the AVI, and what-not... so I'd be glad if you guys can help me out with the suggestions on future progress, it would be greatly appreciated .
Now I've included three additional states. You guys may want to pay attention to what they are.
1) State 3xxxx: The AVI file will play for an 'xxxx' amount of time
The AVI file will loop itself until the time is up.
2) State 120: The AVI file will start/begin at the use of this state.
State 121: The AVI file will stop at the use of this state.
The AVI file will loop until the end state is used.
3) State 110: The AVI file will play exactly one loop, and then quit.
@Silva: The timestop "merge" will be a little tricky to put in, because the GlobalAlloc coding will have to be copied also . Remind me later to point out a slight mis-command I found in your calling of MemAlloc .
EDIT5:
Fixed the states. The 'Start' and 'Stop' states are now States: 120 and 121. Fixed EXE attached to the bottom of this post.
Again, Enjoy Yourselves, and Happy Coding!
EDIT6:
Hello folks! So sorry for the double post, but I would like to announce the (most likely) final update of the AVI Player in LF2.
First, I would like to let everyone know (if they haven't known already) that only the video portion of the AVI will play - not the audio. A simple solution to synchronize both portions are to copy the AVI file and convert one copy into WAV via Soundfile Converter or some other Media Conversion Program, plug it into data, and summon the two parts with a ball simultaneously (special state + sound).
Secondly, the updates .
Timestop Integrated States:
State 130: Play one loop. Timestop integrated.
State 140: Start play. File is looped. Timestop integrated.
State 141: Stop play. File is looped. Timestop integrated.
State 4xxxx: Play AVI file for specified amount of time. File is looped. Timestop integrated.
The video window is now resized to "full-screen" (that is, starting from under the health bars) if you guys haven't yet noticed.
If the desperate need arises to play sounds with the video from within the original AVI file itself, then I will look into it further. As it stands now, unless one needs to plug in a 50 min. clip, the WAV file shouldn't be occupying that much HDD space.
Again, here is a recap of ALL the states:
1) State 3xxxx: The AVI file will play for an 'xxxx' amount of time
The AVI file will loop itself until the time is up.
2) State 120: The AVI file will start/begin at the use of this state.
State 121: The AVI file will stop at the use of this state.
The AVI file will loop until the end state is used.
3) State 110: The AVI file will play exactly one loop, and then quit.
4) State 130: Play one loop. Timestop integrated.
5) State 140: Start play. File is looped. Timestop integrated.
State 141: Stop play. File is looped. Timestop integrated.
6) State 4xxxx: Play AVI file for specified amount of time. File is looped. Timestop integrated.
hey blow :P ~ Bamboori can I call ya koalafly? ~ Phil Pogofly - Simoneon k0a1af1y, looks much more stylish ~ Blue Phoenix So hey, blow, say something! - Simoneon Quack? ~ blow_fly98
Hi blow ~Ramond So... is it decided that we call him "blow"? ~ Blue Phoenix No. ~ blow_fly98 But blow, all the members now will follow us because of this convo. You're ruined!!! - Simoneon Meh. But I'll leave this convo here anyway. ~ blow_fly98 meh koala is much more awesome so I will stick to that ~ Phil Wait, what? Koalas can edit profiles? - Simoneon lol, seems that i started a long discussion :P ~ Bamboori You did, indeed. I wonder who will exceed the sig-limit... ~ Blue Phoenix Please don't trash this. It's good eye-candy. ~ blow_fly98 koala has spoken and so shall it be =) ~ Phil there're some html here, and bla bla bla, so I think I might exceed it. Period - Simoneon WHY THE SPOILER?! ~ Blue Phoenix didn't you spoiler the conversation yourself? ~ Bamboori BLOW BLOW!!! YOU FORGOT TO WRITE NAKATO IN 'WE'RE WATCHING YOU'!!!!! - Simoneon To0 8ad. H4 D045n't d0 any MoDdin9 at A11!!!!!!! ~ blow_fly98 Evil Sonidow does, eh? - Simoneon Of course. Just n0t v4ry 0ft4n. ~ blow_fly98 WHY THE 1337-SPEAK?! ~ Blue Phoenix Because I am a KOALA!!! ~ blow_fly98 To be honest, I thought they use Eucalyptus-Speal..........
......
......
D: - Simoneon Noez, Simon forgot to close his notice! ~ Blue Phoenix oh no its the end of the world! *panic* ~ Bamboori Gzz Hizz Fz Mzzz
Anyone got a Eucalyptus-speak interpreter?
And did you know that a user can have more than 4 images in their signature if we edit it for them? Or am I just the last one to find out?
~ blow_fly98 OMG spoilers in spoilers! ~ Bamboori OMG offtopic in offtopic! - Simoneon OH HAI GUYZ, i didnt you see you thar :P ~ Alectric Now, I seriously need to be a part of this. ~ SirFrog Wasn't there something about childish mods editing signatures lately? ~ Reaper What?!?! Where was it?!?!?! ~ blow_fly98 DO YOU HAVE SUGAR?! - Simoneon I heard if you edit someone's signature enough, your profile automatically is set to Admin status. BP told me. ~ Alectric then let's do this! ~ Bamboori Just because I don't go around checking every single post and editing signatures doesn't mean that I don't mod here. I just don't check posts that aren't reported. ~ Evil Sonidow Seriously. We should encourage people to start reporting more :/ - Simoneon EvErYoNe'S pOsTeD hErE eXcEpT mH.
Hey, maybe we could report every single post just so ES could check them. ~ blow_fly98 You know, that's a hell lot of work. What about a rule that everyone has to report at least one post whenever he logs in? Or an auto-report function? ~ Reaper I liked the report-part until we got to the point of an auto-report function. That's something that requires work --> No. ~ Blue Phoenix Finally, I get to see some invisible users. *sniggers* ~ blow_fly98 Oh, i came back. Well, since im already here, i may as well shoot bees ~ Alectric You know, the ducks are watching. Always watching... ~ SirFrog Hmm, I think, Lauli is about to climax due to the awesomeness of this color-wall ~ Blue Phoenix
(09-28-2009, 09:26 PM)1477 Wrote: (even though his use for it was a bit weird, and I had to dig through/understand a lot of useless coding in order to figure out the hDC hooks)
VVEDIT @HukkoVV :
Oh, you can easily change the coordinates .
1st - Hahaha - useless coding... hahahaha.
2nd - How? You didn't release the source for this. It is essentially useless.
Lord Silva Wrote:2nd - How? You didn't release the source for this. It is essentially useless.
@Silva: Hello Silva. One of the reason I didn't want to release the source code is because it's all messy (as you probably know) . I've gotta clean up the coding first, and then I'll consider it again.
In addition, a more practical reason for the code being "not open" is because the Forum Mod will be using this EXE feature (check it out if you haven't already ). I'm hoping to rack up a few cool features unique to that mod (*thinking of possible other people that might take advantage of it and ruin our "uniquity" by releasing before*). So please, please respect the status of this feature (Silva!) . At the very least, a perfectly usable EXE is available for all that takes full advantage of the feature.
The thing is, it isn't perfectly usable. No one in their right mind would want an avi playing all the time during fights in the center of the screen.
Some useful implementations would be state activated AVI's(maybe combined with timestop?), or showing the video during the end credits... Or something along those lines. All these things are impossible without the source.
Like I said before, as it stands now it is useless.
OK. I know this from IRC:
I think you want to implement a state into DCing, right? Like a state for start and a state for stop.
This isn't perfectly usable YET. But I'm pretty sure this could be used for cut scenes. IN THE VERY NEAR FUTURE.
Hiding users' signatures and avatars was the best decision ever.
hey blow :P ~ Bamboori can I call ya koalafly? ~ Phil Pogofly - Simoneon k0a1af1y, looks much more stylish ~ Blue Phoenix So hey, blow, say something! - Simoneon Quack? ~ blow_fly98
Hi blow ~Ramond So... is it decided that we call him "blow"? ~ Blue Phoenix No. ~ blow_fly98 But blow, all the members now will follow us because of this convo. You're ruined!!! - Simoneon Meh. But I'll leave this convo here anyway. ~ blow_fly98 meh koala is much more awesome so I will stick to that ~ Phil Wait, what? Koalas can edit profiles? - Simoneon lol, seems that i started a long discussion :P ~ Bamboori You did, indeed. I wonder who will exceed the sig-limit... ~ Blue Phoenix Please don't trash this. It's good eye-candy. ~ blow_fly98 koala has spoken and so shall it be =) ~ Phil there're some html here, and bla bla bla, so I think I might exceed it. Period - Simoneon WHY THE SPOILER?! ~ Blue Phoenix didn't you spoiler the conversation yourself? ~ Bamboori BLOW BLOW!!! YOU FORGOT TO WRITE NAKATO IN 'WE'RE WATCHING YOU'!!!!! - Simoneon To0 8ad. H4 D045n't d0 any MoDdin9 at A11!!!!!!! ~ blow_fly98 Evil Sonidow does, eh? - Simoneon Of course. Just n0t v4ry 0ft4n. ~ blow_fly98 WHY THE 1337-SPEAK?! ~ Blue Phoenix Because I am a KOALA!!! ~ blow_fly98 To be honest, I thought they use Eucalyptus-Speal..........
......
......
D: - Simoneon Noez, Simon forgot to close his notice! ~ Blue Phoenix oh no its the end of the world! *panic* ~ Bamboori Gzz Hizz Fz Mzzz
Anyone got a Eucalyptus-speak interpreter?
And did you know that a user can have more than 4 images in their signature if we edit it for them? Or am I just the last one to find out?
~ blow_fly98 OMG spoilers in spoilers! ~ Bamboori OMG offtopic in offtopic! - Simoneon OH HAI GUYZ, i didnt you see you thar :P ~ Alectric Now, I seriously need to be a part of this. ~ SirFrog Wasn't there something about childish mods editing signatures lately? ~ Reaper What?!?! Where was it?!?!?! ~ blow_fly98 DO YOU HAVE SUGAR?! - Simoneon I heard if you edit someone's signature enough, your profile automatically is set to Admin status. BP told me. ~ Alectric then let's do this! ~ Bamboori Just because I don't go around checking every single post and editing signatures doesn't mean that I don't mod here. I just don't check posts that aren't reported. ~ Evil Sonidow Seriously. We should encourage people to start reporting more :/ - Simoneon EvErYoNe'S pOsTeD hErE eXcEpT mH.
Hey, maybe we could report every single post just so ES could check them. ~ blow_fly98 You know, that's a hell lot of work. What about a rule that everyone has to report at least one post whenever he logs in? Or an auto-report function? ~ Reaper I liked the report-part until we got to the point of an auto-report function. That's something that requires work --> No. ~ Blue Phoenix Finally, I get to see some invisible users. *sniggers* ~ blow_fly98 Oh, i came back. Well, since im already here, i may as well shoot bees ~ Alectric You know, the ducks are watching. Always watching... ~ SirFrog Hmm, I think, Lauli is about to climax due to the awesomeness of this color-wall ~ Blue Phoenix