warenhuis / Crash-Bandicoot-2-Modelexport

13 stars 1 forks source link

Errors when exporting scenery #4

Open reiss82 opened 8 years ago

reiss82 commented 8 years ago

Some bits of scenery export fine but some will cause an error after selecting the version, these include:

ERROR in action number 13 of Create Event for object object0:

Error in code at line 26: tri_xA[i/4]=raw_x[ tri_vertex_A[i/4] ];

at position 18: Unknown variable raw_x or array index out of bounds

ERROR in action number 11 of Create Event for object object0:

Error in code at line 23: raw_R[i/4] = colors_R[ colorindex[i/4] ];

at position 20: Unknown variable colors_R or array index out of bounds

warenhuis commented 8 years ago

Let me take a look. Which specific scenery entry have you tried to export?

reiss82 commented 8 years ago

Just pick any Crash 2 level, pick some scenery, 9 out of 10 times it will give me an error

reiss82 commented 8 years ago

I managed to get about 2 working bits of scenery on road to ruin

warenhuis commented 8 years ago

I have no such problems when trying to export the scenery. Are you sure you type in the right number before exporting? The tool asks you to type '2' for Crash 2 and '3' for Crash 3. Could you give a specific piece of scenery (for example, scenery (9__mW) ) where an error occurs?

reiss82 commented 8 years ago

Ok I open CrashEdit v0.10, then open S0000016.NSF. I expand Scenery Entry 24_mW and export each item as item0, item1 all the way to item6. These are exported into a folder called 'crash' in the root of your program. I open SceneryExport, type in 'crash', press enter, then 2, press enter and it gives me this:

ERROR in action number 11 of Create Event for object object0:

Error in code at line 23: raw_R[i/4] = colors_R[ colorindex[i/4] ];

at position 20: Unknown variable colors_R or array index out of bounds

I'm using the american version by the way (SCUS-94154)

reiss82 commented 8 years ago

Just for reference Scenery Entry 2_mW works perfectly http://i.imgur.com/jAhB3zc.png

warenhuis commented 8 years ago

I've tried exporting 24__mW from S0000016.NSF of Crash 2 and went just fine. I suspect you accidentally saved the wrong items for certain numbers (item0, 1, 2 etc..). Carefully resave the items from Crashedit and try again. image

reiss82 commented 8 years ago

Check your file sizes for each item compared to mine

warenhuis commented 8 years ago

Perfect match, but you could also accidentally changed one the bytes in the corner of CrashEdit's data display - causing this error. That would not affect the file size. Maybe recovering the NSF to its original state would help.

reiss82 commented 8 years ago

Tried that too, I downloaded a European version just to test the same level, I get the same problem

reiss82 commented 8 years ago

Upload your item files if you can and I'll test if those work

warenhuis commented 8 years ago

24.zip

reiss82 commented 8 years ago

These ones work fine. Maybe it's my version of CrashEdit

warenhuis commented 8 years ago

Impossible. This has nothing to do with the version of CrashEdit or the game (there are no differences between the models of NTSC-U, NTSC-J or PAL). Just the modeldata. Probably something changed in the items between exporting them.

reiss82 commented 8 years ago

My item1 always has a different md5 hash to your one, and I'm definitely not making any changes to it

warenhuis commented 8 years ago

Interesting. Now that I think of it, you might consider trying this branch of CrashEdit and compare the items again: https://github.com/ManDude/CrashEdit

reiss82 commented 8 years ago

I don't have the software to build this into an executable

warenhuis commented 8 years ago

Debug.zip Try the exe

reiss82 commented 8 years ago

There are only 4 items in the scenery entries on this

warenhuis commented 8 years ago

You must first unprocess them by right click on the name > Unprocess Entry

reiss82 commented 8 years ago

It works perfectly

reiss82 commented 8 years ago

Thanks a lot for your help with that

warenhuis commented 8 years ago

My pleasure.

NetyashaRoozi commented 8 years ago

(I know this is off topic but I have been trying to figure this out) Can you tell me where I could find Ripper Roo's model and animations? I have been searching and all I can find are the scenery objects and other objects

ManDude commented 8 years ago

Check the code entries, they have lists of animations (press Z with the hexbox selected in the 6th item).

AraHaan commented 7 years ago

For some reason I cant figure out what to use to display the generated ply files.

ManDude commented 7 years ago

Blender or 3ds max work. There are even online viewers for this.