News for hackers. Stuff that matters.
Re:MRubyD: A new mruby virtual machine implemented in pure C# by dismalaf on Monday March 24, 2025 @09:25PM (#43467223)
All the big engines have C# scripting, so a scripting language for your scripting language?
Re:MRubyD: A new mruby virtual machine implemented in pure C# by Rohansi on Monday March 24, 2025 @09:56PM (#43467405)
I wouldn't really classify C# as a scripting language even if some of those engines say it is. The main criteria (IMO) of a scripting language is to be easily embeddable and C# is not.
Re:MRubyD: A new mruby virtual machine implemented in pure C# by p_ing on Monday March 24, 2025 @11:08PM (#43467771)

    $CSharpCode = @"
    using System;
    
    public class HelloWorld
    {
        public static void SayHello()
        {
            Console.WriteLine("Hello, World!");
        }
    }
    "@

    Add-Type -TypeDefinition $CSharpCode -Language CSharp
    [HelloWorld]::SayHello()
There's your scriptable-in-PowerShell C# ;-)
Re:MRubyD: A new mruby virtual machine implemented in pure C# by lIl-IIIl on Tuesday March 25, 2025 @03:56AM (#43468907)
Even better, C# has top-level methods, no classes needed:

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals...

Re:MRubyD: A new mruby virtual machine implemented in pure C# by p_ing on Tuesday March 25, 2025 @08:24AM (#43470375)
Does that run under Windows PowerShell, or just PowerShell [core]?
Re:MRubyD: A new mruby virtual machine implemented in pure C# by MindSpunk on Monday March 24, 2025 @10:00PM (#43467431)
Whether you classify C# as a scripting language isn't really important though. In Unity and other engines C# is the 'language you write game scripts with', which has nothing to do with whether C# falls into the woefully vague and borderline useless category of "scripting language".
Re:MRubyD: A new mruby virtual machine implemented in pure C# by MrLeap on Monday March 24, 2025 @11:04PM (#43467748)
I agree with you but maybe for different reasons. (Depends on how you defined embeddable I suppose). The primary purpose of a scripting language for gamedev is for mod support. If end users can't open the scripts up in notepad, play around and have them change the game, you're adding friction to this.
Re:MRubyD: A new mruby virtual machine implemented in pure C# by hnlmorg on Tuesday March 25, 2025 @03:30AM (#43468793)
That’s never been a blocker for game modding.

- Worms: required a CLI tool to convert SFX

- Doom: WAD files were pkzip format

- Duke3D: came with its own level editor

- Jazz Jack Rabbit 2: also came with its own level editor

- Grand Theft Auto: massive modding community for the original game on PC via unofficial 3rd party hacks

- Minecraft, Roblox, Mario Maker, etc: all have massive communities of user generated content and none of that has been created via notepad.exe.

It would be harder to come up with examples, either modern or retro, where plain text files were the preferred method for modding.

Re:MRubyD: A new mruby virtual machine implemented in pure C# by johnisgood on Tuesday March 25, 2025 @07:03AM (#43469842)
> - Doom: WAD files were pkzip format

> - Duke3D: came with its own level editor

Add ioquake3 forks to it (there are many), such as Tremulous (massively modded, initially came from Quake 3), Urban Terror, Unvanquished (development is very active), etc.

(Tremulous mappers use NetRadiant.)

Anyways, you are absolutely right, although maybe I am just a boomer by now. I was 14 years old (along with many other players and modders) when I started modding Tremulous. I wish Tremulous was still active, but it is not. :( I still keep in touch with players from >15 years ago.

Re:MRubyD: A new mruby virtual machine implemented in pure C# by pimeys on Tuesday March 25, 2025 @08:29AM (#43470408)
Urban Terror. That's a game I haven't heard about in a long time. It must've been somewhere between 1998-2002 I played it. Damn, we even had a clan, and I played it on my Linux PC.

Does it still exist? If so, I probably get instantly killed if I dare to join any of the public servers...

Re:MRubyD: A new mruby virtual machine implemented in pure C# by johnisgood on Tuesday March 25, 2025 @08:49AM (#43470562)
Apparently it is still under development: https://www.urbanterror.info/news/blogs/ (last post is from 11 days ago).

There are players, too: "Online: 208 servers with 109 players" at this time.[1]

Fun times for sure! Bomb was my favorite game type. :)

[1] https://www.urbanterror.info/servers/home/

Re:MRubyD: A new mruby virtual machine implemented in pure C# by hnlmorg on Tuesday March 25, 2025 @09:50AM (#43471287)
Pretty much all of Id Softwares FPS were pkzip wad files — or at least all of them up to Return To Castle Wolfenstine. After that point I had too many commitments to invest much time into modding so couldn’t say how they were built.

I seem to recall reading that their choice of wad architecture was intentionally to enable the modding community too.

Re:MRubyD: A new mruby virtual machine implemented in pure C# by johnisgood on Tuesday March 25, 2025 @09:55AM (#43471362)
"DPK format extends the legacy PK3 format with dependency mechanism and versioning", for example: https://wiki.unvanquished.net/wiki/Formats/DPK

BUT: "The archive format uses the PKZIP container (the well-known zip format) with a .dpk extension.".

Re:MRubyD: A new mruby virtual machine implemented in pure C# by MrLeap on Thursday March 27, 2025 @05:37AM (#43491790)
Didn't say it blocked it, just said it added friction.
Re:MRubyD: A new mruby virtual machine implemented in pure C# by dismalaf on Tuesday March 25, 2025 @02:24AM (#43468535)
I mean, Unity and Godot used to embed Mono... And C# is used as a scripting language for both, in the sense that the user uses C# to call engine functions (dunno about all of Unity's internals but Godot is written entirely in C++) to script gameplay behaviour. It doesn't matter what you classify C# as because they use it for scripting.
Re:MRubyD: A new mruby virtual machine implemented in pure C# by moomin on Tuesday March 25, 2025 @04:18AM (#43469016)
I think for the purposes of a third-party system, the ease of embedding is pretty much a question of whether or not it’s already embedded.
Re:MRubyD: A new mruby virtual machine implemented in pure C# by jayd16 on Monday March 24, 2025 @09:45PM (#43467332)
More like IL as the, well ... intermediate language.
Re:MRubyD: A new mruby virtual machine implemented in pure C# by voidUpdate on Tuesday March 25, 2025 @08:59AM (#43470652)
Unreal has C# scripting? I've only seen it having blueprints and C++
Re:MRubyD: A new mruby virtual machine implemented in pure C# by dismalaf on Tuesday March 25, 2025 @02:51PM (#43474521)
There's 3rd party C# scripting plugins for Unreal.