Active Topics

 



Notices


Reply
Thread Tools
Posts: 8 | Thanked: 4 times | Joined on Dec 2010
#251
hi again, i dont know how to edit the levels im on lua.exe
i write decompile_levels.lua "C:\documents and settings\******_*****\my documents\angry birds\assets\data\levels\pack1\level1.lua
and it then says stdin:1: attempt to index global 'decompile_levels' <a nil value>
stack traceback:
stdin:1: in main chunk
[C]: ?

help me please step by step thank you
 

The Following User Says Thank You to romeocvromaeo For This Useful Post:
Posts: 135 | Thanked: 151 times | Joined on Dec 2009 @ Slovakia/Bratislava
#252
use relative paths without spaces.
use lua.exe that is bundled in the archive.
that should do it.

like this:
lua.exe decompile_levels.lua assets\data\levels\pack1\level1.lua
 

The Following User Says Thank You to forcer For This Useful Post:
Posts: 8 | Thanked: 4 times | Joined on Dec 2010
#253
thanks for replying i did what you said decompile_levels.lua assets\data\levels\pack1\level1.lua
and now it says stdin:1: '=' expected near 'assets'

please reply
 

The Following User Says Thank You to romeocvromaeo For This Useful Post:
Posts: 135 | Thanked: 151 times | Joined on Dec 2009 @ Slovakia/Bratislava
#254
are you sure that you are decompiling compiled level?
try this one:

(don't forget to rename it to describe.lua)

it outputs the contents of file to stdout, but you can redirect the output to a file.

lua.exe describe.lua path_to_level > path_to_new_decompiled_file
Attached Files
File Type: txt describe.txt (6.6 KB, 194 views)
 

The Following User Says Thank You to forcer For This Useful Post:
Posts: 8 | Thanked: 4 times | Joined on Dec 2010
#255
i am really lost sorry im on android and downloaded the lastest angry birds from the market and i have mounted my sd card to the pc went on winRAR and found angrybirds.apk went to levels opened lua.exe typed decompile_levels.lua then i went into level1 draged it into lua.exe pressed enter and it dont work. am i doing anything wrong take me step by step from step 1 thank you alot
 

The Following User Says Thank You to romeocvromaeo For This Useful Post:
Posts: 135 | Thanked: 151 times | Joined on Dec 2009 @ Slovakia/Bratislava
#256
you need to do it from command line.
copy Level1.lua to same dir where lua.exe, lublua51.dll and decompile_levels.lua are.
let's say it's c:\data\levels
then open cmd.exe and type:
Code:
c:
cd c:\data\levels
lua.exe decompile_levels.lua Level1.lua
Then, you should see the level1.lua.dec in the same directory, that's your decompiled level.

Sorry, I can't explain it easier than this.
 

The Following 2 Users Say Thank You to forcer For This Useful Post:
Posts: 8 | Thanked: 4 times | Joined on Dec 2010
#257
yes sorted then what? thank you
 
Posts: 135 | Thanked: 151 times | Joined on Dec 2009 @ Slovakia/Bratislava
#258
open http://acme.badboll.nu/able in your browser and paste contents of Level1.lua to text box on the page.
and press render. edit the level(help buton if you want to know how it works) and press save. then copy the text in textbox and paste it to level1.lua, replace level on your device and you can play it.
 

The Following 2 Users Say Thank You to forcer For This Useful Post:
Posts: 8 | Thanked: 4 times | Joined on Dec 2010
#259
so ok paste it into level1.lua.DEC or level1.lua
 
Posts: 135 | Thanked: 151 times | Joined on Dec 2009 @ Slovakia/Bratislava
#260
level1.lua.dec -> acme.badboll.nu/able
edit, save
acme.badboll.nu -> (new file) level1.lua
level1.lua -> (your device)/assets/data/levels/pack1/level1.lua

get it?
 

The Following User Says Thank You to forcer For This Useful Post:
Reply

Tags
angry birds, level editor


 
Forum Jump


All times are GMT. The time now is 13:32.