Tutorial - Create Custom Objects

User avatar
yzmxer608
Posts: 15208
Joined: Mon Dec 29, 2008 4:30 am
Team: Race Tech/SD
Location: Wisconsin, U.S.A

Re: Tutorial - Create Custom Objects

Postby yzmxer608 » Tue Jun 22, 2010 5:10 pm

Find "Blender\.blender\scripts" and put the jm export script in there, it will show up under the File>Export menu now.

http://mxsimulator.com/models/jm_export.py
TeamHavocRacing wrote:If I had a nickel for every time someone asked for this, I would have a whole shitload of nickels.

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Tue Jun 22, 2010 6:02 pm

so i saved the model as a jm file the i took the tga file and opened it in gimp and skined the model then i saved it as a .png and now i added a line with the name of the object and it dosn't show up :?:
Image

Duckstream
Posts: 1997
Joined: Tue Nov 03, 2009 1:06 pm

Re: Tutorial - Create Custom Objects

Postby Duckstream » Sat Jun 26, 2010 1:19 pm

hmm, dont know why, first i tryed to just put it rigth position and run the script, it came facing the wrong way (and it was under surface) so i change the rotation, same thing

then i tryed hitting crtl +a and it was rigth how i wanted in blender, run script, the object came up tiny like a miniture tree, and still facing weird direction...

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Tue Jul 06, 2010 8:06 pm

in my track folder i have a .jm file a .tga file and a .png file of my object and it will no show up in the game i tried [1350.000000 20.000000 50.000000] 0.000000 @mytrack/tunnel.jm @mytrack/tunnel.png then i tried [1350.000000 20.000000 50.000000] 0.000000 @mytrack/tunnel.jm @mytrack/tunnel.tga and nothing :?:
Image

User avatar
DJ99X
Posts: 15465
Joined: Tue Jan 15, 2008 11:36 am
Team: El Chupamobra
Location: Upper Shit Creek, Sans Paddlington

Re: Tutorial - Create Custom Objects

Postby DJ99X » Tue Jul 06, 2010 11:56 pm

Try

[1350.000000 20.000000 50.000000] 0.000000 @mytrack/tunnel.jm @mytrack/tunnel.png null

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Wed Jul 07, 2010 12:39 am

ok now the icon in the game is there but no object
Image

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Wed Jul 07, 2010 12:46 am

sorry for double posting, but also when i try to duplicate the icon my game shuts off
Image

dearnhardtfan7
Posts: 1095
Joined: Sat Mar 22, 2008 2:05 am
Team: Privateer
Location: Trafford Alabama

Re: Tutorial - Create Custom Objects

Postby dearnhardtfan7 » Wed Jul 07, 2010 5:57 am

make sure you have @mytrack/tunnel.png[space]null and then the blank line at the end of the file. If the icon is there then either you don't have a space before null or between the .jm and .png segments or your .jm file is named differently from what you put in the statues file. Make sure everything is spelled correctly. Or it could very possibly be that the object center is way above the object. If you used blender, go into object mode and go spacebar>transform>center new. This will put the cursor directly in the center of the object so you will at least be able to see if it is really in the game or not. From there you can either change the object center to get it where you want it or go up on the "y" value in the statues file.



Oh and make sure Caps lock is off when pressing d. I think I remember this making someones game crash before.
R.I.P. Jacob Nash #241
PSN-chrismri463
Image
xfire--cmarona463

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Fri Jul 09, 2010 12:36 pm

i tryed to re export the .jm file and it said python script error please check console
Image

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Fri Jul 09, 2010 6:42 pm

can you take a banner and make it lay flat instead of up and down using rotation
Image

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Thu Sep 09, 2010 2:55 pm

i made a tunnel for a track and its a little small and i went back into blender and made it bigger abd resaved it and it didnt rescale in game...
Image

dearnhardtfan7
Posts: 1095
Joined: Sat Mar 22, 2008 2:05 am
Team: Privateer
Location: Trafford Alabama

Re: Tutorial - Create Custom Objects

Postby dearnhardtfan7 » Thu Sep 09, 2010 8:39 pm

In object mode--------[spacebar>transform>clear/apply>apply scale and rotation] then re-save and re-export the .jm file in place of the old one
R.I.P. Jacob Nash #241
PSN-chrismri463
Image
xfire--cmarona463

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Tue Sep 14, 2010 3:12 pm

thanx
Image

BRYAN17
Posts: 414
Joined: Tue Feb 02, 2010 2:54 pm

Re: Tutorial - Create Custom Objects

Postby BRYAN17 » Sun Sep 26, 2010 9:46 pm

it will not let me exicute the script
Image

sk84life933
Posts: 1360
Joined: Sat Feb 14, 2009 12:56 am

Re: Tutorial - Create Custom Objects

Postby sk84life933 » Sun Oct 10, 2010 11:40 pm

Will these steps work with making a dirt bike model?


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest