Saturday, August 29, 2020

Automated Image Downloads from Twitter

When I want to include screenshots from games on my Switch or PlayStation in my blog posts, my process is as follows:

  1. Take a screenshot on the console.
  2. Use the console to send a tweet with the image attached.
  3. Download the image from Twitter onto my PC via Chrome.
  4. Upload the image from my PC to Google Drive.
  5. Embed the image on Google Drive in the post.
The bottleneck in this process is Step 3. Twitter makes it a real pain in the ass to download full-size images through a web browser, so I decided to route around the problem and write a Python script to automate the process via the Twitter API. For any other Python developers out there, here is my solution:

https://drive.google.com/file/d/1rNSaH_ncibw4byvsd7uZmORupz6ppXKX/view?usp=sharing 

This program reads all of the tweets from a specified user, checks if any of them are new, then downloads any images attached to the new tweets. Of course, you'll need to specify your own Twitter API keys.

Enjoy!

Sunday, August 16, 2020

The Biggest and the Bossiest

At long last, I have finally finished the first level of Metal Gear Solid V! For those of you who don't get the joke, Ground Zeroes was intended as the first level of what would be released as The Phantom Pain, but when it became obvious that MGSV wasn't going to be finished on schedule, it was split off, had some more content added, and was released as a standalone game.

Sixteen achievements. One level. 

In order to justify the sticker price without requiring more expensive content to be created, the game consists of seven missions that all take place in the same location, a fictionalized version of Guantanamo Bay in the mid-1970s. Unfortunately for my completionist playthrough, this means sitting through lots and lots of padding. Particularly offensive is the "Unlocked" achievement ("Unlock all trials"). Although it sounds simple enough, it requires the player to complete all missions on Normal and Hard difficulties, then mark all the enemies in all of the missions on Normal difficulty (except "Intel Operative Rescue"), then complete all the missions (again excepting "Intel Operative Rescue") again on Hard difficulty. To sum up, that's a total of 26 mission playthroughs. Keep in mind that there's only 7 different missions! Marking all of the enemies is an exercise in tedium, especially in missions where an enemy likes to lurk at a guard post on the edge of the map and there's no way near him except by getting into visual range of all his buddies. Of course, if you get spotted and the enemies call in reinforcements, you have to mark all of those enemies before killing them, or you'll fail the trial. However, even this pales in comparison to the pointlessness of having to complete the Hard missions twice for no real reason. There's no additional challenge to it: you just do the exact same mission again.

Speaking of "Intel Operative Rescue", that mission has an associated achievement that poses a real challenge: "Pacifist" ("Clear the "Intel Operative Rescue" Side Op without killing a single enemy"). If you want it, you'll need to complete the mission using nothing but the stun pistol and somehow restrain yourself from succumbing to the temptation to bust out the infinite-ammo grenade launcher you're supposed to be using. This will require you to quickly and repeatedly shoot the driver of a moving vehicle from another moving vehicle with a pistol. Good luck, have fun.

I'm Metal Gear-ed out for a while, but I'll eventually circle around to go achievement hunting in The Phantom Pain as well. Watch this space for the next video game I decide to take far too seriously!