[ALPHA]OpenYS 2.0

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

[ALPHA]OpenYS 2.0

Post by Flake » Thu Jun 14, 2018 4:29 am

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.

-----

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
Previous VersionsShow
ALPHA-20190219211946Show
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
ALPHA-20190123002628Show
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
ALPHA-20180614182300Show
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

User avatar
Zack
Contributor
Contributor
Posts: 396
Joined: Wed Mar 21, 2012 10:34 pm
Favorite Aircraft: F-16C Fighting Falcon
Location: Northern California/Bay Area
OS: Windows 10
Has thanked: 43 times
Been thanked: 155 times

Re: [ALPHA]OpenYS 2.0

Post by Zack » Thu Jun 14, 2018 4:36 am

oh yes.

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Thu Jun 14, 2018 5:39 am

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

User avatar
Xray
Newbie
Newbie
Posts: 3
Joined: Fri May 05, 2017 4:02 pm
Favorite Aircraft: McDonnell Douglas F-15 Eagle
Location: Las Vegas NV
OS: Windows 8.1 - 64 Bit
Has thanked: 16 times
Been thanked: 3 times

Re: [ALPHA]OpenYS 2.0

Post by Xray » Thu Jun 14, 2018 7:36 pm

Flake = God ...oh bby
Image

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Sat Jun 16, 2018 7:04 am

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.

User avatar
WARDC_sOnar
Newbie
Newbie
Posts: 7
Joined: Sun Jul 17, 2016 11:04 am
Favorite Aircraft: PZL P11-C
OS: Windows 7, Linux
Has thanked: 1 time

Re: [ALPHA]OpenYS 2.0

Post by WARDC_sOnar » Wed Jan 09, 2019 1:11 am

Wow! Thanks Flake!

True, true Xray! :mrgreen:
(sorry for my english)

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Tue Jan 22, 2019 1:43 pm

Bamp.

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.

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

Re: [ALPHA]OpenYS 2.0

Post by Neocon » Tue Jan 22, 2019 5:57 pm

Is this version ready for me to give it a try running my server?

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Tue Jan 22, 2019 11:43 pm

It doesn't have the functions you'll be after just yet Pat.

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

Grigor
Contributor
Contributor
Posts: 196
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 59 times
Been thanked: 113 times

Re: [ALPHA]OpenYS 2.0

Post by Grigor » Wed Jan 30, 2019 7:46 pm

Let me get this straight... is this an open source replacement for YSFlight? Or am I just dreaming?

User avatar
waspe414
Staff
Staff
Posts: 1220
Joined: Thu Feb 10, 2011 9:35 pm
Favorite Aircraft: CH-136 Kiowa, Yak-130 Mitten
Location: Canada
Has thanked: 104 times
Been thanked: 204 times

Re: [ALPHA]OpenYS 2.0

Post by waspe414 » Wed Jan 30, 2019 9:19 pm

Specifically for servers rather than actual visual rendering and physics, but no, you are not dreaming.
Actual UltraViolet
Image Image
Image
I stole your turnip. Now you must come and defend your honour. ~ Hank Green

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Wed Jan 30, 2019 11:09 pm

That would be the case if the program was working correctly but instead I'm stuck in this hamster wheel of bullshit like:

Image

Grigor
Contributor
Contributor
Posts: 196
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 59 times
Been thanked: 113 times

Re: [ALPHA]OpenYS 2.0

Post by Grigor » Thu Jan 31, 2019 6:11 am

Dang. Maybe one day... And BTW, Flake, your avatar is both disturbing a extremely watchable.

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Tue Feb 19, 2019 10:33 am

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.

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

Re: [ALPHA]OpenYS 2.0

Post by Neocon » Wed Feb 20, 2019 1:38 am

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

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Wed Feb 20, 2019 2:26 am

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.

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

Re: [ALPHA]OpenYS 2.0

Post by Neocon » Wed Feb 20, 2019 2:33 am

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.

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Wed Feb 20, 2019 3:09 am

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.

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

Re: [ALPHA]OpenYS 2.0

Post by Flake » Wed Feb 20, 2019 12:36 pm

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.

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

Re: [ALPHA]OpenYS 2.0

Post by Neocon » Wed Feb 20, 2019 11:08 pm

I haz errzerz.
oys2error.png
OYS 2.0 Error #1

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests