Skip to content
Sign upLog in
← Back to Community

swordbattle.io

Profile icon
CoderGautamYTHacker

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

Voters
Profile icon
MichaelPentecos
Profile icon
RogerCatchpole
Profile icon
19porsda
Profile icon
Aidan0626
Profile icon
BlueAntler
Profile icon
FilippoBallaben
Profile icon
ouoscar
Profile icon
DiegoRossi6
Profile icon
murema
Profile icon
malayak
Comments
hotnewtop
Profile icon
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!

Profile icon
MushyAvocado

@CoderGautamYT

Invalid image url

Does the image show up?

Profile icon
CoderGautamYT

No..

@MushyAvocado

Profile icon
MushyAvocado

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

Profile icon
CoderGautamYT

Ok, I made a deal with

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

Profile icon
india3

I played just now bots are not there.

@CoderGautamYT

Profile icon
CoderGautamYT

Yay! Looks like sedated is keeping his word.

@india3

Profile icon
erger565

@CoderGautamYT

tell sedated to delete the repl.

Profile icon
CoderGautamYT

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

@hghg81

Profile icon
erger565

@CoderGautamYT

:) I will check for you

Profile icon
erger565

@CoderGautamYT

it worked!!!

Profile icon
CoderGautamYT

Ok

@hghg81

Profile icon
CoderGautamYT

Nice!

@hghg81

Profile icon
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.:)

Profile icon
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

Profile icon
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. :)

Profile icon
CoderGautamYT

No, nevermind that. Thanks!

@HartajPartapPar

Profile icon
HartajPartapPar

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

Profile icon
CoderGautamYT

Thanks, good luck to you too! :)

@HartajPartapPar

Profile icon
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.

Profile icon
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

Profile icon
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

Profile icon
CoderGautamYT

Uh oh,

@sedated
is back with a new bot...

Profile icon
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...
Profile icon
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

Profile icon
XCode101

@Baconman321
@CoderGautamYT

There is still a botting prob

Profile icon
CoderGautamYT

I know, he's back

@XCode101

Profile icon
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.

Profile icon
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

Profile icon
XCode101

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

Profile icon
CoderGautamYT

How can I prevent this?

@sedated

Profile icon
sedated

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

image

Profile icon
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)

Profile icon
CoderGautamYT

K

@sedated

Profile icon
CoderGautamYT

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

@XCode101

Profile icon
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.

Profile icon
sedated

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

Profile icon
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)
Profile icon
CoderGautamYT

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

Profile icon
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.

Profile icon
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).

Profile icon
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.

Profile icon
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.

Profile icon
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

Profile icon
124423

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

Profile icon
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...

Profile icon
124423

@CoderGautamYT
I would also suggest implementing a CORS policy.

Profile icon
CoderGautamYT

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

@124423

Profile icon
RepohNiekie

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

@CoderGautamYT

Profile icon
124423

@CoderGautamYT
were working on a bypass right now

Profile icon
CoderGautamYT