[PROGRAM] OpenYS - Open Source YSFlight Server!

Note that alterations to the YSFlight .EXE is forbidden
User avatar
Neil
Contributor
Contributor
Posts: 337
Joined: Fri Feb 11, 2011 3:59 pm
Favorite Aircraft: Harrier GR9
Location: London
Has thanked: 32 times
Been thanked: 96 times

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neil » Tue Jan 27, 2015 7:51 pm

All works well on my end, no crash upon startup.

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3843
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1608 times
Been thanked: 1727 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon » Tue Jan 27, 2015 9:13 pm

Sorry, I should have told you that earlier. It's Windows Vista 64-bit.
ccss.png
ccss.png (2.54 KiB) Viewed 1796 times
I'm going to try cleaning things up a little and see what happens.

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Tue Jan 27, 2015 10:12 pm

Thanks, I'll see what I can do.

You do have .net 4.0 installed right? I think that would explain... I tried to run compatability mode vista sp2 and had no issues but I sort of can't "uninstall" .net 4.0 and see what happens as it comes bundled with win 7 anyway.
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: 3843
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1608 times
Been thanked: 1727 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon » Tue Jan 27, 2015 10:32 pm

I ran the installer from Microsoft and it said the same version is already installed, so I do have it already. I've not got a clue what is wrong, since I don't know anything about programming. I wish I knew more so I could try things without asking questions.

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Wed Jan 28, 2015 5:15 am

Flight data packets fully mapped out, just need to solve a few bugs in writing to the packet and it'll be done.

Interesting data on the end though ... I wonder what it is. EC on the end of type 5, 9D on the end of type 4. 9D is -63 which would mean -100% of something, but I wonder what... I've tested all the CLA's - perhaps it has something to do with ground objects. It's not written down in the flight data Soji gave me so I guess it's redundant. In any case it has no effect thus far so I'm not concerned.

I'm sorta stumped by something too. YS ww3 server could detect if you used autopilot of not but looking at the network packets so far I'm not finding anything to indicate this. I'll have to look a little closer later. It's a non-issue at the moment but I'd just like to know... ya know?
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
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Wed Jan 28, 2015 6:55 am

Patrick - have you modified your windows services per chance? If you've disabled services that would affect the program in regards to system interaction.

There could also be a problem with drivers - particularly the motherboard drivers or chipset - it's a long shot but if your system doesn't support HPET (High Precision Event Timers) that could be a problem too as my program depends entirely on events and date-time calls.

I recommend slimdrivers - that'll help you out driver-wise and if there is something reaking havock on your services I'd look into that as well (I think it's services.msc in the windows run dialog?). Also check bios and see if HPET is turned on. It's a real long shot but if you really want this to work, try that.

My advice personally is just upgrade to win 7 - it's an all round far better OS than vista - the best Microsoft have ever made. If that doesn't solve your problems I don't know what will.
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
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Wed Jan 28, 2015 1:28 pm

Flight data is now being fully read.
Vehicle core now added to the program.
/GetID and /Form ID commands added to the program.
Vehicles are updated from entityjoin packets and flight data packets
Ready to add the first custom packet - Type 99:1 -> Formation Flight Data.
Will do the formation without matrix rotation first, just to confirm it works. without matrix rotation the aircraft can lag around a little bit in the formation when the leader changes direction (very minor effect).
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
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Thu Jan 29, 2015 2:52 am

The very first ever distance lag solution is soluted - it works beautifully! :D

Video to come.
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
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

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

Post by Flake » Thu Jan 29, 2015 3:40 am

Last edited by Flake on Sun Sep 06, 2015 3:40 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: 3843
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1608 times
Been thanked: 1727 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Neocon » Thu Jan 29, 2015 3:56 am

At this point I'm hoping your next release version magically works on my computer. :?

User avatar
decaff_42
Staff
Staff
Posts: 3548
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 618 times
Been thanked: 1326 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by decaff_42 » Thu Jan 29, 2015 5:35 am

About 1/2 way thru, did the airplanes suddenly switch sides, or was that just a camera change? I watched that like 5 times and I still cannot tell. :?
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

Civilian Aviation Server Flight Log

User avatar
Doomsday
Staff
Staff
Posts: 859
Joined: Mon Feb 07, 2011 2:01 am
Favorite Aircraft: PEW PEW PEW PEW
Location: PEW PEW PEW
OS: PEW PEW PEW PEW PEW
Has thanked: 1 time
Been thanked: 115 times

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Doomsday » Thu Jan 29, 2015 5:43 am

He switched camera position from the plane on the right to the one on the left.
Image
PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW

Team Awesome# 131

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Thu Jan 29, 2015 7:14 am

It was a camera change.
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
DD-Destroyer
Contributor
Contributor
Posts: 323
Joined: Tue May 22, 2012 11:45 pm
Favorite Aircraft: FA-50 Golden Eagle
Location: Seoul
OS: Windows
Has thanked: 4 times
Been thanked: 164 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by DD-Destroyer » Thu Jan 29, 2015 9:16 am

Nice works Flake!! Now we have ways

User avatar
Flake
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Thu Jan 29, 2015 9:31 am

Just got done finishing up the formation packet to support animations and etc. too.

I just need to use my framework now to make a formation client and than we should be golden.
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
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Fri Jan 30, 2015 6:57 am

Bzzt - roadblock. Seems YSF server will disconnect a client if it get's a packet of type 99. This is a problem because it means I have to come up with a new "extended possibilities" handshake method. I might use type 6 - Acknowledge with data 99 - That never caused issues in the past.

I can still use type 99 between the OpenYS supported servers and clients but I just need to change that handshake is all.

Also a few more little problems to iron out in the client - namely that when a client dc's it locks up the server and flight joins are impossible etc. etc. I'm only like halfway done anyway. Once that's sorted out I can then start the anti-distance lag tests.
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
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Sun Feb 01, 2015 5:09 am

A few minor changes to the program:

-Custom packet is now 64 - YSFlight doesn't seem to have a problem with this. It IS one of Soji's reserved packets but I don't see him using it anytime soon.
-Handshake for server and client working as intended.
-Disconnecting clients now have all their subscribed response listeners killed.
-Console now locks each thread that writes to the console while the console writes that threads request. This means that messages from the same thread can't get jumbed out of order anymore (eg: X logging in, X joined the server rather that what it should have been: X joined the server, x logging in...)

I need to catch aircraft removals now and then just sort out a few messages and formatting for the client and then I can start testing the client/server together.
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
Core Staff
Core Staff
Posts: 4354
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 836 times
Been thanked: 1238 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Flake » Sun Feb 01, 2015 12:29 pm

Okay Client and Server tested and are working together as expected - formation flight data working as intended.

Need to edit the client a bit to allow for changing of host IP address and port, plus changing the messages out to suit the purpose of the program.

The plus side is I've built the client and server in the same source code so It's just a matter or flicking a switch in the build and the client and server should constantly update together! ;)

That update should be with you tomorrow and you can start testing the first version of a YSFlight Distance Lag Solution.
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
iqmal_97
Senior Veteran
Senior Veteran
Posts: 1767
Joined: Fri Mar 11, 2011 8:47 am
Favorite Aircraft: Sukhoi Su-30MKM
Location: Somewhere in Asia
OS: Windows 10
Has thanked: 776 times
Been thanked: 191 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by iqmal_97 » Sun Feb 01, 2015 3:15 pm

OfficerFlake wrote:[post]83610[/post] That update should be with you tomorrow and you can start testing the first version of a YSFlight Distance Lag Solution.
I vote Flake to be christened with the title "YS Overlord" with blessings granted straight from Soji-sama himself.
We should all welcome our new YS Overlord.

But seriously though, Flake, f****** A, man.
Image
[N007HA]Nynaiqmal_97 <= My usual online callsign
Mein Imgur gallery. Feel free to use any of my screenshots (Crediting me is optional, but greatly appreciated)

User avatar
Kujo
Veteran
Veteran
Posts: 1005
Joined: Fri Feb 08, 2013 2:28 am
Favorite Aircraft: Lockheed Martin F-16 Fighting Falcon
Location: Las Vegas, NV
OS: Windows 8.1 - 64 Bit
Has thanked: 779 times
Been thanked: 723 times
Contact:

[PROGRAM] OpenYS - Open Source YSFlight Server!

Post by Kujo » Sun Feb 01, 2015 4:49 pm

Yes, finally! We can finally say no to distance lag. Every YS server should run on this now. :D
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest