[PROGRAM] YS Radar

Note that alterations to the YSFlight .EXE is forbidden
User avatar
Eric
Senior Veteran
Senior Veteran
Posts: 1540
Joined: Thu Feb 10, 2011 5:30 am
Favorite Aircraft: Super Hornet
Location: Chicago, Illinois
Has thanked: 60 times
Been thanked: 165 times
Contact:

Re: YS radar

Post by Eric » Sun Jan 19, 2014 10:42 am

Yes, you must run the ysradar.py file in Python 2.7 for it to work. This is a beta version so there still may be some bugs. I suggest you run it with the 2012 version of YS and above. The final version may come packaged with the leaderboard client (successor to YSChat).
I make this website.

User avatar
Midnight Rambler
Staff
Staff
Posts: 2125
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 10
Has thanked: 261 times
Been thanked: 365 times

Re: YS radar

Post by Midnight Rambler » Mon Jun 23, 2014 1:40 am

I've found a bug. The server version fails to reconnect to the YSF server after a server reset. This then causes the YSR client to crash if it connects to the server, after a YS reset.

-- Mon Jun 23, 2014 11:40 am --

Image

Further to my post above.
Image

User avatar
Flake
VFA-49
VFA-49
Posts: 4357
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 838 times
Been thanked: 1247 times
Contact:

Re: [PROGRAM] YS Radar

Post by Flake » Mon Jun 23, 2014 10:07 am

The connection method is a blind assumption based method. That is, connect, now get packet of this size and type, and again, and again... etc.

The thing is - when the server resets, the socket closes and python just doesn't know what to do with that.

- a blank string is returned for the data recv, which indicates a closed socket as the recv function blocks by nature - that is, sits and waits forever until it gets data or it returns null (nothing) if it can't get any.

A simple if test on the data seeing if the returned packet is length 0, and if 0, close the connection and attempt to reconnect (in a loop cycle, like once every 90 seconds for example and give up after 5 tries?) would fix this.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!

User avatar
Barr
Veteran
Veteran
Posts: 1012
Joined: Wed Mar 28, 2012 8:49 pm
Favorite Aircraft: The Boeing 757
Location: Providence, Rhode Island
OS: Windows 10/Gentoo
Has thanked: 272 times
Been thanked: 205 times

[PROGRAM] YS Radar

Post by Barr » Mon Dec 29, 2014 4:01 am

If you need the client it is available on YSupload.com

http://ysu.ysfhq.com/download.php?id=354





Also how do you space the text on the radar? Is this in the program code?
Screenshot (375).png
Image
Beginner ATC for hire!
Current Projects:
-Pilatus PC12
-Mooney M20
-New England Scenery
Fine Print:
**Word of Caution**
My knowledge is limited. Anything I write in my posts may or may not be accurate. To be honest I think its all crap.

User avatar
Ace Lord
VFA-49
VFA-49
Posts: 388
Joined: Thu Feb 10, 2011 8:45 pm
Favorite Aircraft: B-52H Stratofortress
Location: 404: Not Found
OS: Windows 10
Has thanked: 54 times
Been thanked: 139 times

[PROGRAM] YS Radar

Post by Ace Lord » Mon Dec 29, 2014 4:49 pm

Sky Surfer Server (skysurfer.servegame.com) is now operating the updated Radar Server
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests