scripthookvdotnet | An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-g
kandi X-RAY | scripthookvdotnet Summary
kandi X-RAY | scripthookvdotnet Summary
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of scripthookvdotnet
scripthookvdotnet Key Features
scripthookvdotnet Examples and Code Snippets
Community Discussions
Trending Discussions on scripthookvdotnet
QUESTION
This is too bizarre for words. I have 2 completely separate programs, both of which use Serilog, like:
...ANSWER
Answered 2020-Dec-19 at 03:35It seems that the two apps/scripts that you are executing with ScriptHookVDotNET are sharing the same static context where you're storing the logger instance (Log.Logger
), so the last script that runs changes the instance and affects the first script.
ScriptHookVDotNET doesn't seem provide the isolation you'd expect in a regular .NET app, thus I'd suggest asking on their Gitter chat if this by design and what would be the recommended "ScriptHookVDotNET way" of creating an isolated static context.
One possible workaround is to store your logger instance as an instance variable that belongs to a specific script, which can be shared with the instance methods of the script. e.g.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scripthookvdotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page