loading...
Cover image for How My VIM Setup and Open Source Code Ended Up In an AAA Video Game

How My VIM Setup and Open Source Code Ended Up In an AAA Video Game

antjanus profile image Antonin Januska Updated on ・4 min read

This post has been cross-posted to my personal blog

I'm going to take you on a wild story that I tell everyone because I find it so exciting. It's been taking up the top spot as a pinned tweet on my Twitter and I just want to get my personal obnoxious story-sharing out of the way with this article so I can stop annoying people with it :)

The image

code screenshot

A few years back, I set it as my new banner image on LinkedIn when they introduced that feature on profiles. I thought it was kind of neat. I did not share that image anywhere else.

So what's in it?

It's my custom VIM setup that I used back then. In VIM, you can see that I have a project opened called popstar-cms and a file called reader.js. I mention this so that you know that the code written there is specifically my code.

Also note, I'm importing lodash at the top and that this project at this point in time has no license file.

The Ubisoft employee visit

At some point in time, I checked who viewed my profile on LinkedIn. Among a bunch of recruiters, unknown names, and whoever else, there was a single Ubisoft employee but I'd have to pay LinkedIn for a premium membership to reveal who that person is.

I didn't think much about it. All kinds of people view my profile. Maybe it was one of their web developers. Who knows.

The Tweets

Sometime later, I saw a tweet by John-David Dalton (creator of lodash). Around this time, it was quite a meme that Lodash was in everything. Everyone was using it and that was the joke so it didn't come as a surprise that lodash would show up in a random video game called Watch Dogs 2:

I remember idly liking the tweet without inspecting it. I was using lodash as well and the joke held true. I thought it was funny.

And then Dalton took the time to figure out that it's my project and tweeted @ me:

I was really surprised to see a tweet from him and I was beyond ecstatic to find out that my code ended up in an AAA game! I've heard of Watch Dogs and its sequel, I've never played it but I thought it was really really awesome. And of course, I told everyone about it.

Let's not forget to credit Paul who took the original screenshot.

(note: the project that Dalton tweeted at me was the wrong one, the banner app was a fork off the previously mentioned popstar cms)

The DedSec Screenshot

The screenshot is of a monitor at the hideout of a hacker collective called DedSec in a game called Watch Dogs 2 which was created by Ubisoft Canada -- and noooooow the random Ubisoft employee visit makes sense!

So before I leave this story alone (I mean, the big reveal already happened), I wanted to compare the two screenshots:

watch dogs 2 screenshot of a monitor

Ubisoft altered my original in a few ways:

  1. they removed my name and project name (which I'm truly bummed about)
  2. the file tree just features a few copy/pastes of the reader.js and parser.js file listings
  3. it looks like they selected only specific parts of each file buffer
  4. under the file tree, we actually see a section of the findFile function
  5. there are some random visualizations under the 2 buffers

Uhm, let's talk about Reddit

I was really excited about all of this at the time so I decided to share the story on Reddit and WOW. I did not expect people to be so crappy. Long story short, most people thought that the code in the DedSec screenshot had nothing to do with my screenshot which is just weird to me. I mean, they even copied my JSDoc code comment. Anyways...

A lesson for everyone: just don't go on Reddit. If you want to be part of a good tech community, stay here on dev.to or go to Twitter (if you dare).

Why mention the license?

Ok, so people on Reddit did have one good point. Ubisoft used my copyrighted screenshot without permission and they published portions of my code which was free to view on Github, but wasn't free to be used/copied/etc. in any way. I'm sure that this qualifies under fair use; however, I'm not a lawyer 🤷‍♀️.

I'm not mad about it, and geez, I won't make a stink about it, but it is interesting to me and makes me wonder how many other assets companies use without letting the creator know, without crediting them, and literally erasing their name from the assets so they could use them.

Posted on Jun 12 '19 by:

Discussion

markdown guide
 

Can you provide me with your vim configs?

 

Even though I am not an expert from the screenshot it is clear that he uses NERD-tree, vim-airline, and a dark theme, possibly solarized. You can easily install them with the plugin manager of your choice. Now regarding the vimrc file, the only thing I notice is that he has the numbers option enabled. (Finally, if you're new and wondering how can one have so many different files open, he utilises banners(!EDIT: buffers😂😢) Hope I helped.

 

Wait what are banners?

But yeah you got it all right otherwise! 🙂

It's not solarized but I don't remember what I was using back then, might be Gruvbox

Oh sorry 😂😂... I feel really bad about it now. I wanted to say buffers😢. Impressive article BTW. Thanks for sharing😉

 
 

Can you link to the Reddit thread please?

 

honestly, some of the comments were really upsetting so IIRC I deleted it :(

EDIT: Turns out one of the submissions I made is still available on the VIM subreddit.

 

Yeah, I understand. Sorry about your experience.

This one seems alright though.

yep! People were nice in this one :)

 

The Reddit bit really cracked me up. I love Reddit, but wow!! People sure lose the ability to think critically when bunched together in large groups.

 

Urgh, yeah, I don't recommend being on Reddit. So glad dev.to is here as an alternative for tech discussions