Comments (14)
Make sure you're changing serverStatsPort in the config and that it's the config in the directory you launch the game from (the source comes with several for some reason).
from ogar.
Yes, It's the stat-server, GameServer.startStatsServer (/Users/Adryd/Ogar/src/GameServer.js:919:21)
, default config as port 88, I don't see any advantage of that server right now. The statistics information also looks not updated when I press F5.
from ogar.
It is supposed to update the server stats every minute (or as per serverStatsUpdate in the config). It's currently being used by Agariomods to provide a private server listing.
Are you sure it's getting changed in the right config? I have it running on my MacBook (Yosemite) and changing the stats port works here. [Game] Loaded stats server on port 667
If you set the port to 0 in the config, it should not load the stats server at all.
from ogar.
The ogar directory for me is /Users/Adryd/Ogar
i use sudo node Ogar to start and the log is:
[Game] Ogar - An open source Agar.io server implementation
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1156:14)
at listen (net.js:1182:10)
at Server.listen (net.js:1267:5)
at GameServer.startStatsServer (/Users/Adryd/Ogar/src/GameServer.js:919:21)
at GameServer.start (/Users/Adryd/Ogar/src/GameServer.js:206:10)
at Object. (/Users/Adryd/Ogar/src/index.js:25:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
[Error] Server could not bind to port! Please close out of Skype or change 'serverPort' in gameserver.ini to a different number.
the port is set to 25564 ive tried many different ports and i changed both the main port and the stats port (the stats port is 25563)
from ogar.
Can i see your entire config?
from ogar.
// Ogar configurations file
// Lines starting with slashes are comment lines
// [Server]
// serverGamemode: 0 = FFA, 1 = Teams, 2 = Experimental, 10 = Tournament, 11 = Hunger Games
// serverBots: Amount of player bots to spawn (Experimental)
// serverViewBase: Base view distance of players. Warning: high values may cause lag
// serverStatsPort: Port for the stats server. Having a negative number will disable the stats server.
// serverStatsUpdate: Amount of seconds per update for server stats
// serverLogLevel: Logging level of the server. 0 = No logs, 1 = Logs the console, 2 = Logs console and ip connections
serverMaxConnections = 64
serverPort = 25564
serverGamemode = 2
serverBots = 0
serverViewBaseX = 1024
serverViewBaseY = 592
serverStatsPort = 25563
serverStatsUpdate = 60
serverLogLevel = 1
// [Border]
// Border values of the map (Vanilla values are left/top = 0, right/bottom = 11180.3398875)
borderLeft = 0
borderRight = 6000
borderTop = 0
borderBottom = 6000
// [Spawn]
// Each interval is 1 tick (50 ms)
spawnInterval = 20
foodSpawnAmount = 10
foodStartAmount = 100
foodMaxAmount = 1000
foodMass = 1
virusMinAmount = 10
virusMaxAmount = 50
virusStartMass = 100
virusFeedAmount = 7
// [Ejected Mass]
// ejectMass: Mass of ejected cells
// ejectMassLoss: Mass lost when ejecting cells
// ejectSpeed: Base speed of ejected cells
// ejectSpawnPlayer: Chance for a player to spawn from ejected mass
ejectMass = 12
ejectMassLoss = 16
ejectSpeed = 160
ejectSpawnPlayer = 50
// [Player]
// playerRecombineTime: Base amount of ticks before a cell is allowed to recombine (1 tick = 1000 milliseconds)
// playerMassDecayRate: Amount of mass lost per tick (Multiplier) (1 tick = 1000 milliseconds)
// playerMinMassDecay: Minimum mass for decay to occur
// playerDisconnectTime: The amount of seconds it takes for a player cell to be removed after disconnection (If set to -1, cells are never removed)
playerStartMass = 10
playerMaxMass = 22500
playerMinMassEject = 32
playerMinMassSplit = 36
playerMaxCells = 16
playerRecombineTime = 30
playerMassDecayRate = .002
playerMinMassDecay = 9
playerMaxNickLength = 15
playerDisconnectTime = 60
// [Gamemode]
// Custom gamemode settings
// tourneyTimeLimit: Time limit of the game, in minutes.
// tourneyAutoFill: If set to a value higher than 0, the tournament match will automatically fill up with bots after value seconds
// tourneyAutoFillPlayers: The timer for filling the server with bots will not count down unless there is this amount of real players
tourneyMaxPlayers = 12
tourneyPrepTime = 10
tourneyEndTime = 30
tourneyTimeLimit = 20
tourneyAutoFill = 0
tourneyAutoFillPlayers = 1
from ogar.
Adryd if you run netstat -an
then that should show you what ports are being used.
from ogar.
i know theres nothing running on the port i did that before i posted here
from ogar.
And you're definitely modifying the gameserver.ini that is in the folder where your Ogar folder is, right? Not the one in src or the one in Ogar. (since you're launching it using node Ogar)
from ogar.
@Ephemerality : hi, I see that there are too many issues with port number. Why don't you guys modify the output code of EADDINUSE error.
[Error] Server could not bind to port! Please close out of Skype or change 'serverPort' in gameserver.ini to a different number.
==>
[Error] Server could not bind to port: <PORT_NUMBER here>. Please read the README carefully.
from ogar.
yes i am sure im moddifying it in the ogar folder. i changed both to make sure
ill just throw ogar into a windows vm and use the windows version
from ogar.
@maixuanhan I could add that, but some people dont even read the entire error message.
from ogar.
Well that is their problem if they don't read the entire message
from ogar.
I changed the server port to 25565 and server stats to 25564
from ogar.
Related Issues (20)
- How to deploy on Heroku? HOT 2
- Cannot play on Private Server HOT 4
- Agario Gold system game modes HOT 1
- Ogar, Agar plus, etc. not working!?!? HOT 3
- Selfhosted Client? HOT 3
- Unable to connect to local server ( http://agar.io/?ip=127.0.0.1:443 ) HOT 5
- > TypeError: Cannot read property 'headers' of undefined HOT 3
- Team mode leaderboard not working HOT 6
- Protocol 14 HOT 9
- problem HOT 5
- error HOT 2
- Change Player Speed HOT 1
- I NEED SOME HELP HOT 7
- Total Newb HOT 1
- My cell is blocked HOT 2
- call back must be a function HOT 2
- how do i download ogar HOT 2
- ogarproject.com is linked despite no longer being owned by this project HOT 6
- does anyone use this anymore and does it still work HOT 4
- Deprecation Issue: Buffer();
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ogar.