Jump to content


Photo

Moco - Models & Collisions


  • Please log in to reply
70 replies to this topic

#61 Mordi

Mordi

    Maker of Menus

  • New Member
  • 3635 posts

Posted 12 February 2007 - 05:15 PM

I noticed how many scripts are in this. Would it be ok to remove all scripts except for the ones involving collisions, or would i get an error? It seems very nice.

Like this:
dll="MoCo.dll";
global._1=external_define(dll, "MocoCreate", dll_stdcall, ty_real, 0);
global._2=external_define(dll, "MocoDestroy", dll_stdcall, ty_real, 0);
global._18=external_define(dll, "SCAddCollisionMap", dll_stdcall, ty_real, 4, ty_real, ty_real, ty_real, ty_real);
global._19=external_define(dll, "SCRemoveCollisionMap", dll_stdcall, ty_real, 1, ty_real);
global._20=external_define(dll, "SCSetCollisionGroup", dll_stdcall, ty_real, 2, ty_real, ty_real);
global._28=external_define(dll, "SCCountCollisions", dll_stdcall, ty_real, 1, ty_real);
global._29=external_define(dll, "SCGetCollisionPosition", dll_stdcall, ty_real, 3, ty_real, ty_real, ty_real);
global._30=external_define(dll, "SCGetCollisionNormal", dll_stdcall, ty_real, 3, ty_real, ty_real, ty_real);
global._42=external_define(dll, "ECAddCollisionMap", dll_stdcall, ty_real, 4, ty_real, ty_real, ty_real, ty_real);
global._43=external_define(dll, "ECRemoveCollisionMap", dll_stdcall, ty_real, 1, ty_real);
global._44=external_define(dll, "ECSetCollisionGroup", dll_stdcall, ty_real, 2, ty_real, ty_real);
global._55=external_define(dll, "ECVelocityCollided", dll_stdcall, ty_real, 1, ty_real);
global._56=external_define(dll, "ECGravityCollided", dll_stdcall, ty_real, 1, ty_real);
global._57=external_define(dll, "ECCountCollisions", dll_stdcall, ty_real, 1, ty_real);
global._58=external_define(dll, "ECGetCollidedObject", dll_stdcall, ty_real, 2, ty_real, ty_real);
global._59=external_define(dll, "ECGetCollisionPosition", dll_stdcall, ty_real, 3, ty_real, ty_real, ty_real);
global._60=external_define(dll, "ECGetCollisionNormal", dll_stdcall, ty_real, 3, ty_real, ty_real, ty_real);
global._64=external_define(dll, "GetRayCollisionPosition", dll_stdcall, ty_real, 1, ty_real);
global._65=external_define(dll, "GetRayCollisionNormal", dll_stdcall, ty_real, 1, ty_real);

Edited by Mordi, 12 February 2007 - 05:19 PM.

  • 0

#62 Xception

Xception

    GMC Member

  • New Member
  • 476 posts

Posted 13 February 2007 - 03:09 PM

If you don't call a script then it should make no difference if you delete it or not.
  • 0

#63 nick

nick

    GMC Member

  • GMC Member
  • 24 posts

Posted 13 February 2007 - 09:31 PM

ok.... i LOVE the dll, but how do i make a custom start position in the model?

also, can i use the d3d_draw functions and place them INSIDE the model ie to have an easier time designing maps for my game that i am working on?

If so, how do i define the start positions?
  • 0

#64 CoDeAVE

CoDeAVE

    GMC Member

  • New Member
  • 1 posts

Posted 16 December 2007 - 12:07 AM

It's a nice Job !! :rolleyes:
  • 0

#65 grumpymonkey

grumpymonkey

    GMC Member

  • GMC Member
  • 1011 posts

Posted 23 September 2008 - 01:16 AM

unexpected error TT_TT

i guess thats cause my comp sucks tho, sounds cool =P

[-Specs-
Intel® Celeron™ CPU
1300MHz
1.29GHz, 384 MB or RAM
18GB HDD

and its a PC, NOT a laptop TT_TT]
  • 0

#66 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 23 September 2008 - 12:01 PM

Did you extract it, delete the DLL or something?
  • 0

#67 Indecom4000

Indecom4000

    GMC Member

  • GMC Member
  • 1148 posts

Posted 07 May 2009 - 09:15 PM

Just curious if anyone has a copy of this alive somewhere, my hard drive crashed so i lost what i got and the links here are dead. I'd message the creator but he hasnt been here in months.
  • 0

#68 hanson

hanson

    GMC Member

  • GMC Member
  • 444 posts
  • Version:GM8

Posted 07 May 2009 - 09:40 PM

He might get an email notification if you pm him

Edited by hanson, 07 May 2009 - 09:40 PM.

  • 0

#69 Xception

Xception

    GMC Member

  • New Member
  • 476 posts

Posted 19 May 2009 - 09:36 PM

I hope this is the release you searched for, just looked up for it on my harddrive:
http://www.file-uplo...1/Moco.zip.html

And if anybody wants to host it, just go on because I don't know how long it will stay there.
Maybe I'm updating it with other file formats and functions to build the collision model with giving the vertices and indices.
  • 0

#70 nick

nick

    GMC Member

  • GMC Member
  • 24 posts

Posted 30 June 2009 - 09:39 PM

arrgh..... the damn thing will not run in gm7 under Vista!!!! Xception, any ideas?

Could you release the source so I could take a look at it to try to find the problem?

I get that ever-lovable "unexpected error occurrred" message......
  • 0

#71 IamCalle

IamCalle

    GMC Member

  • GMC Member
  • 444 posts

Posted 31 October 2009 - 11:20 PM

FYI; ModelCreate() is what causes the "unexpected error" message when using GM7.
I am afraid the whole engine becomes quite useless without that function, which is too bad.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users