Game hall update diary 3rd days

Source: Internet
Author: User

By upgrading the logic to a single user, you can enter multiple halls at the same time (originally only one hall can be entered), but you can only play one game.

This forces me to significantly modify the code, especially the entity.

So far, it has been improved, but there are many small bugs to solve.

Therefore, messages are displayed on the server, including

Changes in the key memory objects of the receiving protocol, the time point of the sending protocol, and the sending/receiving objects.

Open the console program while starting the client, and output the above information.

 

So far, login has been stable, and the communication layer has been stable.

Illegal disconnection detection is stable, but the processing on the client needs to be improved.

You also need to write story.

 

Two bugs have been solved:

1) Leave Hall is abnormal because the hallid in my userhalllist is 0.

2) throw an exception "You cannot call invoke or begininvoke on the control before creating the window handle". This problem has plagued me for a long time. I just found a solution: in this. add a waiting code before invoke:

While (! This. ishandlecreated)
{
;
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.