Bit Blot Forum

Aquaria => Modding => Topic started by: r_b_bergstrom on June 08, 2010, 10:06:38 pm

Title: Respawning fish are turning invisible?
Post by: r_b_bergstrom on June 08, 2010, 10:06:38 pm
I'm working on my first mod, and I've hit a minor but weird issue.

I've got a few schools of fish on some of the levels. They spawn normally when I start a level, but I've found that if I eat them in beast form, when they respawn they come back invisible.  At first I thought maybe beast form prevented them from respawning if I ate them, but then, while fighting with a monster, I lunged through the area where a school of fish had been, and it triggered a bunch of the whispy green lights that flash when you eat a fish (and my health bar ramped up like I'd just charged through half a dozen edible fish, even though there was nothing visible). So I went to a safer map and tested it. Same thing happens anywhere I eat fish in my mod.

My background graphics are in the right layer, so it's not like they're just hidden behind it. All I can think of is that I'm missing either some line of code, or some whole script involving fishes that I should have copied into my mod. I'm not aware of any such script that's needed, though.

Here's what I am using to call up the fish in the first place, in the map.xml files:

<SchoolFish x="4376" y="6058" id="1" num="30" range="400" maxSpeed="80" layer="8" gfx="Fish-0011" />

There's a few variations in that line of code from map to map, but they're all basically set up like that, and that line in particular generates a school that's in any easy place for me to locate and eat.
Title: Re: Respawning fish are turning invisible?
Post by: Lady-Succubus on June 09, 2010, 02:56:36 am
I think that happens at times in the real game too. :3
Title: Re: Respawning fish are turning invisible?
Post by: r_b_bergstrom on June 09, 2010, 06:06:47 am
Really? I'd never noticed that... but I spent a lot more time in energy form than in beast form, so if it's part and parcel with being pink and fuzzy, I might not have noticed.
Title: Re: Respawning fish are turning invisible?
Post by: Lady-Succubus on June 09, 2010, 06:10:37 am
I found myself boosting through invisible fishies in the sun temple veil. I was spooked. :3
Title: Re: Respawning fish are turning invisible?
Post by: aerozol on June 09, 2010, 11:47:45 pm
I think that happens at times in the real game too. :3
Yeah, I spent ages following 'ghost' fishes, thinking they'd unlock something or do something cool. I guess it's just a bug : P
Title: Re: Respawning fish are turning invisible?
Post by: Sindhi on June 10, 2010, 02:56:23 am
Yogoda told me today he's found a ton of bugs in the source code, and it's a good thing he's not the only one going through it, although they are not in sync about the bugs; don't know enough to understand...but since it's open-source now we should have fewer problems like this when we all upgrade to a newer Aquaria version.
Title: Re: Respawning fish are turning invisible?
Post by: Yogoda on June 11, 2010, 08:54:05 am
No, I wasn't speaking about bugs, but errors when I try to compile ;)
Title: Re: Respawning fish are turning invisible?
Post by: Sindhi on June 11, 2010, 06:06:01 pm
Oops. Sorry. You're the MAN. Thank you for all you do, for all of us.
Title: Re: Respawning fish are turning invisible?
Post by: Lady-Succubus on June 11, 2010, 08:14:39 pm
Thank you for helping us help you help us all? :3
Title: Re: Respawning fish are turning invisible?
Post by: Inyssius on June 11, 2010, 10:51:52 pm
No, thank you!


(... for thanking him for helping us help him help us all.)