Mac OS X Missing LuaXML_lib

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
kxd
Prole
Posts: 1
Joined: Sat Aug 18, 2012 6:41 am

Mac OS X Missing LuaXML_lib

Post by kxd »

Hello all.

I'm here representing my two developer friends who currently have their plate full with coding for the game we're developing.

At the moment, however, we're having a bit of an issue with the cross platform aspect of the engine between Windows and Mac OS X (Currently running Lion, not Mountain Lion)

I receive this message. . .

http://i18.photobucket.com/albums/b103/ ... cture2.png

When trying to open the love file given in this directory.

http://i18.photobucket.com/albums/b103/ ... cture3.png

Unfortunately, I am not a coder. However, I will be happy to relay any of your suggestions to my two friends. Again, they would be here themselves except they're hard at work, and since I'm pushing for the cross platform capability, I'm doing the research on my own to bring it to them with some helpful pointers from the community. Any help you'd be willing to offer would be greatly appreciated.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Mac OS X Missing LuaXML_lib

Post by Roland_Yonaba »

Welcome,

From what I can see, the is an path error in your code.
As Lua says, LuaXML cannot be found inside "libs/LuaXml" folder. Hence the error.
Maybe because the file you're requiring is not actually there, maybe a typo error in the path (which is case sensitive, remember)...
Or...

My bet is, you're attempting to load a *.dll / *.so file. To have it working, these files might be placed near love's dll files (SDL.dll, OpenAL32.dll, DevIL.dll,...) and should be called the very simple way:

Code: Select all

require 'LuaXML_lib'
There's also *A LOT* of alternate solutions in plain lua.
Just take what fits your needs, put the lua library file inside "libs/LuaXml" folder, and call them via require.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Mac OS X Missing LuaXML_lib

Post by bartbes »

I'd suggest against binaries, there is, however a binary loader in love, if you put your so/dll in the base save directory (the save dir without your game on it) it should load. That said, going pure-lua is usually better. (And no-xml is even better! :P)
User avatar
ivan
Party member
Posts: 1924
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Mac OS X Missing LuaXML_lib

Post by ivan »

bartbes wrote:(And no-xml is even better! :P)
What's wrong with XML? :) I store a lot of my game content in XML format - anything from Box2D geometry to the user settings. XML is especially useful for level file formats because it makes your game content independent of your code. It allows you to drastically change your code without having to update any of the levels/content. It's also makes it easier to debug because your game content can easily be dumped to a file in readable form.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Mac OS X Missing LuaXML_lib

Post by Robin »

Why use XML if you have Lua?
Help us help you: attach a .love.
User avatar
ivan
Party member
Posts: 1924
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Mac OS X Missing LuaXML_lib

Post by ivan »

Roland_Yonaba wrote:From what I can see, the is an path error in your code.
Not necessarily. I think "require" looks for files within a list of predefined directories which might be different on different platforms.
Why use XML if you have Lua?
For loading level files? :)
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Mac OS X Missing LuaXML_lib

Post by Nixola »

I think he means:

Code: Select all

local map = {}
map[1] = {x = whatever, y = whatever, other=whatever}
return map
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: Mac OS X Missing LuaXML_lib

Post by Lafolie »

Robin wrote:Why use XML if you have Lua?
So that maybe it can interface with other programs that use XML structures? That said, if you don't intend for this to happen, I see no reason to use XML, it just adds unnecessary substance to files. You can just make your own 'formats' buy using love.filesystem or if you're of the persuasion, Lua io.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
ejmr
Party member
Posts: 302
Joined: Fri Jun 01, 2012 7:45 am
Location: South Carolina, U.S.A.
Contact:

Re: Mac OS X Missing LuaXML_lib

Post by ejmr »

The OP is one of my team-mates, which is why I was hoping his problem with LuaXml on OSX is fixable :)

But as for why we are using XML... For one, like Lafolle says, it makes it possible to interface with other programs that understand XML. For example, our level and enemy definitions are in XML and we can validate them against a DTD or schema to help find errors. Another reason to use XML in our situation is because not everyone on the team is a programmer, but does have experience with HTML, so explaining XML structure is easier than explaining Lua.
ejmr :: Programming and Game-Dev Blog, GitHub
南無妙法蓮華經
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 6 guests