[ALPHA]OpenYS 2.0
- 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:
[ALPHA]OpenYS 2.0
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.
-----
BUGS:
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.
DOWNLOAD LATEST TEST VERSION
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 (127.0.0.1) 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.
ALPHA-20180614182300
- 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: [ALPHA]OpenYS 2.0
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.
- 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: [ALPHA]OpenYS 2.0
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.
- WARDC_sOnar
- Newbie
- Posts: 7
- Joined: Sun Jul 17, 2016 11:04 am
- Favorite Aircraft: PZL P11-C
- OS: Windows 7, Linux
- Has thanked: 1 time
- 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: [ALPHA]OpenYS 2.0
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.
- 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: 1770 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: [ALPHA]OpenYS 2.0
I'm still yet to add weather and moderation commands.
- waspe414
- Staff
- Posts: 1582
- Joined: Thu Feb 10, 2011 9:35 pm
- Favorite Aircraft: Kiowa, Mitten, Hornet
- Location: Canada
- Has thanked: 154 times
- Been thanked: 506 times
Re: [ALPHA]OpenYS 2.0
I stole your turnip. Now you must come and defend your honour. ~ Hank Green
- 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: [ALPHA]OpenYS 2.0
- 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: [ALPHA]OpenYS 2.0
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.
- 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: 1770 times
- Been thanked: 1810 times
- Contact:
Re: [ALPHA]OpenYS 2.0
Code: Select all
Server.ListeningPorts.TCP 7914
Server.ListeningPorts.UDP 7965
Server.ProxyServer.DestinationPort 7915
- 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: [ALPHA]OpenYS 2.0
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.
- 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: 1770 times
- Been thanked: 1810 times
- Contact:
Re: [ALPHA]OpenYS 2.0
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.
- 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: [ALPHA]OpenYS 2.0
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.
- 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: [ALPHA]OpenYS 2.0
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.
- 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: 1770 times
- Been thanked: 1810 times
- Contact:
Who is online
Users browsing this forum: No registered users and 7 guests