FORUMS
Remove All Ads from XDA

[UTILITY] Lua 5.1 tools: compiler, decompiler, snippets & extendable lua.dll with SDK

1,061 posts
Thanks Meter: 877
 
Post Reply Email Thread
1st March 2009, 04:34 PM |#161  
12aon's Avatar
Retired Senior Moderator
Thanks Meter: 461
 
Donate to Me
More
Quote:
Originally Posted by sztupy

strange. Could you send me the whole error output?

That's it! That's the only error I get. Here's the file
Attached Files
File Type: zip 09a70371_manila.zip - [Click for QR Code] (12.8 KB, 5 views)
 
 
1st March 2009, 05:46 PM |#162  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by 12aon

That's it! That's the only error I get. Here's the file



I just found out that I'm working on 09a70371_manila.luac at the moment too

Code:
-l ;;;;;2,4;0,11;;0,0,13;0,9,77,80;;;;;;;;;;;1;;0,0,0,4,15;0,6;;;;;;;0,0,16,20;;0,0,9,20;0,3,13;;;;;;0,0,0,4;0,9;;;;;0,0,0,4;0,9;;;;24,41;;;;;;;;;;;;;;30;;
but it might crash older luadec (the latest one I didn't upload yet)

btw If that's the only error you get then there might be some path errors...
1st March 2009, 09:55 PM |#164  
12aon's Avatar
Retired Senior Moderator
Thanks Meter: 461
 
Donate to Me
More
Quote:
Originally Posted by sztupy

decomp'd and go

Thanks hombre, I'm helping xboxmod a bit with resizing the TP2 manila, but that guy is a machine he had already resized the weather tab when I last talked to him (I needed it decompiled for that ). But you are really pioneering all this man. We are going to love you for phone generations to come, 12
2nd March 2009, 07:39 AM |#165  
smotrs's Avatar
Senior Member
Flag So. Calif.
Thanks Meter: 0
 
More
Would one of you with the TP2 files post the 27a13690_manila file for me? or PM me where the ROM is and I can extract it. I've been trying to find where the ROM is and haven't had any luck finding it.
2nd March 2009, 11:33 AM |#166  
12aon's Avatar
Retired Senior Moderator
Thanks Meter: 461
 
Donate to Me
More
Sure hombre, why do you need it?
Attached Files
File Type: zip 27a13690_manila.zip - [Click for QR Code] (13.3 KB, 3 views)
2nd March 2009, 05:35 PM |#167  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
LuaDec 0.6
Hi!

Don't worry about me being slower, I am going from the hardest scripts to the easier ones now. 251 done. New additions:
  1. Weather
  2. CalendarPicker
  3. stock_quote
  4. WorldClock/ClockView
  5. People/peopleDetail
  6. Messaging
  7. Internetportal

Also there is LuaDec 0.6
  • Less crashing when encountering booleans
  • New luadecguess with "fast guess" mode
  • More happy faces

The new "fast guess" mode usually works very fine with _large_ scripts (more than 10k). For smaller ones the original mode usually gets better results, but smaller scripts have already been decompiled

Usage:

Code:
luadecguess -fg 1 filename
the last line it outputs will be the LDS string. Sometimes (well around 50% of the cases) this LDS string will make luadec crash, which means the fast guessed LDS wasn't fine.

To solve this issue one have to run luadec with the -d option set (and with the LDS), and check on where it crashed (which function, which opcode). Then you have to manually modify the LDS string (usually putting a smaller number in the appropriate place should do the job) To get the appropriate "smaller number", luadecguess with fg mode on will list out useful informations about where locals can be defined.
Attached Files
File Type: zip touchpro2_manila3d_declua.zip - [Click for QR Code] (533.8 KB, 113 views)
2nd March 2009, 06:22 PM |#168  
smotrs's Avatar
Senior Member
Flag So. Calif.
Thanks Meter: 0
 
More
Quote:
Originally Posted by 12aon

Sure hombre, why do you need it?

12, thanks, I was hoping to see how close it was to the HD version compared to the regular TP version. It looks like it follows the regular TP version. When I insert it into the Weather Tab CAB, it doesn the same thing the standard TP version does.
2nd March 2009, 06:39 PM |#169  
smotrs's Avatar
Senior Member
Flag So. Calif.
Thanks Meter: 0
 
More
Quote:
Originally Posted by sztupy

Hi!

Don't worry about me being slower, I am going from the hardest scripts to the easier ones now. 251 done. New additions:

Wow, you are just awesome. I'm just trying to decomp one file and your pumping them out left and right. Gonna try some of your newly posted tips and see how much further I can get on the HD version of that file.

Keep up the good work.
2nd March 2009, 06:40 PM |#170  
12aon's Avatar
Retired Senior Moderator
Thanks Meter: 461
 
Donate to Me
More
Ok problem: I'm trying to change the landscape and portrait phototab but tehy are somehow dependent on one another

here''s the original:
Code:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 14;0;; 35a10783_manila.luac 

trace("Album Landscape")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
Album_ScreenRotation = class(RotationTemplate)
local l_0_0 = Album_ScreenRotation
l_0_0.__init = function(l_1_0, l_1_1)
   l_1_0._ResetLayoutCallback = l_1_1
   trace("Album_ScreenRotation:__init later")
   RotationTemplate.__init(l_1_0)
end

l_0_0 = Album_ScreenRotation
l_0_0.OnScreenRotation = function(l_2_0)
   Camera2DBegin.Viewport.value = RectF(0, 0, screenWidth, screenHeight - 2 * SystemTitlebarHeight)
   Camera2DBegin.ViewLeft.value = 0
   Camera2DBegin.ViewRight.value = screenWidth
   Camera2DBegin.ViewTop.value = 0
   Camera2DBegin.ViewButtom.value = -(screenHeight - 2 * SystemTitlebarHeight)
   Listview3DCamera.Viewport.value = RectF(0, 0, screenWidth, screenHeight - 2 * SystemTitlebarHeight)
   Listview3DCamera.ViewLeft.value = 0
   Listview3DCamera.ViewRight.value = screenWidth
   Listview3DCamera.ViewTop.value = 0
   Listview3DCamera.ViewButtom.value = screenHeight - 2 * SystemTitlebarHeight
   if _application.Orientation == ScreenOrientation_Portrait then
      trace("Album_ScreenRotation_Portrait")
      Listview3DCamera.CameraPosition.value = Vector3(0, 50, 415)
      ControlPanel2D.Position.x = 0
      ControlPanel2D.Position.y = 0
      ArrowGroups.Position.y = -322
      KeyUpSprit.Position.y = 60
      KeyUpSprit.Size.height = 130
      InitPortraitConstant()
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         trace("Album_ScreenRotation_Landscape")
         Listview3DCamera.CameraPosition.value = Vector3(0, 50, 224)
         ControlPanel2D.Position.x = 307
         ControlPanel2D.Position.y = SystemTitlebarHeight
         ArrowGroups.Position.y = -272
         KeyUpSprit.Position.y = 10
         KeyUpSprit.Size.height = 80
         RightBound = 674
         PanoramaWidth = 344
         PanoramaHeight = 120
         PanoramaVWidth = 108
         PanoramaVHeight = 176
         PortraitWidth = 132
         PortraitHeight = 176
         LandscapeWidth = 200
         LandscapeHeight = 150
         WideLandscapeWidth = 250
         WideLandscapeHeight = 150
         ParaOff = 0
         LOff = -5
         WLOff = 0
         POff = -7
         VParaOff = -7
         PhotoHitTarget.Position.x = 212
         PhotoHitTarget.Position.y = -36
         PhotoHitTarget.Size.width = 360
         PhotoHitTarget.Size.height = 300
which I have changed into:
Code:
-- Decompiled using luadec 0.4 by sztupy (http://winmo.sztupy.hu)
-- Command line was: -l 14;0;; 35a10783_manila.luac 

trace("Album Landscape")
require("Common\\LayoutInfo")
_LayoutInfo = LayoutInfo()
Album_ScreenRotation = class(RotationTemplate)
local l_0_0 = Album_ScreenRotation
l_0_0.__init = function(l_1_0, l_1_1)
   l_1_0._ResetLayoutCallback = l_1_1
   trace("Album_ScreenRotation:__init later")
   RotationTemplate.__init(l_1_0)
end

l_0_0 = Album_ScreenRotation
l_0_0.OnScreenRotation = function(l_2_0)
   Camera2DBegin.Viewport.value = RectF(0, 0, 640, 480 - 2 * 50)
   Camera2DBegin.ViewLeft.value = 0
   Camera2DBegin.ViewRight.value = 640
   Camera2DBegin.ViewTop.value = 0
   Camera2DBegin.ViewButtom.value = -(480 - 2 * 50)
   Listview3DCamera.Viewport.value = RectF(0, 0, 480, 640 - 2 * 50)
   Listview3DCamera.ViewLeft.value = 0
   Listview3DCamera.ViewRight.value = 480
   Listview3DCamera.ViewTop.value = 0
   Listview3DCamera.ViewButtom.value = 640 - 2 * 50
   if _application.Orientation == ScreenOrientation_Portrait then
      trace("Album_ScreenRotation_Portrait")
      Listview3DCamera.CameraPosition.value = Vector3(0, 50, 415)
      ControlPanel2D.Position.x = 0
      ControlPanel2D.Position.y = 0
      ArrowGroups.Position.y = -322
      KeyUpSprit.Position.y = 60
      KeyUpSprit.Size.height = 130
      InitPortraitConstant()
   else
      if _application.Orientation == ScreenOrientation_Landscape then
         trace("Album_ScreenRotation_Landscape")
         Listview3DCamera.CameraPosition.value = Vector3(0, 50, 224)
         ControlPanel2D.Position.x = 307
         ControlPanel2D.Position.y = SystemTitlebarHeight
         ArrowGroups.Position.y = -272
         KeyUpSprit.Position.y = 10
         KeyUpSprit.Size.height = 80
         RightBound = 539
         PanoramaWidth = 344
         PanoramaHeight = 120
         PanoramaVWidth = 108
         PanoramaVHeight = 176
         PortraitWidth = 132
         PortraitHeight = 176
         LandscapeWidth = 200
         LandscapeHeight = 150
         WideLandscapeWidth = 250
         WideLandscapeHeight = 150
         ParaOff = 0
         LOff = -5
         WLOff = 0
         POff = -7
         VParaOff = -7
         PhotoHitTarget.Position.x = 212
         PhotoHitTarget.Position.y = -36
         PhotoHitTarget.Size.width = 360
         PhotoHitTarget.Size.height = 300
      end
   end
Now the code in red is the only code that seems to make a difference but when I change to code it automatically changes portrait as well as landscape. The question is can this be separated or the there a factor somewhere that give the information on how these two rely on one another? 12
2nd March 2009, 06:44 PM |#171  
sztupy's Avatar
OP Inactive Recognized Developer
Flag London
Thanks Meter: 877
 
Donate to Me
More
Quote:
Originally Posted by smotrs

Wow, you are just awesome. I'm just trying to decomp one file and your pumping them out left and right. Gonna try some of your newly posted tips and see how much further I can get on the HD version of that file.

Keep up the good work.

Got a rack of Cola for present
Post Reply Subscribe to Thread

Tags
lua, manila, mod, tf3d, touchflo

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes