[PROGRAM] OpenYS - Open Source YSFlight Server!
- Barr
- 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: 206 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
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.
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
I'll change the way the authentication works to be server sided.
I'll have users just log into the service from their own computer through an internet browser to a web page - eg (not done yet) openys.ysfhq.com/login and they just authenticate with their HQ username and pass there. The php script would grab their IP Address and update the authenticated IP addresses table I'll make (would track IP address logged in from and date logged in. If date > 7 days, re-authenticate. using MANY ip's here allows flexibility of login across many platforms without having to log in over and over...)
Then, when a user connects to OYS, the server will check the database itself against the IP they have logged in as, and if the username and IP match, then they will be authenticated automatically - no client install required. This means stock YSF client connects direct to OYS Server and gets all this extended functionality of score tracking again, provided the user of the client does authenticate with OYS web service first.
I might even code a simple function to check logins periodicly on OYS servers as part of the Macro-Tick (every 10 minutes).
====
Back to work again, but on something different.
I've been told that there exists still some lag in the program. From my past inspections with performance monitoring in VS2012, I've found that the data for each packet is stored as string but frequently converted to byte arrays. This makes no sense and adds additional CPU strain. Instead, data should be in byte format at all times, and converted to strings as required. Consider most YSF packet data is byte data - positions, rotations, damage strengths etc. Using a string make it easy to READ the data on my end, but it doesn't make it easier for the computer. If I DO need to read data for debug and development, I can always incur a bit more lag by just doing .ToDataString() to convert the byte array to a readable string.
So what I've been doing is I've changed the common packet core to use a byte array to store the data structure now, instead of a string, which should reduce CPU load and increase performance! I've done one minor test so far, and there appears to be an improvement.
====
Another thing on my list of things to do is to finally address the core issues of packets and socket lag. I'm finally starting to understand how C# code interacts with sockets on a physical, low level. To get the MOST out of OYS I will NEED to swap to an async system. It's actually easier than I thought, but it uses new variables and approaches I'm not 100% on understanding the flow of yet. Thankfully, it's the sort of system that cannot work at ALL unless it is implemented perfectly, so it'll be hard to put together, but once done, the program should hopefully work better than before.
I've created a temporary "spin off" project on my local PC while I make these changes, just incase things go belly up I can revert back to the old OYS version and try a new approach.
Updates to OYS will be coming, I think, in a few months... I have a lot of uni assignments to do and they are taking a huge chunk of my time right now. I thank you all for your patience as I approach this slowly, carefully and accurately!
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
I'll have to go over the packets to ensure I haven't screwed up any conversions, but we're looking sweet so far!
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
I might code a simple IP blacklist and whitelist file you can add addresses too manually in the interim?
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- Doomsday
- Staff
- Posts: 880
- Joined: Mon Feb 07, 2011 2:01 am
- Favorite Aircraft: PEW PEW PEW PEW
- Location: PEW PEW PEW
- OS: PEW PEW PEW PEW PEW
- Has thanked: 1 time
- Been thanked: 130 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
You can find a download link in the first post with the latest OpenYS downloadu2fly wrote:Where I can get latest OpenYS build now?
PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW
Team Awesome# 131
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
Changes:
+Packets are now stored using Byte Arrays instead of strings, increasing program speed and reducing lag.
+Fixed a critical flaw in the flight data packet handling that would cause some flights to just jitter about with no control (being sent own flight data packets)
+Fixed a critical flaw in the "exclude" function in client selection, which was part of the error in the flight data packet bug.
-Removed Nukes
Notes:
~Blacklist/Whitelist hopefully soon.
~Could be a metric shit ton of bugs due to the conversion of ALL the packet code to the new system.
Download: https://www.mediafire.com/?tft64tzmjhv5cff
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
I've just-reuploaded the whole thing.
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
still hope you would make OpenYS ready for use on Linux too... Now I will test it with MonoOfficerFlake wrote:Yes, but I just realised that doesn't work since I changed the DLL's... derp.
I've just-reuploaded the whole thing.
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- Dragon_Mech
- Veteran
- Posts: 571
- Joined: Wed Jul 15, 2015 12:18 pm
- Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
- Location: Mansfield, Mo. USA
- OS: Windows 7 Ultimate
- Has thanked: 94 times
- Been thanked: 127 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
To get IP's, do /ListUsers
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- Dragon_Mech
- Veteran
- Posts: 571
- Joined: Wed Jul 15, 2015 12:18 pm
- Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
- Location: Mansfield, Mo. USA
- OS: Windows 7 Ultimate
- Has thanked: 94 times
- Been thanked: 127 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- u2fly
- Senior Veteran
- Posts: 1485
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1051 times
- Been thanked: 339 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
1) https://sourceforge.net/projects/virtualair/
2) https://sourceforge.net/projects/flightgearconne/
U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”
pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
- Nodoka Hanamura
- Veteran
- Posts: 947
- Joined: Thu Apr 07, 2011 8:01 pm
- Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
- OS: Windows 10 / Linux
- Has thanked: 539 times
- Been thanked: 276 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
It could be done, but the problem is that there are constraints in YSFlight that prohibit this (Mainly custom maps not being compliant with RL locations and the sort.)u2fly wrote:I still think, "is it possible connect YSFlight with other simulators using OpenYS?". And here is some framework example:
https://sourceforge.net/projects/virtualair/
- Dragon_Mech
- Veteran
- Posts: 571
- Joined: Wed Jul 15, 2015 12:18 pm
- Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
- Location: Mansfield, Mo. USA
- OS: Windows 7 Ultimate
- Has thanked: 94 times
- Been thanked: 127 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
i have found a new flare issue with your current OYS release. all aircraft are forced to spawn with 20 flares regardless of the default amount set in the dat file.
i don't know if this affects flare pods, but i'll edit this post with the results soon.
--------------------------------------------------------------------------------------------------
EDIT: flare pods are unaffected.
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- kiwiflieger
- Contributor
- Posts: 227
- Joined: Thu Mar 27, 2014 7:09 am
- Favorite Aircraft: Die Fledermaus
- Has thanked: 125 times
- Been thanked: 92 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
Who is online
Users browsing this forum: No registered users and 1 guest