Share your repls and programming experiences

← Back to all posts
My First Online Multiplayer Game :D
CodeSalvageON (574)

This is my first attempt at creating an online multiplayer game. I will be creating another one, so leave your suggestions and thoughts down below!
Official Discord Server: https://discord.gg/VQvB9Cu

Commentshotnewtop
studentAlfredAl (431)

Wow, what a pro. 1782 lines of code as well! You worked really hard, and the result is amazing. Keep up the superb work! :D

Uzalii (432)

ummm i prefer COD...

Uzalii (432)

@CodeSalvageON EPIC PROJECT THO!
When it gonna be on app store?

CodeSalvageON (574)

@Uzalii lmao i dont think its good enough to be on any store lol

HerculukeZeEpic (190)

This is awsome!

btw could you please make the error stop when I create a faction?
my faction is POTATO POWERS

CodeSalvageON (574)

@HerculukeZeEpic the problem seems to stem from curl itself. I will fix it in the next game :)

alextotoro1 (12)

@CodeSalvageON
Cant wait. I'm currently dying because I can't make one.

JuanR4140 (25)

teach me python networking or ill literally drink milk

DynamicSquid (3565)

@JuanR4140 why don't you drink milk already? ArE yOu OrAnGe JuIcE GaNg?

HahaYes (1212)

@DynamicSquid please no more Dani references... DRINK YOUR MILK

Cookiezz (65)

@JuanR4140 According to www.medicalnewstoday.com, calcium is an essential nutrient for strong bones and teeth, muscle movement, and nerve signals. Health authorities recommend getting enough calcium to help prevent bone fractures and osteoporosis. Milk offers a rich source of calcium.
So drink your milk! 🥛

JuanR4140 (25)

@DynamicSquid I am not orange juice gang, they are cringe

JuanR4140 (25)

@Cookiezz if milk is so good, imagine what the media says about orange juice :p

Cookiezz (65)

@techgeek680 😶 ok makes sense... well Drink almond milk! :D

techgeek680 (70)

i LOVE almond milk! :-) XD. Good Idea!!!!! @Cookiezz

ChezCoder (1498)

@techgeek680 nut milks make me want to barf 🤮 :(

[deleted]

That's so cool. And a that's a lot of code. I can see that a lot of effort was put into this project. Good Job!

uhmansoori (46)

Great game dude. Really dig the concept of creating an actual multiplayer game on the console with Python. Good job man. o( ̄▽ ̄)d

BobNeo (39)

Wow 17 installs. Cool game!

[deleted]

i am left speechless

ShivankChhaya (97)

Why did you make a ship name a swear word? I do not like this repl anymore.

ShivankChhaya (97)

@CodeSalvageON oh yes. I forgot! Its online so somebody else made the name?

ShivankChhaya (97)

@CodeSalvageON OHMYGOD! Somebody named their ship a swear word!

Jakman (454)

@ShivankChhaya are you 5? Who cares what words one uses to express themselves?

ShivankChhaya (97)

@Jakman First, I am 10, Second I wouldn't care if it wasn't a swear word.

Jakman (454)

@ShivankChhaya who calls them swear words bruh.

Jakman (454)

@ShivankChhaya you said i don't like this repl anymore. What kind of [Vulgarity removed by moderator] is that?

Jakman (454)

@ShivankChhaya alright. Ill see about that

Kognise (414)

@Jakman Hey, please try to be kind and respectful to fellow replers!

Jakman (454)

@Kognise I will tell it how it is. No more no less.

eekboi (272)

@Jakman Be nice, and don't swear.

ShivankChhaya (97)

@eekboi wait. im getting replies now??

DungeonMaster00 (130)

i cant believe it

THE FIRST SHIP I FOUGHT WAS NAMED A SWEAR WORD

clawstrike (16)

wow o_o. keep up the amazing x 5 trillion work!

Meffeka (2)

bruh this is great. I have tried many times to break it, BUT IT IS UNBREAKABLE!!! fun game!!

CodeSalvageON (574)

@Meffeka thanks! XSS fails due to the way the database stores the data and the way the game parses the received data. However, the game is heavily dependent on the client itself to do all the heavy lifting, hence the game's slowness.

Soccer135246 (2)

oh yeah and also people keep on naming their ship swearwords. I met the USS F**k

Soccer135246 (2)

GREAT. JUST GREAT. I AM AT A LOSS OF WORDS.

CodeSalvageON (574)

@AustinZhang1 Oh that was because of a simple flaw I had in my code. Looking back on it, I could’ve fixed it quite easily. Sorry about that.

Pyth0nline (0)

You work really hard... o.0

Pyth0nline (0)

@CodeSalvageON Wait how did you respond in under 30 min?

Pyth0nline (0)

@CodeSalvageON Do you constantly monitor your game?

CodeSalvageON (574)

@Pyth0nline nah dude this project is old

alextotoro1 (12)

Me: writes 5 lines of code: this is so tiring
Him: writes 1782 lines of code, making a really great game
Me: :0 how???
P.S. This is the best game ever created with WORDS AND SYMBOLS!!!! P.S.S. This is my computer background now.

CodeSalvageON (574)

@alextotoro1 thank you for your kind comment! I am flattered that you made my game your computer background xD

alextotoro1 (12)

@CodeSalvageON I made a stop-motion by taking several screenshots and making my computer switch through them ever second. Everyone thought I was off task when I was just looking at my screen. (Great graphics, they recognized it was a space ship)

CodeSalvageON (574)

@alextotoro1 nice!
Sources for the graphics are in credits.txt

alextotoro1 (12)

@CodeSalvageON

:)))))))))))))))))))))))))))))))))))))))))))))))))))))) yay!

VulcanWM (2175)

I'm trying to make a multiplayer game, where everyone has to contribute to defeat the villain. The problem is that only the people who have access to edit my game's data is being saved. Is there a way to make my game multiplayer, like you did with yours?
My game

CodeSalvageON (574)

@VulcanWM there are two ways to approach this. You can either do a competition-style game where the players each attempt to defeat the villain at their own pace, and the more damage they do, they move up the leaderboard, or a realtime game(Not recommended) where each player fights the villain at once.

VulcanWM (2175)

I know what you mean. I just need a way to connect all the user data with it being saved @CodeSalvageON

CodeSalvageON (574)

@VulcanWM you need to make a database

dillonjoshua68 (70)

@CodeSalvageON , if you learn c++ it would be amazing, totally recommend it, especially for building games

dillonjoshua68 (70)

Further research show, it aids you in grasping other languages, such as C#, and other object-oriented programming languages

CodeSalvageON (574)

@dillonjoshua68 yeah totally! I’m learning C and C++ right now

dillonjoshua68 (70)

@CodeSalvageON Nicuu dude... I’m gonna learn c++ t00 after I get a gud understanding of python, since I’m a rookie, I’m in my 1st year of computer
science, so we didn’t learn much, just the basics

dillonjoshua68 (70)

@dillonjoshua68 btw, which section of programming are u particularly interested in? I’m interested in cyber security

dillonjoshua68 (70)

@dillonjoshua68 and since you’re learning C and C++ together, it’ll be good for u, especially when u learn c++ (according to research made) it helps you in grasping other object-oriented programming languages.

LChan24 (9)

ok so to get rid of some lines just do
import os, mss, ect instead of line breaks

BuzzawJHKE (20)

Why are there so many USS Enterprise?

CodeSalvageON (574)

@jhke Star Trek references...

epicman702 (213)

Me coding simple dungeon

Looks at this game

Me: Rip

kingofdabs (1)

uh i can't get past the option for scout craft view command officer options, it just returns the number

CodeSalvageON (574)

@kingofdabs type in options 1, 2, or 3 and press ENTER whenever that happens.