Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » JCS & Scripting

enemies

Blackraptor

JCF Member

Joined: Sep 2002

Posts: 3,702

Blackraptor is an asset to this forumBlackraptor is an asset to this forum

Sep 14, 2002, 04:21 PM
Blackraptor is offline
Reply With Quote
Question enemies

Well, whenever I make a level and add to many enemies, I get an access viloation Jazz Jackrabbit ran out of internal animational frames, well, I counted all my enemies and had about 60 or 70.
Then I decided to play overlords RHG again and noticed there were over 100 enemies and it still worked. I dont get it, how do you get rid of that access violation so I could flood my levels with enemies.
Newspaz

JCF Member

Joined: Jan 2001

Posts: 2,678

Newspaz has disabled reputation

Sep 14, 2002, 04:24 PM
Newspaz is offline
Reply With Quote
I think it's not just how many you place but I think it is how you place them. You might get less action violations if you'll spread your enemies all over your level then when you put them all in a small area.

Just a thought though..
Iam Canadian

JCF Member

Joined: Aug 2002

Posts: 1,575

Iam Canadian is doing well so far

Sep 14, 2002, 05:44 PM
Iam Canadian is offline
Reply With Quote
I think it's the size of a level. If the level is smaller in size, it'll support fewer enemies. Bigger ones, I believe, support more.
__________________
"If there's anything more important than my ego, I want it caught and shot now."
-Zaphod Beeblebrox
Trafton AT

JCF Member

Joined: Mar 2002

Posts: 1,712

Trafton AT is doing well so far

Sep 14, 2002, 06:21 PM
Trafton AT is offline
Reply With Quote
WOW! I'll add another "I think..."

OK, in my experience, if the game uses up all of it's animations, it will start taking away from character animations. This is hardly noticable at first, but then you'll notice that some animations (like Spaz's sidekick) start disappearing in some areas. This, however, can get dangerous because of the way Jazz 2 handles animation overflows. If Jazz 2 runs out of animations completely, it crashes with an access violation. If you move into an area with new animations too quickly for the game to take away from the character animation, the game will crash. This means that certain attacks (Spaz's sidekick, and to a lesser extent Jazz's uppercut) that move the character into areas with more animations without first taking away from the older ones will cause the game to crash. In your case, however, it crashes when it starts. This is because the second the level starts, the game has to render so many animations, it instantly overflows (animations still go on even when they aren't onscreen) and the game crashes. Possible solutions include removing enemies, of course. Another option is to make them more similar. 5 enemies of the same type take less animation power than 5 of different types. Of course, 5 enemies of the same type will still take up more animation power than 1 enemy. Making the level bigger could help, but you'd also have to space out the enemies more, just as Newspaz said. The amount of enemies you need to have this problem is very high, and I dobut it would hurt the level way too much by removing some.

Good luck and sorry for the long post.
Blackraptor

JCF Member

Joined: Sep 2002

Posts: 3,702

Blackraptor is an asset to this forumBlackraptor is an asset to this forum

Sep 14, 2002, 06:25 PM
Blackraptor is offline
Reply With Quote
Thanks, Im pretty sure thats what overlord did. (There were 12 floating suckers in one place and 30 float lizards) but Im not so soure that still solves it. I'd be grateful if someone would test it for me. (A.k.a Creating a medium level with lots of different enemies and a medium sized level woth lots of same enemies.
__________________
Fear cuts deeper than swords
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 07:10 AM.