• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
I would advise people grab it fast, I see a cease and desist order telling you to take that down.

My layman's eye, looking at that dronehub.lua tells me they REALLY don't want people messing with the range.

Oh well.
Guess luadec isn't going anywhere though, but this thread might be gone as well, if they're serious about preventing people from modding the game too much.
 
Oh well.
Guess luadec isn't going anywhere though, but this thread might be gone as well, if they're serious about preventing people from modding the game too much.

What can they do? They said full mod support and if they dont give us what we need we will get what we need.
 
What can they do? They said full mod support and if they dont give us what we need we will get what we need.
If there is a takedown, certainly hope that it's just a blank policy action of PR team to avoid distributing parts of their games (regardless of specifics), not a deliberate message of any kind - was probably wrong about intentionality above, apologies for spreading the FUD.

Wrt "what can they do" (in the context of this thread) - certainly under no obligation to promote stuff they don't want on official forums, which IMO is very fair :)

Wrt "we will get what we need" - afaik modding is a bit shady area, and reverse engineering (seem to be the case here) probably violates law (in US, EU, etc, but not a lawyer!) and EULA (didn't read), so authors have that right reserved, should they want to - IMO also fair.
 
Wrt "we will get what we need" - afaik modding is a bit shady area, and reverse engineering (seem to be the case here) probably violates law (in US, EU, etc, but not a lawyer!) and EULA (didn't read), so authors have that right reserved, should they want to - IMO also fair.

I wouldn't call it a grey area in a subforum called Modding and Resources. Either they are fine with mods, then one needs the files, or then they are not. In that case they should not promise full mod support.
 
Yeah, probably.
Pretty sure I've misread "see a cease and desist order telling you to take that down" thing above as something that happened instead of "see in the future", bringing up this whole offtopic thing here for no reason.
 
I've added a better version of the decompiled Lua files to the Discord.

To summarize the decompiling:

The headers for a Lua bytecode file should include 5 fields: sizeof(int), sizeof(size_t), sizeof(Instruction), sizeof(lua_Integer), and sizeof(lua_Number). These files only contain 3 fields (04, 04, and 08). By inserting a couple of extra bytes to make it 04 04 04 08 08, they can be decompiled.

I used unluac, which gives far more readable results than luadec - it actually looks kind of like real code whereas the luadec version is laid out weirdly and filled with comments listing decode errors.
 
Surviving Mars is done with the same engine as Tropico 3-5. In Tropico it was possible to unpack the *.hpk and decompile the lua to get basically full access to the entire game-code. The policy there was, that you were allowed to do it, but to be responsible about it and not paste the code all over the place. So there is hope that the same will be true for Surviving Mars.
 
I am quite perplexed by the removal of console access for the consumer release build, to be honest.
Especially for a game with modding "support" as it is referred to as.