Page 44 of 49

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

Posted: Mon Aug 29, 2016 9:22 am
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...

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

Posted: Mon Aug 29, 2016 9:57 am
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



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

Posted: Mon Aug 29, 2016 2:39 pm
by Neocon
I'll install it now. YSCAS will be up and running it ASAP.

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

Posted: Mon Aug 29, 2016 4:31 pm
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.

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

Posted: Tue Aug 30, 2016 7:52 am
by Skipper
Awesome sauce, cheers Flake.

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

Posted: Tue Aug 30, 2016 8:36 pm
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 1894 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).

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

Posted: Tue Aug 30, 2016 9:50 pm
by Neocon
After reading the chat log, I take it that the bug still exists where people can't see each other sometimes?

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

Posted: Tue Aug 30, 2016 10:27 pm
by Flake
Noticed both of these also, I'll try and get them sorted out soon

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

Posted: Wed Aug 31, 2016 12:11 am
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.

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

Posted: Thu Sep 01, 2016 2:54 pm
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.

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

Posted: Fri Sep 02, 2016 1:35 am
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.

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

Posted: Fri Sep 02, 2016 11:31 am
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!

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

Posted: Fri Sep 02, 2016 12:15 pm
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...

Direct Download
Google Drive
*Yeah, we're moving to Google Drive thanks to the power of Direct Download Links! Feel the power!


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

Posted: Fri Sep 02, 2016 5:04 pm
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.

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

Posted: Sat Sep 03, 2016 12:39 am
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.

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

Posted: Sat Sep 03, 2016 2:49 am
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.

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

Posted: Sat Sep 03, 2016 3:42 am
by Nodoka Hanamura
Aw hell, Fix a few things and of all the dreaded bugs we could get, we get THAT.

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

Posted: Sat Sep 03, 2016 4:26 am
by Neocon
One other problem: You forgot to remove nukes. :shock:

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

Posted: Sat Sep 03, 2016 4:53 am
by Flake
Fixed :lol:

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

Posted: Sat Sep 03, 2016 4:58 pm
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)