Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Little Fighter AVI Player
#1
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 :D!

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 :D unrelated :D 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 :D.


[youtube]_bJroaK_ag0[/youtube]


Well, the feature kind of explains it self, doesn't it? :D

I've attached the EXE to this post. Enjoy, and Happy Coding, folks! :D

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 :D).


Old Edits (Capped) (Click to View)

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 :D .

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 :D
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.

_________________________________________________________________________________________

Source Link:

The all lower-case password for downloading and extracting are both: Solomon

>LF2 AVI PLAYER SOURCE DOWNLOAD LINK<

_________________________________________________________________________________________


The zipped EXE is attached to the bottom of this post.

Please note again that this version will most likely be the FINAL version.


~Solomon Leung


Attached Files
.zip   LF2_AVI_UPDATE.zip (Size: 1.64 MB / Downloads: 138)
.zip   LF2 AVI UPDATE 10-2-2009.zip (Size: 1.64 MB / Downloads: 132)
<div style="background-image:url('http://f.imagehost.org/0086/Fill.png'); filter:alpha(opacity=70); border-top:1px solid #000000; border-right:1px solid #000000; border-left: 1px solid #000000; border-bottom: 1px solid #000000"> <table border="0" width="100%"><tr><td width="500"><img src=http://g.imagehost.org/0170/FORUM_SIGNATURE.png opacity="1" alt="Little Fighter Code Lyoko"></td><td width="30"><img src="http://www.antoninasdesigns.com/images/real-gray-square.gif" width="1" height="100"></td><td><font face=monotype corsiva><font color=#0A298F><font size="4"><b><i>~Solomon Leung</size><br><font size="2">P.S. I Just Lost <a href="http://www.losethegame.org" target="_blank" style="text-decoration: none"><font color=#0A298F>The Game</font></a></b></i></font></font></size></td></tr></table></div>
Reply
Thanks given by: Magnamancy , Bamboori , RenanDez
#2
This is very cool, but the AVI appears on player 1 and 5 small, blood and mp, is this good?
<center>[Image: 38018291.gif]</center>
Reply
Thanks given by:
#3
Good Work :D
[Image: OQAAAEUyp1EC4nOaLC7aWRI9F6vMqekYjsZ6ZNLn...66Qif3.jpg]
Sorry for my english... :'(
I'm Brazilian :p
Reply
Thanks given by:
#4
^^"THANKS" button please.
Anyway, this got clarified in IRC, but u need to implement this in Data Changing sooner or later.
Hiding users' signatures and avatars was the best decision ever.
4ye 6anDy (Click to View)
We're watching you... (Click to View)
| Avatar made by Alectric |
Reply
Thanks given by:
#5
No , very neat!I made my own and its works in BATTLE,STAGE,and MENU!

But nice!I like it(A bit)!
Reply
Thanks given by:
#6
Good god, you're a legend 1477.
(sorry about that Facepalm *fixed*)

My internets is capped beyond belief, so I can't download the exe to
try it, or even watch the video Facepalm but I oh so want to check this out Shock

... Awesome :D
Trust you're all well.
Reply
Thanks given by:
#7
(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 :D .

1st - Hahaha - useless coding... hahahaha.

2nd - How? You didn't release the source for this. It is essentially useless.
[Image: doty7Xn.gif]

10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.


Reply
Thanks given by:
#8
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) :D. 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 :D). 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!) :D. At the very least, a perfectly usable EXE is available for all that takes full advantage of the feature.

Thanks for your kind consideration,


~Solomon Leung
<div style="background-image:url('http://f.imagehost.org/0086/Fill.png'); filter:alpha(opacity=70); border-top:1px solid #000000; border-right:1px solid #000000; border-left: 1px solid #000000; border-bottom: 1px solid #000000"> <table border="0" width="100%"><tr><td width="500"><img src=http://g.imagehost.org/0170/FORUM_SIGNATURE.png opacity="1" alt="Little Fighter Code Lyoko"></td><td width="30"><img src="http://www.antoninasdesigns.com/images/real-gray-square.gif" width="1" height="100"></td><td><font face=monotype corsiva><font color=#0A298F><font size="4"><b><i>~Solomon Leung</size><br><font size="2">P.S. I Just Lost <a href="http://www.losethegame.org" target="_blank" style="text-decoration: none"><font color=#0A298F>The Game</font></a></b></i></font></font></size></td></tr></table></div>
Reply
Thanks given by:
#9
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.
[Image: doty7Xn.gif]

10 ʏᴇᴀʀs sɪɴᴄᴇ ɪʀᴄ ɢᴏᴏᴅ.ɪ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴛʜᴇ ᴇᴍᴘᴛʏ sᴛʀᴇᴇᴛs ᴛʀʏɪɴɢ ᴛᴏ ᴛʜɪɴᴋ ᴏғ sᴏᴍᴇᴛʜɪɴɢ ᴇʟsᴇ ʙᴜᴛ ᴍʏ ᴘᴀᴛʜ ᴀʟᴡᴀʏs ʟᴇᴀᴅs ᴛᴏ ᴛʜᴇ ɪʀᴄ. ɪ sᴛᴀʀᴇ ᴀᴛ ᴛʜᴇ sᴄʀᴇᴇɴ ғᴏʀ ʜᴏᴜʀs ᴀɴᴅ ᴛʀʏ ᴛᴏ sᴜᴍᴍᴏɴ ᴛʜᴇ ɢᴏᴏᴅ ɪʀᴄ. ɪ ᴡᴀᴛᴄʜ ᴏᴛʜᴇʀ ɪʀᴄ ᴄʜᴀɴɴᴇʟs ʙᴜᴛ ɪᴛ ɪs ɴᴏ ɢᴏᴏᴅ. ɪ ᴘᴇsᴛᴇʀ ᴢᴏʀᴛ ᴀɴᴅ ᴛʀʏ ᴛᴏ ʀᴇsɪsᴛ ʜɪs sᴇxɪɴᴇss ʙᴜᴛ ɪᴛ ɪs ᴀʟʟ ᴍᴇᴀɴɪɴɢʟᴇss. ᴛʜᴇ ᴇɴᴅ ɪs ɴᴇᴀʀ.ɪ ᴛʜᴇɴ ᴜsᴜᴀʟʟʏ ʀᴇᴀᴅ sᴏᴍᴇ ᴏʟᴅ ɪʀᴄ ʟᴏɢs ᴀɴᴅ ᴄʀʏ ᴍʏsᴇʟғ ᴛᴏ sʟᴇᴇᴘ.


Reply
Thanks given by:
#10
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.
4ye 6anDy (Click to View)
We're watching you... (Click to View)
| Avatar made by Alectric |
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)