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)

forcer 2010-01-14 22:14

[Maemo 5] Angry Birds Level Editor
 
Angry birds level editor thread

description & url:
http://talk.maemo.org/showpost.php?p...&postcount=196

level decompiler: http://talk.maemo.org/showpost.php?p...4&postcount=37

levels are in /home/opt/rovio/angrybirds/data/levels/

noobmonkey 2010-01-14 22:15

Re: Angry Birds Level editor
 
Quote:

Originally Posted by forcer (Post 472386)
I bet you would for sure want level editor for AngryBirds.
I think it's perfectly possible to do it, I just need some help on level files.
Every level file is a compiled lua file, that could be decompiled and edited, however those lua files seem to have modified chunks(header), so conventional decompilers do not work.

Is there someone skilled enough to help with this problem? I guess only few bytes need to be changed to decompile it successfully..

illegal to decompile i'm guessing? - rovio may not be impressed? just a guess?

Edit - it's about time i changed this post!!! - Good on rovio for such a good sense of fairness and allowing this to happen :)

aniMAL_ 2010-01-14 22:18

Re: Angry Birds Level editor
 
It would be illegal unless Rovio gave you permission or they released an SDK themselves which is unlikely if they can continue to make a small, but steady stream of money from level packs.

Bec 2010-01-14 22:43

Re: Angry Birds Level editor
 
Quote:

Originally Posted by noobmonkey (Post 472394)
illegal to decompile i'm guessing? - rovio may not be impressed? just a guess?

How about contacting them?

It's not like some more cash could do any harm before angry birds 2 :rolleyes:

Maybe they'll consider the suggestion.

forcer 2010-01-14 22:56

Re: Angry Birds Level editor
 
yeah for sure, if they release the level editor I would pay for it, but yeah, legalness of the 3rd party editor is problematic.

msa 2010-01-14 23:27

Re: Angry Birds Level editor
 
write a nice email to rovio, i guess :D

i'm pretty sure they are not going to get rich with this game on a long shot, so they might as well provide some user-service by releasing a level-editor to keep the game alive.

ndi 2010-01-14 23:49

Re: Angry Birds Level editor
 
IMO it's not impossible. They are definitely not getting richer with the level pack, but opening the editor could make the game huge and Birds 2 (4?) would actually be a game worth a buck or two with a large userbase.

Especially if the game is a success, levels could appear anyway after a while.

forcer 2010-01-15 00:41

Re: Angry Birds Level editor
 
I have sent them a email, hopefully we will get some feedback on the idea...

kopte3 2010-01-15 03:05

Re: Angry Birds Level editor
 
There is a guy with username Miika on this forum, he works for Rovio, maybe we could send him a message to participate in this thread?

Okay, i'm gonna send him a message.

Sent. :)

stobbsc 2010-01-15 15:27

Re: Angry Birds Level editor
 
this sounds like something that would be awesome, holding thumbs

Miika 2010-01-15 15:53

Re: Angry Birds Level editor
 
First of all, wow! We anticipated requests for level editor but didn't quite expect the users to put effort to reverse engineer their own. It's very nice to see the level of interest Angry Birds has received from the Maemo community.

As for any possible legal issues no worries, go for it! :)

On the other hand, we do have had discussions about our own level editor too but no concrete plans have been made yet. And because of that unfortunately I can't promise you any support currently.

If you have any suggestions regarding the level editor or Angry Birds in general we're all ears. :)

stobbsc 2010-01-15 15:55

Re: [Maemo 5] Angry Birds Level Editor?
 
Miika the only suggestion I have is make more worlds fast :-)

Also it would be awesome to have an online leader board that you could access from the game, so you can see how well you do on each level in comparison to others playing the game :-)

smegheadz 2010-01-15 16:00

Re: [Maemo 5] Angry Birds Level Editor?
 
anyone else thinking of LBP style? i think a level editor/creator would go down a storm. having it for the n900 and your desktop would make it easier for the fiddely bits where you need a large screen. but i like the idea of an online leader bird.

imagine playing against each other trying to know the others person's castle down :P

forcer 2010-01-15 16:42

Re: [Maemo 5] Angry Birds Level Editor?
 
Thanks Miika, that means green light for me to decompile the level files I guess, so I will be looking into it this weekend, if someone does know some lua internals(involving decompilation), send me a message.

paulhax 2010-01-15 16:52

Re: [Maemo 5] Angry Birds Level Editor?
 
Quote:

Originally Posted by smegheadz (Post 474359)
anyone else thinking of LBP style? i think a level editor/creator would go down a storm. having it for the n900 and your desktop would make it easier for the fiddely bits where you need a large screen. but i like the idea of an online leader bird.

imagine playing against each other trying to know the others person's castle down :P

that would be awesome.. reminds me somehow on the oldschool classic game "ballerburg".. but a deluxe version ! :)

R-R 2010-01-15 16:56

Re: Angry Birds Level editor
 
Quote:

Originally Posted by aniMAL_ (Post 472412)
It would be illegal unless Rovio gave you permission or they released an SDK themselves which is unlikely if they can continue to make a small, but steady stream of money from level packs.

Really? Why? DMCA?
It's not illegal to reverse engineer everywhere and it's not illegal to make add-ons for a software...

ndi 2010-01-15 17:07

Re: Angry Birds Level editor
 
Quote:

Originally Posted by R-R (Post 474451)
Really? Why? DMCA?

Not everyone is in the US.

uberballo 2010-01-15 18:56

Re: [Maemo 5] Angry Birds Level Editor?
 
well ive asked them few months ago and they said more levels and level editor are coming

moose32 2010-01-16 03:17

Re: Angry Birds Level editor
 
Quote:

Originally Posted by Miika (Post 474342)
First of all, wow! We anticipated requests for level editor but didn't quite expect the users to put effort to reverse engineer their own. It's very nice to see the level of interest Angry Birds has received from the Maemo community.

As for any possible legal issues no worries, go for it! :)

On the other hand, we do have had discussions about our own level editor too but no concrete plans have been made yet. And because of that unfortunately I can't promise you any support currently.

If you have any suggestions regarding the level editor or Angry Birds in general we're all ears. :)

off-topic.. do you have any idea when ovi will add the level pack 1 back into the app store?

tousisd 2010-01-16 15:06

Re: [Maemo 5] Angry Birds Level Editor?
 
Please someone make the "angry tuxs!" ^_^

Miika 2010-01-16 15:53

Re: Angry Birds Level editor
 
Quote:

Originally Posted by moose32 (Post 475581)
off-topic.. do you have any idea when ovi will add the level pack 1 back into the app store?

Nope, sorry. :(

c0rt3x 2010-01-17 21:35

Re: Angry Birds Level editor
 
Quote:

Originally Posted by Miika (Post 476362)
Nope, sorry. :(

There must be a reason why you guys entitled it "Level Pack 1", right? Right!? ;)

kopte3 2010-01-18 00:01

Re: [Maemo 5] Angry Birds Level Editor?
 
Miika, can you share with us some more information, like do you plan to make something else? More games?
Or are you happy with results so far from Maemo platform?
Thanks

Miika 2010-01-18 08:44

Re: Angry Birds Level editor
 
Quote:

Originally Posted by c0rt3x (Post 478680)
There must be a reason why you guys entitled it "Level Pack 1", right? Right!? ;)

What on earth makes you think that? ;)
Yes, more content is coming soon. We'll just have to hope Nokia gets Ovi Store fixed so we can actually distribute the pack to customers also...

forcer 2010-01-19 18:52

Re: [Maemo 5] Angry Birds Level Editor?
 
1 Attachment(s)
Level editor:

Ok, seems we are getting somewhere, however I seem to be too lame to compile the luadec51 with modified lua-5.1 (damn, why those people can't add Makefile into the dist?)

Reason why I was not able to decompile the lua script first time, was because Rovio uses different version of lua that has default number type set to float instead of double. I was able to get over that and I attached the dissasembly of Level1.lua (unfortunately chunkspy lacks the ability to generate original structure of source code)

If someone can help push it to even more readable form, inform me.

ewan 2010-01-19 18:56

Re: Angry Birds Level editor
 
Quote:

Originally Posted by Miika (Post 479404)
What on earth makes you think that? ;)
Yes, more content is coming soon. We'll just have to hope Nokia gets Ovi Store fixed so we can actually distribute the pack to customers also...

Have you considered selling it via another route? You don't have to go via Ovi.

Bec 2010-01-19 19:35

Re: [Maemo 5] Angry Birds Level Editor?
 
Yes but having more apps concentrated in one place is nicer than googling for developers and their apps on the net.

forcer 2010-01-19 20:28

Re: [Maemo 5] Angry Birds Level Editor?
 
2 Attachment(s)
Success! I have managed to actualy EDIT the level file, and it works like charm..

I have attached pack1 -> level1.lua (no changes were made)
just edit it with your favourite text editor and copy it to
DONT FORGET TO MAKE A BACKUP, you're actualy overwriting existing Level1.lua file!!!
Code:

/home/opt/rovio/angrybirds/data/levels/pack1/
You don't have to compile it back as lua interpreter does not care if it's compiled or not.

EDIT: I have updated the level file so it's more readable, now it's time for implementing editor... keep fingers crossed!

EDIT: uploaded screenshot of some basic changes to Level1

Bec 2010-01-19 22:19

Re: [Maemo 5] Angry Birds Level Editor?
 
This will be EPIC!

no mercy 2010-01-19 22:22

Re: [Maemo 5] Angry Birds Level Editor?
 
gogogo ;) i would like to have a editor asap ;)

they game would grow so fast if there is an editor ;)

UQs 2010-01-19 22:27

Re: [Maemo 5] Angry Birds Level Editor?
 
Nice going forcer! This will surely lead to some interesting levels.

ewan 2010-01-19 22:49

Re: [Maemo 5] Angry Birds Level Editor?
 
Quote:

Originally Posted by Bec (Post 482604)
Yes but having more apps concentrated in one place is nicer than googling for developers and their apps on the net.

Oh, quite. But at the moment we seem to have the level pack in a grand total of no places at all, and that's worse.

I was all ready to fork over the cash for the level pack, only to find that I can't, and that's really not good for anyone.

t7g 2010-01-19 22:52

Re: [Maemo 5] Angry Birds Level Editor?
 
I have a question for you people that do have the level pack.. Are there more bird types than just Red/Blue/Yellow? I know forcer knows but he's not online at the moment and I'm poking at the level files. Assumably you could make levels that pit the pigs against the birds if you wanted, which would be interesting-- but if there are other types of birds I'd like to know what colors they are so I can try to add them to the non-extended version.

horus 2010-01-19 22:59

Re: [Maemo 5] Angry Birds Level Editor?
 
Quote:

Originally Posted by t7g (Post 483075)
I have a question for you people that do have the level pack.. Are there more bird types than just Red/Blue/Yellow? I know forcer knows but he's not online at the moment and I'm poking at the level files. Assumably you could make levels that pit the pigs against the birds if you wanted, which would be interesting-- but if there are other types of birds I'd like to know what colors they are so I can try to add them to the non-extended version.

Yes there is a bomb "exploding" bird, and also one that drops eggs

t7g 2010-01-20 02:08

Re: [Maemo 5] Angry Birds Level Editor?
 
I noticed while picking through the datafiles that a "green" bird is mentioned. Anyone have any idea what that is about?

Miika 2010-01-20 06:59

Re: Angry Birds Level editor
 
Quote:

Originally Posted by ewan (Post 482533)
Have you considered selling it via another route? You don't have to go via Ovi.

Yes in theory that would be possible. However, since we don't have a pre-existing store already it would be near impossible to come up with one from scratch in this kind of time frame. And some kind of an adhoc store like paypaling the money and sending the pkg back in email would just be a way too big of an hassle.

forcer 2010-01-20 22:37

Re: [Maemo 5] Angry Birds Level Editor?
 
1 Attachment(s)
Ok, I have created level decompiler for all of you..
use input file as original level file, output will be saved in same directory where original file is.

you need to run lua.exe decompile_levels.lua path/to/level/file.lua

For people not using windows: you need to download lua-5.1.4 source codes and overwrite src/luaconf.h with file attached in archive, then just build it with "make linux".
you should then have usable lua for decompiling level files.

Warning: new version of AB does have different level files, old level files seem to crash new version, please run decompiler for new levels before editing them.

Bec 2010-01-21 08:29

Re: [Maemo 5] Angry Birds Level Editor?
 
Could you make it maemo friendly as well?

That would be awesome :D

cgarvie 2010-01-21 19:40

Re: [Maemo 5] Angry Birds Level Editor?
 
Quote:

Originally Posted by forcer (Post 485434)
Ok, I have created level decompiler for all of you..
use input file as original level file, output will be saved in same directory where original file is.

you need to run lua.exe decompile_levels.lua path/to/level/file.lua

For people not using windows: you need to download lua-5.1.4 source codes and overwrite src/luaconf.h with file attached in archive, then just build it with "make linux".
you should then have usable lua for decompiling level files.

Is it just me being stupid but are the levels in the pack1 directory, not labeled 1-21

i noticed a 39 and 53 and when i edited l13 it turned out to be l12, which meant it didnt make much sence at first

t7g 2010-01-21 21:08

Re: [Maemo 5] Angry Birds Level Editor?
 
I believe for the n900 version they switched up the level orders a bit?

I haven't seen the iphone's gamelogic.lua but they are very specifically ordered that way in the n900's gamelogic.lua, in fact, it skips more numbers as it goes up. There's only 62-63 levels or so but the last listed level is 81, whereas 89 is listed before it :p

Perhaps Rovio made 100 levels and just selected the best 63 for the game and saved the other ones for later? you'd have to ask our friend from there is that was the case.

As to it being "maemo friendly", once they're decompiled you never have to decompile them ever again so, just do it on your computer. You don't need to compile them to distribute them, the game's lua library doesn't care if it's in bytecode or source code.

You also might be surprised to find that the graphics for the game are all intact, so, you can use the two bird types not given in the demo game in your custom created levels. (run strings on the .pvr files for example for help)

And I suppose since noone else but forcer and I have been using ChunkSpy, you may find this array of levels from gamelogic.lua to be of use to you. (Though I'm not sure if it's in the right order -- EDIT; It pretty much looks like it is from the levels included in pack1/)

006768 41C00000 [004] loadk 1 3 ; "Level1"
00676C 81000100 [005] loadk 2 4 ; "Level57"
006770 C1400100 [006] loadk 3 5 ; "Level53"
006774 01810100 [007] loadk 4 6 ; "Level3"
006778 41C10100 [008] loadk 5 7 ; "Level6"
00677C 81010200 [009] loadk 6 8 ; "Level2"
006780 C1410200 [010] loadk 7 9 ; "Level4"
006784 01820200 [011] loadk 8 10 ; "Level5"
006788 41C20200 [012] loadk 9 11 ; "Level7"
00678C 81020300 [013] loadk 10 12 ; "Level8"
006790 C1420300 [014] loadk 11 13 ; "Level9"
006794 01830300 [015] loadk 12 14 ; "Level13"
006798 41C30300 [016] loadk 13 15 ; "Level10"
00679C 81030400 [017] loadk 14 16 ; "Level39"
0067A0 C1430400 [018] loadk 15 17 ; "Level12"
0067A4 01840400 [019] loadk 16 18 ; "Level15"
0067A8 41C40400 [020] loadk 17 19 ; "Level17"
0067AC 81040500 [021] loadk 18 20 ; "Level14"
0067B0 C1440500 [022] loadk 19 21 ; "Level16"
0067B4 01850500 [023] loadk 20 22 ; "Level23"
0067B8 41C50500 [024] loadk 21 23 ; "Level44"
0067BC 81050600 [025] loadk 22 24 ; "Level52"
0067C0 C1450600 [026] loadk 23 25 ; "Level34"
0067C4 01860600 [027] loadk 24 26 ; "Level42"
0067C8 41C60600 [028] loadk 25 27 ; "Level24"
0067CC 81060700 [029] loadk 26 28 ; "Level88"
0067D0 C1460700 [030] loadk 27 29 ; "Level36"
0067D4 01870700 [031] loadk 28 30 ; "Level31"
0067D8 41C70700 [032] loadk 29 31 ; "Level21"
0067DC 81070800 [033] loadk 30 32 ; "Level41"
0067E0 C1470800 [034] loadk 31 33 ; "Level76"
0067E4 01880800 [035] loadk 32 34 ; "Level38"
0067E8 41C80800 [036] loadk 33 35 ; "Level35"
0067EC 81080900 [037] loadk 34 36 ; "Level20"
0067F0 C1480900 [038] loadk 35 37 ; "Level26"
0067F4 01890900 [039] loadk 36 38 ; "Level66"
0067F8 41C90900 [040] loadk 37 39 ; "Level85"
0067FC 81090A00 [041] loadk 38 40 ; "Level27"
006800 C1490A00 [042] loadk 39 41 ; "Level32"
006804 018A0A00 [043] loadk 40 42 ; "Level72"
006808 41CA0A00 [044] loadk 41 43 ; "Level90"
00680C 810A0B00 [045] loadk 42 44 ; "Level96"
006810 C14A0B00 [046] loadk 43 45 ; "Level43"
006814 018B0B00 [047] loadk 44 46 ; "Level77"
006818 41CB0B00 [048] loadk 45 47 ; "Level28"
00681C 810B0C00 [049] loadk 46 48 ; "Level29"
006820 C14B0C00 [050] loadk 47 49 ; "Level87"
006824 018C0C00 [051] loadk 48 50 ; "Level18"
006828 41CC0C00 [052] loadk 49 51 ; "Level91"
00682C 810C0D00 [053] loadk 50 52 ; "Level49"
006830 22400019 [054] setlist 0 50 1 ; index 1 to 50
006834 41400D00 [055] loadk 1 53 ; "Level45"
006838 81800D00 [056] loadk 2 54 ; "Level75"
00683C C1C00D00 [057] loadk 3 55 ; "Level51"
006840 01010E00 [058] loadk 4 56 ; "Level30"
006844 41410E00 [059] loadk 5 57 ; "Level79"
006848 81810E00 [060] loadk 6 58 ; "Level40"
00684C C1C10E00 [061] loadk 7 59 ; "Level59"
006850 01020F00 [062] loadk 8 60 ; "Level58"
006854 41420F00 [063] loadk 9 61 ; "Level95"
006858 81820F00 [064] loadk 10 62 ; "Level82"
00685C C1C20F00 [065] loadk 11 63 ; "Level22"
006860 01031000 [066] loadk 12 64 ; "Level89"
006864 41431000 [067] loadk 13 65 ; "Level81"

Also, I suppose I should mention that if you don't want to destroy your Angrybirds original levels you can simply copy your Level1.lua as every single one of those file names and then add them to another directory called pack2 or pack3. (hell if I know which) They'll appear in the menu as if they were the expansion levels and you won't have to trash your original ones, just make sure to edit whichever level files correlate with the second and third stages.


All times are GMT. The time now is 09:56.

vBulletin® Version 3.8.8