|
#1
|
|||
|
|||
|
I find that add one special to every function in the source code , you can NOT decompile the compiled file with luadec.Here are some screenshots of my app:what do you think about the UI?
Last edited by ustc0911; 06-08-2010 at 03:58 AM. |
| Advertisement | [Remove Advertisement] |
|
|
|
|
#2
|
||||
|
||||
|
It's a bit too "blobby"/Bubbly or how to call it, and a tad too colorful. The green gradient in the third screen for example, what's the purpose of that? It's a bit straining for the eyes. Try and keep it less "Vista Shiny" also, some shine effects can be nice, but don't overdo it.
Also, if you use shine and shadows, then be consistent about the lightsource. In the last screen you have just rotated the button, which looks odd.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#3
|
|||
|
|||
|
I bet I could decompile it
. Of course, it's what I do for a living.Also, instead of x^(1/3), why not use the cube root symbol?
__________________
Only ONE more functions in the Wiki need addressing! Zen X-Fi2 LUA Wiki Want to protect your applications? Click Here! Tower Defense Thread Zen Lock - Protect Your Zen! |
|
#4
|
||||
|
||||
|
Wow I have to say I'm impressed!
But in my opinion UI should have the same background everywhere. I think I can quit MY graph app now.
__________________
You're wrong here! My post is above!!! /\ _______________________________l LOOK! MY! APPS!
|
|
#5
|
||||
|
||||
|
All those fancy colors don't make it look like a serious calculator.. I'm a bit confused by that, because at the other hand it looks very impressive with that plot-window.
I would appreciate it if there was an option to change the UI to something more standard or professional, because I wouldn't feel very comfortable using some kind of fisher price calculator.. Don't take it personal, other people may love the looks, it's just what I prefer. |
|
#6
|
||||
|
||||
|
Quote:
Just what I was trying to say in my post =P
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
#7
|
|||
|
|||
|
Here is a compiled file written in lua, can you decompile it?
|
|
#8
|
|||
|
|||
|
Code:
; Name:
; Defined at line: 0
; #Upvalues: 0
; #Parameters: 0
; Is_vararg: 2
; Max Stack Size: 2
1 [-]: LOADBOOL R0 0 0 ; R0 := false
2 [-]: SETGLOBAL R0 K0 ; protect := R0
3 [-]: CLOSURE R0 0 ; R0 := closure(Function #1)
4 [-]: SETGLOBAL R0 K1 ; a := R0
5 [-]: CLOSURE R0 1 ; R0 := closure(Function #2)
6 [-]: SETGLOBAL R0 K2 ; b := R0
7 [-]: CLOSURE R0 2 ; R0 := closure(Function #3)
8 [-]: SETGLOBAL R0 K3 ; c := R0
9 [-]: CLOSURE R0 3 ; R0 := closure(Function #4)
10 [-]: SETGLOBAL R0 K4 ; d := R0
11 [-]: RETURN R0 1 ; return
; Function #1:
;
; Name:
; Defined at line: 2
; #Upvalues: 0
; #Parameters: 0
; Is_vararg: 0
; Max Stack Size: 9
1 [-]: GETGLOBAL R0 K0 ; R0 := protect
2 [-]: TEST R0 0 ; if not R0 then PC := 15
3 [-]: JMP 15 ; PC := 15
4 [-]: NEWTABLE R0 8 0 ; R0 := {}
5 [-]: LOADK R1 K2 ; R1 := 0
6 [-]: LOADK R2 K3 ; R2 := 1
7 [-]: LOADK R3 K4 ; R3 := 2
8 [-]: LOADK R4 K5 ; R4 := 3
9 [-]: LOADK R5 K6 ; R5 := 4
10 [-]: LOADK R6 K7 ; R6 := 5
11 [-]: LOADK R7 K8 ; R7 := 6
12 [-]: LOADK R8 K9 ; R8 := 7
13 [-]: SETLIST R0 8 1 ; R0[(1-1)*FPF+i] := R(0+i), 1 <= i <= 8
14 [-]: SETGLOBAL R0 K1 ; tb := R0
15 [-]: RETURN R0 1 ; return
; Function #2:
;
; Name:
; Defined at line: 8
; #Upvalues: 0
; #Parameters: 0
; Is_vararg: 0
; Max Stack Size: 9
1 [-]: GETGLOBAL R0 K0 ; R0 := protect
2 [-]: TEST R0 0 ; if not R0 then PC := 15
3 [-]: JMP 15 ; PC := 15
4 [-]: NEWTABLE R0 8 0 ; R0 := {}
5 [-]: LOADK R1 K2 ; R1 := 0
6 [-]: LOADK R2 K3 ; R2 := 1
7 [-]: LOADK R3 K4 ; R3 := 2
8 [-]: LOADK R4 K5 ; R4 := 3
9 [-]: LOADK R5 K6 ; R5 := 4
10 [-]: LOADK R6 K7 ; R6 := 5
11 [-]: LOADK R7 K8 ; R7 := 6
12 [-]: LOADK R8 K9 ; R8 := 7
13 [-]: SETLIST R0 8 1 ; R0[(1-1)*FPF+i] := R(0+i), 1 <= i <= 8
14 [-]: SETGLOBAL R0 K1 ; tb := R0
15 [-]: RETURN R0 1 ; return
; Function #3:
;
; Name:
; Defined at line: 14
; #Upvalues: 0
; #Parameters: 0
; Is_vararg: 0
; Max Stack Size: 9
1 [-]: GETGLOBAL R0 K0 ; R0 := protect
2 [-]: TEST R0 0 ; if not R0 then PC := 15
3 [-]: JMP 15 ; PC := 15
4 [-]: NEWTABLE R0 8 0 ; R0 := {}
5 [-]: LOADK R1 K2 ; R1 := 0
6 [-]: LOADK R2 K3 ; R2 := 1
7 [-]: LOADK R3 K4 ; R3 := 2
8 [-]: LOADK R4 K5 ; R4 := 3
9 [-]: LOADK R5 K6 ; R5 := 4
10 [-]: LOADK R6 K7 ; R6 := 5
11 [-]: LOADK R7 K8 ; R7 := 6
12 [-]: LOADK R8 K9 ; R8 := 7
13 [-]: SETLIST R0 8 1 ; R0[(1-1)*FPF+i] := R(0+i), 1 <= i <= 8
14 [-]: SETGLOBAL R0 K1 ; tb := R0
15 [-]: RETURN R0 1 ; return
; Function #4:
;
; Name:
; Defined at line: 20
; #Upvalues: 0
; #Parameters: 0
; Is_vararg: 0
; Max Stack Size: 9
1 [-]: GETGLOBAL R0 K0 ; R0 := protect
2 [-]: TEST R0 0 ; if not R0 then PC := 15
3 [-]: JMP 15 ; PC := 15
4 [-]: NEWTABLE R0 8 0 ; R0 := {}
5 [-]: LOADK R1 K2 ; R1 := 0
6 [-]: LOADK R2 K3 ; R2 := 1
7 [-]: LOADK R3 K4 ; R3 := 2
8 [-]: LOADK R4 K5 ; R4 := 3
9 [-]: LOADK R5 K6 ; R5 := 4
10 [-]: LOADK R6 K7 ; R6 := 5
11 [-]: LOADK R7 K8 ; R7 := 6
12 [-]: LOADK R8 K9 ; R8 := 7
13 [-]: SETLIST R0 8 1 ; R0[(1-1)*FPF+i] := R(0+i), 1 <= i <= 8
14 [-]: SETGLOBAL R0 K1 ; tb := R0
15 [-]: RETURN R0 1 ; return
__________________
Only ONE more functions in the Wiki need addressing! Zen X-Fi2 LUA Wiki Want to protect your applications? Click Here! Tower Defense Thread Zen Lock - Protect Your Zen! |
|
#9
|
|||
|
|||
|
I know that you get this using "luadec -dis a.lua", didn't you?However, this assemble code is hard to read.Although you can get the code below, it's not easy to get the original code when the function is complicate.
Quote:
|
|
#10
|
|||
|
|||
|
Actually, it's the asm of compiled lua. It's hard for some to read but others read it like it's English.
Since the -dis even comments each line it's even easier here. All I'm saying is that it's futile to protect your lua code. If it's worth it will get reversed, even if it's to prove it's possible.
__________________
Only ONE more functions in the Wiki need addressing! Zen X-Fi2 LUA Wiki Want to protect your applications? Click Here! Tower Defense Thread Zen Lock - Protect Your Zen! |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 11:53 PM.











. Of course, it's what I do for a living.
MY!
APPS!

Linear Mode
