accounts.txt overwrite?

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
chaslinux
Novice
Novice
Posts: 109
Joined: 08 Aug 2009, 01:57
Location: Kitchener, Ontario

accounts.txt overwrite?

Post by chaslinux »

Hi all, first a heaping amount of thanks to Meway, who has been incredibly patient and helpful!

I've been trying to get an eAthena server up for a few days with marginal success. Thanks to Meway I managed to solve the mapserver creation problem, and I'm documenting some of the server setup steps for Debian GNU/Linux.

I can register a new account, but each time the character server tries to connect it fails. At first I thought this was an I.P. issue, so I tried 127.0.0.1 for everything, then 10.0.0.2 for everything (the assigned IP for the server box) until I noticed that the problem seems to be related to the passwords.

Initially I had changed the server communication passwords from s1 and p1 to something else (in map_local.con char_local.conf and accounts.txt - the 0 account). Then I erased the whole git tree, recompiled and left the s1 and p1 and noticed that the server still failed when it tried to communicate. So I changed it back to something else user: server1, pass: Y3s1tsPa1nfull! {a tribute to the process}. Here's the login.log section where the connection fails:

Code: Select all

2010-11-03 12:29:59.785: The login-server is ready (Server is listening on the port 6901).
2010-11-03 12:30:02.791: Connection request of the char-server 'The Mana World' @ 10.0.0.2:6122 (ip: 10.0.0.2)
2010-11-03 12:30:02.791: Unknown account (account: server1 , ip: 10.0.0.2)
2010-11-03 12:30:02.791: Connexion of the char-server 'The Mana World' REFUSED (account: server1 , pass: Y3s1tsPa1nfull!, ip: 10.0.0.2)
2010-11-03 12:30:02.792: End of connection, unknown packet (ip: 10.0.0.2)
I'm thinking maybe I'm not setting up the accounts.txt file correctly because it seems to get overwritten. Here's what I put in the accounts.txt file:

Code: Select all

0       server1      Y3s1tsPa1nfull!      -       S       694     0       a@a.com -       0       -       -       0
I noticed after doing anything eAthena seems to overwrite the accounts.txt file with what looks to be hashed passwords and some default other accounts....

Code: Select all

2000000 myname  !=5auo$e243bacb2e422cd08b8df957 2010-11-03 03:22:30.934 M       1       0       a@a.com -       0       10.0.0.4        !       0       
2000001 myname2 !5[tVd$cca6049992e2c72a225f5fe8 2010-11-03 03:24:47.929 M       1       0       a@a.com -       0       10.0.0.4        !       0       
2000002 myname3 !Yt:x}$9051c4dbc4f7201e45a06445 2010-11-03 03:25:58.725 M       1       0       a@a.com -       0       10.0.0.4        !       0       
2000003 abc123  !KhRF3$e9244bbe8d67528ff0ec6a7d 2010-11-03 12:10:18.941 M       1       0       a@a.com -       0       10.0.0.4        !       0       
2000004 Test    !qv5sK$57523301b6851cc1fbbf7a19 2010-11-03 12:38:01.694 M       1       0       a@a.com -       0       10.0.0.4        !       0       
2000005 %newid%
Note that there is no 0 account anymore. Is this a bug or have I missed an important step?

To further troubleshoot: After copying over accounts.txt.example to accounts.txt I tried editing the file for server1 and the password then actually logging in as server1 from a client on my notebook and no luck.

Thanks to all who've helped...
User avatar
JDuran
Peon
Peon
Posts: 28
Joined: 04 Nov 2010, 02:57
Contact:

Re: accounts.txt overwrite?

Post by JDuran »

I don't really know what's going on here... but are you adding accounts manually? If so, you may want to just get the template from gitorious again and starting the servers to ensure that there are no problems there... and then just register new accounts via the client.

*edit* looking back at what you posted... I can definitely say that you aren't setting the accounts up properly.
~JDuran This is my signature... get over it.
User avatar
chaslinux
Novice
Novice
Posts: 109
Joined: 08 Aug 2009, 01:57
Location: Kitchener, Ontario

Re: accounts.txt overwrite?

Post by chaslinux »

JDuran wrote:*edit* looking back at what you posted... I can definitely say that you aren't setting the accounts up properly.
All I did was replace the s1 user with server1 and he p1 password with the one listed... I didn't change anything else from the accounts.txt file.

The funny looking characters on the multiple accounts are the overwrite of the accounts.txt.
User avatar
chaslinux
Novice
Novice
Posts: 109
Joined: 08 Aug 2009, 01:57
Location: Kitchener, Ontario

Re: accounts.txt overwrite?

Post by chaslinux »

Got it... logged in to my server this evening.... not sure what was wrong but I suspect there was probably a space somewhere in the username or password in the char_local.conf or map_local.conf. Changed things of course....
Attachments
gotit.jpg
gotit.jpg (171 KiB) Viewed 1861 times
User avatar
JDuran
Peon
Peon
Posts: 28
Joined: 04 Nov 2010, 02:57
Contact:

Re: accounts.txt overwrite?

Post by JDuran »

awesome :D
~JDuran This is my signature... get over it.
User avatar
meway
TMW Classic
TMW Classic
Posts: 1737
Joined: 04 Jan 2009, 05:02
Location: Detroit MI

Re: accounts.txt overwrite?

Post by meway »

You are very welcome :)
Post Reply