[PROGRAM] OpenYS - Open Source YSFlight Server!

Note that alterations to the YSFlight .EXE is forbidden
Post Reply
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »


Screenshots
Console
Horizon
Sunset
Formation
Replay Playback
Auto Crash Reporting
Chat Spam Filter
Developing OYS...
About
Finally, after all the years and time spent since I first started experimenting in 2009, I am very proud to introduce the first ever Open Source, completely stand alone YSFlight Server.

This server does NOT rely on ANY of the YSFlight Executable files. It involves absolutely no reverse engineering of any of the YSFlight Executables, and since ALL the work has been completed by myself, there is absolutely no copyright breaches.
How To Use
Ensure YSFlight is Installed in C:/Program Files/YSFLIGHT.COM/YSFlight (default) and then just launch OpenYS-ServerMode.exe from any location.

Alternatively, edit Settings.dat to your preferences and than run OpenYS-ServerMode.exe

Minimum System Requirements:
Windows XP SP3 or newer
Microsoft .Net 4.0 Framework or newer
Legal
This server source code is realeased under Attribution-NonCommercial-ShareAlike 3.0 Australia (CC BY-NC-SA 3.0 AU).

In a nutshell:
  • If you wish to release a new program based on this source code, your new program must be released under an identical licence to this program.
  • If you wish to release a new program based on this source code, you MUST provide attribution (credits) to myself for the original work.
  • If you wish to release a new program based on this source code, you MUST NOT sell the program in any way - No Donations for your program, no end sales. Nothing. If you are running a YSFlight Server and wish to receive donations to keep your server running, this is fine, but you cannot receive a donation or payment for supplying this program or a modification of it to any person or corporation.
  • An unmodified copy of this original release licence must be supplied with any derivative work based on this source code.
  • By downloading/using the program and/or source code you agree to these terms and conditions.
Bugs
Known Bugs:
-A few non-crucial packets are being ignored at the moment (score and query airstates...) - this is intended.
-Ground objects don't move - this is intended.
-No AI Aircraft - this is intended.

Bug Reports:
-Best done via post below or PM to xX_SuperSic58_Xx here at YSFHQ or via email to: [email protected]


NOTE: Normally the program would send bug reports but since doing a massive server upgrade this is temporarily not implemented - if you see something and can reliably reproduce, please tell me!

A bug report is especially useful if you can repeat the problem reliably, but I do need a minimum amount of information. I make it my effort to fix all bugs as prioty 1. Extending the program is priority 2.

If I forget to fix your bug in a release, please remind me!

Bug Report Form:
BUG REPORTS MUCH APPRECIATED AND ALWAYS WORKED ON! CLICK HERE!
Key Project Contributors
Diamond Contributors
Patrick31337

Diamond Contributors have devoted enormous amounts time and resources to the development of OYS. Their frequent development testing and bug reports have allowed crucial bug fixes and development mile stones to be met.


Gold Contributors
Eric
VFA-49 Squadron
NightRaven

Gold Contributors have devoted considerable amounts of time and resources to the development of OYS. Their development testing and bug reports have allowed for some crucial bug fixes and key development progress to be made.


Silver Contributors
Stingx
DD Destroyer
ThatMisfit
Gunny
Kujo
Vic Viper
C P

Silver Contributors have devoted some time and resources to the development of OYS. Their recurrent development testing and bug reports have allowed for some bug fixes and development progress to be made.


Bronze Contributors
Scarecrow
Venom
VNAF ONE
Raptor
NightHawk
Nodoka Hanamura
Bombcat

Bronze Contributors have given some time to the development of OYS. Their assisted testing and feedback has allowed for some bug fixes and development progress to be made.

Last edited by Flake on Sun Feb 19, 2017 6:08 am, edited 74 times in total.
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!
Stingx
Veteran
Veteran
Posts: 583
Joined: Tue Dec 04, 2012 4:31 am
Favorite Aircraft: ufo
Has thanked: 2 times
Been thanked: 27 times

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Stingx »

Any plans of porting a version for Linux? :)
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »

Nope but it doesn't use any Windows DLL Libraries, It should be pretty easy to compile for Linux with a .Net 4.5 Compiler or above. Same for Mac I guess. Modifications would need to be made to support the linux/mac file structure though.

The program is now windows only. Sorry, not sorry.

Just fixed a few socket crash problems on connections and disconnections. Tested the release and all appears to be working right now. Strange, it didn't whinge in debug mode... :lol:
Last edited by Flake on Sun Aug 02, 2015 12:53 pm, edited 1 time in total.
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon »

OfficerFlake wrote:How To Use
Ensure YSFlight is Installed in C:/Program Files/YSFLIGHT.COM/YSFlight (default) and then just run OpenYS.Exe from any location.
Is there any chance that we will be able to select an alternate installation site?
Stingx
Veteran
Veteran
Posts: 583
Joined: Tue Dec 04, 2012 4:31 am
Favorite Aircraft: ufo
Has thanked: 2 times
Been thanked: 27 times

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Stingx »

Just simlink.
OfficerFlake wrote:[post]83075[/post] Nope but it doesn't use any Windows DLL Libraries, It should be pretty easy to compile for Linux with a .Net 4.5 Compiler or above. Same for Mac I guess. Modifications would need to be made to support the linux/mac file structure though.
Hmm. I just tested it thru wine. Opened for two seconds, showed some text for a split second and closed. I'll see what I can do about recompiling it.
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon »

Maybe I'm just missing something. How do you select the map?
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »

Patrick31337 wrote:Is there any chance that we will be able to select an alternate installation site?
I have it coded in already actually.

Add the path to the YS install as the first program argument.

Next version I will add the ability to change port from 7915 as argument 2, and field name as argument 3.
Patrick31337 wrote:Maybe I'm just missing something. How do you select the map?
Speaking of which, it only runs SMALL_MAP at the moment. Oops. I'll sort that out tonight! hahaha.
Last edited by Flake on Thu Jan 15, 2015 5:17 am, edited 2 times in total.
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »

Stingx wrote:Hmm. I just tested it thru wine. Opened for two seconds, showed some text for a split second and closed. I'll see what I can do about recompiling it.
Run it through a command prompt first so It falls back to command line and show me what the error is.
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 »

Now Updated to Version 20150116(00)

Changes:
+Fix to STP loading - now loading correctly and doesn't crash when a bad STP is chosen.
+Fix to Aircraft Left messages
+Reformtted the loading info a little bit
+Command line argument for field name now available. See RUN.BAT for info.
+Command line argument for port number now available. See RUN.BAT for info.
+More clear licence information, YSFHQ link and Run.Bat packaged with the program.

Download: https://www.mediafire.com/?3p6w3tj11z500st


Last edited by Flake on Tue Sep 01, 2015 12:48 pm, edited 1 time in total.
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 »

Now Updated to Version 20150116(01)

Changes:
+Airspeed set correctly when joining flight.
+Gear now set correctly when joining flight
+Strength (health) now set correctly when joining flight.
+Server now denies join requests from aircraft it doesn't have.
+Smoke Color changes now supported
+Aircraft weight and fuel is now always set to 100% on joining, not able to select any less until aircraft loading packets are handled. (next release?)
+If a client disconnects while flying, their ghost aircraft is now removed appropriately.


Download: https://www.mediafire.com/?o5g1hquw926d694


Last edited by Flake on Tue Oct 27, 2015 8:17 am, edited 3 times in total.
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »

Can anyone (cough, vnaf, venom, crow, dt, etc. cough) please test the program for flight lag purposes? Is the distance lag worse/better/negligable?
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon »

Another bug I have noticed that I didn't see above is that it doesn't seem to load all of the installed aircraft in a .lst. I looked at them but didn't see a pattern. Example: The NCA cessnas do not show up, the classics and bush fleets other than one aircraft from each do not show up, but most of the main fleet does show up.
Neil
Contributor
Contributor
Posts: 388
Joined: Fri Feb 11, 2011 3:59 pm
Favorite Aircraft: C-17 Globemaster
Location: London
Has thanked: 35 times
Been thanked: 106 times

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neil »

I noticed the same issue Patrick has. I also noticed when launching from a ground STP the aircraft spawn at an angle.

Image

Onto formation flight I was testing it with someone and noticed their aircraft was shaking backwards and forwards when I got close, although there were no abrupt lag spikes which often strike in the standard server protocol.
At first I used to get angry, now I try to be amused.
Scarecrow
Senior Veteran
Senior Veteran
Posts: 1263
Joined: Thu Feb 03, 2011 3:08 am
Favorite Aircraft: T-50B
Location: IND
OS: Windows
Has thanked: 64 times
Been thanked: 302 times

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Scarecrow »

I'd be happy to test from a distance lag perspective, however I have no clue how to use it. I start it and the program crashes after implementing metadata.

Image
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »

Patrick31337 wrote:Another bug I have noticed that I didn't see above is that it doesn't seem to load all of the installed aircraft in a .lst. I looked at them but didn't see a pattern. Example: The NCA cessnas do not show up, the classics and bush fleets other than one aircraft from each do not show up, but most of the main fleet does show up.
I tried this myself too and noticed I was missing a few. I think it's because I did not capitalise the identify name. For example, I was loading RPFW_F15D but not RPFW_a380ST. I think that's sorted out now.
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »

Neil wrote:I noticed the same issue Patrick has. I also noticed when launching from a ground STP the aircraft spawn at an angle.

Image
How qoi. May I ask what map/start position you were using and which heading the aircraft is now facing? It's either a failure to convert the heading value from the start position (only supporting degrees right now, could be why) or it's a failure to convert the start position to a spawn position/orientation on joining flight.

EDIT: Solved - I was doing Angle / 180 * PI for the flight data, which brings it to (0.00-6.28) instead of Angle /360 * 65535 which brings it to (0-65535). So the heading WAS changing but only by like, 0.0009 degrees from north. Lol.
Neil wrote:Onto formation flight I was testing it with someone and noticed their aircraft was shaking backwards and forwards when I got close, although there were no abrupt lag spikes which often strike in the standard server protocol.
They'll still shake a bit like they used to - I haven't made any changes to things like that - any better or worse? I think the difference with my server compared to Soji's is that my program is threaded where his is sequential. Thus is one aircraft lags on Soji's server, ALL aircraft lag because there server doesn't handle their data until the first aircraft catches up.
Last edited by Flake on Sat Jan 17, 2015 12:21 am, edited 1 time in total.
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:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake »

Scarecrow wrote:I'd be happy to test from a distance lag perspective, however I have no clue how to use it. I start it and the program crashes after implementing metadata.
Had a look at the code and the only reason can think of is that it's trying to convert the identify variable to uppercase when there is no data there, null.

I added a condition check to stop this happening but without further details I can't be sure.

In Source, you'll see OpenYS/bin/debug/openys.exe - run that version because the stack tracing will be a bit more accurate in the reporting (will tell me the exact line number in the code) where it all goes wrong. Thanks for your help.
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 »

Now Updated to Version 20150117(00)

Changes:
+Added chat anti-spam - only one message can be sent per second.
+Fix to aircraft spawn headings.
+Fix to loading aircraft with lowercase identify names.
+Crash protection when loading aircraft meta data(?)


Download: https://www.mediafire.com/?o5q3bzv3e4fs8lf

---

Coming soon:
-Spawn velocity is always absolute to North. Fixing this now...


Last edited by Flake on Tue Sep 01, 2015 12:49 pm, edited 1 time in total.
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 »

Now Updated to Version 20150117(01)

Changes:
+Spawn velocity now follows aircraft heading.

Download: https://www.mediafire.com/?3p1ma69vn0jkb7q

---

Coming soon:
+Fixed a bug while loading ground objects from YFS files.
+Now spawning ground objects from YFS files.
-FLD files do not support loading of child sceneries - objects position incorrectly. working on a solution to this.


Last edited by Flake on Tue Sep 01, 2015 12:49 pm, edited 3 times in total.
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
decaff_42
Staff
Staff
Posts: 3838
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 844 times
Been thanked: 1726 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by decaff_42 »

OfficerFlake wrote:
Changes:
+Spawn velocity now follows aircraft heading.
That made me laugh thinking about someone starting a flight and realizing they are flying sideways at 200 knots :lol:
Check out my website YSDecaff for all my tutorials and addon releases.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories

YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests