View Single Post
  #69  
01-07-2011, 10:55 PM
MojoMan220's Avatar
MojoMan220
Outlaw Mortar
 
: Jan 2002
: Jesusland
: 1,770
Rep Power: 25
MojoMan220  (235)MojoMan220  (235)MojoMan220  (235)

Okay, so I located the problem that's making the levels crash after editing them, but I'm not sure how to fix it... maybe you folks can play around with this.

Every level that is opened in NifScope opens with the same two improperly labeled fields in the block list. This is why we see the little white error box pop up when levels are opened and saved. In the block list, every level begins with a block labeled 'SCENE_ROOT' and ends with a block labeled 'COLLISION_ROOT' - this is where the problem exists.

(I'm going to use Raisin's Cave as an example below for clarity because the numbers are different from level to level, but it's always the same basic issue.)

With Raisin's Cave opened, select SCENE_ROOT (block 1 on the block list) and go to the 'Block Details.' If you expand the field labeled 'Children' you'll see three values - one listed as '217 (Invalid)' and one linking properly to '215 (*COLLISION_ROOT).' Raisin's Cave has 215 blocks in the block list, so where is Block 217?

Likewise, if we look at the details of 'COLISSION_ROOT' (block 215 on the block list), there is a field labeled 'Extra Data' with a value of '216 (Invalid).' As we know, there is no block 216. It would appear that every level is missing two blocks at the end of the block list, or they are simply improperly labeled.

I've tried erasing the two invalid fields, which allows me to save edited levels without an error message and prevents the levels from crashing in-game, but unfortunately the characters just fall through the map and die when the level begins... AKA, no environmental collision!

So I guess we have to resolve this issue if we ever want to create our own levels that are playable in-game.
Reply With Quote