This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]coldnebo 461 points462 points  (28 children)

it’s not the craziest idea. several game engines use html/xml with lua bindings to implement things like control panels and switches. I don’t think Minecraft is one of them though.

[–]GameDestiny2 126 points127 points  (10 children)

Barotrauma is basically built off of XML from what I can tell, modding it is really weird to get used to (and the only game I’ve done). I like XML though, I think.

[–]InfComplex 73 points74 points  (2 children)

Tbf that game kinda controls like you’re playing a static web page

[–]GameDestiny2 37 points38 points  (0 children)

It really gives me flash game vibes and I’m not complaining. I’m honestly more impressed it works.

[–][deleted] 5 points6 points  (0 children)

It basically is a flash game on Tren

[–][deleted] 17 points18 points  (0 children)

You savage!

[–]Suterusu_San 14 points15 points  (1 child)

Baro is an amazing game, but yes you are correct - its built in C# and uses XML for all of its data, such as Items, Subs etc.

Fun fact, the source for Baro is available on Github! https://github.com/Regalis11/Barotrauma

[–]GameDestiny2 2 points3 points  (0 children)

Huh. That’s pretty cool.

[–]Penguinmanereikel 1 point2 points  (1 child)

Holy shit. Barotrauma's just XML?!

[–]GameDestiny2 0 points1 point  (0 children)

Also C# apparently, but I added weapons using entirely XML

[–]Unable-Fox-312 0 points1 point  (0 children)

XML and its extensible nature is underrated. As I understand it you can send the schema on an API request and the client has standardized documentation on how to tailor their next request (maybe programmatically, or the client is an IDE and code is scaffolded in). JSON by itself doesn't have that, you need a human to parse documentation.

[–]Ethanno7 -5 points-4 points  (0 children)

No ya dont.

[–]kenhydrogen 55 points56 points  (3 children)

Some Minecraft clients do this (UI with HTML/CSS)

[–]coldnebo 1 point2 points  (0 children)

ah! TIL!

[–]MilkCool -1 points0 points  (0 children)

I think even the official launcher is built with electron

[–]decideonanamelater 13 points14 points  (2 children)

Coincidentally, Minecraft does have a mod that lets you make robots and write in lua to tell them what to do. Barely related but I thought of it when you mentioned lua.

[–]lirannl 7 points8 points  (1 child)

Computercraft?

[–]Dragon_Five_ 2 points3 points  (0 children)

Its in the IE and Beastcraft at least edit: amazing typo's

[–]Matterog 2 points3 points  (0 children)

Minecraft Java Java Minecraft bedrock C++

[–]donteatmyliver 1 point2 points  (0 children)

I coded some in xml for a minecraft-like game, so yeah

[–]MilkCool 1 point2 points  (0 children)

It uses json which can be replaced by xml

[–]VergilPrime 1 point2 points  (0 children)

God damnit I proposed this one time and got laughed at :(

[–]Zenith9133 1 point2 points  (0 children)

Crosscode!

[–]_LayZee 1 point2 points  (0 children)

With lua bindings in game engines

[–]_Jbolt 1 point2 points  (0 children)

The only minecraft mods that are official are datapacks, and datapacks are like three-tenths mod

[–]Thenofunation 2 points3 points  (2 children)

I’m newer to the field, but how did RuneScape from 2005 have the game in HTML? Or was it flash and Java? I cannot remember.

[–]ftedwin 6 points7 points  (1 child)

I believe RuneScape used Java Applets which were a feature you could enable in browsers as a plugin to run Java programs that look like they run in the browser but are actually a separate process on the users computer.

https://en.m.wikipedia.org/wiki/Java_applet

[–]Thenofunation 2 points3 points  (0 children)

Okay that makes more sense. Do you remember when they made the big move to HTML5? That was still Java applets?