Page 1 of 2

[ALPHA]OpenYS 2.0

Posted: Thu Jun 14, 2018 4:29 am
by Flake
Current Version: ALPHA_20190220233320
This build adds a debug.txt file output, and changes the way things work with confirmations sending of packets. I don't know if the problems will be solves yet but we should be getting closer with this information.


I am aware of a few "MoveNext" enumerable errors that keep propping up, and how to fix them in future. I'll sort these out eventually. If you can create a bug, please screenshot the error and post to this thread for repair. ;)

Okay so I made a massive refactor of the data sending/receiving system, and I hope this works now.

I think i've sorted a race condition for locking when receiving - I was not locking the receiving tasks so multiple receives would happen at once and that would send everything out of sync - that actually can't be allowed to happen. The new solution is to have one master receiver that spins of multiple tasks when a new packet has been completed - it's practically the same really.

I'm not restricting data sends - you should be able to call sends multiple tasks at a time without locking. If that fails, I'll need to make a concurrent queue and have a master sender task, which won't take long to implement. I doubt that is the problem though. We'll see I guess.

Please give the server a test with your friends. Don't do anything fancy - I just want you to run the OYS server on port 7915 and let me know if your friends can join, login and fly without the server exploding your you and your friends flights disconnecting or ending in a fiery inferno.

The only changes between this version and last is the data input/output - and that's how each version from here will be until we're fully sorted out! ;)

20190219211946 In this update, you can use the Proxy Server to create formation flights with a potential distance lag solution.

This is very early days but the infrastructure is here.

To start a formation flight, the host should join the OYS Server normally with a username containing "#1".

All followers need to connect through the OYS Proxy ( to the hosts IP address (edit the settings.dat file). your username should be "#2", "#3" and so on up to a #9 limit.

You will be able to fly in formation so long as you are within 5 times your aircraft hitradius of the host aircraft ON YOUR SCREEN.

To see detailed information of your formation status, click the blue "formation" button in the OYS Proxy. These details are not visible in the server mode (yet).

Remember: You should edit your Settings.Dat to reflect what you want.

ALPHA-20190123002628 In this version you should be able to edit settings, change map and field etc by manual restart.

Players should be able to see each other join flight and leave flight, and also be able to send chat messages to the server.

The program is very basic right now and some of the more advanced features you'd expect from a server are missing: eg: day/night or weather.

Please let me know if you can make this program work for you and if you cannot please send a copy of your console bug reports or screenshots.


Re: [ALPHA]OpenYS 2.0

Posted: Thu Jun 14, 2018 4:36 am
by Zack
oh yes.

Re: [ALPHA]OpenYS 2.0

Posted: Thu Jun 14, 2018 5:39 am
by Flake
=> ALPHA-20180614153506
When I changed the objects over to use the Vehicles class, the ground objects stopped working. Fixed that.

=> ALPHA-20180614182300
Changed the way vehicles get their ID's, so ground objects will now have an object ID that is no longer 0.
Changed the way the login is processed, so now I am verifying all aircraft and ground objects are created when you log in.
Fixed bug were logging off would show as a console user message.
Ground objects are finally loading correctly, and as ground objects and not as aircraft.

Re: [ALPHA]OpenYS 2.0

Posted: Thu Jun 14, 2018 7:36 pm
by Xray
Flake = God ...oh bby

Re: [ALPHA]OpenYS 2.0

Posted: Sat Jun 16, 2018 7:04 am
by Flake
I fixed a bug where some start positions weren't being accepted as there was a case-sensitivity comparison issue. That will be solved in the next release.

Please, any bug, no matter how small, no matter how many, if you can describe what you did to make it happen, please tell me.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Jan 09, 2019 1:11 am
by WARDC_sOnar
Wow! Thanks Flake!

True, true Xray! :mrgreen:

Re: [ALPHA]OpenYS 2.0

Posted: Tue Jan 22, 2019 1:43 pm
by Flake

New version is available. Give it a test and see how it works for you. Bare bones for now but I want to at least get this out there for feedback thus far.

Re: [ALPHA]OpenYS 2.0

Posted: Tue Jan 22, 2019 5:57 pm
by Neocon
Is this version ready for me to give it a try running my server?

Re: [ALPHA]OpenYS 2.0

Posted: Tue Jan 22, 2019 11:43 pm
by Flake
It doesn't have the functions you'll be after just yet Pat.

I'm still yet to add weather and moderation commands.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Jan 30, 2019 7:46 pm
by Grigor
Let me get this straight... is this an open source replacement for YSFlight? Or am I just dreaming?

Re: [ALPHA]OpenYS 2.0

Posted: Wed Jan 30, 2019 9:19 pm
by waspe414
Specifically for servers rather than actual visual rendering and physics, but no, you are not dreaming.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Jan 30, 2019 11:09 pm
by Flake
That would be the case if the program was working correctly but instead I'm stuck in this hamster wheel of bullshit like:


Re: [ALPHA]OpenYS 2.0

Posted: Thu Jan 31, 2019 6:11 am
by Grigor
Dang. Maybe one day... And BTW, Flake, your avatar is both disturbing a extremely watchable.

Re: [ALPHA]OpenYS 2.0

Posted: Tue Feb 19, 2019 10:33 am
by Flake
New version is up.

I'd like for someone to download this, and edit the settings to run OpenYS Server only on port 7915.

Test it with your friends - can they join your server by connecting their YSFlight clients to your IP on port 7915? Can they log in? Join flight? Fly around with exploding or dropping connection?

Please let me know how your experience goes.

Still no moderation tools - not going to add them until we get this problem fixed. Thanks for understanding.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Feb 20, 2019 1:38 am
by Neocon
We have three entries. Which ones need to be 7915?

Code: Select all

Server.ListeningPorts.TCP                                       	7914
Server.ListeningPorts.UDP                                       	7965
Server.ProxyServer.DestinationPort                              	7915
I changed all three to 7915. When I tried logging in on from my own computer (and the same install that OYS2.0 points to), I got a message saying "This client has no airplane that can be used in this server. Please contact the server administrator for more information."

Re: [ALPHA]OpenYS 2.0

Posted: Wed Feb 20, 2019 2:26 am
by Flake
Have you pointed the YSFlight Directory setting to the correct location? :)

And, if so, could you please tell me the language locatilisation of your PC (I presume it should be en-us for you pat.)?

Also what addon packs are you trying to load, the same that are on your server build?

Thanks for trying this for me.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Feb 20, 2019 2:33 am
by Neocon
Yes, EN-US.

Yes, I copy/pasted the YS Directory location from the windows explorer address bar, which seems to have been the problem. It was that good-old / vs \ issue that occurs from time to time. I copy/pasted the directory location from the old OYS settings editor GUI and it seems to work fine. Ground objects are in the right places, ground texture looks good, and the plane didn't explode on takeoff.

If I have the ports correct (all set to 7915), I will leave the server running for testing for a while.

Another issue is that it doesn't seem to like the server list bot.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Feb 20, 2019 3:09 am
by Flake
I'm glad you can log in locally and not having too many issues. The big test will be if it stands the test of time over the internet. :)

If no one else does, I'll login later this afternoon (local time +5 hours from time of posting this?) and give it a test myself. As I'm in a sharehouse with dodgy internet and my ping is +270ms it's a great test bed to see how we're going now.

I hope things work out from here on out.

Cheers mate. I appreciate your support as always.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Feb 20, 2019 12:36 pm
by Flake
Okay let's try this again.

I've changed the way the login works for sending entities slightly.

I've moved the debug out of the UI and into a dedicated log file with timestamps.

I don't know if this is going to work indefinitely yet - in fact I doubt it will, but this will give me more information to try and solve the problem more definitively.

Re: [ALPHA]OpenYS 2.0

Posted: Wed Feb 20, 2019 11:08 pm
by Neocon
I haz errzerz.
OYS 2.0 Error #1
OYS 2.0 Error #1