Replies: 8 comments 13 replies
-
Hi Paul, The module is versioned, and the version is available in the manifest.json file which would be in the module's Community folder location if it is already installed. So if you're going to be "throwing" (: anything in there then it's your responsibility to check for presence of the module and it's current version, if any, and take "appropriate" action. I'm not assuming you'd do this anyway, but just personally I think it would be presumptuous of an installer to just overwrite any already-installed version of anything w/out at least a user prompt, regardless of if it's older or not. HTH, |
Beta Was this translation helpful? Give feedback.
-
And if anyone else is using it in a project, they could just speak up... ;-)
I guess you mean me? 😊 I’m indeed forking the WASimCommander in my own GitHub account (it’s even private, nobody can see it), and have now added some features with relation to Custom Events. Simply because this wasn’t available, and I needed it for my project. Although, I have no intention to release a new version of WASimCommander “in my own name”. I’m in touch with Max on this, and if I’m not mistaken he might include my changes. Once that is done, I will also revert back to the “official” WASimCommander.
I’m only using it for my own project now. If I ever would decide to make that project visible to others, and allow them to use it, then of course they will need the adapted version of WASimCommender. But maybe at that time, Max has already included my changes in his version. If not… well, I haven’t thought about it yet. One thing is for sure – if I even have to include my own version, then I will have to give it a different name. I can also not make my own car and call it BMW.
I am also not intending to create an installer. Only a few nerds like m make use of my application, so it’s not for the “common public”. In that case, I would add a readme that links to the WASimCommander GitHub, and with some simple instructions how to deal with the installation.
I hope that this email reaches you both. I see some very strange email addresses in my TO and CC.
From: Max Paperno ***@***.***>
Sent: Saturday, 16 December 2023 12:21
To: mpaperno/WASimCommander ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [mpaperno/WASimCommander] Installer for WASM Module (Discussion #19)
I hope there won't be "version fragmentation" and I certainly aim to keep the server-side module backwards-compatible in terms of the protocol. Perhaps there might be some break in a new major version, but even then I'd be reluctant to do that.
Beyond that... I'm not really sure what else to do. The "installation" itself is pretty trivial, and it's not high on my personal list to make an installer for the module. If someone else were to make one, that could be a good option for users who prefer such methods, of course.
The only other project I know of that uses the module right now is my own Touch Portal plugin. I just tell those users when it's time to update the module, and include it (zipped) separately in the release assets (it's actually optional in this case... the whole plugin could use an installer, but it hasn't been an issue so far).
So if I'm releasing a new module version it will definitely need to be backwards-compatible, even if the plugin users don't need to update their version (eg. because plugin doesn't use new module features).
If someone were to fork the module and release their own version which isn't compatible or doesn't keep up feature-wise with the source, then yea, that could become an issue. In that case I'd expect them to at least change the name and relevant internal IDs of their version so that both could be installed in parallel.
Does that help? And if anyone else is using it in a project, they could just speak up... ;-)
…-Max
—
Reply to this email directly, view it on GitHub <#19 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABNTKJSRJA3VKF5Z2XLNFWDYJV723AVCNFSM6AAAAABAXOQLR2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNZQGQ4TQ> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/ABNTKJUSHTOK65YRYWSEM6LYJV723A5CNFSM6AAAAABAXOQLR2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAPAMCE.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
No worries Max. I’m working on my own application now, because I took the final decision to use WASimCommander. So now I have to make it work (not talking anymore, but doing it 😊).
So far, it looks very promising. Didn’t do any performance tests yet, for that it’s still to early. But I will certainly do. Although, I already could control my SPD button that is an encoder, and it feels very responsive and fast. And I even didn’t optimize stuff yet.
From: Max Paperno ***@***.***>
Sent: Saturday, 16 December 2023 12:43
To: mpaperno/WASimCommander ***@***.***>
Cc: HBilliet ***@***.***>; Comment ***@***.***>
Subject: Re: [mpaperno/WASimCommander] Installer for WASM Module (Discussion #19)
Hi Hans :)
Well I meant anyone I didn't know about... but I do appreciate your input! And I haven't forgotten about your changes... no worries (sorry, 'been distracted). At any rate there is nothing in them which would break BC, or even require a new module version (I think... at least so far :) ).
Cheers,
-Max
(The e-mails get posted back to the (public) GitHub Discussion from whence they originate.)
—
Reply to this email directly, view it on GitHub <#19 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABNTKJTAYJFJFVLZ5YDITZLYJWCKPAVCNFSM6AAAAABAXOQLR2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNZQGU3TG> .
You are receiving this because you commented. <https://github.com/notifications/beacon/ABNTKJVXNDLW23MOM35JIC3YJWCKPA5CNFSM6AAAAABAXOQLR2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAPAMG2.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Just small question. Your code is re-entrant, right? I have seen you make use of “unique_lock lock{mtxRequests};” in some critical sections, but I didn’t found any in “setVariable”.
Reason is that in my software, my RxPumps of my devices all run as different tasks, hence they can fire a “setVariable” at any time. Not 100% if that will work. Anyway, if it isn’t, then I use my favorite method by including a TxPump that is fed with a ConcurrentQueue, which insures that commands are processes in sequence, and not in parallel.
From: Max Paperno ***@***.***>
Sent: Saturday, 16 December 2023 12:43
To: mpaperno/WASimCommander ***@***.***>
Cc: HBilliet ***@***.***>; Comment ***@***.***>
Subject: Re: [mpaperno/WASimCommander] Installer for WASM Module (Discussion #19)
Hi Hans :)
Well I meant anyone I didn't know about... but I do appreciate your input! And I haven't forgotten about your changes... no worries (sorry, 'been distracted). At any rate there is nothing in them which would break BC, or even require a new module version (I think... at least so far :) ).
Cheers,
-Max
(The e-mails get posted back to the (public) GitHub Discussion from whence they originate.)
—
Reply to this email directly, view it on GitHub <#19 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABNTKJTAYJFJFVLZ5YDITZLYJWCKPAVCNFSM6AAAAABAXOQLR2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNZQGU3TG> .
You are receiving this because you commented. <https://github.com/notifications/beacon/ABNTKJVXNDLW23MOM35JIC3YJWCKPA5CNFSM6AAAAABAXOQLR2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAPAMG2.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
PS. On the module side any concurrent access/code execution at all is completely impossible (as far as I can tell... and I tried... :-P ), so no worries there. |
Beta Was this translation helpful? Give feedback.
-
I didn’t say that. I was meaning my own application (CockpitHardwareHUB).
From: Paul van Dinther ***@***.***>
Sent: Sunday, 17 December 2023 09:54
To: mpaperno/WASimCommander ***@***.***>
Cc: HBilliet ***@***.***>; Comment ***@***.***>
Subject: Re: [mpaperno/WASimCommander] Installer for WASM Module (Discussion #19)
No Hans! I really thought there be tens if not hundreds of users of WASimCommander.
—
Reply to this email directly, view it on GitHub <#19 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABNTKJRV7T5P4YT3Y2HONG3YJ2XLVAVCNFSM6AAAAABAXOQLR2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNZVGQ4DE> .
You are receiving this because you commented. <https://github.com/notifications/beacon/ABNTKJQO4O7XMNV377GI623YJ2XLVA5CNFSM6AAAAABAXOQLR2WGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAPAVZU.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Hi Max, I added a tonne of stuff to SimCom This is a commandline demo. It installs WASim module if required, it can get,set and monitor all kinds of variables EXE demo zip files here https://github.com/dinther/SimCom/tree/master/Demo_exe Also an installer class that figures out where the community folder is, the MSFS install folder and if MSFS is running. https://github.com/dinther/SimCom/blob/master/SimCom/FlightSimInstallInfo.cs Finally a question. Let's say I monitor The data updates stop coming in when the last step is smaller than 0.1 and thus I never reach 1. |
Beta Was this translation helpful? Give feedback.
-
Hello,
Should I take a lawyer? 😊😊
Just to be sure that I’m ok from my side as well, although I discussed shortly some details with Max already a while ago.
In my readme, I show the following (as agreed with you Max).
@paul: I just realize that I have not mentioned you (although in the source code I do), which I should because I’m using your ‘SerialPortManager.cs’ – really not intentional – I will add it in the list today
I have the default LICENSE.TXT in the root of my repository (is done by default by GitHub if you select your license if I remember well).
But if I understand correctly, I should put the license.txt in my distribution files? I have 2 folders:
1. Executables – this contains the ‘WASimCommander.WASimClient.dll’
2. WASM Module - Which is an exact copy of your WASimCommander WASM module (V1.2.0.0) – I do mention it in my explanations that people can copy it from your repository (and you are of course mentioned there), but I put a copy in mine for convenience.
As all is licensed under the same GNU license (same as GPLv3? – shoot me – I’m really not knowing anything about this stuff), I assume I should just add the same LICENCE.TXT that is in my root, into my 2 distribution folders?
Hans
|
Beta Was this translation helpful? Give feedback.
-
I made some progress with the SimCom library. One of the demo commandline utilities is SimComMon which depends on the presence of the WASim WASM Module in the community folder. So when I write an installer I can drop any old version of the WASM module into the community folder.
I would like guidelines on how to correctly install the WASM module in the correct location ensuring newer versions are not overwritten. Ideally the WaSim WASM module is packaged in a installer. It is important that the WASimCommander support files that are managed properly otherwise we all end up throwing our own identical copies in the community folder or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions