- Should have now fixed the MetaData load bug Skipper pointed out.
- Color change glitch is definitely theoreticly present. Logic flaw. This part of the code will need to be re-written...
[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!
- 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:
+Workaround for errors loading MetaData. Not sure why, we can work on that later. For now, the program shouldn't crash.
+Now using Async socket sending with callbacks. Thread usage considerably reduced. CPU usage considerably reduced. Lag should be reduced, I look forwards to hearing if this is the case.
+Fixed Color/Altitude being applied to all clients bug.
-Removed Nukes
Notes:
Though I do beleive this version should be fairly stable (Has passed all my tests so far), please back up your current server, Just in case...
I am liking that more and more bugs I find are logical flaws and not coding conflicts.
Download: https://www.mediafire.com/?5bq4bukkszxt0c4
- 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!
- 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!
Grun Squadron server is also running the latest version of OpenYS.Patrick31337 wrote:I'll install it now. YSCAS will be up and running it ASAP.
Since the server list is being completely dumb today, you can access it via gstemp.ddns.net.
- Skipper
- Rookie
- Posts: 83
- Joined: Mon Dec 09, 2013 8:28 pm
- Favorite Aircraft: Spitfire/F-15E
- Location: SAM VOR 240 radial, 27nm
- OS: Windows 10
- Has thanked: 15 times
- Been thanked: 57 times
- Contact:
- Skipper
- Rookie
- Posts: 83
- Joined: Mon Dec 09, 2013 8:28 pm
- Favorite Aircraft: Spitfire/F-15E
- Location: SAM VOR 240 radial, 27nm
- OS: Windows 10
- Has thanked: 15 times
- Been thanked: 57 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
I've got a KC-130 from the GAC pack, and a spitfire sitting on the runway, next to each other.
I set the KC-130 as a refueler, and I get this error Appears on both the spitfire's screen and the KC-130's screen (Though it'll pop up 10x on one, then 2 on the other...irregularly).
- 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!
- 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!
- 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!
Instead of using ThisClient.ConnectionStatus.HasFlag(FlagsConnectionStatus.Disconnected) for example, I instead can now use ThisClient.IsDisconnected(). So much easier on the eyes and so much hard to screw up logic this way.
I also changed "SuperUsers" to OP's. I feel OP is a better description for them.
Had a look at potential sources for the "missing aircraft" join bug where someone is invisible / doesn't exist on some clients. No luck yet...
I hope tomorrow I can implement async/await callbacks to require receipts of certain packets - this will allow me to confirm join packets are received and understood in full and see where things are breaking. YSF protocal does this and I used to do this with OYS before the socket restructure. I need to put this back into the program...
Also added a few more debug notes to logging in debug environment. A little feature for me to use when I want to debug connections.
- 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 developed a smart structure. I can do:
Code: Select all
new ClientIO.SocketOperation
(
new ClientIO.DataEvent(ClientIO.SendOperation, ThisClient, EntityJoined),
new ClientIO.DataEvent(ClientIO.ReceiveOperation, ThisClient, AcknowledgeJoin)
).Run();
The socket operation method is smart - it looks ahead for future receipt requests and gets ready to wait before sending the trigger packet.
What this means is complex send and verify operations are now quick and easily written. I'll run a private test and if all good, I will update the packet handlers to use the new method and push another update.
- 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 now had the same issue come up. It's an error in how the console writes. I was planning on redoing the console anyway.Nodoka Hanamura wrote:I had a bug where the chat log would stop outputting to the server, but I could see at least one line by pressing a button.
===
So I'm now at that point in coding where I sit and think about how to solve a problem. I'll be working on this mentally for the weekend.
As for now, Prepare for another update!
- 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!
+Reworked Client Object to be easier to work with in code.
+Should have solved the INITFUEL etc error, hopefully. :)
+Some verification being put back into the program.
+Now verifying aircraft lists and join requests. log in slower, join requests should be more stable.
+Changed a LOT of code in ClientIO to allow for waiting for certain packets to be received.
+Changed a LOT of references to the client list - Could be more bugs due to new errors, could be less bugs due to solving previous errors. Pot luck.
-Removed nukes.
Notes:
Major changes to login code, join request code, and general data receipt code - you might get issues, be ready to downgrade...
*Yeah, we're moving to Google Drive thanks to the power of Direct Download Links! Feel the power!
- 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!
Pls gimme the aircraft name fam.Dragon_Mech wrote:i was just flying in the civav server and noticed the amount of flares that the aircraft is restricted to 20 again.
- 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!
Confirmed. The flare locations and directions work, but are limited to 20.
- 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!
- 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!
- 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 was flying my Grun F-15E Strike Eagle Block II -DR (mistakingly named Block III)OfficerFlake wrote: Pls gimme the aircraft name fam.
Who is online
Users browsing this forum: No registered users and 6 guests