Page 1 of 1

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

Posted: Mon Oct 17, 2016 12:48 am
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.

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

Posted: Mon Oct 17, 2016 6:06 am
by Flake
Coming to an OpenYS install near you this December(?)

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

Posted: Mon Oct 17, 2016 6:11 am
by Nodoka Hanamura
xX_SuperSic58_Xx wrote:Coming to an OpenYS install near you this December(?)
JAPANESE SCHOOLGIRL GIDDY SCREAMING INTENSIFIES

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

Posted: Mon Oct 17, 2016 6:36 am
by Neocon
Old fashioned, American country folk at a monster truck rally screaming also intensifies.

:lol:

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

Posted: Mon Oct 17, 2016 6:37 am
by Dragon_Mech
i got an extra pair of ear plugs you can have xX_SuperSic58_Xx. ;)

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

Posted: Mon Oct 17, 2016 9:27 pm
by decaff_42
*Starts head banging to heavy metal and After-burning fighter jets* :lol:

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

Posted: Fri Oct 21, 2016 8:20 am
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:

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

Posted: Fri Oct 21, 2016 8:30 am
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.

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

Posted: Sun Oct 23, 2016 1:31 pm
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

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

Posted: Sun Oct 23, 2016 7:22 pm
by Neocon
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.

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

Posted: Sun Oct 23, 2016 8:17 pm
by Nodoka Hanamura
Can report on my end too.

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

Posted: Mon Oct 24, 2016 5:47 am
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:

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

Posted: Mon Oct 24, 2016 7:31 am
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.

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

Posted: Mon Oct 24, 2016 7:34 am
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. ;)

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

Posted: Mon Oct 24, 2016 7:53 am
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.

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

Posted: Mon Oct 24, 2016 9:26 am
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.

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

Posted: Tue Oct 25, 2016 1:52 am
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

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

Posted: Tue Oct 25, 2016 2:10 am
by Flake
Did you click something in the interface or did it just die over time?

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

Posted: Tue Oct 25, 2016 2:25 am
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.

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

Posted: Tue Oct 25, 2016 4:26 am
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?