Jint | dnSpy | |
---|---|---|
24 | 91 | |
3,921 | 16,556 | |
- | - | |
9.1 | 7.6 | |
6 days ago | over 3 years ago | |
C# | C# | |
BSD 2-clause "Simplified" License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Jint
- Jint – A JavaScript Interpreter for .NET
-
Is there a way to dynamically interpret a string as javascript within a C# winforms program?
Jint https://github.com/sebastienros/jint
- Any framework/library for validating arbitrary code?
-
Scripting inside Rimworld with Unity: Impossible? With java it is a 3 liner.
There are quite a lot of ways to run scripting languages in C#. I've no idea what JSR223 is but .NET has DLR for example. There are also multiple libraries: IronPython, NLua, Jint and Jurassic for Javascript. There's also older version of CS-Script working with .NET Framework.
-
Is there any way to use Javascript to code in Unity anymore?
You can. Embeding lua is a trivial task, and I'm reasonably sure there even are plug-and-play solutions for that, and for JS there's JINT.
-
Running custom code from users
I personally use Jint (a multi-platform Javascript interpreter) since Roslyn is not available on mobile. It basically has the same kind of functionality as Roslyn, but it's JS. JS is well-known and accessible to everybody, but Roslyn might be faster since there's no double indirection when interpreting the script. It also depends on what language your users are comfortable with or could learn easily.
-
Classic BBS (code in comments)
Ah yeah, I looked into it more and decompiled the game to find that it appears they're using Jint to interpret the Javascript, and from testing with someone's REPL BBS server I can find that it's a pretty well isolated environment. Only ways around it I can think of are by exploiting some vulnerability in the sandbox to do external requests, modding the game itself to update the api, or running a parallel server to do some janky communication through the save state data.
-
.NET-compatible scripting languages for users to write their own scripts to query/manipulate objects/properties in the app
We used https://github.com/sebastienros/jint for scripting, it's ES5 JS implementation.
-
The experience of creating my own JavaScript runtime - #2
Jint is a JS interpreter with an integrated engine built in C#, like V8, he is responsible for all the base code execution as well as EcmaScript implementations such as default constructors, syntax, Promises... I studied its features in depth to start and it was a bit hard (in the beginning).
-
The experience of creating my own JavaScript runtime - #1
MelonRuntime is based on Jint, a JavaScript interpreter created by Sébastien Ros, software developer in the ASP.NET team at Microsoft. Melon works from bindings and functionalities injected into this interpreter together with external typing (provided by another package that comes with the default project generated by the command npx melon new) and built-in tools.
dnSpy
-
Crashing when loading up save
Protip: Use a debugger like dnSpy or Visual studio to trace the source of error, by stepping the program line by line. You can restart with dnSpy attached.
-
Me and my friend were messing around in the public test when we found items like "odins cape" and "odins hood", but anytime we tried to equip them this message popped up. Is paid DLC coming to valheim?
Download dnSpy, Open the file "assembly_valheim.dll", Select view and then Assembly Explorer, search for DLCMan class (if you have trouble there is a search tool in the top bar, doing so you'll find the whole class), went to the correct lines (50, 79, 97 even if for me it was actually 98), right click on edit method/class (might be better to use method) and change the " return false; " to " return true; ". After the process compile again and there you have it.
- How to make mods?
-
Simple mod to disable pausing
To inspect the code, I recommend dnSpy. https://github.com/dnSpy/dnSpy You want to run it on the Assembly-CSharp.dll file from _Data/Managed. Then you can view the source code. I searched the entire project for the word "pause" until I found something that looked relevant. Luckily, the code for this game is pretty well written and well laid out.
- Learning how to mod
-
Stop-Computer @ specific time
It's dnSpy.
-
Heisting 20M Dollars' Worth of Magic: The Gathering Cards in a Single Request
Great question! The tool I used, DNSpy, has the ability to patch in opcodes. So I just put in the instructions needed as essentially assembly, and I did so by just writing bytes into the existing executable. The two I used were ldc.i4 to put an integer onto the stack, and then mul to multiply it with the existing value.
-
Is it possible to use GHIDRA to decode .NET ? (1 lvl crackmes with solution, but not in GHIDRA)
.NET is super easy to reverse, you don't need Ghidra, go try dnSpy, that should do the trick.
- [Valheim] Remplacer la touche Z (débogage fly) par une autre clé
-
Absolute Beginner's Guide to making a mod?
Code Creation. Unfortunately, I don't have more information on the code of the game. This is the part I need help with. I'm quite familiar with HTML, CSS, and Javascript, but haven't really touched C#. The best that I've managed is opening Kitchen.Common.dll and KitchenMode.dll in dnSpy (https://github.com/dnSpy/dnSpy) and looking at the class and struct names, recognizing that some of the contents of those dll files which start with C, like CAppliance, are components of entities in the game, and can be used to retrieve entities somehow. I have no idea how to use the classes, like GrabItems or CreateNewMesses. Who knows if either of those do anything? Oh, and making an item or appliance? No idea.
What are some alternatives?
Jurassic - A .NET library to parse and execute JavaScript code.
ILSpy - .NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
Jering.Javascript.NodeJS - Invoke Javascript in NodeJS, from C#
Fody - Extensible tool for weaving .net assemblies
Edge.js - Run .NET and Node.js code in-process on Windows, MacOS, and Linux
dnSpy-Unity-mono - Fork of Unity mono that's used to compile mono.dll with debugging support enabled
ReactJS.NET - .NET library for JSX compilation and server-side rendering of React components
Mono.Cecil - Cecil is a library to inspect, modify and create .NET programs and libraries.
Enums.NET - Enums.NET is a high-performance type-safe .NET enum utility library
Il2CppDumper - Unity il2cpp reverse engineer
Outcome.NET - Never write a result wrapper again! Outcome.NET is a simple, powerful helper for methods that return a value, but sometimes also need to return validation messages, warnings, or a success bit.
AssetRipper - GUI Application to work with engine assets, asset bundles, and serialized files