Code Monkey home page Code Monkey logo

survivreloaded-server's People

Contributors

damienvesper avatar eagleeye2010 avatar ei-pi avatar hsanger avatar huyszn avatar joesquared777 avatar jwortmann avatar killaship avatar leia-uwu avatar lmssiehdev avatar peltogle avatar saksham-leaf avatar thesnowhathero avatar vercte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

survivreloaded-server's Issues

Not an issue, just a question.

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"!

New issue with the updates

image
This is what happens when I run npm start, It build successfully, but, npm start doesn't work anymore!
I might be annoying, so sorry about that.

I am a bit confused

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.

Adren health regen feels wrong

These values don't feel right:

if (p.boost > 0) p.boost -= 0.01136;
// Health regeneration from adrenaline
if (p.boost > 0 && p.boost <= 25) p.health += 0.0050303;
else if (p.boost > 25 && p.boost <= 50) p.health += 0.012624;
else if (p.boost > 50 && p.boost <= 87.5) p.health += 0.01515;
else if (p.boost > 87.5 && p.boost <= 100) p.health += 0.01766;

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; 

Download client ressources

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):

Click to expand
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.

Shots won't register / Glitchy game overall

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)

Whenever I run index.html, it brings up really gibberish

After starting my server up with npm start, then, I opened `survivreloaded\public\index.html" file and then, it shows a bare bone HTML page!
Look at this for a reference
image
And also, HARDCODED PATHS !?!?!?look at line 1 in the error console, it says "C:\app" not found!

Map Misgeneration or Bad Generation

Random Area Generation without Information of the Area


Poor Generation








Poor Area Generation with Random Freezes






No Game Load / Generation Status

Weapon timer feels wrong

This code doesn't implement surviv.io's timer system correctly:

weaponCooldownOver(): boolean {
return Date.now() - this.activeWeapon.cooldown >= this.activeWeapon.cooldownDuration &&
(this.activeWeaponInfo.weaponClass !== "sniper"
? Date.now() - (this.activeWeaponInfo.switchDelay * 1000) >= this.activeWeapon.switchCooldown
: true);
}

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.

Not an issue, just a help for Windows users (version NT 6.0 and above only!)

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

Ammo and Health Consumables Doesn't Spawn Frequently

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.

Website really slow than before

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.

I hate this game very much

Reasons why i hate this game?

  1. Stupid 2 years olds shoot me on the game for no reason.
  2. And they are laughing about it even it's not funny!

My brother told me to not play that copy of surviv.io.

Can you add the Report system?

npm run build not working

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 1 under WSL...
image

Screenshot 2 under Windows Command Prompt...
image

Keep in mind, this is done in a network drive (The path is Z:........\survivreloaded)
Because I attempted to do this in WSL.

Everything spawns a 15X scope

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?

I fixed the bullet speed issue

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!

Not an issue, Just a note

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 Returns "Failed Joining Game"

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.

Picking up items

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.