XRacing flag animation code

Страница 1/2
| 2

By santiontanon

Paladin (824)

Аватар пользователя santiontanon

27-02-2019, 09:37

If anyone is interested in the XRacing flag animation code, I just published the Java code I used to generate it: https://github.com/santiontanon/animation2msx

Even if the code is generic and should work to convert any animated GIF to MSX, the color conversion is not very good (it is actually very bad! haha), and also, the code I use to load GIF files is not very generic, and some GIF files break it. But anyway, it was sufficient for me to generate the flag animation. Just in case it's useful to anyone :)

Для того, чтобы оставить комментарий, необходимо регистрация или !login

By ARTRAG

Enlighted (6240)

Аватар пользователя ARTRAG

27-02-2019, 11:57

Thanks for sharing! Big smile
I will not link to mine, promised

By alexito

Hero (536)

Аватар пользователя alexito

27-02-2019, 15:13

I have JDK installed Ver 1.8.0 201-b09 but I got error message on Windows Vista 64bits when in the command line:

java -cp lib/glass-0.5.jar:animation2msx.jar msx.video.ConvertVideo examples/flag.gif examples/flag

is invoked then:

"Error: Could not find or load main class msx.video.ConvertVideo"

I think the java interpreter expect ConvertVideo.class than .java file on MSX/VIDEO directory.

By santiontanon

Paladin (824)

Аватар пользователя santiontanon

27-02-2019, 17:51

@ARTRAG: haha, NYYRIKKI shared with me via email a bunch of your animation demos via email a few days ago (the horse, bat, fire, etc.), pretty cool!!! This one I hope to extend bit by bit as I used it for other projects hopefully Smile

@alexito: ah, the git repo doesn't have the compiled version, sorry about that! You need to compile it first, since the animation2msx.jar file is not there. I'll create a "release" after work today that can be used directly without compiling Smile

By alexito

Hero (536)

Аватар пользователя alexito

28-02-2019, 12:44

Still I got the same error message:

"Error: Could not find or load main class msx.video.ConvertVideo"

Crying

By santiontanon

Paladin (824)

Аватар пользователя santiontanon

28-02-2019, 17:46

hmmm...

did you download the release and unzip the .zip file? that one is the one that should have the proper JAR files. So, just to verify, do you have the animation2msx.jar file in the "lib" folder?

By alexito

Hero (536)

Аватар пользователя alexito

28-02-2019, 19:30

yes, I did.

By santiontanon

Paladin (824)

Аватар пользователя santiontanon

28-02-2019, 20:52

ah! haha, I had a typo on the example command lines, there was a missing /lib haha

Try this (I just tried it on my work computer and worked fine Smile:

java -cp lib/glass-0.5.jar:lib/animation2msx.jar msx.video.ConvertVideo examples/flag.gif examples/flag

By alexito

Hero (536)

Аватар пользователя alexito

28-02-2019, 21:59

still the same error

picture

By santiontanon

Paladin (824)

Аватар пользователя santiontanon

01-03-2019, 00:26

oh, I see! Sorry, didn't realize you were running Windows! In that case, the path separator is a ";" not a ":", so, it should be:

java -cp lib/glass-0.5.jar;lib/animation2msx.jar msx.video.ConvertVideo examples/flag.gif examples/flag

Apologies for making this complicated! hehe. Let me go edit the GitHub page to clarify this Smile

Страница 1/2
| 2