Hey, we have forums!

Author Topic: Hi, I have questions.  (Read 58886 times)

0 Members and 1 Guest are viewing this topic.

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: Hi, I have questions.
« Reply #45 on: January 29, 2009, 04:37:37 am »
Haha!  I love Naija's floating head; it's so absurd.

Anyway, I think I know what's going on there.  If you're following the tutorial, you probably copied the contents of "aquariatemplate/scripts/00_starter.lua" into "mymod/scripts/pepper.lua".  If so, the top of your pepper.lua file should look like this:
Code: [Select]
dofile("scripts/entities/entityinclude.lua")

function init(me)
setupEntity(me)
entity_setEntityType(me, ET_ENEMY)
entity_initSkeletal(me, "00_starter")
entity_setState(me, STATE_IDLE)
end
To get the pepper to show up properly, change the line
entity_initSkeletal(me, "00_starter")
to
entity_initSkeletal(me, "pepper")
That tells Aquaria to use "mymod/animations/pepper.xml" for the pepper's animation.  (If the animation for your pepper is in a different file, change it to whatever that file's name is, minus the ".xml" part.)  Right now, it's using  "00_starter.xml", which just shows Naija's floating head. :D

Offline Maria

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Hi, I have questions.
« Reply #46 on: January 29, 2009, 06:38:08 am »
Ooooh!
I get it now!
Thank you so much!
I hope I wasn't much of a bother bugging people of simple things.  :-X
I have Skype and Steam.

Skype:
Maria_b21 (I have chats and voice off, if you want to talk to me just let me know that you are from Aquaria fan or Admin)

Steam: Onwa06

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: Hi, I have questions.
« Reply #47 on: January 29, 2009, 05:27:23 pm »
Nah, keep asking!  Sometimes I also learn stuff while trying to figure out the answer.

Offline Maria

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Hi, I have questions.
« Reply #48 on: February 22, 2009, 08:16:49 am »
Okay, I am back!
And this time I am trying to add music.
But I am having trouble how.
How do you add music to a map?

I promise, I tried and tried.
But can't do it.

I made the sound .ogg and added it to Audio.
I don't know, I think I missed a step. I have search at the site, but I don't get it.
And having trouble finding it here. If you know where it is, please show me.

Thank you so much!
I have Skype and Steam.

Skype:
Maria_b21 (I have chats and voice off, if you want to talk to me just let me know that you are from Aquaria fan or Admin)

Steam: Onwa06

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: Hi, I have questions.
« Reply #49 on: February 22, 2009, 07:11:50 pm »
When adding stuff into a game it's a very wise thing to look at the debug file, it's not that hard to figure out.
the file is called debug.log, after that, I'd search for the name of the song that you put in the xml file of the map.

So, check debug.log for your song name and check what's wrong with it, propably just a directory mistake, or that you added .ogg to the name you entered in the xml file, I don't know, I personally can't help you much further without more information.
God sees and knows everything, but at least he won't gossip about it.

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: Hi, I have questions.
« Reply #50 on: February 23, 2009, 12:36:06 am »
Make sure your OGG is indeed in your mod's "audio" folder.  In my examples, I'll assume it's "mymod/audio/filename.ogg".  To set it as a level's default music, there should be a "music" entry in the first line of the map's XML file.  Something along these lines:
   <Level tileset="main" music="filename" sceneColor="1 1 1" />
You can also use playMusic("filename") in a script to play it.

If it's not in the right spot, you'll see this toward the end of your debug.log:
   playMusic: filename
   FMODEX error: 23: Unknown error code
   playmusic end

If you can't find that error, it might just be that the first part (or all) of the music is too quiet to hear above other sound effects.

Also, just to check, it is encoded as an Ogg Vorbis file, right?  Some programs might have a "save as compressed file" option and not tell you that they're really saving it as an mp3 even though you called it filename.ogg.  Probably not, but I thought it would be good to mention just in case.

Good luck!  Can't wait to see what you make!

Offline Maria

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Hi, I have questions.
« Reply #51 on: February 23, 2009, 04:47:39 am »
Thank you!!!

You were right, the sound was to low. :P
Hehe, silly me.

I have another question.
Is there a way that I can trigger the sound, like when she enters a room.
But with out going to another map.

Um... Do you understand what I am saying?  :-X
I have Skype and Steam.

Skype:
Maria_b21 (I have chats and voice off, if you want to talk to me just let me know that you are from Aquaria fan or Admin)

Steam: Onwa06

Offline Particlese

  • Bit Bit
  • ****
  • Posts: 85
    • View Profile
Re: Hi, I have questions.
« Reply #52 on: February 23, 2009, 06:19:40 am »
Yeah, I was stumped for a while with custom music because the first 10 or so seconds of the song I was using were quite quiet compared to the rest.

If it's music you want to trigger, make a node that overlaps the area you want to have the music (such as a boss's lair), and name it (for example) "musictrigger".  If you need a circular area, hit "y" when the node is highlighted.  Then make a text file in your mod's script directory, rename it "node_musictrigger.lua", and put the following inside it, with appropriate tweaks:
Code: [Select]
function init(me)
inside = false --Keep track of Naija's entrance/exit so music changes aren't made every frame.
n = getNaija()
end

function update(me, dt)
if not inside then
if node_isEntityIn(me, n) then --Naija just entered, so start the music.
inside = true
playMusic("miniboss")
end
else
if not node_isEntityIn(me, n) then --Naija just left, so return to the level's normal music.
inside = false
updateMusic()
--fadeOutMusic(6) --fade to silence instead
end
end
end
That starts the miniboss music whenever Naija enters the node's area and goes back to the normal music when she leaves it.

If it's a sound effect you want to trigger, I can tell you that there are several ways to do it, but I'm not that familiar with them yet and I need to go to bed now!  ;)
« Last Edit: February 23, 2009, 06:31:45 am by Particlese »

Offline Maria

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Hi, I have questions.
« Reply #53 on: February 24, 2009, 04:28:03 am »
Hi, thank you!

But now, I am confused on something.
I have made a picture, but the background is Black.

I have made sure many times that the background is transparent.

But it stills shows black, has any one happen to have this too?
I have Skype and Steam.

Skype:
Maria_b21 (I have chats and voice off, if you want to talk to me just let me know that you are from Aquaria fan or Admin)

Steam: Onwa06

Offline Alphasoldier

  • Dream Bit
  • **********
  • Posts: 1810
  • Zero Suit!
    • View Profile
Re: Hi, I have questions.
« Reply #54 on: February 24, 2009, 10:11:04 am »
If I were you, I'd open up an existing file (picture) and work from there, the picture usually has some options on that are hard to find.
I presume you're using photoshop?
God sees and knows everything, but at least he won't gossip about it.

Offline Maria

  • Bit
  • ***
  • Posts: 28
    • View Profile
Re: Hi, I have questions.
« Reply #55 on: February 25, 2009, 01:24:36 am »
If I were you, I'd open up an existing file (picture) and work from there, the picture usually has some options on that are hard to find.
I presume you're using photoshop?

I don't have photoshop. :(

First I use freehand, I make sure it's not blending or have soft edges so I don't get white marks..
Then I copy the image and paste it in Paint.Net program.
From there, I use the magic wand, and delete.

I figured it out just now what was wrong with it, but thank you for responding!
I have Skype and Steam.

Skype:
Maria_b21 (I have chats and voice off, if you want to talk to me just let me know that you are from Aquaria fan or Admin)

Steam: Onwa06