Giter Site home page Giter Site logo

Comments (14)

Ephemerality avatar Ephemerality commented on August 17, 2024

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.

maixuanhan avatar maixuanhan commented on August 17, 2024

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.

Ephemerality avatar Ephemerality commented on August 17, 2024

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.

Adryd avatar Adryd commented on August 17, 2024

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.

vram4 avatar vram4 commented on August 17, 2024

Can i see your entire config?

from ogar.

Adryd avatar Adryd commented on August 17, 2024

// 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.

quonic avatar quonic commented on August 17, 2024

Adryd if you run netstat -an then that should show you what ports are being used.

from ogar.

Adryd avatar Adryd commented on August 17, 2024

i know theres nothing running on the port i did that before i posted here

from ogar.

Ephemerality avatar Ephemerality commented on August 17, 2024

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.

maixuanhan avatar maixuanhan commented on August 17, 2024

@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.

Adryd avatar Adryd commented on August 17, 2024

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.

vram4 avatar vram4 commented on August 17, 2024

@maixuanhan I could add that, but some people dont even read the entire error message.

from ogar.

CameronRedGem avatar CameronRedGem commented on August 17, 2024

Well that is their problem if they don't read the entire message

from ogar.

SamHep0803 avatar SamHep0803 commented on August 17, 2024

I changed the server port to 25565 and server stats to 25564

from ogar.

Related Issues (20)

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.