[PROGRAM] OpenYS - Open Source YSFlight Server!

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

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

Post by Flake » 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


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: 148
Joined: Sun Feb 28, 2016 7:28 am
Favorite Aircraft: Boeing 737 Max - Airbus A320Neo
Location: Indonesia, Bekasi
OS: Windows 10 Home
Has thanked: 197 times
Been thanked: 120 times
Contact:

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

Post by Thomascook221 » Wed Jun 23, 2021 10:20 am

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: 4371
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 841 times
Been thanked: 1261 times
Contact:

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

Post by Flake » Tue Jun 29, 2021 11:06 pm

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: 3692
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 747 times
Been thanked: 1588 times
Contact:

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

Post by decaff_42 » Wed Jun 30, 2021 12:45 am

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: 1406
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 955 times
Been thanked: 307 times
Contact:

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

Post by u2fly » Wed Jun 30, 2021 1:07 am

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.
/!\ READ YSFLIGHT HANDBOOK (online + PDF) | updated 2019/04/25

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: 3931
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1721 times
Been thanked: 1791 times
Contact:

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

Post by Neocon » Wed Jun 30, 2021 4:45 am

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: 4371
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 841 times
Been thanked: 1261 times
Contact:

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

Post by Flake » Sat Jul 03, 2021 6:11 am

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: 4371
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 841 times
Been thanked: 1261 times
Contact:

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

Post by Flake » Sat Jul 03, 2021 7:27 am

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 2 guests