Channel # Disconnected

If you want to help us or give some corrections / codes, put it here ;)

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Channel # Disconnected

Postby Drakia on Sat Sep 22, 2007 7:23 am

This is a fix for anyone experiencing their channel disconnecting when they log off. It's an easy fix, for a rather odd error :)

  1. Char Server\extrafunctions.cpp
  2. Find:
  3. if(client->userid==userid)
  4. Replace With:
  5. if(client->userid==userid && client->accesslevel != 0xffff)
  6.  


And that's it, problem should be solved :) Game on.

Also, I'm not sure whether Return to Character Select was working proper before, but it seems to be working fine now (Dunno if this fixed that or not, I know char select used this function as well)
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: Channel # Disconnected

Postby Crashinside on Sat Sep 22, 2007 9:00 am

Ehy Thnx ;)
But,this is fix for bug of char server freeze?When you press START the game was locking on WAITING and dont start?
Image
User avatar
Crashinside
Pomic
Pomic
 
Posts: 97
Joined: Wed Sep 19, 2007 12:53 pm

Re: Channel # Disconnected

Postby Drakia on Sat Sep 22, 2007 9:15 am

This fixes when the world server disconnects from the char server if you return to character select, or channel select.
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada

Re: Channel # Disconnected

Postby Crashinside on Sat Sep 22, 2007 10:50 am

Drakia wrote:This fixes when the world server disconnects from the char server if you return to character select, or channel select.

Ah...nice ok thnx ;)
Image
User avatar
Crashinside
Pomic
Pomic
 
Posts: 97
Joined: Wed Sep 19, 2007 12:53 pm

Re: Channel # Disconnected

Postby Terr0risT on Sat Sep 22, 2007 2:02 pm

To work correctly on latest revs,


In extrafunctions.cpp

Find

  1.        if(thisclient->Session->userid==userid)



Replace with

  1.        if(thisclient->Session->userid==userid && thisclient->Session->accesslevel != 0xffff)
Last edited by Terr0risT on Sat Sep 22, 2007 4:56 pm, edited 1 time in total.
User avatar
Terr0risT
Rackie
Rackie
 
Posts: 162
Joined: Sat Aug 11, 2007 10:22 am

Re: Channel # Disconnected

Postby rl2171 on Sat Sep 22, 2007 4:09 pm

This will be in the next rev.

Thanks Drakia!
Image
rl2171
Admin
Admin
 
Posts: 1706
Joined: Mon Aug 06, 2007 5:17 pm
Location: Sacramento, CA USA - GMT-8

Re: Channel # Disconnected

Postby Drakia on Sat Sep 22, 2007 5:54 pm

Actually terrorist, that's in WorldServer, not CharServer. I'm not sure if you actually need it to be done in both (I haven't had problems with the world servers one) But there's no harm adding that as well. So, rl2171, stick that in the next rev too, eh? (It's just in WorldServers extrafunctions.cpp)
My favorite skill is scaring new users away.
If you haven't SEARCHED expect me to yell at you.
Image
Drakia
ospRose dev team
ospRose dev team
 
Posts: 1614
Joined: Tue Sep 18, 2007 6:53 am
Location: Nanaimo, BC, Canada


Return to Submit Code

Who is online

Users browsing this forum: No registered users and 2 guests

cron