Page 1 of 1

collision files quit working

Posted: Sat Mar 21, 2009 7:23 am
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 :?

Re: collision files quit working

Posted: Sat Mar 21, 2009 7:30 am
by DJ99X
Care to post your code?

Re: collision files quit working

Posted: Sat Mar 21, 2009 7:47 am
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

Re: collision files quit working

Posted: Sat Mar 21, 2009 8:04 am
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

Re: collision files quit working

Posted: Sat Mar 21, 2009 8:56 pm
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.

Re: collision files quit working

Posted: Sat Mar 21, 2009 9:57 pm
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.

Re: collision files quit working

Posted: Sun Mar 22, 2009 12:19 am
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