collision files quit working

All about making tracks for MX Simulator
Post Reply
dearnhardtfan7
Posts: 1095
Joined: Sat Mar 22, 2008 2:05 am
Team: Privateer
Location: Trafford Alabama

collision files quit working

Post by dearnhardtfan7 »

I have a bridge in a track im working on. My collision file was working then i tried to add friction and all of a sudden it quit working. I put friction back to 1 and rode the track again and it still was not working. I deleted the collision file and started back from scratch and still nothing. I made a file with only 4 spheres at a radius of 10 just to see if that would work and still nothing. I renamed the file and changed my statues folder to reflect the name change and it still does not work. All other collisions work the same. This is seriously the most confused I've been since I started playing this game. Any help at all would be greatly appreciated :?
R.I.P. Jacob Nash #241
PSN-chrismri463
Image
xfire--cmarona463
DJ99X
Posts: 15524
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: collision files quit working

Post by DJ99X »

Care to post your code?
dearnhardtfan7
Posts: 1095
Joined: Sat Mar 22, 2008 2:05 am
Team: Privateer
Location: Trafford Alabama

Re: collision files quit working

Post by dearnhardtfan7 »

collision file:
121
0 58.5 -10 2 1 500 25
0 58.5 -8 2 1 500 25
0 58.5 -6 2 1 500 25
0 58.5 -4 2 1 500 25
0 58.5 -2 2 1 500 25
0 58.5 0 2 1 500 25
0 58.5 2 2 1 500 25
0 58.5 4 2 1 500 25
0 58.5 6 2 1 500 25
0 58.5 8 2 1 500 25
0 58.5 10 2 1 500 25
2 58.5 -10 2 1 500 25
2 58.5 -8 2 1 500 25
2 58.5 -6 2 1 500 25
2 58.5 -4 2 1 500 25
2 58.5 -2 2 1 500 25
2 58.5 0 2 1 500 25
2 58.5 2 2 1 500 25
2 58.5 4 2 1 500 25
2 58.5 6 2 1 500 25
2 58.5 8 2 1 500 25
2 58.5 10 2 1 500 25
-2 58.5 -10 2 1 500 25
-2 58.5 -8 2 1 500 25
-2 58.5 -6 2 1 500 25
-2 58.5 -4 2 1 500 25
-2 58.5 -2 2 1 500 25
-2 58.5 0 2 1 500 25
-2 58.5 2 2 1 500 25
-2 58.5 4 2 1 500 25
-2 58.5 6 2 1 500 25
-2 58.5 8 2 1 500 25
-2 58.5 10 2 1 500 25
4 58.5 -10 2 1 500 25
4 58.5 -8 2 1 500 25
4 58.5 -6 2 1 500 25
4 58.5 -4 2 1 500 25
4 58.5 -2 2 1 500 25
4 58.5 0 2 1 500 25
4 58.5 2 2 1 500 25
4 58.5 4 2 1 500 25
4 58.5 6 2 1 500 25
4 58.5 8 2 1 500 25
4 58.5 10 2 1 500 25
-4 58.5 -10 2 1 500 25
-4 58.5 -8 2 1 500 25
-4 58.5 -6 2 1 500 25
-4 58.5 -4 2 1 500 25
-4 58.5 -2 2 1 500 25
-4 58.5 0 2 1 500 25
-4 58.5 2 2 1 500 25
-4 58.5 4 2 1 500 25
-4 58.5 6 2 1 500 25
-4 58.5 8 2 1 500 25
-4 58.5 10 2 1 500 25
6 58.5 -10 2 1 500 25
6 58.5 -8 2 1 500 25
6 58.5 -6 2 1 500 25
6 58.5 -4 2 1 500 25
6 58.5 -2 2 1 500 25
6 58.5 0 2 1 500 25
6 58.5 2 2 1 500 25
6 58.5 4 2 1 500 25
6 58.5 6 2 1 500 25
6 58.5 8 2 1 500 25
6 58.5 10 2 1 500 25
-6 58.5 -10 2 1 500 25
-6 58.5 -8 2 1 500 25
-6 58.5 -6 2 1 500 25
-6 58.5 -4 2 1 500 25
-6 58.5 -2 2 1 500 25
-6 58.5 0 2 1 500 25
-6 58.5 2 2 1 500 25
-6 58.5 4 2 1 500 25
-6 58.5 6 2 1 500 25
-6 58.5 8 2 1 500 25
-6 58.5 10 2 1 500 25
8 58.5 -10 2 1 500 25
8 58.5 -8 2 1 500 25
8 58.5 -6 2 1 500 25
8 58.5 -4 2 1 500 25
8 58.5 -2 2 1 500 25
8 58.5 0 2 1 500 25
8 58.5 2 2 1 500 25
8 58.5 4 2 1 500 25
8 58.5 6 2 1 500 25
8 58.5 8 2 1 500 25
8 58.5 10 2 1 500 25
-8 58.5 -10 2 1 500 25
-8 58.5 -8 2 1 500 25
-8 58.5 -6 2 1 500 25
-8 58.5 -4 2 1 500 25
-8 58.5 -2 2 1 500 25
-8 58.5 0 2 1 500 25
-8 58.5 2 2 1 500 25
-8 58.5 4 2 1 500 25
-8 58.5 6 2 1 500 25
-8 58.5 8 2 1 500 25
-8 58.5 10 2 1 500 25
10 58.5 -10 2 1 500 25
10 58.5 -8 2 1 500 25
10 58.5 -6 2 1 500 25
10 58.5 -4 2 1 500 25
10 58.5 -2 2 1 500 25
10 58.5 0 2 1 500 25
10 58.5 2 2 1 500 25
10 58.5 4 2 1 500 25
10 58.5 6 2 1 500 25
10 58.5 8 2 1 500 25
10 58.5 10 2 1 500 25
-10 58.5 -10 2 1 500 25
-10 58.5 -8 2 1 500 25
-10 58.5 -6 2 1 500 25
-10 58.5 -4 2 1 500 25
-10 58.5 -2 2 1 500 25
-10 58.5 0 2 1 500 25
-10 58.5 2 2 1 500 25
-10 58.5 4 2 1 500 25
-10 58.5 6 2 1 500 25
-10 58.5 8 2 1 500 25
-10 58.5 10 2 1 500 25
statues file:
[1350.000000 20.000000 50.000000] 0.000000 @tree_trunk.jm @tree_bark-repeat.ppm @tree_trunk.shp
[1350.000000 20.000000 50.000000] 0.000000 @tree_branches.jm @tree_branch.png null
[1400.000000 0.000000 50.000000] 0.000000 @tree_trunk.jm @tree_bark-repeat.ppm @tree_trunk.shp
[1400.000000 0.000000 50.000000] 0.000000 @tree_branches.jm @tree_branch.png null
[1450.000000 0.000000 50.000000] 0.000000 @finishpost.jm @finishbanner-repeat.png @finishpost.shp
[1500.000000 0.000000 50.000000] 0.000000 @finishbanner.jm @finishbanner-repeat.png @finishbanner.shp
[1550.000000 0.000000 50.000000] 0.000000 @starthouse.jm @uglywhitewood-repeat.ppm @starthouse.shp
[1600.000000 0.000000 50.000000] 0.000000 @bale.jm @hay.ppm @bale.shp
[1650.000000 0.000000 50.000000] 0.000000 @pickup.jm @pickup.png @pickup.shp
[1700.000000 0.000000 50.000000] 0.000000 @boxtruck.jm @boxtruck.png @boxtruck.shp
[1750.000000 0.000000 50.000000] 0.000000 @tent.jm @blue.ppm null
[1800.000000 0.000000 50.000000] 0.000000 @snowfence.jm @snowfenceplastic.png @snowfence.shp
[1850.000000 0.000000 50.000000] 0.000000 @bikeprop.jm @crprop.png null
[1900.000000 0.000000 50.000000] 0.000000 @scoringhouse.jm @scoringhouse.ppm @scoringhouse.shp
[1950.000000 0.000000 50.000000] 0.000000 @flagstand15.jm @uglywhitewood-repeat.ppm @flagstand15.shp
[2000.000000 0.000000 50.000000] 0.000000 @bleachers.jm @uglywhitewood-repeat.ppm @bleachers.shp
[367.348907 8.500000 200.262131] -0.891380 @mx/bridge.jm @mx/bridge.png @mx/bridge.shp
[292.707001 8.500000 316.190125] -0.535812 @mx/bridge.jm @mx/bridge.png @mx/bridge.shp
[485.618500 -16.500000 133.662643] -1.570796 @mx/bridge.jm @mx/bridge.png @mx/bridge.shp
[166.638412 8.00000 376.327271] 3.141592 @mx/bridge.jm @mx/bridge.png @mx/bridge.shp

also I'm using notepad++
my object center is at the bottom of the bridge so thats why Y is at 58.5
R.I.P. Jacob Nash #241
PSN-chrismri463
Image
xfire--cmarona463
DJ99X
Posts: 15524
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: collision files quit working

Post by DJ99X »

Make sure the file goes up to line 123 (leave line 123 blank, but make sure it is counted on the side), because it never seems to read the last line. So, if you only have 122 lines, it will only read 121 of them, and because there is 121 at the top, there are only 120 lines to be read, and as it cant find the last line, the file wont work
Attachments
like this.jpg
(27.65 KiB) Downloaded 141 times
dearnhardtfan7
Posts: 1095
Joined: Sat Mar 22, 2008 2:05 am
Team: Privateer
Location: Trafford Alabama

Re: collision files quit working

Post by dearnhardtfan7 »

right I have that. I just dont understand why it was working and then its like it wont associate any .shp file with the object. :? Im not a genius with computers but im certainly not an idiot with one either and this is definitely making me feel like the latter.
R.I.P. Jacob Nash #241
PSN-chrismri463
Image
xfire--cmarona463
jlv
Site Admin
Posts: 15344
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: collision files quit working

Post by jlv »

Check the Y coords in bridge.jm (it will be the 2nd number on each line). Most of them should be around 58.5.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
dearnhardtfan7
Posts: 1095
Joined: Sat Mar 22, 2008 2:05 am
Team: Privateer
Location: Trafford Alabama

Re: collision files quit working

Post by dearnhardtfan7 »

Thanks for the help both of you. I changed the object center to the top of the bridge and adjusted the Y coordinates and now it works again. I still dont know what happened to make it quit working but oh well. Thanks again
R.I.P. Jacob Nash #241
PSN-chrismri463
Image
xfire--cmarona463
Post Reply