Making an MD2

Status
Not open for further replies.

Sonichu

bought a 4chan gold account
Mkay, so I made a simple model in Milkshape, gave it a 28 frame animation, each one corresponding to a sprite.
I put that animation into Misfit, converted the skeleton animation to a frame animation, and then start up SRB2ogl. However, the game crashed after this.

Is there any sort of tutorial that can explain this and how to do it properly?
 
Mkay, so I made a simple model in Milkshape, gave it a 28 frame animation, each one corresponding to a sprite.
I put that animation into Misfit, converted the skeleton animation to a frame animation, and then start up SRB2ogl. However, the game crashed after this.

Is there any sort of tutorial that can explain this and how to do it properly?

Do you have 1 frame for each state of the sprite? Can you try with the trunk debug builds and exchndl.dll so it can make a crash backtrace log RPT file?
 
There should be 33 frames, for starters. At least, that's what the models I have contain.
 
There should be 33 frames, for starters. At least, that's what the models I have contain.
Put it into 33 frames, it ran for a second with the player invisible before crashing.

Do you have 1 frame for each state of the sprite? Can you try with the trunk debug builds and exchndl.dll so it can make a crash backtrace log RPT file?
Here's the errorlog.txt I got after running srb2ogldebug.exe
 
I do not know you meant more MD2 on the video site's srb2.org org, or I'm wrong?

Moderator Notice:
Please don't use black text like that, it makes it impossible to read for the people using Ocean.
 
Last edited by a moderator:
Why are you converting it to MistFit and THEN exporting to MD2? Milkshape has an MD2 exporter itself.
 
Why are you converting it to MistFit and THEN exporting to MD2? Milkshape has an MD2 exporter itself.
"Warning: no md2.qc found!"

so it is, but it do not use the PDB file...

hmmm. rename srb2debug.pdb to srb2ogldebug.pdb and try agian
Woah... I just renamed it and started up the OGL, and it didn't crash. Funny.
Now the MD2's just invisible.
 
While we're on it, what exactly is it an md2 of? And what exactly makes you only able to use one md2 model at a time? Is it something hard coded into the game or just something that can't be fixed?
 
While we're on it, what exactly is it an md2 of? And what exactly makes you only able to use one md2 model at a time? Is it something hard coded into the game or just something that can't be fixed?

It's a player MD2
And, no. You can use as many MD2s as there are objects in SRB2 (with some exceptions)
 
It's one player model at a time that's the limit, not one model. I think someone got around this once, can't remember though.
 
It's crashed again.
I ran it in the regular OGL and it crashed when I thokked.
I ran it in the debug OGL and it crashed instantly.
;-;
Code:
-------------------

Error occured on Tuesday, May 4, 2010 at 07:23:27.

C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe caused a Breakpoint at location 00532548 in module C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe.

Registers:
eax=00000001 ebx=7ffd5000 ecx=005c5970 edx=00190000 esi=01caeb84 edi=80947e8a
eip=00532548 esp=0012da3c ebp=0012da4c iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246

Call stack:
00532548  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:00532548
0053246E  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0053246E
004606DA  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:004606DA
0046042F  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0046042F
0045FFC5  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0045FFC5
0045E21A  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0045E21A
0045B294  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0045B294
0041AAE9  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0041AAE9
0041A732  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0041A732
00405897  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:00405897
0040572F  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0040572F
00537B73  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:00537B73
7C817077  C:\WINDOWS\system32\kernel32.dll:7C817077  RegisterWaitForInputIdle


-------------------

Error occured on Saturday, May 8, 2010 at 13:03:01.

C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe caused a Breakpoint at location 00532548 in module C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe.

Registers:
eax=00000001 ebx=7ffdf000 ecx=005c5970 edx=00150000 esi=01caeed8 edi=374c1e84
eip=00532548 esp=0012da3c ebp=0012da4c iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246

Call stack:
00532548  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:00532548  _free_dbg  dbgheap.c:1044
0053246E  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0053246E  free  dbgheap.c:956
004606DA  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:004606DA  md2_freeModel  c:\srb2git\src\hardware\hw_md2.c:73
0046042F  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0046042F  md2_readModel  c:\srb2git\src\hardware\hw_md2.c:184
0045FFC5  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0045FFC5  HWR_DrawMD2  c:\srb2git\src\hardware\hw_md2.c:816
0045E21A  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0045E21A  HWR_DrawMD2S  c:\srb2git\src\hardware\hw_main.c:3361
0045B294  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0045B294  HWR_RenderPlayerView  c:\srb2git\src\hardware\hw_main.c:3973
0041AAE9  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0041AAE9  D_Display  c:\srb2git\src\d_main.c:372
0041A732  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0041A732  D_SRB2Loop  c:\srb2git\src\d_main.c:572
00405897  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:00405897  HandledWinMain  c:\srb2git\src\win32\win_main.c:733
0040572F  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:0040572F  WinMain  c:\srb2git\src\win32\win_main.c:766
00537B73  C:\Documents and Settings\Owner.YOUR-W04GTXLD67.000\Desktop\Folders\Games\SRB2\srb2ogldebug.exe:00537B73  WinMainCRTStartup  crt0.c:198
7C817077  C:\WINDOWS\system32\kernel32.dll:7C817077  RegisterWaitForInputIdle

... what the hell. It just crashes at random now. I don't know what I'm doing wrong.
 
Last edited:
... what the hell. It just crashes at random now. I don't know what I'm doing wrong.

give me a sample model and MD2.dat so I can debug the invalid free of MD2 Model in the code.
 
Will it have another model
advance2_knuckles01.png
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top