[PROGRAM] OpenYS - Open Source YSFlight Server!

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

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

Post by Nodoka Hanamura » Mon Oct 17, 2016 12:48 am

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.
█████████████████████████████████████████████████████████████████████
Image

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

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

Post by Flake » Mon Oct 17, 2016 6:06 am

Coming to an OpenYS install near you this December(?)

User avatar
Nodoka Hanamura
Veteran
Veteran
Posts: 923
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
Has thanked: 513 times
Been thanked: 266 times

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

Post by Nodoka Hanamura » Mon Oct 17, 2016 6:11 am

xX_SuperSic58_Xx wrote:Coming to an OpenYS install near you this December(?)
JAPANESE SCHOOLGIRL GIDDY SCREAMING INTENSIFIES
█████████████████████████████████████████████████████████████████████
Image

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3753
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1535 times
Been thanked: 1661 times
Contact:

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

Post by Neocon » Mon Oct 17, 2016 6:36 am

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: 93 times
Been thanked: 127 times

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

Post by Dragon_Mech » Mon Oct 17, 2016 6:37 am

i got an extra pair of ear plugs you can have xX_SuperSic58_Xx. ;)
Owner, Dragonic Machine Industries
Image

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3413
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 537 times
Been thanked: 1192 times
Contact:

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

Post by decaff_42 » Mon Oct 17, 2016 9:27 pm

*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 by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

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

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

Post by Flake » Fri Oct 21, 2016 8:20 am

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.

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

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

Post by Flake » Fri Oct 21, 2016 8:30 am

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.

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

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

Post by Flake » Sun Oct 23, 2016 1:31 pm

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

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3753
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1535 times
Been thanked: 1661 times
Contact:

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

Post by Neocon » Sun Oct 23, 2016 7:22 pm

I had an error on startup. The OpenYS Main Interface Window.dll is missing. I confirmed it is not in the folder.
error.png
Screenshot.

User avatar
Nodoka Hanamura
Veteran
Veteran
Posts: 923
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
Has thanked: 513 times
Been thanked: 266 times

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

Post by Nodoka Hanamura » Sun Oct 23, 2016 8:17 pm

Can report on my end too.
█████████████████████████████████████████████████████████████████████
Image

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

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

Post by Flake » Mon Oct 24, 2016 5:47 am

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:

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3753
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1535 times
Been thanked: 1661 times
Contact:

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

Post by Neocon » Mon Oct 24, 2016 7:31 am

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

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

Post by Flake » Mon Oct 24, 2016 7:34 am

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. ;)

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3753
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1535 times
Been thanked: 1661 times
Contact:

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

Post by Neocon » Mon Oct 24, 2016 7:53 am

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

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

Post by Flake » Mon Oct 24, 2016 9:26 am

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.

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3753
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1535 times
Been thanked: 1661 times
Contact:

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

Post by Neocon » Tue Oct 25, 2016 1:52 am

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:
SpoilerShow
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()
SpoilerShow
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
Core Staff
Core Staff
Posts: 4267
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 814 times
Been thanked: 1159 times
Contact:

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

Post by Flake » Tue Oct 25, 2016 2:10 am

Did you click something in the interface or did it just die over time?

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3753
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1535 times
Been thanked: 1661 times
Contact:

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

Post by Neocon » Tue Oct 25, 2016 2:25 am

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: 923
Joined: Thu Apr 07, 2011 8:01 pm
Favorite Aircraft: Su-24, Mig-29, Su-27, F-18, F-15, ADF-01, Icon A5
Has thanked: 513 times
Been thanked: 266 times

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

Post by Nodoka Hanamura » Tue Oct 25, 2016 4:26 am

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?
█████████████████████████████████████████████████████████████████████
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest