[PROGRAM] OpenYS - Open Source YSFlight Server!

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

Bug Fix Version 20210623(2148)

NOTE: DOES NOT EXTEND CURRENT PROJECT THREAD, EXTENDS 20161123(2054)_ALT.
(So don't download if you are using the current OYS Versions!)

Changes:
+Exception catch for MetaData loading, should help sort out why some addon packs crash the server on launch.

Notes:
Still heaps a bugs, but it should be an improvement.

Download: https://drive.google.com/uc?export=down ... 0dtKAMWD1z


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

Flake wrote: Wed Jun 23, 2021 9:33 am Bug Fix Version 20210623(2148)

NOTE: DOES NOT EXTEND CURRENT PROJECT THREAD, EXTENDS 20161123(2054)_ALT.
(So don't download if you are using the current OYS Versions!)

Changes:
+Exception catch for MetaData loading, should help sort out why some addon packs crash the server on launch.

Notes:
Still heaps a bugs, but it should be an improvement.

Download: https://drive.google.com/uc?export=down ... 0dtKAMWD1z


The link provided gave me 'Error 403 (Forbidden)'.

I think there's an issue with the file sharing permission.
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 »

I updated the permissions on the Google Drive. May you please try again? :lol:
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:

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

Post by decaff_42 »

download works for me now
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
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 »

Flake wrote: Wed Jun 23, 2021 9:33 am Bug Fix Version 20210623(2148)

Download: https://drive.google.com/uc?export=down ... 0dtKAMWD1z
Download link returns "OpenYS_20210623(1848).zip" — it seems like available build version is older than mentioned 20210623(2148) in announcement.

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

Flake, I missed an update? I had weird things going on last week that had me distracted from a lot of things. I just got it installed and it is currently running my 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've found the issue with crashes to OYS with certain addon packs.

It has do with how I handle data conversion from string to byte arrays.

I'm assuming all strings are characters 0-255 (so no unicode) - this causes problems if I find a UTF8 encoded file instead of ASCII. Characters such as "Right Double Quote" \U+201D will break when trying to convert from char to byte with my current methods. I can only assume this is the same for Japanese characters for example.

I need to determine how each string object is encoded, and use the appropriate decoding function, to convert to/from byte[].

To fix this I'll need:

1) To identify the encoding type of every file I read from disk. (Could be ASCII, could be ANSI, could be UTF8, could be other...)
2) Identify the encoding of IRC messages (UTF8 << Correct, or 1252 in most cases.)

3) Identify how YSFlight handles these encodings - conversion to ASCII? native UTF8 support? Test this by loading vanilla YSF, use any aircraft with non-ASCII characters, see what is sent by the vanilla server. Decode bytes to identify encoding used.
4) I'll need to match the format of all netcode sends to the same encoding YSFlight uses.

EDIT: Hopefully that's fixed. I had to change two methods to use "Encoding.Default.GetString/Byte(). This means the encoding for the user isn't assumed, so hopefully this works!
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 »

Bug Fix Version 20210703(1712)

NOTE: DOES NOT EXTEND CURRENT PROJECT THREAD, EXTENDS 20161123(2054)_ALT.
(So don't download if you are using the current OYS Versions!)

Changes:
+Error Log now correctly pulls the full stack trace, and not just the first frame. (Typo with two variables frame and Frame...)
+/wind now sets the wind direction correctly (90 - .... -> 90 + .....)
+string ToDataString() and byte[] ToByteArray() now use Encoding.Default.GetString/Bytes() methods for conversion. This gracefully handles all text encodings AFAIK. Should see much less loading crashes now.

Notes:
HEY MACARINA!

Download: https://drive.google.com/uc?export=down ... zpgK8n6LUP


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!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests