TASClient logon problems - Page 3

TASClient logon problems

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: TASClient logon problems

Post by Satirik »

someone wrote:90% of all tasclients grumbles, issues, bugs, and complaints, can all be solved using code that can be written in a handful of lines
just did it ... let's see if it fixes 90% of tasclient issues
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: TASClient logon problems

Post by aegis »

AF wrote:

Code: Select all

class CPingTask extends TimerTask {
    public CConnection c;
    public void run() {
        c.sendLine("PING");
    }
}
Timer pingtask = new Timer();
CPingTask t = new CPingTask();
t.c = this;
pingtask.schedule(t, 500, 8000);
added it to my tasclient and it broke ;_;
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: TASClient logon problems

Post by aegis »

Image
pretty much sums it up
Betalord
Former Engine Dev
Posts: 543
Joined: 29 Jun 2005, 09:31

Re: TASClient logon problems

Post by Betalord »

Because you did it wrong I guess. But can't say much without the source.

You should synchronize the thread that sends ping, also check out TWSocket options (make sure it is not in some mode that doesn't allow concurrent access).
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: TASClient logon problems

Post by Satirik »

tested in local when sending ping every 500ms while loading a mod or maps etc and the pings was received by the server
Post Reply

Return to “Engine”