I made a Diplomacy GIF Generator!

Anything about the Diplomacy game in general.

I made a Diplomacy GIF Generator!

Postby jforster » 27 Jul 2020, 10:48

NOTE: This does not work on chrome on android due to memory limits. I'm working on it.

Hey all, I've created a little tool for generating gifs from diplomacy games. http://diplomacygifs.herokuapp.com/

You enter a game ID and it will generate you an animated gif of the game.

Limitations:
  • Probably only works on modern browsers, I haven't tested it on older ones.
  • Currently doesn't work on android if you use the chrome or opera browsers (firefox is fine), trying to debug but it seems to be a memory limit issue. Desktop chrome and other mobile browsers seem to be fine though.
  • Won't work for older games, because playdiplomacy only stores the turn images for a certain amount of time.
  • It's currently hosted for free on heroku, which means if you're the first person to visit for a while it will take a long time to load. Be patient :D

Try it out and let me know what you think!
Last edited by jforster on 28 Jul 2020, 11:30, edited 2 times in total.
jforster
 
Posts: 4
Joined: 03 May 2016, 14:38
Class: Diplomat
Standard rating: (940)
All-game rating: (942)
Timezone: GMT

Re: I made a Diplomacy GIF Generator!

Postby Lukan » 27 Jul 2020, 11:30

I think it is supercool
User avatar
Lukan
 
Posts: 442
Joined: 30 Apr 2014, 19:56
Location: The best country in the world (no offence to all other countries that exist)
Class: Diplomat
Standard rating: (1696)
All-game rating: (1745)
Timezone: GMT+1

Re: I made a Diplomacy GIF Generator!

Postby VictoryFirst » 27 Jul 2020, 14:15

It's amazing!
VictoryFirst
 
Posts: 5
Joined: 07 May 2020, 11:18
Class: Diplomat
Standard rating: (955)
All-game rating: (955)
Timezone: GMT+1

Re: I made a Diplomacy GIF Generator!

Postby Custer » 27 Jul 2020, 16:49

So it does whaaaaa?

:?

Custer
First..........get off my lawn! Second........it's a dashing self portrait! Courtesy of The Craw. Third.....I am still SHIV, Keeper of the Stone Tablets! Go Pack! And behold the power of cheese! And one more thing. Say ya to da U.P. eh!
User avatar
Custer
Premium Member
 
Posts: 3662
Joined: 24 Jan 2009, 20:29
Location: Sailing somewhere in Da U.P. in Da Whitehawk and an original Yooper!
Class: Ambassador
Standard rating: 1004
All-game rating: 1323
Timezone: GMT-6

Re: I made a Diplomacy GIF Generator!

Postby Latanst1 » 27 Jul 2020, 17:03

Very nice and very much appreciated. I have been wanting something like this so many thanks for the efforts!

jforster wrote:NOTE: This does not work on chrome on android due to memory limits. I'm working on it.

Hey all, I've created a little tool for generating gifs from diplomacy games. http://diplomacygifs.herokuapp.com/

You enter a game ID and it will generate you an animated gif of the game.

Limitations:
  • Probably only works on modern browsers, I haven't tested it on older ones.
  • Currently doesn't work on chrome on android, trying to debug but it seems to be a memory limit issue. Desktop chrome and other mobile browsers seem to be fine though.
  • Won't work for older games, because playdiplomacy only stores the turn images for a certain amount of time.
  • It's currently hosted for free on heroku, which means if you're the first person to visit for a while it will take a long time to load. Be patient :D

Try it out and let me know what you think!
User avatar
Latanst1
Premium Member
 
Posts: 91
Joined: 29 Apr 2018, 02:06
Location: Tokyo Japan
Class: Star Ambassador
Standard rating: 1106
All-game rating: 1181
Timezone: GMT+9

Re: I made a Diplomacy GIF Generator!

Postby Jack007 » 27 Jul 2020, 22:17

I get an error with Opera for Android.
Jack007 (xxxx.) unbanned for dubious reasons
Member of the Honorables
There is no greater solitude than the samurai's,
unless it be that of the tiger in the jungle… perhaps…
-bushido
User avatar
Jack007
Premium Member
 
Posts: 1167
Joined: 08 Mar 2014, 17:34
Location: Greece (Monemvasia Peloponnese) ⛵ Instagram @jack060856
Class: Star Ambassador
Standard rating: 1529
All-game rating: 1626
Timezone: GMT+1

Re: I made a Diplomacy GIF Generator!

Postby Jack007 » 28 Jul 2020, 11:20

Hm.. If it's a memory issue, maybe you can compress the pics before combining. Or extract only the changing elements and overlay to the unchanged content. Well, I'm not a specialist :?

Anyway, the idea of animating the game history is great.
Jack007 (xxxx.) unbanned for dubious reasons
Member of the Honorables
There is no greater solitude than the samurai's,
unless it be that of the tiger in the jungle… perhaps…
-bushido
User avatar
Jack007
Premium Member
 
Posts: 1167
Joined: 08 Mar 2014, 17:34
Location: Greece (Monemvasia Peloponnese) ⛵ Instagram @jack060856
Class: Star Ambassador
Standard rating: 1529
All-game rating: 1626
Timezone: GMT+1

Re: I made a Diplomacy GIF Generator!

Postby jforster » 28 Jul 2020, 11:28

Looks like Chromium on Android (which is what powers android Chrome and Opera) has some memory limitations that the other browsers don't. The easiest fix is probably to use a different method to generate the gif. I might spend some more time on it at the weekend to fix. For now it's desktop/iOS/Firefox only though :(
jforster
 
Posts: 4
Joined: 03 May 2016, 14:38
Class: Diplomat
Standard rating: (940)
All-game rating: (942)
Timezone: GMT

Re: I made a Diplomacy GIF Generator!

Postby Jack007 » 28 Jul 2020, 12:58

Just loaded it with Firefox Focus. Looks great, nice work. :)

Wanted to save the gif file, for a posting on Instagram, but couldn't save it. Only the link can be saved. Maybe I'm doing something wrong.. anyway, no prob.
Jack007 (xxxx.) unbanned for dubious reasons
Member of the Honorables
There is no greater solitude than the samurai's,
unless it be that of the tiger in the jungle… perhaps…
-bushido
User avatar
Jack007
Premium Member
 
Posts: 1167
Joined: 08 Mar 2014, 17:34
Location: Greece (Monemvasia Peloponnese) ⛵ Instagram @jack060856
Class: Star Ambassador
Standard rating: 1529
All-game rating: 1626
Timezone: GMT+1

Re: I made a Diplomacy GIF Generator!

Postby jforster » 28 Jul 2020, 13:45

Hmm, I don't know why you were unable to save it. Saving works ok for me :/
jforster
 
Posts: 4
Joined: 03 May 2016, 14:38
Class: Diplomat
Standard rating: (940)
All-game rating: (942)
Timezone: GMT

Next

Return to Diplomacy Lore

Who is online

Users browsing this forum: No registered users and 0 guests