[PROGRAM] OpenYS - Open Source YSFlight Server!

Note that alterations to the YSFlight .EXE is forbidden
User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Mon Aug 29, 2016 9:22 am

  • 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...
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
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Mon Aug 29, 2016 9:57 am

Now Updated to Version 20160829(1944)

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


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
Neocon
First Class Membership
First Class Membership
Posts: 3844
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1612 times
Been thanked: 1727 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon » Mon Aug 29, 2016 2:39 pm

I'll install it now. YSCAS will be up and running it ASAP.

User avatar
Nodoka Hanamura
Veteran
Veteran
Posts: 923
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
Has thanked: 513 times
Been thanked: 266 times

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Nodoka Hanamura » Mon Aug 29, 2016 4:31 pm

Patrick31337 wrote:I'll install it now. YSCAS will be up and running it ASAP.
Grun Squadron server is also running the latest version of OpenYS.

Since the server list is being completely dumb today, you can access it via gstemp.ddns.net.
█████████████████████████████████████████████████████████████████████
Image

User avatar
Skipper
Rookie
Rookie
Posts: 52
Joined: Mon Dec 09, 2013 8:28 pm
Favorite Aircraft: Spitfire
Location: South Wales, UK
OS: Windows 7
Has thanked: 9 times
Been thanked: 24 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Skipper » Tue Aug 30, 2016 7:52 am

Awesome sauce, cheers Flake.
Image
Skipper's Mod Pack: www.skipper-iwb.co.uk (On YS Mod Site)

User avatar
Skipper
Rookie
Rookie
Posts: 52
Joined: Mon Dec 09, 2013 8:28 pm
Favorite Aircraft: Spitfire
Location: South Wales, UK
OS: Windows 7
Has thanked: 9 times
Been thanked: 24 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Skipper » Tue Aug 30, 2016 8:36 pm

Not sure what is causing this...
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
err
err
bug.png (14.63 KiB) Viewed 1854 times
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).
Image
Skipper's Mod Pack: www.skipper-iwb.co.uk (On YS Mod Site)

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3844
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1612 times
Been thanked: 1727 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon » Tue Aug 30, 2016 9:50 pm

After reading the chat log, I take it that the bug still exists where people can't see each other sometimes?

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Tue Aug 30, 2016 10:27 pm

Noticed both of these also, I'll try and get them sorted out soon
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
Nodoka Hanamura
Veteran
Veteran
Posts: 923
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
Has thanked: 513 times
Been thanked: 266 times

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Nodoka Hanamura » Wed Aug 31, 2016 12:11 am

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.
█████████████████████████████████████████████████████████████████████
Image

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Thu Sep 01, 2016 2:54 pm

Re-wrote client class to be more code efficient today.

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.
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
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Fri Sep 02, 2016 1:35 am

Took me all mornings worth of pulling my hair out but waiting/defferred packet handling is now done.

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();
For example.

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.
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
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Fri Sep 02, 2016 11:31 am

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.
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.

===

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!
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
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Fri Sep 02, 2016 12:15 pm

Now Updated to Version 20160902(2142)
Changes:
+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!

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
Dragon_Mech
Veteran
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!

Post by Dragon_Mech » Fri Sep 02, 2016 5:04 pm

i was just flying in the civav server and noticed the amount of flares that the aircraft is restricted to 20 again.
Owner, Dragonic Machine Industries
Image

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Sat Sep 03, 2016 12:39 am

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.
Pls gimme the aircraft name fam.
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
Neocon
First Class Membership
First Class Membership
Posts: 3844
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1612 times
Been thanked: 1727 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon » Sat Sep 03, 2016 2:49 am

I have not updated to the new version. I will do that right now and let you know if it works.
Confirmed. The flare locations and directions work, but are limited to 20.

User avatar
Nodoka Hanamura
Veteran
Veteran
Posts: 923
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
Has thanked: 513 times
Been thanked: 266 times

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Nodoka Hanamura » Sat Sep 03, 2016 3:42 am

Aw hell, Fix a few things and of all the dreaded bugs we could get, we get THAT.
█████████████████████████████████████████████████████████████████████
Image

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3844
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1612 times
Been thanked: 1727 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon » Sat Sep 03, 2016 4:26 am

One other problem: You forgot to remove nukes. :shock:

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

Re: [PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Sat Sep 03, 2016 4:53 am

Fixed :lol:
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
Dragon_Mech
Veteran
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!

Post by Dragon_Mech » Sat Sep 03, 2016 4:58 pm

OfficerFlake wrote: Pls gimme the aircraft name fam.
i was flying my Grun F-15E Strike Eagle Block II -DR (mistakingly named Block III)
Owner, Dragonic Machine Industries
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest