Mirage Source
Alert messages - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51)
+----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44)
+----- Thread: Alert messages (/showthread.php?tid=2234)



Alert messages - GIAKEN - 10-10-2008

After you log in and make a new character or delete or anything when the message comes up it makes you go back and have to re-login...well I tried to fix this but there's a problem where it doesn't keep your player loaded or something...so I had to make it go back to re-login or else it would say the character doesn't exist when you try to use it each time...


Re: Alert messages - scarra3 - 11-10-2008

Ah i see what you mean i have the same problem


Re: Alert messages - Ramsey - 12-10-2008

I successfully completed this before, don't exactly remember how I got around doing it. I'll look into it.


Re: Alert messages - GIAKEN - 13-10-2008

Nevermind.

All I had to do was take out the CloseSocket in AlertMsg...


Re: Alert messages - Mattyw - 13-10-2008

Make a seperate one, WarnMsg, like I did.


Re: Alert messages - GIAKEN - 13-10-2008

All I did was this:

Code:
Sub AlertMsg(ByVal Index As Long, ByVal Msg As String, ByVal Location As Byte)
Dim Packet As String

    Packet = SAlertMsg & SEP_CHAR & Msg & SEP_CHAR & Location & END_CHAR
    
    Call SendDataTo(Index, Packet)
    
    If Not (Location = 2) Then CloseSocket Index
End Sub

Location 2 = select character.


Re: Alert messages - Mattyw - 13-10-2008

GIAKEN Wrote:All I did was this:

Code:
Sub AlertMsg(ByVal Index As Long, ByVal Msg As String, ByVal Location As Byte)
Dim Packet As String

    Packet = SAlertMsg & SEP_CHAR & Msg & SEP_CHAR & Location & END_CHAR
    
    Call SendDataTo(Index, Packet)
    
    If Not (Location = 2) Then CloseSocket Index
End Sub

Location 2 = select character.

Meh. Nice. XD


Re: Alert messages - Nean - 14-10-2008

I tried liquidating the AlertMsg, into a WarnMsg, by and removing the close socket, however, when I do that, when I make a new char, it loads up the "Connect sending login information", and then it just freezes up. How can I get around this?


Re: Alert messages - Rian - 14-10-2008

I think you'll have to close the socket before you can get to a new menu state


Re: Alert messages - GIAKEN - 14-10-2008

Well with the location you can set which window they go to. I've got them going to main menu, register, new character, and select character.


Re: Alert messages - halla - 15-10-2008

I doubt it but does anyone have my old pokemon worldwide source I posted here ages ago? Someone was working with me and one of the first things they did was fix this cause they said it was stupid. I dont remember what they did though. So if anyone had it we can find out and fix it. I dont have the source anymore though.


Re: Alert messages - GIAKEN - 15-10-2008

Umm it's already been fixed.


Re: Alert messages - halla - 15-10-2008

Oh ok just downloaded source and it was same guess didnt upload new version yet


Re: Alert messages - Mattyw - 15-10-2008

There was nothing to FIX. It is how it was supposed to be, but what GIAKEN done is nice.


Re: Alert messages - halla - 15-10-2008

well if you dont mind logging in 50 times