Oussama Essamadi

Publications

A year leading development for a gaming community

What a year as the lead developer of TeamDRD, a SA-MP gaming community, taught me, from keeping a live server alive to the C++ behind it.

Publié

Temps de lecture

3 minutes

Article

Hello everyone, this one is a bit different from my usual tutorials, there’s no code to copy this time, just a look back at the thing that kept me busy for the whole past year.

How it started

TeamDRD was a gaming community with a history of SA-MP servers, two of which were active at the time, on which I spent hundreds of hours over the years, interacting and making friends. Those two were a DayZ server and a Cops and Robbers one, and there was also a Minecraft server. In July 2017 I took charge of the DayZ server, then of the Cops and Robbers one too, which basically means that everything players did on them went through code I was responsible for, written in PAWN. DayZ was the busier of the two, usually in the high 20s, sometimes in the 30s and nearing 40, though it could drop as low as 4. Cops and Robbers had 2 to 15 players, but more regulars who kept coming back.

I already knew my way around PAWN at that point, I had been writing scripts and tutorials for a while, but writing a filterscript for your own test server and keeping someone else’s game mode alive are two very different things, and I learned that pretty fast.

It was also a highlight for me for another reason: it came at a crossroads. I had just finished my formal studies and I wasn’t sure what to do with my life at that point, find a job, continue with academics, or something else entirely.

A live server is a different beast

On a test server, a bug is a line in your notes. On a live one, it’s players telling you about it at the same time, in the chat, on the forums and in your private messages (sometimes all three, by the same player, in a more broken English than mine). Every change I pushed was tested by real people within minutes of the restart, whether I liked it or not.

I fixed many, many bugs that year, but one I still remember is /cuff <playerid>: whoever you typed got cuffed, even if they were at the other side of the map. The fix was a simple vicinity check between the two players, so you could only cuff someone standing near you.

Bugs weren’t the scariest part, though. The data was. The database went back years, almost a decade’s worth of player data by then, so every migration, and any change that touched it, was stressful.

Growing it, not just fixing it

Keeping things running was only half of the job, the other half was adding to it, and that’s the fun part. I added merchants, more loot, new maps and zombies, and overhauled the UI, and some of it even got copied by other communities for their own DayZ servers.

The hardest part was never really technical. I had a big creative vision for these servers, and my skills or my time weren’t always enough to meet it, so more often than not, what went unmet was my own satisfaction with the result.

Where C++ came in

PAWN is great for gameplay, but it has its limits: no structs (enums do the job, sort of), strings that are just arrays of cells, and a fixed amount of memory for everything. If you read my string manipulation tutorial, you already know how much juggling that takes. That’s where C++ came in, through community-made plugins like MySQL and Streamer, which picked up what PAWN couldn’t do on its own. I used them for exactly what they were made for: MySQL to keep the data in a database, and Streamer to get past SA-MP’s limits on objects.

What I’m taking with me

I left in June 2018, and only because the owner decided to close TeamDRD for good. Looking back, that year was my LeetCode challenge, in a way, except the problems were real and the players were waiting on the answer.

That’s it for this one, thanks for reading, and see you in the next one!

Suivant

ouLes 21 publicationsouAu hasardouAccueil

ProjetsPublications

Chargement de la liste…

Chargement de la liste…

Raccourcis clavier

Recherche et commandes
Ctrl K⌘K
Passer du clair au sombre
T
Tous les projets
P
Toutes les publications
W
Chercher dans la liste ouverte
S
Accueil
H
M’écrire
C
Afficher ces raccourcis
?
Fermer ce qui est ouvert
esc

Les raccourcis sont activés.