Tutorial - Create Custom Objects

yzmxer608
Posts: 15352
Joined: Mon Dec 29, 2008 4:30 am
Team: SYS
Location: Wisconsin, U.S.A

Re: Tutorial - Create Custom Objects

Post by yzmxer608 »

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

Post by BRYAN17 »

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

Post by Duckstream »

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

Post by BRYAN17 »

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
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: Tutorial - Create Custom Objects

Post by DJ99X »

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

Post by BRYAN17 »

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

Post by BRYAN17 »

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

Post by dearnhardtfan7 »

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

Post by BRYAN17 »

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

Post by BRYAN17 »

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

Post by BRYAN17 »

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

Post by dearnhardtfan7 »

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

Post by BRYAN17 »

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

Re: Tutorial - Create Custom Objects

Post by BRYAN17 »

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

Post by sk84life933 »

Will these steps work with making a dirt bike model?
Post Reply