hasangergames / survivreloaded-server Goto Github PK
View Code? Open in Web Editor NEWAn open source server for the defunct online game surviv.io. Work in progress.
Home Page: https://resurviv.io
An open source server for the defunct online game surviv.io. Work in progress.
Home Page: https://resurviv.io
Question 1: How you guys host the server? with what provider\what method you used to host the server publicly?
Issue 1: The server is TOO SLOW, and when being on multiplayer, it's becoming horrendously slow, and sometimes, crashes on my end!
Question 2: Is this project trying to compete with opensurviv.io? or is this a standalone project that is having the same motto as opensurviv.io?
Issue 2: In the game, I can walk through the windows, and the doors, well you can hit them, but it won't block you, but the interesting part is, the walls block you, but the doors don't!
Issue 3: Even if more than 1 player is there, the "waiting for players" screen still doesn't update
Issue 4: The kill count for the game, is still showing " 84 kills"!
After selecting the Chinese language, the text is not loaded.
reloading the page, causes to not longer load the game until clear the cookies
there is an error 404 not found After inspecting the page
affected
zh-cn
zh-tw
https://streamable.com/v2lim6
are not added yet?
Doors haven't been implemented yet.
Ok so I think I got everything set up correctly but when I go to join a game it says I joined in the command prompt and it changes the audio but nothing happeneds the play solo button is stuck on loading and thats all so I don't know if I messed something up.
These values don't feel right:
survivreloaded-server/src/game/game.ts
Lines 284 to 290 in 9cfcaf1
Based on the wiki article (https://survivio.fandom.com/wiki/Adrenaline), it should be
if (p.boost > 0) p.boost -= 0.01125;
// Health regeneration from adrenaline
if (p.boost > 0 && p.boost <= 25) p.health += 0.03;
else if (p.boost > 25 && p.boost <= 50) p.health += 0.1125;
else if (p.boost > 50 && p.boost <= 87.5) p.health += 0.1425;
else if (p.boost > 87.5 && p.boost <= 100) p.health += 0.15;
Very cool project! It's sad to see the original game die and the servers to shutdown. It would be awesome to preserve the game and allow people to create self-hosted servers. If I understand it correctly, this repository is basically a rewrite from scratch of the server code. And after a quick test, I'm happy to see the game somewhat playable, but there still seems to be a long way to go. Keep up the great work!
In the README you wrote
When the original site shuts down, I will upload the modified client to this repo.
and since the servers are shut down now, it might only be a matter of time until the surviv.io website becomes unavailable. I'm not a lawyer, but I assume that Kongregate still owns the rights to all of the game assets though, so I wonder whether re-uploading them would easily be possible/allowed.
Anyways, here is a small Python script which could be used to download all of the ressources given in the reference/urls.txt
file (presuming the script is saved as a Python file directly in the repo folder):
import os
import requests # install with `pip install requests`
from pathlib import Path
from urllib.parse import urlparse
repopath = os.path.dirname(os.path.realpath(__file__))
try:
with open(os.path.join(repopath, 'reference', 'urls.txt')) as f:
for line in f.readlines():
url = line.rstrip()
print(url)
r = requests.get(url)
if r.status_code == requests.codes.ok:
filepath = os.path.join(repopath, 'public', Path(urlparse(url).path[1:]))
dirpath = os.path.dirname(filepath)
if not os.path.isdir(dirpath):
os.makedirs(dirpath)
open(filepath, 'wb').write(r.content)
else:
print('could not download ', url)
except OSError as e:
print(e)
Besides the replacement within the JavaScript file which is mentioned in the README, I had to also rename the js/app.<some hex digits>.js
and css/app.<some hex digits>.css
files to match the filenames which are referenced in index.html
(or vice versa).
This was more of a general comment rather than an issue, so feel free to close.
example Click here if gif dosn't load
The client side perfectly renders bullets based on their bullet speed. However, the server doesn't calculate bullet speed at all.
no.
My shots register 20% of the time. There's random people everywhere that disappear mid game and rounds don't start or restart like they should. Good loot is too common and should be way more uncommon. Roofs don't collapse and club isn't fully developed so I really don't know the point of adding it into the game yet. There's no toilet or slowing down when shooting a gun. You can't OC, it should the other gun instead of the gun you're trying to OC. It's glitchy/laggy. (Just some criticism)
This code doesn't implement surviv.io's timer system correctly:
survivreloaded-server/src/game/objects/player.ts
Lines 668 to 673 in 9cfcaf1
In the "old system" before the double pump nerf around Sep 2018, it should be
weaponCooldownOver(): boolean {
return Date.now() - this.activeWeapon.cooldown >= this.activeWeapon.cooldownDuration;
}
In the "new system" between that and their shutdown, it would involve the "free switch timer", which I describe in great detail at surviv-underclock/docs. In that document, effective switch delay roughly corresponds to weapon cooldown.
Anyone new here or being tired of going to CLI and running 3 commands, well here is a batch file, which is really simple, you start it anywhere in your windows machine, provided you need to change your path.
here's the code for that, since github doesn't allow batch files to be shared.
@echo off
cd \ && cd users\viswa\onedrive\documents\github\survivreloaded && npm install && npm run build && npm start
Then in another window, enter this
start "" http://127.0.0.1:8000
here I put my path to my copy of survivreloaded, you change the path where you have the MAIN survivreloaded folder, like the top level repo folder, not the public folder.
and also, place this batch file in C:\Windows or C:\Windows\system32 or C:\Windows\syswow64 or any system folder (which is included in the %PATH% environment variable)
to check what folders you have in your %PATH% environment variable, you go to the terminal and type in echo %PATH%
You can use this batch file, from above and beyond Windows NT 6.0 or more with npm installed
Fresh Run Example If Gif Dosn't Load
Example If Gif Dosn't Load
Example If Gif Dosn't Load
Not all doors are affected by this bug
Hello!
This is a very solid game! There is one issue, as the title suggests, that there is not much ammo that spawns. It's kind of annoying. Also it's easier to find the PKP than bandages, which definitely should not be happening. It should not be that hard of a fix, as you can just make them as world loot and under the berry bushes. Once again, very good game!
P.S. I would like to help develop this game with you all. I have programmed with node.js, HTML, CSS, and (most importantly) JS before. I am also the creator of tritanks.eagleeye2010.repl.co, a basic multiplayer shooter game. I have also been playing surviv somewhat often from 2020 to it's death in 2023.
I left a complaint here saying that the game server had lags, now it takes 2 minutes just to load up the site, and it's still not finished loading yet!
Before the recent update in the past week, the website launched fine and fast, really fast than surviv.io itself, it was just the gameplay that sometimes lagged.
Now, I've been waiting for 5 minutes (real) and it's still stuck loading the notification permission screen!
Now, it takes 3 minutes fully to load up the background of the website.
Reasons why i hate this game?
My brother told me to not play that copy of surviv.io.
Can you add the Report system?
I tried to do the said steps in the README file to get the client patched, but when I run npm run build, it doesn't work, saying 'tsc' is not an operable file.
Does that mean... I need to redo the whole process, is there any fix?
I am quite new to node.js, so, am I doing something wrong here?
Screenshot 2 under Windows Command Prompt...
Keep in mind, this is done in a network drive (The path is Z:........\survivreloaded)
Because I attempted to do this in WSL.
FPS counter would be nice
Everything I break spawns a 15x scope, let it be a crate, rock, tree, or any breakable object.
Is this supposed to happen?, Or is it a bug in my copy of the client?
In src/game/bullet.ts line 91
I replaced this code
this.body.setLinearVelocity(direction.clone().mul(bulletData.speedMultiplier ?? 1));
with
this.body.setLinearVelocity(direction.clone().mul(bulletData.speed / 1000.0));
So now the server can calculate the speed of every type of bullet perfectly.
Hope this helps!
I found the assets of surviv.io in google drive linked by kongregate in their forum's old post. Link to that is here -> https://drive.google.com/drive/folders/1qhaDdNCsisBu_7gvMNmyn_zkG4kyAZix
And also, the existing method to get assets, well, you get it from the surviv.io server, but that server is shutdown isn't it?
And wouldn't this get copyrighted by Kong, because this is publicly hosted in survivreloaded.com, so if Kong comes accross that website, couldn't they make a copyright claim?
Github Codespaces runs the client, but returns "Failed Joining Game", even when I have 3 players all joining at the same time. I don't know if this is Github Codespaces acting up or if there is some JSON value I have to tweak, but it ain't working. Go to https://eagleeye2010-sturdy-train-699q555vgr7h546r-8000.preview.app.github.dev/ to see for yourself. I think it has to do with the website URL, but I don't know for certain, and even if I did, I wouldn't know how to fix it. All help would be appreciated. I apologize if this is wasting your time. Thanks.
It's self explanatory. Any help would be appreciated. Thanks!
Picking up items, does work only when you perfectly allign with the loot, which is really hard to do.
Like, you need to be immersed into the loot, to pick it up, and if not, it's not going to pick up
And also, it doesn't show the inventory, that you picked up a small pack and a 2x scope.
Git clone failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.