[PROGRAM] OpenYS - Open Source YSFlight Server!

Note that alterations to the YSFlight .EXE is forbidden
User avatar
AdityaB
Veteran
Veteran
Posts: 547
Joined: Sat Oct 17, 2015 12:40 pm
Favorite Aircraft: All
Location: India
OS: Windows 10
Has thanked: 163 times
Been thanked: 144 times

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

Post by AdityaB »

Me and Thomas can also verify the same.....yesterday as we were flying the same happened....i believe Thomas was able to see me but i was not able to see him...even in the F3 mode... :?

Thomas was right below me, it seems :?

Thanks a lot :)
Please note that I do not mean any kind of offence in any of my posts
My Website:
YS Flight South Asia
Get full list of
my releases at:
AdityaB's Facility
:) :) :)
*temporarily unavailable further details
User avatar
Thomascook221
Contributor
Contributor
Posts: 151
Joined: Sun Feb 28, 2016 7:28 am
Favorite Aircraft: Boeing 737 Max - Airbus A320Neo
Location: Indonesia, Bekasi
OS: Windows 10 Home
Has thanked: 224 times
Been thanked: 126 times
Contact:

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

Post by Thomascook221 »

AdityaB wrote:Me and Thomas can also verify the same.....yesterday as we were flying the same happened....i believe Thomas was able to see me but i was not able to see him...even in the F3 mode... :?

Thomas was right below me, it seems :?

Thanks a lot :)
Verify That...yes Thats True.. I Can see Aditya But Aditya Cant See Me... :?

Regards
Vice President of Abel Jets VA https://abeljetsgroup.weebly.com/
YSFlight Creation & Repaint https://sites.google.com/view/thomas-hangar/home
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 »

Also aware. Not sure why yet... Re-writing the sockets to work async at the moment, stay tuned!
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 »

Good work done today - Async receive structure working okay, gutta sort out sending of data and then clean up. Hope to test performance 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
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 »

One more update. Async now working in both directions... GOOD LORD it is fast. Even on my pc loading is 10 times faster.

Cleaning up soon.

Come test my server! <REDACTED> and tell me what you think!
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
AdityaB
Veteran
Veteran
Posts: 547
Joined: Sat Oct 17, 2015 12:40 pm
Favorite Aircraft: All
Location: India
OS: Windows 10
Has thanked: 163 times
Been thanked: 144 times

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

Post by AdityaB »

well, yes, it is a lot faster :) love it :)

but then, it seems that things later on go slower :? : the chat msgs, the commands: /listusers, /weather

for example, i had first entered the server and was automatically kicked out (i believe it is a problem on my side, it happens even when trying to get into 187server) by saying "connection cant be sustained"

so the next command that naturally come to users is "xyz left the server".......i was kicked out i joined again and picked an aircraft and statrted to fly when:
2.jpg
(hope you understand what i said :) my way of expression is quite poor)

the delayed msgs were the only problem i felt, otherwise it is awesome!!
5.jpg
this kept poping up now and then :) : "no actrivity for 60 sec. pl do something or you will be disconnected" and, later on, i was not able to join afterwards, how much i ever pressed join or J
6.jpg
but otherwise your program is awesome!! :)
Please note that I do not mean any kind of offence in any of my posts
My Website:
YS Flight South Asia
Get full list of
my releases at:
AdityaB's Facility
:) :) :)
*temporarily unavailable further details
User avatar
AdityaB
Veteran
Veteran
Posts: 547
Joined: Sat Oct 17, 2015 12:40 pm
Favorite Aircraft: All
Location: India
OS: Windows 10
Has thanked: 163 times
Been thanked: 144 times

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

Post by AdityaB »

this was the problem.... :
whatrefuel.png
dont know why....but it kept crashing us, the players, as and when we tried to refuel... :?
Please note that I do not mean any kind of offence in any of my posts
My Website:
YS Flight South Asia
Get full list of
my releases at:
AdityaB's Facility
:) :) :)
*temporarily unavailable further details
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 »

  • Stabilised the async operations by adding disconnection handling.
  • Solved a bug in ToByteArray extension - wasn't handling unicode characters which was crashing the process when trying to load aircraft lists, for example, on some servers.
  • Console now sees messages again.
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
Doomsday
Staff
Staff
Posts: 880
Joined: Mon Feb 07, 2011 2:01 am
Favorite Aircraft: PEW PEW PEW PEW
Location: PEW PEW PEW
OS: PEW PEW PEW PEW PEW
Has thanked: 1 time
Been thanked: 130 times

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

Post by Doomsday »

OfficerFlake wrote:
  • Stabilised the async operations by adding disconnection handling.
  • Solved a bug in ToByteArray extension - wasn't handling unicode characters which was crashing the process when trying to load aircraft lists, for example, on some servers.
  • Console now sees messages again.
  • Remove nukes
Fixed
Image
PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW

Team Awesome# 131
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 »

  • Changed the way sending/receiving is done to check connection state first - stops the program from lagging down when users connect/disconnect from the server.
  • Fixed a rare race condition that could happen when a user joins the server - Clients would be theoretically removed from the server before they even start logging in.
  • With the socket cleanups done, no more noticable lag spikes. PLEASE CONNECT TO <REDACTED> to test the latest build of OYS, hopefully no game breaking bugs. :)
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: 1769 times
Been thanked: 1810 times
Contact:

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

Post by Neocon »

OfficerFlake, we noticed last night that when one pilot flies his plane very high into the air, the sky gets dark for everybody. I am guessing that there is no way to change the sky color specifically for each pilot?
NightRaven
Senior Veteran
Senior Veteran
Posts: 1851
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: .
OS: windoze 10 64-bit
Has thanked: 617 times
Been thanked: 619 times

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

Post by NightRaven »

That has always been the case for the darkening of the sky at higher altitudes. I think in this case YS takes the sky colour determined by the server, which changes the sky colour according to time and/or altitude, so it is a server wide effect.
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 »

Patrick31337 wrote:we noticed last night that when one pilot flies his plane very high into the air, the sky gets dark for everybody
That shouldn't happen haha, I will have another look at the code to ensure the packets are being sent only to one client.

---

Also I'm pretty pleased with the new async socket structure so far so I'm going to go with that and start cleaning up code for the next release.
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
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

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

Post by u2fly »

Is OpenYS 20151209(1709) is latest version?
http://www.mediafire.com/download/reyia ... 709%29.zip

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
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 »

I believe so.
I'm getting some interesting errors when I try and launch it....

Code: Select all

20160828(175946): MESSAGE: Object reference not set to an instance of an object.
20160828(175946): START TRACE: 
20160828(175946): METHOD: Ground FindByName(System.String)
20160828(175946): LINENUMBER: 273
20160828(175946): COLUMNNUMBER: 21
20160828(175946): METHOD: Ground FindByName(System.String)
20160828(175946): LINENUMBER: 273
20160828(175946): COLUMNNUMBER: 21
20160828(175946): METHOD: Ground FindByName(System.String)
20160828(175946): LINENUMBER: 273
20160828(175946): COLUMNNUMBER: 21
20160828(175946): METHOD: Ground FindByName(System.String)
20160828(175946): LINENUMBER: 273
20160828(175946): COLUMNNUMBER: 21
20160828(175946): METHOD: Ground FindByName(System.String)
20160828(175946): LINENUMBER: 273
20160828(175946): COLUMNNUMBER:
And:

Code: Select all

20160828(175946): MESSAGE: Object reference not set to an instance of an object. METHOD: Ground FindByName(System.String) LINENUMBER: 273 COLUMNNUMBER: 21 STACKTRACE: OpenYS.MetaData._Ground.FindByName(String Name) in c:\Users\OfficerFlake\Dropbox\Code Projects\OpenYS\_OpenYS-Library\_YSFlightLoading\MetaData\MetaData.cs:line 273 OpenYS.World.LoadFLD(Scenery InputScenery) in c:\Users\OfficerFlake\Dropbox\Code Projects\OpenYS\_OpenYS-Library\_YSFlightLoading\World\World.cs:line 132 OpenYS.World.Load(Scenery InputScenery) in c:\Users\OfficerFlake\Dropbox\Code Projects\OpenYS\_OpenYS-Library\_YSFlightLoading\World\World.cs:line 35 OpenYS.World.Load(String Name) in c:\Users\OfficerFlake\Dropbox\Code Projects\OpenYS\_OpenYS-Library\_YSFlightLoading\World\World.cs:line 20 OpenYS.OpenYS_Server.Program.Run(String[] args) 
It seems to be struggling to find a ground object... I'm using the default Hawaii map...

I have repeated the launch with the Aomori map as well, same error.
Image
Host of YSRP: YSRP.co.uk - YS Role Play Server
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 »

I can investigate this quickly - I have the exact code address I need to go look at.
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!
KM6BZH
Contributor
Contributor
Posts: 314
Joined: Sun Jul 24, 2016 11:59 pm
Favorite Aircraft: Mitsubishi Zero
Location: Cupertino, CA
OS: Windows 10
Has thanked: 45 times
Been thanked: 153 times

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

Post by KM6BZH »

I want to run a server... do you have to do port forwarding (or whatever it's called) even with OpenYS?
User avatar
Midnight Rambler
Staff
Staff
Posts: 2136
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 11
Has thanked: 267 times
Been thanked: 374 times

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

Post by Midnight Rambler »

Yes
Image
KM6BZH
Contributor
Contributor
Posts: 314
Joined: Sun Jul 24, 2016 11:59 pm
Favorite Aircraft: Mitsubishi Zero
Location: Cupertino, CA
OS: Windows 10
Has thanked: 45 times
Been thanked: 153 times

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

Post by KM6BZH »

oh...
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 »

If you want to play with friends over the internet, I recommend Hamachi.
Image
Host of YSRP: YSRP.co.uk - YS Role Play Server
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests