[PROGRAM] OpenYS - Open Source YSFlight Server!
- Flake
- VFA-49
- Posts: 4378
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 862 times
- Been thanked: 1281 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
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
- Thomascook221
- 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!
The link provided gave me 'Error 403 (Forbidden)'.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
I think there's an issue with the file sharing permission.
YSFlight Creation & Repaint https://sites.google.com/view/thomas-hangar/home
- Flake
- VFA-49
- Posts: 4378
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 862 times
- Been thanked: 1281 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- decaff_42
- Staff
- Posts: 3855
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 862 times
- Been thanked: 1737 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
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
- u2fly
- Senior Veteran
- Posts: 1490
- Joined: Fri Oct 02, 2015 9:27 am
- Favorite Aircraft: Antonov An-225 Mriya
- Location: Ukraine
- OS: Linux
- Has thanked: 1053 times
- Been thanked: 344 times
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
Download link returns "OpenYS_20210623(1848).zip" — it seems like available build version is older than mentioned 20210623(2148) in announcement.Flake wrote: ↑Wed Jun 23, 2021 9:33 am Bug Fix Version 20210623(2148)
Download: https://drive.google.com/uc?export=down ... 0dtKAMWD1z
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)
- Neocon
- First Class Membership
- Posts: 3962
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1775 times
- Been thanked: 1813 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- Flake
- VFA-49
- Posts: 4378
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 862 times
- Been thanked: 1281 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
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!
- Flake
- VFA-49
- Posts: 4378
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 862 times
- Been thanked: 1281 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
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
- fallen
- Newbie
- Posts: 6
- Joined: Sun Sep 15, 2019 12:15 pm
- Favorite Aircraft: RWD 5bis
- OS: Windows
- Has thanked: 1 time
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
I'm impressed with your work for the YSFlight community Flake. I'm glad there are people as hardworking as you.
I would like to thank you for this. That's it.
- Flake
- VFA-49
- Posts: 4378
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 862 times
- Been thanked: 1281 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- fallen
- Newbie
- Posts: 6
- Joined: Sun Sep 15, 2019 12:15 pm
- Favorite Aircraft: RWD 5bis
- OS: Windows
- Has thanked: 1 time
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- Neocon
- First Class Membership
- Posts: 3962
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1775 times
- Been thanked: 1813 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
- fallen
- Newbie
- Posts: 6
- Joined: Sun Sep 15, 2019 12:15 pm
- Favorite Aircraft: RWD 5bis
- OS: Windows
- Has thanked: 1 time
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
I'm not sure if this actually works. Maybe I'll try the following sequence when I have some free time.
Separating map names with commas? I don't believe it will work - but there's no hell without fire - ha ha .
I want to try running an OpenYS server on Raspberry, but whether it will work - I don't know.
- Flake
- VFA-49
- Posts: 4378
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 862 times
- Been thanked: 1281 times
- Contact:
Re: [PROGRAM] OpenYS - Open Source YSFlight Server!
Who is online
Users browsing this forum: No registered users and 1 guest