flixel-addons installed but I cant use the libraries

779 views
Skip to first unread message

Michael van Diest

unread,
Jan 31, 2014, 5:07:53 AM1/31/14
to haxef...@googlegroups.com


Hello, I'm new to haxeflixel and I've tried searching around the web but I can't find anything to solve my problem.

I am following the code on the Demos page to open a Tiled(.tmx) map in my game. but when I try import flixel.addons.editors.tiled.TiledMap; it just gives me the error:
"source/IntroTiled.hx:13: characters 7-46 : Class not found : flixel.addons.editors.tiled.TiledObject"

I went to my command prompt and typed haxelib list and I have flixel-addons: [1.0.1] so I do not understand what the problem is.
please help!

Gama11

unread,
Jan 31, 2014, 5:09:28 AM1/31/14
to haxef...@googlegroups.com
Did you include flixel-addons in your Project.xml?

<haxelib name="flixel-addons" />

Michael van Diest

unread,
Jan 31, 2014, 4:16:57 PM1/31/14
to haxef...@googlegroups.com
ah yes thank you that fixed that problem! but now when I try running the program, I get the error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at flixel.tile::FlxTilemap/loadMap()
    at IntroTiled()
    at PlayState/create()
    at flixel::FlxGame/switchState()
    at flixel::FlxGame/update()
    at flixel::FlxGame/step()
    at flixel::FlxGame/onEnterFrame()


now from that error I get that FlxTileMap cannot read the Tiled(.tmx) file because the layer format is at base64. I change it to CSV layer format but then I get the error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at flixel.addons.editors.tiled::TiledLayer/getByteArrayData()
    at flixel.addons.editors.tiled::TiledLayer/get_tileArray()
    at IntroTiled()
    at PlayState/create()
    at flixel::FlxGame/switchState()
    at flixel::FlxGame/update()
    at flixel::FlxGame/step()
    at flixel::FlxGame/onEnterFrame()

and now Tiled can't read the layers because they are on CSV format. How can I fix this?


--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to a topic in the Google Groups "HaxeFlixel" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/haxeflixel/0CAljINLlzA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to haxeflixel+...@googlegroups.com.
Visit this group at http://groups.google.com/group/haxeflixel.
To view this discussion on the web visit https://groups.google.com/d/msgid/haxeflixel/ab3dc662-ac99-46f1-9968-1d038bc5cbbc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages