[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Hacking Lua in order to introduce new built-in functions for modders
- From: Stefan Falk <falk.stefan@...>
- Date: Sun, 4 Dec 2016 12:27:41 +0100
Currently I am only interested in the Windows platform. Once I get
things running there I might look into others but for now I just want to
make a proof of concept. Since I am basically editing the binary code of
the executable it's actually a bit more complicated in many different
If you've seen my answer to Charles you should know where I intend to go
with this. It's an evil hack that requires modifying the assembly code
of the executable and not only let it load and execute a dll I want to
"inject" but also talk to the Lua VM and register new built-in functions
located in that dll such that people in Lua can call them.
But let's see .. so far this has been a long try and error trip with
more error than try :D
On 03.12.2016 13:58, Paul Merrell wrote:
I know nothing about Supreme Commander except what I've read in the
last few minutes. But I have picked up that there may be different
versions for different operating systems. One version runs on Steam,
 which is supported on Windows, OS X, and Linux.
<https://en.wikipedia.org/wiki/Steam_(software)>. I also hit info
saying that Supreme Commander runs on both Windows and XBox 360.
I also know very little about Steam, but if you're wanting to extend
the Steam version, the Supreme Commander API reference  might be a
good place to start. You might also need to take a look at the Steam
But you might consider waiting until you hear from someone who knows
way more than I do about Lua and games. There's no shortage of that
kind of people on this list.
 Search for steam api. That produced several different steam API
references but I suspect you'll find a more integrated resource once
you register and get inside steam at