Useful LunaLua Documentation Quick Links

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9877
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Useful LunaLua Documentation Quick Links

Postby Emral » Tue May 10, 2016 1:13 pm

fireflower30 wrote:
Enjl wrote:
fireflower30 wrote:Most of the Links in it are Red, so I had to search up a lua on the wiki, I found one, but now I keep on getting this error:
The lines are described to the right of the red links. They don't need their own individual page.
The error you're getting means that lua is unable to find your specified custom music file. Can I see your code?
Here:

Code: Select all

-- Loads a music file into music stream
Audio.MusicOpen("level.mp3")
-- Starts playback of current music in stream
Audio.MusicPlay()

Audio.SeizeStream(0)
I suggest you read through the basic lunalua tutorials. Few things:
1) You wanna wrap that into the onStart function.
2) No need to seize the stream
3) Make absolutely sure the audio file level.mp3 is in the level custom graphics folder. (1 folder below the level file itself)

PersonNamedUser
Reznor
Reznor
Posts: 2882
Joined: Fri Feb 27, 2015 8:07 pm

Re: Useful LunaLua Documentation Quick Links

Postby PersonNamedUser » Mon Feb 13, 2017 2:53 am

Can the unsused NPC ais be used to give an npc a custom ai?

PixelPest
Link
Link
Posts: 7111
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Contact:

Re: Useful LunaLua Documentation Quick Links

Postby PixelPest » Mon Feb 13, 2017 7:19 am

MosaicMario wrote:Can the unsused NPC ais be used to give an npc a custom ai?
I don't think so

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: Useful LunaLua Documentation Quick Links

Postby Hoeloe » Mon Feb 13, 2017 9:08 am

PixelPest wrote:
MosaicMario wrote:Can the unsused NPC ais be used to give an npc a custom ai?
I don't think so
You can use it to store data, but you're better off using pnpc's data table.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari