Dec 21, 2010 at 4:23 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
& is -10
/ is -1
 
Dec 21, 2010 at 5:46 PM
graters gonna grate
"Heavy swords for sale. Suitable for most RPG Protagonists. Apply now!"
Join Date: Jul 2, 2008
Location: &
Posts: 1886
Age: 31
http://www.asciitable.com

Look for 0-9 on the table (they're at dec 48-57). Now : comes after 9, so : means 10. Next is ; which is 11 and so on. Similarly, / comes before 0, so / is -1. Before / is . which would be -2, and before that is - which would be -3, etc.
 
Dec 21, 2010 at 10:08 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3054
Dec 23, 2010 at 1:42 AM
Hey.
"In Soviet Russia, graves keep YOU!"
Join Date: Oct 20, 2010
Location: Within the hearts of all
Posts: 691
Age: 104
Alright, a question, and a pretty simple one at that. I'm trying to use NPC 254, which is the helicopter, and make the propellers spin. This is a big problem for one reason: They don't show up. If someone knows why, that'd be great, but I've no idea, and I've looked in the original Cave Story, too.
 
Dec 23, 2010 at 2:54 AM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
<ANP0299:0020:0002

Where 0299 is the helicopter... That's the only thing I can see. If that doesn't work, well I don't know. I guess you'd have to look at the ASM.
 
Dec 23, 2010 at 3:01 AM
graters gonna grate
"Heavy swords for sale. Suitable for most RPG Protagonists. Apply now!"
Join Date: Jul 2, 2008
Location: &
Posts: 1886
Age: 31
Maybe double check that you're using the correct spritesheet? (NpcHeri.pbm, IIRC)
 
Dec 23, 2010 at 3:04 AM
Hey.
"In Soviet Russia, graves keep YOU!"
Join Date: Oct 20, 2010
Location: Within the hearts of all
Posts: 691
Age: 104
Definitely both of those things are fine. I think it has something to do with what I did with the propellers, I'm gonna check.

Edit (I REALLY HOPE SOMEONE FINDS THIS): I've found a possible culprit.

Look here:
diph.php
 
Dec 23, 2010 at 3:26 AM
I don't anymore.
"I'm sorry Mario, but your princess is in another castle."
Join Date: Aug 9, 2010
Location: Greener Pastures
Posts: 1190
Age: 30
Are they moving in direction 0002? The direction tends to be the most subtle issue in ANP commands.

EDIT: You're Using method 20 of animation, it's actuall method 40, although I may just be seeing bad picture quality.
 
Dec 23, 2010 at 3:31 AM
Hey.
"In Soviet Russia, graves keep YOU!"
Join Date: Oct 20, 2010
Location: Within the hearts of all
Posts: 691
Age: 104
Heh, well as you can see in the picture....

Edit: Method 20? I don't understand. Do you mean the part that says 0020? Also, it appears to be the best picture quality, I dunno about you, though.

Edit again: That had nothing to do with it....
 
Dec 23, 2010 at 8:01 AM
Senior Member
"This is the greatest handgun ever made! You have to ask yourself, do I feel lucky?"
Join Date: Oct 30, 2010
Location: New Zealand
Posts: 112
Age: 28
Don't you have to add an event "#0299", and then enter 299 in that box next to "Event" when you click on the entity? Just a suggestion, I'm afraid...

Edit: To put in simpler terms, type in #0299 under event #0100. Save and close. Change to "Edit Entities" mode and click on the helicopter entity. Type "299" in the Event box above. Hope this works. :/
 
Dec 23, 2010 at 8:41 AM
Lvl 1
Forum Moderator
"Life begins and ends with Nu."
Join Date: May 28, 2008
Location: PMMM MMO
Posts: 3713
Age: 32
Shadow Major said:
Don't you have to add an event "#0299", and then enter 299 in that box next to "Event" when you click on the entity? Just a suggestion, I'm afraid...

Edit: To put in simpler terms, type in #0299 under event #0100. Save and close. Change to "Edit Entities" mode and click on the helicopter entity. Type "299" in the Event box above. Hope this works. :/

I'm pretty sure that you don't have to have an empty event in order to get <ANP's and <CNP's to work. Just labeling the entity with an event (even if the event doesn't exist in the script) should work fine.
 
Dec 23, 2010 at 3:39 PM
Hey.
"In Soviet Russia, graves keep YOU!"
Join Date: Oct 20, 2010
Location: Within the hearts of all
Posts: 691
Age: 104
Well, the animations themselves work, as in, the one where it's opened works fine. (Which is animation 20, by the way) It's just that the propellers won't show up.
 
Dec 23, 2010 at 4:00 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
According to the ASM, the propellers themselves increment the frame num if the parent entity has (or has had) an animation of 20 or greater, and the parent entity (heli) generates the propellers automatically when it initializes (state == 0)

So, I dunno man, it should work with animation 20. Try <WAI0007 before <ANP. If you say the props straight-up don't appear it's possible they aren't even being created.
 
Dec 23, 2010 at 4:48 PM
Hey.
"In Soviet Russia, graves keep YOU!"
Join Date: Oct 20, 2010
Location: Within the hearts of all
Posts: 691
Age: 104
Noxid, you're magical! The WAI0007 actually worked! It's really weird how the helicopter works, and that fixed it perfectly, so thanks!
 
Dec 23, 2010 at 6:27 PM
Senior Member
"Fly, Fly, Fly!"
Join Date: Oct 29, 2010
Location: IN HELL
Posts: 145
Is the NPC table editor supposed to look like this?
npctable.png


Just doesn't look right to me.
 
Dec 23, 2010 at 6:50 PM
Creating A Legacy...
Bobomb says: "I need a hug!"
Join Date: Sep 6, 2009
Location: The Balcony
Posts: 852
Age: 29
I think soo. Best way is to edit the npc table manually
 
Dec 23, 2010 at 6:53 PM
Senior Member
"Fly, Fly, Fly!"
Join Date: Oct 29, 2010
Location: IN HELL
Posts: 145
JetHawk95 said:
Best way is to edit the npc table manually

wat

How do I do that?
 
Dec 23, 2010 at 7:07 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
I have no idea what Jet is talking about but yes, that's the npc table editor. You can change rects, initial flags, HP, damage, XP, tileset, hurt sound, death sound, and death gfx. That's all the external NPC data there is.
 
Dec 23, 2010 at 7:19 PM
Senior Member
"Fly, Fly, Fly!"
Join Date: Oct 29, 2010
Location: IN HELL
Posts: 145
Noxid said:
I have no idea what Jet is talking about but yes, that's the npc table editor. You can change rects, initial flags, HP, damage, XP, tileset, hurt sound, death sound, and death gfx. That's all the external NPC data there is.

Shouldn't there be sprites in that little black box?

And... what's a rect? And how do I change sprites?
 
Dec 23, 2010 at 7:23 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
You change sprites by editing the bitmaps in the data folder; it doesn't show the sprites because the data for where the sprite image is located is elsewhere. Rect means rectangle; the hitrect is well, the hitrect for the entity. Display rect is I don't know what but so just don't worry about it.
 
Top