Jaapio Posted March 6 Share Posted March 6 (edited) Hi Folks, Edit: Solved, the positions have to be even numbers and the lengths have to be divisible by 4. I ran into a weird issue with my map, I had only one body of water and things seemed to work fine. But after adding a few more the game just started to crash and I have no idea what is wrong with my water file. Below is my water file, the line that starts with -132.000000 -112.000000 is the initial body of water that seemed to work just fine. But after adding the rest of the lines the game started to crash as I was looking at the water from certain angles. processed -132.000000 -112.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -112.000000 -112.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -132.000000 -117.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -112.000000 -117.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 105.000000 -230.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 145.000000 -230.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 105.000000 -315.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 145.000000 -315.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 -192.000000 -112.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -132.000000 -112.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -192.000000 -138.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -132.000000 -138.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -152.000000 -64.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -40.000000 -64.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -152.000000 -112.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 -40.000000 -112.000000 -2.750000 0.000000 0.000000 0.000000 0.000000 65.000000 -214.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 105.000000 -214.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 65.000000 -263.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 105.000000 -263.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 Help would be much appreciated. Edited March 21 by Jaapio Solved it with the help of Zaz Link to comment Share on other sites More sharing options...
ZAZ Posted March 7 Share Posted March 7 Each side length of a water square must be divisible by 4 Example 62.0 572.0 5.0 0.0 -0.4 1.0 1.0 170.0 572.0 5.0 0.0 -0.4 1.0 1.0 62.0 740.0 5.0 0.0 -0.4 1.0 1.0 170.0 740.0 5.0 0.0 -0.4 1.0 1.0 1 the 4 corner coords: 62.0 572.0, - 170.0 572.0, - 62.0 740.0, - 170.0 740.0 x-lenght of the square = 170.0 - 62.0 = 108.0 y-lenght of the square = 740.0 - 572.0 = 168.0 108.0 /4 = 27 168.0 /4 = 42 btw. i'm not a full time gtaforums member, i just have a look every day to this forum Groza, Jaapio and Sloth- 2 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Jaapio Posted March 20 Author Share Posted March 20 On 3/7/2022 at 6:05 PM, ZAZ said: Each side length of a water square must be divisible by 4 Hi Zaz, Thanks for you response, its been a while but I got around to testing with the water lenght set to be divisible by 4, things looked good but gta still crashes when I approach the water from certain angles. My water shape should be 20 by 20 so I am not sure what is going on. Am I missing anything else? processed 75.000000 -224.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 95.000000 -224.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 75.000000 -244.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 95.000000 -244.000000 -2.000000 0.000000 0.000000 0.000000 0.000000 Link to comment Share on other sites More sharing options...
ZAZ Posted March 21 Share Posted March 21 (edited) last parameter is missing please read [SA|DOC] water.dat steve-m wrote: X, Y, Z: coordinate F1: water current speed along X axis F2: water current speed along Y axis F3: unknown, influences waves, maximum is 1.0 F4: wave height The parameter at the end of each line defines the water type, and can have a value from 0 to 3: .... and the parameter being an integer value so a water cube definiton should be done in this way X, Y, Z, F1, F2, F3, F4 X, Y, Z, F1, F2, F3, F4 X, Y, Z, F1, F2, F3, F4 X, Y, Z, F1, F2, F3, F4, last parameter(integer value) my example from above 62.0 572.0 5.0 0.0 -0.4 1.0 1.0 170.0 572.0 5.0 0.0 -0.4 1.0 1.0 62.0 740.0 5.0 0.0 -0.4 1.0 1.0 170.0 740.0 5.0 0.0 -0.4 1.0 1.0 1 when i make xxx as visible separation 62.0 572.0 5.0 0.0 -0.4 1.0 1.0 xxx 170.0 572.0 5.0 0.0 -0.4 1.0 1.0 xxx 62.0 740.0 5.0 0.0 -0.4 1.0 1.0 xxx 170.0 740.0 5.0 0.0 -0.4 1.0 1.0 xxx 1 X, Y, Z, F1, F2, F3, F4 xxx X, Y, Z, F1, F2, F3, F4 xxx X, Y, Z, F1, F2, F3, F4 xxx X, Y, Z, F1, F2, F3, F4, xxx last parameter(integer value) btw. you can spare these many zeros then this should be your water cube definition 75.0 -224.0 -2.0 0.0 0.0 0.0 0.0 95.0 -224.0 -2.0 0.0 0.0 0.0 0.0 75.0 -244.0 -2.0 0.0 0.0 0.0 0.0 95.0 -244.0 -2.0 0.0 0.0 0.0 0.0 1 but consider steve-m's usage: Quote The corner points should be defined in the order NE-NW-SE-SW, or also SW-SE-NW-NE: Edited March 21 by ZAZ Jaapio 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Jaapio Posted March 21 Author Share Posted March 21 (edited) 16 hours ago, ZAZ said: please read [SA|DOC] water.dat Doh, I found it, the numbers have to be even, 75 and 95 are not even. Changing them to even numbers fixed the issue. Thanks the first time I totally read over the even part. I also experimented with the last parameter, not putting it in seems to make the game fallback to either 1 or 3 but putting it in seems like the right thing to do, I somehow forgot to write that back into the text file after reading it. 16 hours ago, ZAZ said: btw. you can spare these many zeros Yeah, it was just a quick sprintf call. I always forget how to do proper formatting with sprintf. Edited March 22 by Jaapio Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now