ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Dec 14, 2018 6:01 am

All times are UTC




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Sun Oct 14, 2018 6:57 am 
User avatar

Joined: Sun Oct 14, 2018 6:51 am
Posts: 13
(I wasn't sure whether to post this here or in Code Talk, but I feel like it should go here.)

https://drive.google.com/open?id=1NQ6IX ... x7f1YL7TeE

Attached is a .rar containing the .pfp code, an example Lua file and the pfp I extracted it from.
The Lua appears to have the heading "LuaP" but after that it appears as garbled crap in Notepad++.
I don't know if it's an issue with the .pfp extraction code or the header. This problem has occurred for all the Lua (and XML, as those are garbled too) files extracted from the pfp.
Does anyone know why this problem happens?


Top
   
PostPosted: Sun Oct 14, 2018 7:47 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9473
I guess you have to post in the topic (if any) that has been open for this specifc game (what game?) and this pfp format.

Your file is not visible to everybody.


Top
   
PostPosted: Sun Oct 14, 2018 9:31 pm 
User avatar

Joined: Sun Oct 14, 2018 6:51 am
Posts: 13
I've made the .rar file public (because I'm dumb).
The .pfp is the compressed assets file and not the panorama sort.
The .pfp and corresponding ripped (corrupted?) .lua are from a game called Fitness Dash, but I've experienced the same issue with quite a few games I've tried ripping .pfp contents from. I'm pretty certain that the game I'm ripping doesn't have an active topic, and I don't want to necro.

Sorry if I'm being an idiot.

_________________
This is not how existence works, but at this point I'm not even sure how it does.


Top
   
PostPosted: Tue Oct 16, 2018 9:51 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9473
ok so you used the pfpk.bms script from my website.

The lua files are simply compiled which is very common in games, therefore you just need a decompiler.
There are various decompilers available, if you need an advice try to search the following on google:
luadec site:zenhax.com


Top
   
PostPosted: Tue Oct 16, 2018 9:53 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9473
xml files are simply compressed.
Try this script on them:
Code:
idstring "ZXML"
get ZSIZE long
get SIZE long
savepos OFFSET
get NAME filename
clog NAME OFFSET ZSIZE SIZE


Top
   
PostPosted: Tue Oct 16, 2018 10:08 am 
User avatar

Joined: Sun Oct 14, 2018 6:51 am
Posts: 13
Thanks, now the unzipped xml files are readable.
Is there any way to do the same with the Lua files?
The first readable part in all the 'broken' Lua files is "LuaP" if that helps.

_________________
This is not how existence works, but at this point I'm not even sure how it does.


Top
   
PostPosted: Tue Oct 16, 2018 11:18 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9473
Eh you missed my previous post :)


Top
   
PostPosted: Tue Oct 16, 2018 8:18 pm 
User avatar

Joined: Sun Oct 14, 2018 6:51 am
Posts: 13
...So does the zxml script work with the Lua files as well?

_________________
This is not how existence works, but at this point I'm not even sure how it does.


Top
   
PostPosted: Fri Nov 09, 2018 10:24 pm 
User avatar

Joined: Sun Oct 14, 2018 6:51 am
Posts: 13
I've tried searching for a script to unzip the LuaP files, but the one I did find doesn't work at all. The zxml script works perfectly. I'm a huge idiot, so: I'd like to be able to both extract and reimport the Lua files from the LuaP one.

_________________
This is not how existence works, but at this point I'm not even sure how it does.


Top
   
PostPosted: Sat Nov 10, 2018 7:33 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9473
I told you to use a Lua decompiler:
viewtopic.php?p=39610#p39610


Top
   
PostPosted: Sat Nov 10, 2018 10:47 pm 
User avatar

Joined: Sun Oct 14, 2018 6:51 am
Posts: 13
sorry, I'm an idiot. I've tried looking for one just now but I can't find anything I know how to use at all. I'm probably just too dumb to try and use any of them. Do you know one that's easy to use for a coding imbecile like me?

_________________
This is not how existence works, but at this point I'm not even sure how it does.


Top
   
PostPosted: Mon Nov 12, 2018 11:10 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9473
Come on don't say that.
Often people have problems with lua decompilers due to the various versions and the bugs in the decompilers.

For example Lua 5.0 ("LuaP") can be decompiled by some very old tools like:
http://files.luaforge.net/releases/luadec/luadec/0.6
http://files.luaforge.net/releases/chun ... -bin-0.7.0
http://files.luaforge.net/releases/chun ... -win32-bin
BUT none of them works with your customers.lua returning some "bad code" error.
Maybe just chunkspy gives some results but not exactly what you want.

Honestly I can't help you further so good luck.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited