Jump to content
  • 0
rktmond

Failed to run the server

Question

Hello, I'm trying to run the server on linux, here's the console's log

dnYkd8G.jpg

 

 

Here are the files that I modified:

1. char-server.conf

2. map-server.conf

3. sql_connection.conf

4. mmo.h

 

char-server.conf

// Information related to inter-server behavior
	inter: {
		// Server Communication username and password.
		userid: "testid"
		passwd: "testpass"
		// Login Server IP
		// The character server connects to the login server using this IP address.
		// NOTE: This is useful when you are running behind a firewall or are on
		// a machine with multiple interfaces.
		login_ip: "XXX.XXX.XXX.XXX" //server's ip

		// The character server listens on the interface with this IP address.
		// NOTE: This allows you to run multiple servers on multiple interfaces
		// while using the same ports for each server.
		//bind_ip: "127.0.0.1"

		// Login Server Port
		login_port: 6900

		// Character Server IP
		// The IP address which clients will use to connect.
		// Set this to what your server's public IP address is.
		char_ip: "XXX.XXX.XXX.XXX" //server's ip

		// Character Server Port
		char_port: 6121
	}

 

map-server.conf

inter: {
		// Interserver communication passwords, set in the login server database
		userid: "testid"
		passwd: "testpass"

		// Character Server IP
		// The map server connects to the character server using this IP address.
		// NOTE: This is useful when you are running behind a firewall or are on
		// a machine with multiple interfaces.
		char_ip: "XXX.XXX.XXX.XXX" //server's ip

		// The map server listens on the interface with this IP address.
		// NOTE: This allows you to run multiple servers on multiple interfaces
		// while using the same ports for each server.
		//bind_ip: "127.0.0.1"

		// Character Server Port
		char_port: 6121

		// Map Server IP
		// The IP address which clients will use to connect.
		// Set this to what your server's public IP address is.
		map_ip: "XXX.XXX.XXX.XXX" //server's ip

		// Map Server Port
		map_port: 5121
	}

 

sql_connection.conf

sql_connection: {
	// [INTER] You can specify the codepage to use in your mySQL tables here.
	// (Note that this feature requires MySQL 4.1+)
	//default_codepage: ""

	// [LOGIN] Is `userid` in account_db case sensitive?
	//case_sensitive: false

	// For IPs, ideally under linux, you want to use localhost instead of 127.0.0.1.
	// Under windows, you want to use 127.0.0.1.  If you see a message like
	// "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
	// and you have localhost, switch it to 127.0.0.1
	db_hostname: "127.0.0.1"
	db_port: 3306
	db_username: "test" //correct username
	db_password: "test123" //correct password
	db_database: "ragnarok"
	//codepage:""
}

 

mmo.h

#ifndef PACKETVER
	#define PACKETVER 20130807 //im using 2013-08-07aRagexe
#endif // PACKETVER

 

The login userid and password on database is the same on char-server.conf and map-server.conf. The error log on the console says "[Error]: The communication passwords are set in /conf/map-server.conf and /conf/char/char-server.conf". When I downloaded this server files the map-server.conf is located at "/conf/map/map-server.conf" and not in "/conf/map-server.conf".

 

Are there anymore files that i need to modify ?

 

Thank you.

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

First, import the logs.sql to ragnarok database, or you have to change the settings to load logs from other database.

 

And, do you have an account with username 'testid', password 'testpass' or whatever you put in this part of char-server.conf and map-server.conf:

// Server Communication username and password.
userid: "testid"
passwd: "testpass"  

and sex 'S' on your login table? If not, you have to create it.

Share this post


Link to post
Share on other sites
  • 0

First, import the logs.sql to ragnarok database, or you have to change the settings to load logs from other database.

 

And, do you have an account with username 'testid', password 'testpass' or whatever you put in this part of char-server.conf and map-server.conf:

// Server Communication username and password.
userid: "testid"
passwd: "testpass"  

and sex 'S' on your login table? If not, you have to create it.

 

Thanks for the reply, I imported the log now on the ragnarok db, I had imported it on the wrong db earlier.

About the login user, yes i have already account_id: 1  and userid: testid, user_pass: testpass and Sex: S already. I actually already created a server using rAthena files, i just want to switch to hercules. So I kinda know how to modify the server files since hercules is based on rAthena or continuation.

 

BTW in rAthena I have to modify the file subnet_athena.conf, I don't know the equivalent of that file here in hercules. Also do I still need to modify packets.h file ?

Edited by rktmond

Share this post


Link to post
Share on other sites
  • 0

I think that the old subnet_athena is now on network.conf on lan_subnets. You probably only have to modify packets.h if you have changed your client's default encryption keys

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.