DEV Community

Cover image for How My VIM Setup and Open Source Code Ended Up In an AAA Video Game
Antonin J. (they/them)
Antonin J. (they/them)

Posted on • Edited on • Originally published at antjanus.com

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

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.

Top comments (14)

Collapse
 
rubiin profile image
Rubin • Edited

Can you provide me with your vim configs?

Collapse
 
chatziiola profile image
Lamprinos Chatziioannou • Edited

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.

Collapse
 
antjanus profile image
Antonin J. (they/them) • Edited

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

Thread Thread
 
chatziiola profile image
Lamprinos Chatziioannou • Edited

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

Thread Thread
 
antjanus profile image
Antonin J. (they/them)

thanks! :)

Collapse
 
antjanus profile image
Antonin J. (they/them) • Edited

Sure! here you go

Collapse
 
joycebabu profile image
Joyce Babu

The link is broken due to an extra space character in the url

Thread Thread
 
antjanus profile image
Antonin J. (they/them)

my bad! Fixed it! :)

Collapse
 
qm3ster profile image
Mihail Malo

Can you link to the Reddit thread please?

Collapse
 
antjanus profile image
Antonin J. (they/them) • Edited

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.

Collapse
 
qm3ster profile image
Mihail Malo

Yeah, I understand. Sorry about your experience.

This one seems alright though.

Thread Thread
 
antjanus profile image
Antonin J. (they/them)

yep! People were nice in this one :)

Collapse
 
paroxallax profile image
Triston Chavez

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.

Collapse
 
antjanus profile image
Antonin J. (they/them)

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

Some comments may only be visible to logged-in visitors. Sign in to view all comments.