EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::MiniLogin (https://www.eqemulator.org/forums/forumdisplay.php?f=629)
-   -   Minilogin Released!!! (https://www.eqemulator.org/forums/showthread.php?t=16402)

Edgar1898 10-15-2004 04:31 PM

Minilogin Released!!!
 
After a while of hearing people complain and a few hours of free time on my hands I decided to revive minilogin. This version of Minilogin is for version 0.6.0-DR1+ of the Emu only. This will not work for previous versions because of specific changes in world. To start you will need to execute the following mysql queries:

Code:

INSERT INTO variables (varname, value, information) VALUES ('LoginType', 'Minilogin', 'Set this to Minilogin to login using a minilogin server :)');

alter table account add minilogin_ip varchar(32) not null;

Note: The following examples assume you want to use minilogin to play on the account named edgar1898 and you will be logging into it from the same computer your running minilogin on.

If you want to login with an existing account:
1. Put the ip address of the computer your using to login in the minilogin_ip field of the users account you wish to play.

The SQL code for this is:
Code:

update account set minilogin_ip='127.0.0.1' where name='edgar1898';
If you want to create a new account and login with it:

1. Insert the new account into the database. (This example also assumes you wish to give the user access to all commands on the server, change the 250 to another level if you dont)

The SQL code for this is:
Code:

insert into account (name,status, minilogin_ip) values('edgar1898',250,'127.0.0.1');
*Hint* Whenever the user connects to minilogin, it will display their ip in the console window, that IP must match the ip you put in the account table. Whenever your doing one of the above steps make sure the ip addresses are the same!



1. Once you have done that download MiniLogin and change your eqhost.txt file to 127.0.0.1:5999
You can download it here: http://prdownloads.sourceforge.net/e...0.zip?download

2. Open your server's LoginServer.ini file and change the loginserver and loginport as follows:
Code:

loginserver=127.0.0.1
loginport=5999

Thats it! You should be able to login and play normally! :)

If your world doesnt display something like Connected to LoginServer: 127.0.0.1:5999 and it does not show up in the server list, make sure your LoginServer.ini file for your server and for MiniLogin (you can use the same on if the server and minilogin is in the same directory) looks similiar to this:

Code:

[LoginServer]
loginserver=127.0.0.1
loginserver2=newlogin1.eqemulator.net
loginport=5999
loginport2=5999
worldname=Name of server here
worldaddress=Your IP Address here
locked=false
account=
password=

[WorldServer]
Defaultstatus=
Unavailzone=

[ChatChannelServer]
worldshortname=
chataddress=
chatport=

[LoginConfig]
ServerMode=MiniLogin
ServerPort=5999


mrea 10-16-2004 12:27 AM

Awesome job guys, set that up and I'll try it out although I'm sure you already have!

EDIT:: Works very well guys. Been waiting for a long time :)

Elkay 10-16-2004 03:34 AM

I love you, even if you are a robot. lol :lol:

mrea 10-16-2004 03:40 AM

Just wondering, would someone be able to connect to my login if they set their eqhost.txt to host=myip.myip.myip.myip:5999

mystic414 10-16-2004 05:09 AM

Woo hoo! All my whining finally paid off!

Edgar1898, you are my hero!

Going to go try it out now...

Edgar1898 10-16-2004 05:28 AM

Quote:

Originally Posted by mrea
Just wondering, would someone be able to connect to my login if they set their eqhost.txt to host=myip.myip.myip.myip:5999

theoretically, yes as long as you have their ip in the account you want them to access. I havent tested that, but I dont see any reason why it wouldnt work. Unlike the last minilogin there is no limit to how many accounts you can have either.

Elkay 10-16-2004 07:35 AM

Having a small problem getting this working.. almost there tho. Everything is working except when I select my server and try to enter world, I get thrown back to select with 1017. However it's not a wrong IP problem or anything, as I see the following in my World.exe console:

112375 New client from ip: 192.168.1.103 port: 1219
Login with '10516' and 'QMV1I7HNG7'
192.168.1.103: Wrong name/pass: name='10516'
Removing client from ip:192.168.1.103 port:1219
176750 New client from ip: 192.168.1.103 port: 1222
Login with '10516' and 'QMV1I7HNG7'
192.168.1.103: Wrong name/pass: name='10516'
Removing client from ip:192.168.1.103 port:1222
203109 New client from ip: 192.168.1.103 port: 1228
Login with '10516' and 'QMV1I7HNG7'
192.168.1.103: Wrong name/pass: name='10516'
Removing client from ip:192.168.1.103 port:1228

I checked my database, and that number does not match my lsaccount_id nor is that my login name, if either of those matter. I'm also assuming that's an encrypted password since that is not anything close to my password. Just not sure why it's declining my uid/pwd. Any ideas?

garim12 10-16-2004 07:38 AM

Problems in LAN environment
 
Ok, I've been playing around with this for a few hours and here's what I'm trying to get working now:

I set it up as you said to run the server and the client on the same machine. I put an entry in my accounts table and logged in with that username and password. While it was loading, it created a new record in the account table with the username "®ñÎ?". I got to the character select screen, created a character, and logged in. Everything was working fine.

Next, I moved the programs over to another machine on my network and put holes in my router for the ports needed. I created a second login account in the database for my brother and set the ips in the minilogin_ip field to our current addresses. I logged in to the character I created earlier; the one on the weird "®ñÎ?" account. My brother logged in and got to the same character select screen as me. At this point, if I logged in then as soon as he clicked the "create character" button, I would lock up.

Another thing we noticed, no matter what we type in for username and password, it lets us in and brings us to that one account that it created. It doesn't matter what we type, what's in the database, or what ip addresses are in the minilogin_ip field. We both always end up looking at the same character. I deleted all accounts and started over, and arrived at the same place.

Any ideas?
-Garim

Edgar1898 10-16-2004 08:14 AM

Quote:

Originally Posted by Elkay
Having a small problem getting this working.. almost there tho. Everything is working except when I select my server and try to enter world, I get thrown back to select with 1017. However it's not a wrong IP problem or anything, as I see the following in my World.exe console:

112375 New client from ip: 192.168.1.103 port: 1219
Login with '10516' and 'QMV1I7HNG7'

Make sure 192.168.1.103 is the ip that is in your minilogin_ip field for the account you wish to login to.

Edgar1898 10-16-2004 08:17 AM

Re: Problems in LAN environment
 
Quote:

Originally Posted by garim12
Ok, I've been playing around with this for a few hours and here's what I'm trying to get working now:

I set it up as you said to run the server and the client on the same machine. I put an entry in my accounts table and logged in with that username and password. While it was loading, it created a new record in the account table with the username "®ñÎ?". I got to the character select screen, created a character, and logged in. Everything was working fine.

You didnt make the account properly, world shouldnt try to make an account, if it does, then its not setup properly. Walk through all the steps and verify your doing exactly what it says.

Quote:

Originally Posted by garim12
Another thing we noticed, no matter what we type in for username and password, it lets us in and brings us to that one account that it created. It doesn't matter what we type, what's in the database, or what ip addresses are in the minilogin_ip field. We both always end up looking at the same character. I deleted all accounts and started over, and arrived at the same place.

Only one account can be played on at a time per ip address, you have to specify a different ip address for each one.


Oh, one other note, make sure you have the right version of the server. If you didnt get the source or binaries that hit cvs about 10 hours ago, you wont be able to login properly.

garim12 10-16-2004 11:02 AM

Quote:

Oh, one other note, make sure you have the right version of the server. If you didnt get the source or binaries that hit cvs about 10 hours ago, you wont be able to login properly.
Yes, that was it. The source I grabbed was too early by a few hours. Thanks a lot!

Elkay 10-16-2004 11:32 AM

Quote:

Originally Posted by Edgar1898
Quote:

Originally Posted by Elkay
Having a small problem getting this working.. almost there tho. Everything is working except when I select my server and try to enter world, I get thrown back to select with 1017. However it's not a wrong IP problem or anything, as I see the following in my World.exe console:

112375 New client from ip: 192.168.1.103 port: 1219
Login with '10516' and 'QMV1I7HNG7'

Make sure 192.168.1.103 is the ip that is in your minilogin_ip field for the account you wish to login to.

Yep it's 192.168.1.103 and I even just copy/pasted it here lol. Any other ideas? account 10516 doesn't even exist, I have no clue where it's coming from. When switching back to eqemu LS, I forgot to switch the MiniLogin variable the first time, and then it was showing the correct ID being passed to world (even though it obviously didn't work live that way).

Cisyouc 10-16-2004 12:52 PM

Edgar, any chance MiniLogin 6 will be OpenSource?

Edgar1898 10-16-2004 02:05 PM

Quote:

Originally Posted by Elkay
Quote:

Originally Posted by Edgar1898
Quote:

Originally Posted by Elkay
Having a small problem getting this working.. almost there tho. Everything is working except when I select my server and try to enter world, I get thrown back to select with 1017. However it's not a wrong IP problem or anything, as I see the following in my World.exe console:

112375 New client from ip: 192.168.1.103 port: 1219
Login with '10516' and 'QMV1I7HNG7'

Make sure 192.168.1.103 is the ip that is in your minilogin_ip field for the account you wish to login to.

Yep it's 192.168.1.103 and I even just copy/pasted it here lol. Any other ideas? account 10516 doesn't even exist, I have no clue where it's coming from. When switching back to eqemu LS, I forgot to switch the MiniLogin variable the first time, and then it was showing the correct ID being passed to world (even though it obviously didn't work live that way).

Do the following:
1. Close all world/zones.
2. Download the latest binaries from http://cvs.sourceforge.net/viewcvs.p...Win32/Release/
3. Run these sql queries (post if you get any errors running it):
Code:

update variables set value='Minilogin' where varname='LoginType';
insert into account (name,status, minilogin_ip) values('edgar1898',250,'192.168.1.103');

4. Config world to connect to minilogin and attempt to login to world with your client.

Edgar1898 10-16-2004 02:07 PM

Quote:

Originally Posted by Cisyouc
Edgar, any chance MiniLogin 6 will be OpenSource?

Probably not.

Cisyouc 10-16-2004 02:08 PM

Quote:

Originally Posted by Edgar1898
Quote:

Originally Posted by Cisyouc
Edgar, any chance MiniLogin 6 will be OpenSource?

Probably not.

Hmm. Alright, then what about this: Just out of curiousity, is it possible to edit/create "green" and "yellow" servers? :wink:

Edgar1898 10-16-2004 02:12 PM

Do you want it to display the server as yellow or green? Its a simple one byte change in the code that I can make if you guys want it that way. I'll make a poll in the forum and change it to whichever one wins.

Elkay 10-16-2004 04:03 PM

Just downloaded those binaries and ran them but I won't be able to test this for you until I can actually get into the game now. I've posted my zone problems in the bugs forum. After those get resolved I'll test MiniLogin, but until then, there's not much point.

Elkay 10-16-2004 04:30 PM

I fixed the problem.. my goddamn IP addres is 192.168.1.103 not 192.168.1.3... I must have had something else wrong and started over and typed it in wrong ARGH!! :roll: Now I just need to solve my zone problem that I posted and I'll actually be playable again on .0.6.0.

mrea 10-17-2004 04:07 AM

I'm having status problems. No matter what I set my accounts status to I cannot do anything. None of the commands will work (only wanted to use minilogin for spawning, etc).

Edgar1898 10-17-2004 04:27 AM

Quote:

Originally Posted by mrea
I'm having status problems. No matter what I set my accounts status to I cannot do anything. None of the commands will work (only wanted to use minilogin for spawning, etc).

Out of game:

Code:

update account set status=250 where name='edgar1898';
(replace edgar1898 with your account name)
Make sure that your account name matches the one that world is saying is logging in.

In game:

type #flag

mrea 10-17-2004 06:16 AM

Thats not it. I open up MySQL-Front and when I look at all my accounts (ones created solely for minilogin) they all have the status of 250 which they would get by setting up minilogin the way you explained earlier. It's not really necessary for me as I'm on a cable connection and don't require minilogin when I can just lock the server, buts its nice :D Anyways, thanks for releasing this

finwe 10-17-2004 08:45 AM

Then if someone who has variable ip want to play using my minilogin??? he cant??? is there anyway to desactivate the ip check???

tks

Cisyouc 10-17-2004 08:48 AM

Minilogin is designed for LAN-login only. Thus, you can make your computers on a static local IP. If its just you, you can use 127.0.0.1

finwe 10-17-2004 09:28 AM

it will be openSource code???

tks awesome job :)

Edgar1898 10-17-2004 10:24 AM

Quote:

Originally Posted by finwe
it will be openSource code???

Where did you get that from? I have no plans on releasing it as open source.

Bladees1739 10-17-2004 11:26 AM

This is a stupid question i know but is this compatible with Live. Unless they patched again. Sorry wasnt really paying attention at what i typed.

Cisyouc 10-17-2004 11:28 AM

Quote:

Originally Posted by Bladees1739
This is a stupid question i know but this is compatible with Live. Unless they patched again.

Wheres the question in that?

Edgar1898 10-17-2004 01:01 PM

I made a new version that provides a little more debug info that should help you guys. In the console window of minilogin, it displays the ip address of the person that connected to it. Now you dont have to guess, just copy that ip and paste it into your account table, change the variable in the variables table and your done.

finwe 10-17-2004 07:45 PM

then, if minilogin only take care of ip when someone trying to login... ...how can someone have more than 1 account in the same machine? And is it possible in a future relase that minilogin update automatally the ip of the account when someone try to connect?? in this way you will can connect from any pc in the LAN to any account without makin any update in the database...

Tk you, great work.

Camaris 10-17-2004 11:15 PM

Many thx for u work Edgar, u really have done that i get my best server update, i was playing on eqemu 0.5.6 (with any changues done for me...) due to the old minilogin only worked on this version.

But i now can play on the latest server version, it is so nice.......

MANY MANY THX MATE =)

Muuss 10-17-2004 11:41 PM

finwe: you can dual box from the same account with EQemu, so no needs to have 2 different accounts, this should solve your problem, i guess.

Elkay 10-18-2004 12:58 AM

Quote:

Originally Posted by finwe
then, if minilogin only take care of ip when someone trying to login... ...how can someone have more than 1 account in the same machine? And is it possible in a future relase that minilogin update automatally the ip of the account when someone try to connect?? in this way you will can connect from any pc in the LAN to any account without makin any update in the database...

Tk you, great work.

Your logic is flawed. The authentication of who you are is the IP Address, and the IP address alone.

finwe 10-18-2004 01:34 AM

sure, but future release can comprobe the login and password and then update the table with the current ip of the user... just if developers want it of course ;)

Hurdlesaint 10-19-2004 04:46 PM

Im Stutarded
 
Jesus i feel stupid reading this... All i want is a fricken link to download, lol. There is nothing to download or anywhere to get anything, i am just supposed to enter in these magic words and numbers into my makebelieve file. I am seemingly lost, i play EQ constantly and just want to check out emulator. Anyone have a link for more of a beginners look at getting going on this?

10-19-2004 08:17 PM

Someone obviously didn't do much of a search.
Have you tried the Tutorials and How-To's forum??
The information is there, if you would just freaking look.

tcsmyworld 10-19-2004 08:23 PM

..

movieman 10-20-2004 12:40 PM

Thank you! I hadn't upgraded my eqemu local server for months, and thought I'd never get it working again after patching and upgrading to 5.9 and discovering that the old minilogin didn't work anymore... now I have a working install again, at least to the extent of logging on and zoning in.

Elkay 10-20-2004 01:25 PM

Hey Ed I've got an idea. what about adding another column to the account table that stores the encrypted password on first login, then from that point forward checking just the encrypted password sent against the encrypted password stored (requiring no decrypting). What this will allow is someone to log in remotely (as long as there are no duplicate passwords). The only reason I'd like this functionality is that I use Minilogin while I'm world developing, to keep the database clean and since the server is going up and down constantly and I don't want to piss people off disconnecting them all the time.

Edgar1898 10-20-2004 02:56 PM

I'll think about adding that. It is extremely low priority though, so if I do decide to add that it wont be soon because I have so many other things to do.


All times are GMT -4. The time now is 01:48 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.