Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
878

swordbattle.io

CoderGautamYT
CoderGautamYT

image

Multiplayer Swordbattle.io

Kill Players, Get Huge!

Click here to play the game!

This is my kajam submission. I hope you like it!

How to play?

The game is fairly simple, become the hugest player of them all.

How to get huge?

Well, it's simple, you have to collect coins that are scattered around the map. Coins make you slower, but make you bigger, make your sword longer, and makes your sword more stronger. You can move around the map with WASD or Arrow Keys!

image

Killing Players

Collecting coins takes so long, that's why each player comes with a ka-sword. Just kill other players by clicking with your mouse and they will drop all their coins!

How to win?

Well you have to get huge. Really huge

Conclusion

Well that's all I have to say about this game, the past 1 week has been amazing. Normally I lose motivation for my projects quickly, but kajam kept me going..

"money can do weird things to people" -

@Coder100

Anyways, I hope you enjoy Multiplayer Sword.io, See ya!

Click here to play the game!

I MADE A DEVLOG, PLEASE WATCH: https://youtu.be/59mjZehbvHA

- CoderGautamYT

1 year ago

Voters

Comments

TopNew
35
CoderGautamYT
CoderGautamYT

Botting problem!

Hey! There is a big botting issue going on right now. It's being done mostly by

@sedated
.

List of bots:

Sword.io Bot - Probably the most basic bot, crashes servers by spamming socket connections (PATCHED)

TamperWare - Also crashes servers, but uses a different method and is way more effective (PATCHED)

SedatedAgent - A kinda cool bot if I say so myself.. It uses AI Pathfinding and Combat to automatically collect coins and kill players. (PATCHED)

LagRequester - A bot that spams get requests on the server to cause major lag and disconnections. (PATCHED)

test - A very simple (but annoying) bot that uses a movement exploit to achieve a teleportation effect. (DEVELOPMENT STOPPED)

SedatedAI - Basically SedatedAgent but undetectable and more smart and powerful. (PATCHED)

ReddCrasher - An updated server crasher (PATCHED)

SERVER RESTART - A bot that uses an exploit to crash and restart the servers (DEVELOPMENT STOPPED)

KnotBot - A bot that's able to bypass recaptcha and is able to move around the map randomly (PATCH IMPLEMENTED, NOT CONFIRMED PATCH)

If you see any of these bots, please reply here with a screenshot.

EDIT:

I am so sorry about the amount of downtime this is having. All these people are making bots for my small game and I'm working desperatly to add a anticheat. The game is being spammed with so many requests and getting crashed right as I start it. Please bear with me as I do violence to these hackers.

EDIT 2:

I have implement v1 of my anticheat. This should prevent botters from crashing servers. I am not 100% sure if this method will work, but let's wait and see.

Edit 3:

Ok so the botters have figured a way around this. I am working to implement invisible recaptcha. This means that most botters can be stopped.

Edit 4 - Oct 31, 2021:

Say goodbye to botters! Google's Invisible Recaptcha has been added! This should stop most bots from joining. Let's see how these stupid botters can bypass this!

Edit 5 - November 1, 2021

Let's goooo!

Screenshot 2021-11-01 8.28.04 AM

Edit 6 - Nov 18, 2021

Another new bot has been developed, called KnotBot. I am not sure how this bot is able to bypass the captcha, but I am working to figure it out. Sorry for any inconvenience this bot causes.

Edit 7: Dec 23

KnotBot has been patched!

1 year ago
8
MushyAvocado
MushyAvocado

@CoderGautamYT

Invalid image url

Does the image show up?

1 year ago
3
MushyAvocado
MushyAvocado

@CoderGautamYT
There were a ton of sedated bots. Idk why the image won't load.

1 year ago
3
CoderGautamYT
CoderGautamYT

Ok, I made a deal with

@sedated
, he said he will not bot my game anymore, so we're safe... for now...
@MushyAvocado

1 year ago
4
india3
india3

I played just now bots are not there.

@CoderGautamYT

1 year ago
3
CoderGautamYT
CoderGautamYT

Yay! Looks like sedated is keeping his word.

@india3

1 year ago
3
erger565
erger565

@CoderGautamYT

tell sedated to delete the repl.

1 year ago
4
CoderGautamYT
CoderGautamYT

I've done a update to the game. bots should have stopped lets gooo.

@hghg81

1 year ago
2
erger565
erger565

@CoderGautamYT

:) I will check for you

1 year ago
4
HartajPartapPar
HartajPartapPar

@CoderGautamYT
Thx for solving issue. Nice game btw :), I also hate it when people just try to ruin your creation for no reason. It sucks man. Keep on going man, you're doing great. BTW, I forked this, and making a few changes to it, if you were fine with that.:)

1 year ago
3
CoderGautamYT
CoderGautamYT

Yeah, completely fine with it. Make sure to remove the commented code if you want to run the game on replit, right now it redirects to heroku.

@HartajPartapPar

1 year ago
5
HartajPartapPar
HartajPartapPar

@CoderGautamYT
Sorry, I have literally no clue what that means. Are you trying to tell me to instead of npm start, use a different kind of thing? And this game is LEGIT, I wish you the best of luck on winning the kajam competition. :)

1 year ago
5
CoderGautamYT
CoderGautamYT

No, nevermind that. Thanks!

@HartajPartapPar

1 year ago
4
HartajPartapPar
HartajPartapPar

@CoderGautamYT
Np, I'm very bad at coding for the most part. Goodbye, and good luck :)

1 year ago
3
CoderGautamYT
CoderGautamYT

Thanks, good luck to you too! :)

@HartajPartapPar

1 year ago
4
Baconman321
Baconman321

@CoderGautamYT
How the do bots even work?

Do they like exploit and one/two shot you (someone did that and their name was "test"), or are they programs that follow players?

The bots seems awfully complex and time-consuming for a game that just came out, or is there some sort of easily exploited vulnerability in your system.

1 year ago
5
CoderGautamYT
CoderGautamYT

Well the bots work by just sending packets the same way a player does. The current one that's going on (called test) is a movement exploit. To prevent slow movement for players with high ping, I made it so that high ping players can move faster to compensate for the less amount of packets they send. The test bot exploits that and sends a really low amount of packets. This makes it acheive fast movement or a kind of teleportation. There are so many different kinds of bots and I have no idea why people are spending so much time making them but I am trying my best to prevent any game-breaking bots from crashing servers (yes that has happened before)

@Baconman321

1 year ago
3
CoderGautamYT
CoderGautamYT

I would say the test bot isn't that OP or makes the game unfair to normal players. Yes it can be annoying but I think it's not too bad. I will take action if he adds AI Pathfinding or Combat to it. (and also yes AI bots have been made that collect coins and follow and kill players)

@Baconman321

1 year ago
2
CoderGautamYT
CoderGautamYT

Uh oh,

@sedated
is back with a new bot...

1 year ago
4
Baconman321
Baconman321

@CoderGautamYT
Kind of sad but I'm going to say it.

It's amazing how dedicated people are (and talented) at making bots.

Maybe you could make a test arena and allow bots there, just to spark creativity and problem-solving (although, they might as well make their own game for it).

Also make the test arena accessible to normal players, so they can just see how the bots are interacting (and add a spectator mode). This is all an idea, but maybe it would encourage people to try a place where they are allowed to exploit (to divert attention from the main area. Plus, bots can have better skills and accuracy than humans can, so it would be challenging to make your bot superior to others... kind of a bot competition!).

Honestly though, I am sad that people are wasting their time on doing harm.

Although it does seem fun to program bots like that. Like I said, maybe make a bot competition. If you don't, IG i could make something similar, although my game dev skills are non-existential right now...
1 year ago
2
CoderGautamYT
CoderGautamYT

Its annoying how a lot of people don't care about making good bots they just like to spam connections to crash the server.

@Baconman321

1 year ago
2
XCode101
XCode101

@Baconman321
@CoderGautamYT

There is still a botting prob

1 year ago
4
Baconman321
Baconman321

@CoderGautamYT

that seems fun too. May I commit white hat?

Can you use cloudflare? I think that has DDoS protection, which may help your botting problem.

1 year ago
5
sedated
sedated

@Baconman321
I'm not ddosing anything. All I do is create a socket that connects to the URL, and creates an interval that sends attack and movement packets.

image

1 year ago
2
XCode101
XCode101

@CoderGautamYT
You might be able to add an IP ban.

1 year ago
3
CoderGautamYT
CoderGautamYT

How can I prevent this?

@sedated

1 year ago
3
sedated
sedated

@CoderGautamYT
Also someone is crashing the server by spamming connections. Read into CORS to fix remote connections.

image

1 year ago
4
Baconman321
Baconman321

@sedated
I advise you not to do it if it is illegal, these kind of things are very dangerous if pursued wrongly, and can end you up in jail at the very worst (or less life-changing but still frustrating - banned from replit).

As long as it's ok, then sure go ahead. Just be careful and always check the rules (exploiting loopholes is also a nono, most ToS will prevent exploitation of loopholes)

1 year ago
2
CoderGautamYT
CoderGautamYT

I have a basic version implemented, working to improve it.

@XCode101

1 year ago
2
Baconman321
Baconman321

@sedated
So you use pathfinding?

How does that work, and how do you tell where the players are on the map?

Do you program all of this by yourself, because that is a lot for just a couple of days IMO.

1 year ago
3
sedated
sedated

@CoderGautamYT
"ReddCrasher" is a skid off "TamperWare". Same thing, you haven't patched it. All it does is cal io(game_url) repeatedly.

1 year ago
3
sedated
sedated

@Baconman321

  1. I don't use pathfinding. There are no obstacles on the map, which makes it very, very simple.
  2. I read it directly from the players object sent from the server.
    image
  3. Yes, I coded it in around 1 day in school because I was bored. (like 1-2 hours)
1 year ago
4
CoderGautamYT
CoderGautamYT

Amazing!!! Your sooo good at coding [email protected]

1 year ago
4
sedated
sedated

@CoderGautamYT
I'd like to see you patch cheating through the client by using tampermonkey. But if you do, congrats because your game is now much more secure so you don't have to worry about large-scale hacks if your game grows.

1 year ago
2
Baconman321
Baconman321

@sedated
So the game returns the player positions?

Well, I mean kind of obvious.

I assume if you know enough it isn't that hard (i've never tried. But you'd have to know your location as well as the other players, choose a target then calculate how to get to them as well as compensate for updates)...

Sounds simple in concept but hard to put into practice if you don't know what you are doing (like me).

1 year ago
5
sedated
sedated

@Baconman321
The game sends each player's positions, which I store in an object.

I then run "chooseTarget()" until a valid target is found.

I then set an interval (1ms) that first checks if the target is valid (prevent following dead/left server players) then follows them based on the difference between my and their position.
I also set a seperate interval that just spams attack.

1 year ago
2
124423
124423

@CoderGautamYT
Hey, Iv actually been working with
@sedated
on the bots. We actually decided to create a debug/test server @ https://0276c611-5213-4643-b37e-462194808c4b.id.repl.co/ in hopes to minimize the impact on your game. Just saying were doing this for fun, not to be malicious. I also would like to state that
@sedated
still insists on testing it on the real game with players once and a while.

1 year ago
4
CoderGautamYT
CoderGautamYT

Alright, it's fine, just please don't spam the server with people until it crashes. It's fine if you do only 1 or 2 of them.

@124423

1 year ago
3
124423
124423

@CoderGautamYT
The way the bot works there is only one player at least in the current version.

1 year ago
1
Baconman321
Baconman321

@sedated
Would be nice if you could make a more complicated algo. I could help, but I don't know much about NodeJS and I'm somewhat busy...

1 year ago
3
124423
124423

@CoderGautamYT
I would also suggest implementing a CORS policy.

1 year ago
3
CoderGautamYT
CoderGautamYT

Alright, try running your bot thingy, does it bypass?

@124423

1 year ago
2
RepohNiekie
RepohNiekie

Yay, there are no bots when I tried to play. Seems like your anticheat v1 patch worked!

@CoderGautamYT

1 year ago
2
124423
124423

@CoderGautamYT
were working on a bypass right now

1 year ago
3
FrancisPan
FrancisPan

@CoderGautamYT
I couldn't get the photo, but a bunch of Freekill :) named players came into the server. Not complaining tho, didn't break the server, just gave free coins.

1 year ago
1
FrancisPan
FrancisPan

@CoderGautamYT
7 of them came and whenever I killed them they rejoined.

1 year ago
1
3
Baconman321
Baconman321

@CoderGautamYT
If you don't want a bot then ok (I've never really made bots anyways).

It would be fun to have an arena to test bots out with, but your game so your choice.

1 year ago
3
Baconman321
Baconman321

@sedated
As long as you send/receive data from the client your game will always be vulnerable to something.

The best thing you can do

@CoderGautamYT
is have the game to be an i/o board and only send keystrokes and then have the server process them into instructions, then form an image on the server then send it to canvas (so that the players can't intercept the other player's positions. However, lag will be a big issue because you have to send images over a socket every game tick). A problem with the image though is that the resolution would have to match the screen. You could do this by sending the canvas size to the server and have the server render the image based off of those specs (so the specs would be different for each client). But, people could potentially exploit this by sending absurdly large dimensions so your client would have to work overtime to produce the image thus lagging the game. You could put measures on this by refusing clients sending absurdly large dimensions (dimensions that not even gamers with a 50 inch OLED - yes alienware makes a 50 inch OLED - monitor would have), and/or after a certain point just stop scaling up the resolution and force the client to deal with a lower resolution (will be an annoyance to people because everyone knows lower resolutions are so eye-straining and awful).

Diep.io has an interesting way of warding off bots, by requiring a computation-intensive calculation called POW (proof of work... no diep.io is not mining bitcoin). One client alone works fine; it doesn't lag. But if you run multiple clients it becomes extremely slow and strains your CPU. Also, if you refuse to respond with a POW within 10 seconds you get kicked. Since the bots are hosted on repl and repl naturally has pretty slow computing power you will likely ward off most bots hosted on low computing power platforms.

The source is from reddit, so I cannot verify the truthfulness of the claim, but see for yourself: https://www.reddit.com/r/Diepio/comments/kgyv51/diepio_might_use_your_computer_to_mine/

1 year ago
3
CoderGautamYT
CoderGautamYT

I agree, once the game is good enough, I'll make a no anticheat test arena. Just dont help them make a hack for the normal servers.

@Baconman321

1 year ago
5
Baconman321
Baconman321

@CoderGautamYT
Recaptcha is very hard to be beaten by bots.

Oh wait, nvm a bot already beat it: https://www.youtube.com/watch?v=fsF7enQY8uI XD

Although, like they said they could make multiple tabs and then use an extension like tampermonkey to control the bots once recaptcha has been bypassed by the human (the number of bots is limited to their computer's power as well as how many recaptchas they can work through by hand). Because of this, I recommend you look into the POW concept I gave you.

1 year ago
3
CoderGautamYT
CoderGautamYT

It's fine lol, bots problem have stopped, im gonna add more features and mechanics to the game so its more fun. Bots and anticheat are the next [email protected]

1 year ago
2
CoderGautamYT
CoderGautamYT

was he cheating or botting?

@mollthecoder

1 year ago
3
HrushalNikhare
HrushalNikhare

@CoderGautamYT
I am a human GEtting kicked out of the game why?

1 year ago
2
CoderGautamYT
CoderGautamYT

Slow wifi probably, try refreshing the page. Sometimes it just "does" that. I'm trying to improve it.

@HrushalNikhare

1 year ago
3
mollthecoder
mollthecoder

@CoderGautamYT
They just stood there, but occasionally they'd move for a few seconds towards a player while spam attacking. I'm worried that soon they'll start acting like the normal bots again.
@sedated
is making extrememly complex things and i'm not surprised that he already bypassed the restrictions.

1 year ago
3
CoderGautamYT
CoderGautamYT

Hmmm, he said he stopped making bots, I have to dig deeper into this, will update you if I find something.

@mollthecoder

1 year ago
3
HrushalNikhare
HrushalNikhare

@CoderGautamYT
that i'm a bot or some thing

1 year ago
3
CoderGautamYT
CoderGautamYT

You probably have a low captcha score. Try logging into google and trying again. (this can improve your captcha score because I'm using Google's recaptcha)

@HrushalNikhare

1 year ago
3
mollthecoder
mollthecoder

@CoderGautamYT
I want to clarify that "SERVER RESTART" wasn't actually restarting servers, it was just the bot's name, probably to scare players. It acted like a normal bot.

1 year ago
2
ABirdCoder
ABirdCoder

@CoderGautamYT
It seems like such a big botting problem for such a small game.

Maybe I could help with anticheat?

1 year ago
2
ABirdCoder
ABirdCoder

@CoderGautamYT

What the-

image

Screenshot 2021-11-08 6.20.49 PM

Guy gained that in around 2 seconds - top.

1 year ago
3
CoderGautamYT
CoderGautamYT

Probably killed a big player, players drop their coins when they die.

@ABirdCoder

1 year ago
3
CoderGautamYT
CoderGautamYT

I got things covered for now, I'll let you know if I need any help, thanks!

@ABirdCoder

1 year ago
3
RixTheTyrunt
RixTheTyrunt

How can you make a "bot" for this game?

1 year ago
2
CoderGautamYT
CoderGautamYT

By sending packets to the server exactly how a normal player would.

@RixTheTyrunt

1 year ago
2
dof
dof

bot bypass captcha sad

@CoderGautamYT

1 year ago
2
treem-heem
treem-heem

@CoderGautamYT
sorry for bothering you again but i have a quick question. is the smaller-player-inside-bigger-player thing patched? I couldn't tell that well when i played. Sorry for bothering you again.

1 year ago
1
CoderGautamYT
CoderGautamYT

It's not a bug, It's actually an intentional thing so that small players actually have a chance at killing bigger players. I am working on a hit cooldown so that bigger people can't just spam their mouse. Once that is added, i will make it so that you cant go inside people anymore.

@treem-heem

1 year ago
2
IroncladDev
IroncladDev

Wow man, I feel really bad for ya.

@CoderGautamYT

Nice improvements to the game! Now it's super polished and nice!

1 year ago
1
CoderGautamYT
CoderGautamYT

It's fine, I've gotten used to the bots and hackers lol. And thanks!

@LeviathanCoding

1 year ago
2
HazardYT
HazardYT

@CoderGautamYT
yo bro what happend to size i got 15k and im not the right size what happend

8 months ago
15
CoderGautamYT
CoderGautamYT

Please open the game in new window for a better experience

1 year ago
12
Tamilcoder
Tamilcoder

Nice game but some time i play the hitbox isnt working correctly and i have a bit reach. Fix pls

1 year ago
12
CoderGautamYT
CoderGautamYT

Yes I know I will fix it later (it's harder than you think)

@Tamilcoder

1 year ago
11
justaperson22
justaperson22

Hmmm its kinda sus how a lot of the upvoters don't have repls

1 year ago
4
india3
india3

me too. i am learning C language

@PeweAtBomoAds

1 year ago
9
BabovaJones
BabovaJones

This game should win 100000% #getswordiotrending

1 year ago
7
CoderGautamYT
CoderGautamYT

Achievements!

  • 1,000 Plays: Oct 25, 2021
  • 2,000 Plays: Oct 27, 2021
  • Trending (Talk): Oct 27, 2021
  • Trending (Apps): Oct 28, 2021
  • Amasad Commented!: Oct 28, 2021
  • 100 likes: Oct 30, 2021
  • 5,000 Plays: Oct 31, 2021
  • 100 updoots: Oct 31, 2021 (thanks
    @p1ckl3
    )
  • 10k Plays: Nov 4, 2021
  • 20k Plays: Nov 17, 2021
  • 500 Updoots: Nov 24, 2021 (thanks
    @jpage654
    )
1 year ago
7
JusticeFriedt
JusticeFriedt

good job its good... no great... no amazing... no THE BEST

1 year ago
6
ruiwenge2
ruiwenge2

nice i reached 1000

image

1 year ago
6
ruiwenge2
ruiwenge2

1262 now with 31 kills

1 year ago
3
india3
india3

Wow i have only reached 100 max

@ruiwenge2

1 year ago
2
cdCreepArghhh
cdCreepArghhh

@india3
Try playing when no one else is online (although that is hard to do...)

1 year ago
4
PixiGem
PixiGem

@ruiwenge2
pro gamer move
IM BACK TO REPLIT LES GOOOO

1 year ago
Load more