maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING (https://talk.maemo.org/showthread.php?t=40591)

romeocvromaeo 2011-02-10 15:38

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
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

forcer 2011-02-10 15:43

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
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

romeocvromaeo 2011-02-10 15:51

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
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

forcer 2011-02-10 16:29

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
1 Attachment(s)
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

romeocvromaeo 2011-02-10 17:00

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
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

forcer 2011-02-10 17:08

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
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.

romeocvromaeo 2011-02-10 17:28

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
yes sorted then what? thank you

forcer 2011-02-10 19:59

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
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.

romeocvromaeo 2011-02-10 20:06

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
so ok paste it into level1.lua.DEC or level1.lua

forcer 2011-02-10 20:10

Re: [Maemo 5] Angry Birds Level Editor - NOW FULLY WORKING
 
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?


All times are GMT. The time now is 23:16.

vBulletin® Version 3.8.8