[PROGRAM] OpenYS - Open Source YSFlight Server!

Note that alterations to the YSFlight .EXE is forbidden
User avatar
Flake
VFA-49
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!

Post by Flake »

  • 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
VFA-49
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!

Post by Flake »

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: 3955
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1770 times
Been thanked: 1810 times
Contact:

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

Post by Neocon »

I'll install it now. YSCAS will be up and running it ASAP.
User avatar
Nodoka Hanamura
Veteran
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!

Post by Nodoka Hanamura »

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.
█████████████████████████████████████████████████████████████████████
Member of YSCE Development Committee - I don't code, I compile.
User avatar
Skipper
Rookie
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!

Post by Skipper »

Awesome sauce, cheers Flake.
Image
Host of YSRP: YSRP.co.uk - YS Role Play Server
User avatar
Skipper
Rookie
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!

Post by Skipper »

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 9051 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
Host of YSRP: YSRP.co.uk - YS Role Play Server
User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3955
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1770 times
Been thanked: 1810 times
Contact:

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

Post by Neocon »

After reading the chat log, I take it that the bug still exists where people can't see each other sometimes?
User avatar
Flake
VFA-49
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!

Post by Flake »

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: 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!

Post by Nodoka Hanamura »

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.
█████████████████████████████████████████████████████████████████████
Member of YSCE Development Committee - I don't code, I compile.
User avatar
Flake
VFA-49
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!

Post by Flake »

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
VFA-49
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!

Post by Flake »

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
VFA-49
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!

Post by Flake »

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
VFA-49
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!

Post by Flake »

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 »

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
VFA-49
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!

Post by Flake »

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: 3955
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1770 times
Been thanked: 1810 times
Contact:

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

Post by Neocon »

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: 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!

Post by Nodoka Hanamura »

Aw hell, Fix a few things and of all the dreaded bugs we could get, we get THAT.
█████████████████████████████████████████████████████████████████████
Member of YSCE Development Committee - I don't code, I compile.
User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3955
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1770 times
Been thanked: 1810 times
Contact:

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

Post by Neocon »

One other problem: You forgot to remove nukes. :shock:
User avatar
Flake
VFA-49
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!

Post by Flake »

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 »

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 5 guests