Decompiled LUA Scripts

Artofeel
Posts: 3
Joined: Sat Jul 07, 2012 2:08 pm

Decompiled LUA Scripts

Post by Artofeel » Sat Jul 07, 2012 2:20 pm

Hi
Let there be decompiled scripts (not modifed) that would make it easier to start of modify it.

Artofeel
Posts: 3
Joined: Sat Jul 07, 2012 2:08 pm

Re: Decompiled LUA Scripts

Post by Artofeel » Sat Jul 07, 2012 2:22 pm

At the moment I was able to decompile AI, for all levels of campaigns and for Free Game (just spawning)

Others I could not get to decompile...

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Decompiled LUA Scripts

Post by rupuzioks » Sun Jul 08, 2012 10:01 am

cool idea :)

welcome to my forum :)
Tempus et vita, tempus et mortis

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Decompiled LUA Scripts

Post by rupuzioks » Sat Jul 14, 2012 4:01 pm

also I want to know which lua decompiler you used to decompiler it?
I like to start modify them and compile again
Tempus et vita, tempus et mortis

User avatar
ChaosD.Ace
Posts: 29
Joined: Tue Mar 27, 2012 4:25 pm

Re: Decompiled LUA Scripts

Post by ChaosD.Ace » Sat Jul 14, 2012 9:16 pm

Hi rupuz

What are decompiled LUA scripts and what are they for?

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Decompiled LUA Scripts

Post by rupuzioks » Sun Jul 15, 2012 8:05 am

it's for making quests, AI, change what units spawn in spawn point, etc.

I think possibilities are endless
Tempus et vita, tempus et mortis

User avatar
ChaosD.Ace
Posts: 29
Joined: Tue Mar 27, 2012 4:25 pm

Re: Decompiled LUA Scripts

Post by ChaosD.Ace » Sun Jul 15, 2012 12:13 pm

So let me try and get this right.

You decompile LUA just like you uncompressed a 7 zip file and change and modify the files inside (are the files inside like .dll files?) to get the desired effect and then recompile them into LUA and copy and replace them with the ones in the game directory. And then the effects take place when you fire up the game.

Sorry if I sound stupid.

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Decompiled LUA Scripts

Post by rupuzioks » Sun Jul 15, 2012 1:41 pm

yes, that's exactly what it does
Tempus et vita, tempus et mortis

Artofeel
Posts: 3
Joined: Sat Jul 07, 2012 2:08 pm

Re: Decompiled LUA Scripts

Post by Artofeel » Mon Jul 16, 2012 5:33 am

rupuzioks wrote:also I want to know which lua decompiler you used to decompiler it?
I like to start modify them and compile again
I used CFLuaDC for decompile and HW2 Pretty-Printer for make "good looking" code
Yes it's Homeworld 2 tools :)
For compile we can use LuaC4, but it is not necessary for the game working. You may use decompiled scripts, game will be fine. It is good for debugging.


Сarefully, CFLuaDC makes some errors like:
Minutes = 1,5
but should be
Minutes = 1.5
so, need to fix it manually...that I have already did with AI scripts posted above

User avatar
rupuzioks
Site Admin
Posts: 555
Joined: Sun Nov 13, 2011 2:57 pm

Re: Decompiled LUA Scripts

Post by rupuzioks » Mon Jul 16, 2012 4:29 pm

thank you for that, also for informing that there no need to recompile, I'll test it ASAP :)
Tempus et vita, tempus et mortis

Post Reply