| Mirage Source http://miragesource.net/forums/ |
|
| Issue with hosting http://miragesource.net/forums/viewtopic.php?f=201&t=4882 |
Page 1 of 1 |
| Author: | DarkX [ Wed Dec 24, 2008 11:29 pm ] |
| Post subject: | Issue with hosting |
Ok as long as I have been here I should know this, but I have had BS dial up hence never tried hosting. So NOW I am using DSL, and I cannot get my server to let people sign on, I have port 4000 forwarded, as well as my IP is up, and it matches botht the one that's online aswell as the one that is on my server. but when I go to IP chicken I get one that's diffrent, J tried that and still couldn't sign into my server. Yes I have the VB runtimes files, could someone please point out to me what I am doing wrong? And J tried Teamviewer to fix the issue, and ended up in the same spot I am in. |
|
| Author: | Matt [ Thu Dec 25, 2008 12:17 am ] |
| Post subject: | Re: Issue with hosting |
Well, the ip from www.whatismyip.org is the in fact the one you need to include on the client. You need to make sure the port is forwarded properly. Other than that, I have no idea what your issue is. |
|
| Author: | DarkX [ Thu Dec 25, 2008 12:30 am ] |
| Post subject: | Re: Issue with hosting |
Ok so change 127.0.0.1 to w/e my IP is? and Port 4000 is forwarded on the wireless router. Like GAME_IP = "67.232.193.xxx" minus the x's |
|
| Author: | Labmonkey [ Thu Dec 25, 2008 12:35 am ] |
| Post subject: | Re: Issue with hosting |
I know its a stupid question, but is your game_port 4000? |
|
| Author: | DarkX [ Thu Dec 25, 2008 12:41 am ] |
| Post subject: | Re: Issue with hosting |
Yes it is, game_port = 4000 Game_IP = 127.0.0.1 |
|
| Author: | Matt [ Thu Dec 25, 2008 12:54 am ] |
| Post subject: | Re: Issue with hosting |
Game_IP should be whatever is on www.whatismyip.org 127.0.0.1 will only connect a client on the same computer as the server. |
|
| Author: | DarkX [ Thu Dec 25, 2008 1:06 am ] |
| Post subject: | Re: Issue with hosting |
Ok So make the default Ip my Whatismyip.org number, on client side. ---edit--- I have the server up and running, and here's the link to my client if someone could please test it out for me. http://mid-waytwistedgames.webs.com/toa ... 0lands.rar |
|
| Author: | Matt [ Thu Dec 25, 2008 1:41 am ] |
| Post subject: | Re: Issue with hosting |
I was able to create an account, but the client hangs a lot. |
|
| Author: | DarkX [ Thu Dec 25, 2008 1:47 am ] |
| Post subject: | Re: Issue with hosting |
The server is up, hopefully it will let you login, I haven't done any changes to it. |
|
| Author: | Matt [ Thu Dec 25, 2008 2:15 am ] |
| Post subject: | Re: Issue with hosting |
This has happened before. If someone is logged in, nobody else can connect. It just hangs. I don't remember, personally, how to fix that or what the issue was. Anyone else care to help? |
|
| Author: | DarkX [ Thu Dec 25, 2008 2:23 am ] |
| Post subject: | Re: Issue with hosting |
This is my login packet... please let me know if there is something screwed here. Code: ' :::::::::::::::::: ' :: Login packet :: ' :::::::::::::::::: If LCase(Parse(0)) = "login" Then If Not IsPlaying(index) And Not IsLoggedIn(index) Then ' Get the data Name = Parse(1) Password = Parse(2) ' Check versions If Val(Parse(3)) < CLIENT_MAJOR Or Val(Parse(4)) < CLIENT_MINOR Or Val(Parse(5)) < CLIENT_REVISION Then Call AlertMsg(index, "Version outdated, please visit http://mirage.katami.com") Exit Sub End If If Len(Trim(Name)) < 3 Or Len(Trim(Password)) < 3 Then Call AlertMsg(index, "Your name and password must be at least three characters in length") Exit Sub End If If Not AccountExist(Name) Then Call AlertMsg(index, "That account name does not exist.") Exit Sub End If If Not PasswordOK(Name, Password) Then Call AlertMsg(index, "Incorrect password.") Exit Sub End If If IsMultiAccounts(Name) Then Call AlertMsg(index, "Multiple account logins is not authorized.") Exit Sub End If ' Prevent Dupeing For i = 1 To Len(Name) n = Asc(Mid(Name, i, 1)) If (n >= 65 And n <= 90) Or (n >= 97 And n <= 122) Or (n = 95) Or (n = 32) Or (n >= 48 And n <= 57) Then Else Call AlertMsg(index, "haha you made a booboo!!!") Exit Sub End If Next i ' Everything went ok ' Load the player Call LoadPlayer(index, Name) Call SendChars(index) ' Show the player up on the socket status Call AddLog(GetPlayerLogin(index) & " has logged in from " & GetPlayerIP(index) & ".", PLAYER_LOG) Call TextAdd(frmServer.txtText, GetPlayerLogin(index) & " has logged in from " & GetPlayerIP(index) & ".", True) End If Exit Sub End If Code: ' :::::::::::::::::::::::::::: ' :: Using character packet :: ' :::::::::::::::::::::::::::: If LCase(Parse(0)) = "usechar" Then If Not IsPlaying(index) Then CharNum = Val(Parse(1)) ' Prevent hacking If CharNum < 1 Or CharNum > MAX_CHARS Then Call HackingAttempt(index, "Invalid CharNum") Exit Sub End If ' Check to make sure the character exists and if so, set it as its current char If CharExist(index, CharNum) Then Player(index).CharNum = CharNum Call JoinGame(index) CharNum = Player(index).CharNum Call AddLog(GetPlayerLogin(index) & "/" & GetPlayerName(index) & " has began playing " & GAME_NAME & ".", PLAYER_LOG) Call TextAdd(frmServer.txtText, GetPlayerLogin(index) & "/" & GetPlayerName(index) & " has began playing " & GAME_NAME & ".", True) Call UpdateCaption ' Now we want to check if they are already on the master list (this makes it add the user if they already haven't been added to the master list for older accounts) If Not FindChar(GetPlayerName(index)) Then f = FreeFile Open App.Path & "\data\accounts\charlist.txt" For Append As #f Print #f, GetPlayerName(index) Close #f End If Else Call AlertMsg(index, "Character does not exist!") End If End If Exit Sub End If Thank You Korrey D. |
|
| Author: | Matt [ Thu Dec 25, 2008 2:31 am ] |
| Post subject: | Re: Issue with hosting |
You need the packet for when you choose your character, not your login packet. Sorry. Forgot to tell you. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|