Playing a gif inside factorio

Art that you have created yourself (draw, paint, craft, cosplay, video, wallpaper, ...) with and around Factorio.

NOT for screenshots or videos of the actual game and discussions around them (for that, see "Show your creations").
Hunab
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed Aug 26, 2015 5:21 am
Contact:

Playing a gif inside factorio

Post by Hunab »

Dancing girl gif created made famous by Chuck Pointer, made in an array of lights in factorio.
dancing.gif
dancing.gif (289.11 KiB) Viewed 29906 times
EDIT:
I did set the values of the lights by hand. Not sure how to start making a blueprint-string from a pixel matrix.

I was already happy with finding out how to split a gif in separate frames/images, how to get the pixel matrices of every unique image in a gif, and doing some modifications on the matrices.
FreeMat (a free tool comparable to matlab) did all the work.
and after the build was done, how to record your screen and make a gif from that to post on the forum.
That was all new for me.

I assigned the pixels I needed in the first unique image a value of 1 (if light is lid).
the pixels in the second a value of 2,
the third a value of 4,
fourth... 8,
and the fifth .. 16.

By adding all the matrices together I got the values I needed for the light.
If a pixel has a value of for example 13, then I send that signal for unique image one, three and four (because 1+4+8 = 13)
logic.jpg
logic.jpg (144.85 KiB) Viewed 29758 times
I have a clock counting from 0 to 9 (in red)
I have 10 non-unique frames and 5 unique images.
The green part gives me the value for at what count I need to show what unique image.
The blue part gives me the pixel nr (31 in total 1+2+4+8+16 = 31)

To show unique image one I send pixel nr
1, because 1 = 1
3, 1 + 2 = 3
5, 1 + 4 = 5
...
29, 1 + 4 + 8 + 16 = 29
31, 1 + 2 + 4 + 8 + 16 = 31

After figuring it all out, it was easy although a bit tedious to set the correct value to the lamps.

EDIT2: some typo's
EDIT3: I added the save file in a new comment below

EDIT4: using the newly added strikethrough function :) .
"Woohoo!" This made the news post. For more lights and logic, but way more advanced; check out Combinator Game of Life by DaveMcW.
Last edited by Hunab on Mon Sep 14, 2015 12:31 pm, edited 4 times in total.
User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: Playing a gif inside factorio

Post by Smarty »

:shock:
User avatar
Alekthefirst
Fast Inserter
Fast Inserter
Posts: 104
Joined: Sat Feb 07, 2015 7:39 pm
Contact:

Re: Playing a gif inside factorio

Post by Alekthefirst »

Now make me some combinator creation that can play Factorio; inception is happening guys!
Factorio is a game about automating everything. One day, i hope i can automate shitty signatures just like this one.
sillyfly
Smart Inserter
Smart Inserter
Posts: 1101
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: Playing a gif inside factorio

Post by sillyfly »

Did you make it by hand?
I'm sure it can be possible to make an automated tool to convert animated gifs to Factorio blueprints :)

Also, I really like how the lighting effect makes a sort of "glow" around the animation.
User avatar
Xterminator
Filter Inserter
Filter Inserter
Posts: 981
Joined: Sun Jun 15, 2014 4:49 pm
Contact:

Re: Playing a gif inside factorio

Post by Xterminator »

My mind is blown. :o This truly amazing!
To think I can't even figure out how to use combinators and wiring for something simple like showing amount of something in a chest. Lol

Great job! Would love to see more of these.
Image Image Image
jeroon
Filter Inserter
Filter Inserter
Posts: 351
Joined: Sun Jan 26, 2014 10:18 am
Contact:

Re: Playing a gif inside factorio

Post by jeroon »

that.. what.. wow..
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Playing a gif inside factorio

Post by ssilk »

The save of this would be cool.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Hunab
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed Aug 26, 2015 5:21 am
Contact:

Re: Playing a gif inside factorio

Post by Hunab »

ssilk wrote:The save of this would be cool.
If I need to host the save externally, let me know. It is 16MB.
I am unsure about allowed size of attachments, or preferred practice.

The file was saved in Factorio 0.12.3
(100+ hours of gameplay, and 50 hours of messing around and alt-tabbing)

And I want to thank everyone for the positive comments.

EDIT: I found out how to use the console to set all the conditions for the lamps.
(I looked at the code found at https://forums.factorio.com/forum/vie ... =8&t=13997 , and with help from Narc on the Factorio IRC and the Lua manual I managed to understand and write some code)
EDIT2: Found two typo's in code. Corrected them
Code
Attachments
Gif.zip
(16.3 MiB) Downloaded 483 times
Last edited by Hunab on Thu Sep 10, 2015 2:29 pm, edited 2 times in total.
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Playing a gif inside factorio

Post by slpwnd »

Brilliant :)
User avatar
Twisted_Code
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Sat Jun 06, 2015 1:15 am
Contact:

Re: Playing a gif inside factorio

Post by Twisted_Code »

Unless I missed my guess, you based this on this, right?
How to report bugs effectively (archived version)because everyone should know this.
The game's tech tree, a visual reference guide.
Hunab
Burner Inserter
Burner Inserter
Posts: 8
Joined: Wed Aug 26, 2015 5:21 am
Contact:

Re: Playing a gif inside factorio

Post by Hunab »

Twisted_Code wrote:Unless I missed my guess, you based this on this, right?
Yes. Your link is the 2.0 version. The source is the same. According to this article it is a sample animation from an old black & white Macintosh application called VideoWorks(1985), which was an early predecessor of Macromedia Director.

Chuck Pointer removed the shadow, colored it and added his name to the file. (forgetting the blinking pixel)
Early case of I made this?
Post Reply

Return to “Fan Art”