Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map Samples issues #112

Closed
perroboc opened this issue Dec 18, 2012 · 9 comments
Closed

Map Samples issues #112

perroboc opened this issue Dec 18, 2012 · 9 comments
Labels

Comments

@perroboc
Copy link

I'm trying to learn how to use Tiled maps (tmx) with Moai, but I'm unable to make the samples run succesfully.

For example, I get this error:
.\rapanui-samples/maps/rn-scrolling-physics-map.lua:38: attempt to index global 'aTileset' (a nil value)

I'm using Moai 1.3 and Master Branch Rapanui.

@eljeko
Copy link
Collaborator

eljeko commented Dec 18, 2012

Hi,

Are you testing with a plain version of map samples?

thank you,
Stefano

@perroboc
Copy link
Author

yeah, as it is from the maps samples folder (rpgmap.tmx). Plain XML file.

<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" width="10" height="15" tilewidth="40" tileheight="40">
 <tileset firstgid="1" name="rpgtileset" tilewidth="40" tileheight="40">
  <image source="rpgtileset.png" width="480" height="280"/>
 </tileset>
 <layer name="ground" width="10" height="15">
  <data>
   <tile gid="6"/>
   <tile gid="6"/>
   <tile gid="13"/>
   <tile gid="14"/>
   <tile gid="14"/>
[...]

Al I try to do is run the basic map sample, the same way I run every other sample successfully.
require("rapanui-samples/maps/rn-basic-map")

I use win7 x64, currently using ZeroBrane.

@eljeko
Copy link
Collaborator

eljeko commented Dec 18, 2012

Hi,

at the moment rapanui works with moai v1.2 build 35.

I tested with this version of moai on osx on a plain rapanui git checkout and it works.

hth,
Stefano

@perroboc
Copy link
Author

I'll get that version then, thanks!

@phamquyhai
Copy link

@AlvaroMunoz send for me v1.2 if you found

Thank you !

@perroboc
Copy link
Author

I searched for it last night, and couldn't find it :( MOAI doesn't seem to
keep an archive.

On 19-12-2012, at 1:59, KaKaVip notifications@github.com wrote:

@AlvaroMunoz https://github.com/alvaromunoz send for me v1.2 if you found

Thank you !


Reply to this email directly or view it on
GitHubhttps://github.com//issues/112#issuecomment-11517615.

@eljeko
Copy link
Collaborator

eljeko commented Dec 19, 2012

Hi,

check this out:

https://github.com/moai/moai-dev/tree/Version-1.2-Build-35

hth,
Stefano

@perroboc
Copy link
Author

Woooot! Thank you!! :D

Sent from my iPhone

On 19-12-2012, at 8:39, Stefano Linguerri notifications@github.com wrote:

Hi,

check this out:

https://github.com/moai/moai-dev/tree/Version-1.2-Build-35

hth,
Stefano


Reply to this email directly or view it on
GitHubhttps://github.com//issues/112#issuecomment-11527156.

@phamquyhai
Copy link

Thank @AlvaroMunoz , @eljeko !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants