[PROGRAM] OpenYS - Open Source YSFlight Server!

Note that alterations to the YSFlight .EXE is forbidden
User avatar
Nodoka Hanamura
Veteran
Veteran
Posts: 947
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
OS: Windows 10 / Linux
Has thanked: 539 times
Been thanked: 276 times

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

Post by Nodoka Hanamura »

Hey Flake, just wanted to pop in and ask if there's been any progress on getting SAMs and AAA to work in OYS, if it's even possible at all.
█████████████████████████████████████████████████████████████████████
Member of YSCE Development Committee - I don't code, I compile.
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 »

Coming to an OpenYS install near you this December(?)
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
Nodoka Hanamura
Veteran
Veteran
Posts: 947
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
OS: Windows 10 / Linux
Has thanked: 539 times
Been thanked: 276 times

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

Post by Nodoka Hanamura »

xX_SuperSic58_Xx wrote:Coming to an OpenYS install near you this December(?)
JAPANESE SCHOOLGIRL GIDDY SCREAMING INTENSIFIES
█████████████████████████████████████████████████████████████████████
Member of YSCE Development Committee - I don't code, I compile.
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 »

Old fashioned, American country folk at a monster truck rally screaming also intensifies.

:lol:
User avatar
Dragon_Mech
Veteran
Veteran
Posts: 571
Joined: Wed Jul 15, 2015 12:18 pm
Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
Location: Mansfield, Mo. USA
OS: Windows 7 Ultimate
Has thanked: 94 times
Been thanked: 127 times

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

Post by Dragon_Mech »

i got an extra pair of ear plugs you can have xX_SuperSic58_Xx. ;)
Owner, Dragonic Machine Industries
Image
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 »

*Starts head banging to heavy metal and After-burning fighter jets* :lol:
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
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 »

More work on the settings and new interface.

Image

The menu bar is 70% working now, just need to link up a few methods to change colors. wind etc. It goes without saying it makes the server MUCH easier to use for non-power-user server owners!

I should have another update out in a week which will just be changes to interface. Once that's okay, there will be a code cleanup and conversion to using Events to drive the server. Events will be raised for all sorts of occurances, from "user connects to server" to "vehicle received updated flight data packet from client". The idea is rather than having to make lots of links and connections in code, I just add one line to subscribe to an event handler and the event handler will signal all the events automatically, saving time, resources and overheads.

Once events are done I can start on the vehicle AI structure that will be used to develop those SAMs and AAA's people are interested in. I'm also wanting to add damage effects, g effects to vehicles using the currently successful REM dat line addition structure as used by the OYS carriers. Expect dat variables such as "REM OPENYS GLIMIT_POS XXXX" or "REM OPENYS GLIMIT_NEG YYYY" in the future. Soon, OYS will be able to perform all the major functions of the ww3 server software.

Keep an eye out for updates regarding OYS! :ugeek:
Last edited by Flake on Fri Oct 21, 2016 8:31 am, 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
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 »

NightRaven wrote:Hey Flake I'm not exactly sure but I think the IRC is broke.
Just so you know I have seen this. In fact I never coded the IRC interface in the first place, I only adapted it, and poorly so. I'll go over it again and try and make it more stable.
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 »

Now Updated to Version 20161023(2339)

Changes:
+Whole new console interface using windows forms.
+External-Libraries folder now being included in source, which is kinda important to be able to build your own copies lol. :)
~Fixed the /Wind command and wind display to use real world wind-coming-from direction as per TAF. Sorry about that screw up!
-Removed Nukes

Notes:
Let me know all about the errors and bugs you are getting with the new interface! ;)

Download: https://drive.google.com/uc?export=down ... F9CYlVueVU
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: 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 »

I had an error on startup. The OpenYS Main Interface Window.dll is missing. I confirmed it is not in the folder.
Screenshot.
Screenshot.
User avatar
Nodoka Hanamura
Veteran
Veteran
Posts: 947
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
OS: Windows 10 / Linux
Has thanked: 539 times
Been thanked: 276 times

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

Post by Nodoka Hanamura »

Can report on my end too.
█████████████████████████████████████████████████████████████████████
Member of YSCE Development Committee - I don't code, I compile.
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 »

Sorry about that!

Here's what was wrong and what I've fixed:

1) Main Interface Window was building as EXE instead of DLL.
2) Release builder copying DLL's from the wrong location (_2_Release instead of _1_OpenYS-ServerMode) This means new DLL's were not included in subsequent builds.
3) A strange glitch that occurs in VS from time to time where builds don't compile properly, requires to restart VS.

I just rebuilt and ran standalone as if I had just downloaded myself and the build is now fixed.

Just waiting on Google Drive to push the update, then re-release with same version number as program functionality remains unchanged.

EDIT: Update complete. Same download link, should work now! :) :oops:
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: 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 »

I have it running now. It was a little touchy getting it set up. I tried entering all of the regular things into the settings GUI, but it caused an error. I don't know what. I started over and entered everything through the new server interface and it worked fine. Just to check, i also copy-pasted the settings from the old build and that works, too. It seems to be working fine.
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 »

Most of the time you should just be able to copy the settings file across - new settings will be appended when they are updated in the program. ;)
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: 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 »

Something else I thought I would mention is that the new window appears on top, but the old console window is also there, but doesn't accept commands and doesn't send messages. Is there no way to send a message through OYS to people who are online?

I suspected that about reusing settings files, so I've been copy-pasting for several versions. I was mostly just testing things out. I might have typed something wrong in the first try, because the second time I tried the Settings GUI it worked without a problem. So I've now tested it that way, through the main interface, and copy-paste with no problems other than apparently field names are case-sensative? I've always found it best to just type the as few characters as possible and let OYS figure the rest of the map name, anyway.
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 »

The new interfaces console input (Bottom of the screen Pat!) works exactly the same as the text console.

The text console shouldn't be visible. I'm surprised. I did have to use some Windows native DLL hooking-into trickery to hide the console though after launch, perhaps that's not as good as Microsoft made out. Damn. I'll have to redesign the console side of the app to not use the system console at all. That's going to be quite difficult.
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: 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 »

OYS broke down, but didn't make an error message. I dug out the event viewer.
Both of these took place at the same time: Application: OpenYS-ServerMode.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Reflection.TargetInvocationException
Stack:
at System.RuntimeMethodHandle.InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
at System.Delegate.DynamicInvokeImpl(System.Object[])
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.RichTextBox.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at OpenYS.OpenYS_Server+Program+<>c__DisplayClass9_0.<Run>b__0()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart() Fault bucket 401471512, type 30
Event Name: CLR20r3
Response: None
Cab Id: 0

Problem signature:
P1: OpenYS-ServerMode.exe
P2: 1.0.0.0
P3: 580d9b69
P4: mscorlib
P5: 4.0.30319.34209
P6: 53489fcf
P7: 2bd4
P8: 25
P9: N3CTRYE2KN3C34SGL4ZQYRBFTE4M13NB
P10:

Attached files:
C:\Users\Patrick\AppData\Local\Temp\WER374D.tmp.version.txt

These files may be available here:
C:\Users\Patrick\AppData\Local\Microsoft\Windows\WER\ReportArchive\Report01506159
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 »

Did you click something in the interface or did it just die over time?
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: 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 »

Three of us were online and flying. OYS was minimized and YS was full screen. I had just dived down and dropped flares on Tfan and Greenhorn for no real reason and as I was pulling up OYS crashed and Windows started looking for a solution.

Since it's been back up, Tfan and Greenhorn have been flying with no problems.

An unrelated issue: Flares are set at 20 regardless of the .dat file saying 60 on the NCA planes.
User avatar
Nodoka Hanamura
Veteran
Veteran
Posts: 947
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
OS: Windows 10 / Linux
Has thanked: 539 times
Been thanked: 276 times

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

Post by Nodoka Hanamura »

Patrick31337 wrote: An unrelated issue: Flares are set at 20 regardless of the .dat file saying 60 on the NCA planes.
It begs the question, how does that same bug keep cropping up?
█████████████████████████████████████████████████████████████████████
Member of YSCE Development Committee - I don't code, I compile.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests