[PROGRAM] OpenYS - Open Source YSFlight Server!

Note that alterations to the YSFlight .EXE is forbidden
User avatar
Flake
VFA-49
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!

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

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

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

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

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.
Patrick31337 - Neocon
PMNV Creations Home
Have a nice day!
User avatar
Flake
VFA-49
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!

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

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!
User avatar
fallen
Newbie
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!

Post by fallen »

About your OpenYS...

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.

Image
User avatar
Flake
VFA-49
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!

Post by Flake »

fallen wrote: Tue Aug 13, 2024 8:23 pm Sippin a brew
Image
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
fallen
Newbie
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!

Post by fallen »

while testing the server on OpenYS I came up with the idea that an option in OpenYS would be useful - automatic change of several maps, with the possibility of declaring the time between changes. probably this idea has already been - so forgive me if I missed it :? . in such a case I will have to submit to voluntary flogging with gravel standing behind A10C Warthog for rehashing old cutlets :lol: . greetings and have a nice day/evening for all.
User avatar
Neocon
First Class Membership
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!

Post by Neocon »

I'm pretty sure you can set a sequence that will change the map and restart the server. I don't remember if you could have it do that repeatedly or not.
Patrick31337 - Neocon
PMNV Creations Home
Have a nice day!
User avatar
fallen
Newbie
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!

Post by fallen »

Hi Neocon. Thanks.

I'm not sure if this actually works. Maybe I'll try the following sequence when I have some free time.

Image

Separating map names with commas? I don't believe it will work - but there's no hell without fire - ha ha :lol: .

I want to try running an OpenYS server on Raspberry, but whether it will work - I don't know.
User avatar
Flake
VFA-49
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!

Post by Flake »

You could make a scheduler to change the map then issue a restart, that oughta do it. Repeats always.
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 1 guest