Playing a gif inside factorio

Created Art by yourself (draw, paint, craft, cosplay, video, wallpaper, ...) with and around Factorio.

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

Playing a gif inside factorio

Post by Hunab » Wed Aug 26, 2015 5:34 am

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 23275 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 23127 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 » Wed Aug 26, 2015 7:12 am

:shock:

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

Re: Playing a gif inside factorio

Post by Alekthefirst » Wed Aug 26, 2015 2:35 pm

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: 1096
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: Playing a gif inside factorio

Post by sillyfly » Wed Aug 26, 2015 3:30 pm

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: 969
Joined: Sun Jun 15, 2014 4:49 pm
Contact:

Re: Playing a gif inside factorio

Post by Xterminator » Wed Aug 26, 2015 3:51 pm

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 » Thu Aug 27, 2015 6:35 am

that.. what.. wow..

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 10430
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Playing a gif inside factorio

Post by ssilk » Thu Aug 27, 2015 9:28 am

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 » Thu Aug 27, 2015 2:32 pm

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 296 times
Last edited by Hunab on Thu Sep 10, 2015 2:29 pm, edited 2 times in total.

slpwnd
Factorio Staff
Factorio Staff
Posts: 1837
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Playing a gif inside factorio

Post by slpwnd » Fri Aug 28, 2015 7:45 am

Brilliant :)

User avatar
Twisted_Code
Inserter
Inserter
Posts: 45
Joined: Sat Jun 06, 2015 1:15 am
Contact:

Re: Playing a gif inside factorio

Post by Twisted_Code » Sun Sep 13, 2015 8:18 pm

Unless I missed my guess, you based this on this, right?
How to report bugs effectively because everyone should know this.
The game's tech tree, a visual reference guide (soon to be depreciated).

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 » Sun Sep 13, 2015 8:56 pm

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”

Who is online

Users browsing this forum: No registered users and 0 guests