You are here

Lets kick off modding! :D

Pages

Trent's picture
I was in the War!
Community VIPKickstarter BackerCompetition Winner
Posts: 2989
Submitted: Wed, 19/03/2014 - 12:42

I'll see if unluac does a better job decompiling the LOL files, though that does mean compiling the java down to an EXE for ease of distribution, which means installing MinGW with GCJ...

suicidal_banana's picture
Cunning Stunt Licker
Kickstarter Backer
Posts: 262
Submitted: Wed, 19/03/2014 - 12:59

Only do that if you really want too i guess, what we have now is functional too, i just happend to be so unlucky to try a bunch of the files that dont work, by now i've thrown a shitload more .lol files at it, and like 80-90% decompiles without error :)

Ooooh, hard nipples. Noooo.... :( *limp nipples* Hmmm, vanilla nipples!

Trent's picture
I was in the War!
Community VIPKickstarter BackerCompetition Winner
Posts: 2989
Submitted: Wed, 19/03/2014 - 13:12

Unluac is a shit load better than Luadec. It's definitely worth while using Unluac even with having to compile it down to an EXE.

For example, this is the output of camera_setup.lol from Luadec: http://pastebin.com/qughYnHN

And this is the output of Unluac: http://pastebin.com/h5kkaJhm

Even discounting the fact Unluac doesn't give any errors, it actually produces readable code with proper variable names and object structure. I'll get on to sorting that out.

suicidal_banana's picture
Cunning Stunt Licker
Kickstarter Backer
Posts: 262
Submitted: Wed, 19/03/2014 - 14:12

Thats really nice, in that case, yea, please do make the switch :P

Ooooh, hard nipples. Noooo.... :( *limp nipples* Hmmm, vanilla nipples!

Trent's picture
I was in the War!
Community VIPKickstarter BackerCompetition Winner
Posts: 2989
Submitted: Wed, 19/03/2014 - 14:14

The problem with spaces in the folder structure was actually from calling the decompiler without adding quotation marks around the filename, so I've fixed that and I have also compiled Unluac to an EXE so now it's decompiling properly. I'll upload the new version later today :)

suicidal_banana's picture
Cunning Stunt Licker
Kickstarter Backer
Posts: 262
Submitted: Wed, 19/03/2014 - 14:57

Sweet :D (and woo, i actually had the suggested fix right? :P)

Ooooh, hard nipples. Noooo.... :( *limp nipples* Hmmm, vanilla nipples!

Trent's picture
I was in the War!
Community VIPKickstarter BackerCompetition Winner
Posts: 2989
Submitted: Wed, 19/03/2014 - 15:15

suicidal_banana wrote:
Sweet :D (and woo, i actually had the suggested fix right? :P)

Sort of but not quite ;) This was the change to fix it:
ProcessStartInfo startInfo = new ProcessStartInfo("unluac.exe", "\""+file+"\"");
The file was being read by the LOLDecoder properly it just wasn't being handed off to the LUA decompiler correctly :)

Here's the new version, hosted by Matt: http://trent.incarnated.co.uk/downloads/LOLDecoder1.2.rar

Edited by: Trent on Wed, 19/03/2014 - 15:17

FatCat's picture
I was in the War!
PayPal Backer
Posts: 2642
Submitted: Wed, 19/03/2014 - 16:53

Hai guys.

Are we modding yet?

Trent's picture
I was in the War!
Community VIPKickstarter BackerCompetition Winner
Posts: 2989
Submitted: Wed, 19/03/2014 - 17:33

That's the FBX file in one of the wheel folders isn't it? I was wondering how long until someone posted about that haha :)

FatCat's picture
I was in the War!
PayPal Backer
Posts: 2642
Submitted: Wed, 19/03/2014 - 17:11

Trent wrote:
That's the FBX file in one of the wheel folders isn't it? I was wondering how long until someone posted about that haha :)

Yeah, i found that while idly browsing the zip folders and opened it up, i was surprised it even worked! Must be a work file that accidentally got dragged into that folder. Keep up the good work guys!

Edited by: FatCat on Wed, 19/03/2014 - 17:12

Pages

randomness