Don't Starve

Don't Starve

Wave Fix + Fog Fix [SW]
48 Comments
Jayfang 2 Jan, 2017 @ 7:39pm 
░░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP!
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
░░░░░▐▌░░░░░░░░░█░░
IvanX  [author] 17 Sep, 2016 @ 1:33am 
I don't mind deleting the mod :P
Mobbstar 16 Sep, 2016 @ 10:47pm 
Did they also fix the wetness when in fog?
Unknown 16 Sep, 2016 @ 2:00pm 
They fixed waves. this mod isn't needed anymore.
Kasuha 27 May, 2016 @ 12:54pm 
Thanks!
IvanX  [author] 27 May, 2016 @ 12:48pm 
Uploaded the fix, thanks for the find :) Funny how nobody complained about it earlier!
Kasuha 27 May, 2016 @ 2:07am 
Ah, I missed that you subtract the value from 360 instead of subtracting 360 from it. Ok then, it should work.
IvanX  [author] 27 May, 2016 @ 12:21am 
there's math.abs(waveangle - playerangle)
Thus the difference is always positive
Kasuha 26 May, 2016 @ 11:10pm 
math.abs is required. Imagine the difference is 200 degrees - you subtract 360, get -160 and next step you get a false positive in the compare with boostThreshold
IvanX  [author] 26 May, 2016 @ 10:47pm 
You're right, just looked into the original file from work, just commenting the line is not enough.

When I get back home, I'll add a new line:
if angleDiff > 180 then angleDiff = 360 - angleDiff end

math.abs isn't required from what I see, angleDiff is within [0,360] boundaries
As for GetRotation, it returns angles from -180 to 180, but that doesn't change anything.
Kasuha 26 May, 2016 @ 10:15pm 
I would guess that instead of commenting out, you should have changed

if angleDiff > 360 then angleDiff = angleDiff - 360 end

to

if angleDiff > 180 then angleDiff = math.abs(angleDiff - 360) end
Kasuha 26 May, 2016 @ 10:14pm 
I checked your mod and I'm pretty sure you didn't fix it right. I'm not sure what values does GetRotation() return but for example If player angle is 0 and wave angle is 359, it evaluates it as collision.
IvanX  [author] 26 May, 2016 @ 2:48pm 
It indeed doesn't seem that any of the mods could be in the way. I'll look at it tomorrow, maybe there's something I overlooked.
Kasuha 26 May, 2016 @ 2:29pm 
Yes I am sure the mod was on and while I have a lot of other mods none of them should be changing the wave behavior. Here's the list: Geometric Placement, Wormhole Marks, Auto Retrap, Relaxed Crafting, Flingomatic Range Check, Furure Flingomatic, Wave Fix (this mod), Combined Status, Map Controls Removal, Parrot Pirate Fix, Lighter Fix, No Warning, Craft Pot, Volcano Alarm, Action Queue Plus, Auto ReEquip Veapon
IvanX  [author] 26 May, 2016 @ 12:27pm 
That is exactly what this mod is fixing. Are you sure mod is turned ON? If yes, there must be another mod that modifies waves, and it is overwriting the fix.
Kasuha 25 May, 2016 @ 2:43pm 
There's still something wrong with the waves, even using this mod. Here's a screenshot: http://imgur.com/Gpr8Ndh
Waves go almost straight down on the screen, the ship is also going straight down, yet it gets water, not boost when it runs into a wave. The direction is towards upper right in default camera orientation, so I guess they're going East in game's coordinate system?
star 16 May, 2016 @ 10:21am 
You think so? No updates for long time.
IvanX  [author] 15 May, 2016 @ 7:00am 
You're welcome! I sure hope it gets fixed in the game soon, so this mod will no longer be needed.
Vizaru 14 May, 2016 @ 9:35pm 
Thank you for this mod! I feel like this should be how the default game works.
star 25 Apr, 2016 @ 11:41am 
Это правильно :)
Sleepy-Keyzer 24 Apr, 2016 @ 3:25pm 
Huh...

I didnt realize that.....heh.
IvanX  [author] 24 Apr, 2016 @ 11:24am 
Why booooooooooooooT? :steamsad:
FreshLiverWhy 24 Apr, 2016 @ 9:18am 
nooooooooooo:steamsad:
tostikOwO 24 Apr, 2016 @ 4:23am 
спасибо
IvanX  [author] 24 Apr, 2016 @ 3:34am 
@Shad!52, В Shipwrecked когда ловишь волну для ускорения, у тебя безопасный угол 180 градусов. Так вот иногда можно плыть почти под одним углом с волной и все равно вместо ускорения врезаться в нее, получая урон и намокая. Фикс это исправляет, + теперь при потере управления в тумане (на краю карты), ты тоже больше не врезаешься в волны
tostikOwO 24 Apr, 2016 @ 12:04am 
что делает этот fix
IvanX  [author] 23 Apr, 2016 @ 11:18am 
Added fix for getting hit by waves when entering fog. Now you don't :p
Damo 23 Apr, 2016 @ 5:01am 
11/10 :dssmallbird:
IvanX  [author] 22 Apr, 2016 @ 11:02pm 
@Glowth, no problem, it only took an hour to make, while the issue was slowly driving me and other surfers crazy for a whole month. :)

Infact, this mod has its commercial uses ;D

Totally not an upsale: make your cooking easier with Craft Pot
Glowth 22 Apr, 2016 @ 9:14pm 
Thanks alot for clearing this up. I will upvote and subscribe even though this might be removed in time. Very nice of you to implement a temporary fix knowing that it's very likely your mod will become obsolete very soon.
IvanX  [author] 22 Apr, 2016 @ 9:12pm 
@Glowth, till the next patch or patch that comes after that, you should use this mod for sure, because it fixes an annoying glitch that SW has for about a month. It's about bumping into waves, when you should be boosted up by them.


As for normalize boost, It's up to you, really, the idea simple:
normally if wave goes north, it has 180 deg safe zone, hitting which causes you to boost (+20 speed), even if you are sailing east and wave is going north, you still get exactly +20 speed.

With normallize boost, that stuff is changed to logical:
If both you and wave go exactly north, you gain +26 speed,
If Wave goes north and you go north east, you only get part of the boost, aka 16,
If Wave goes north and you go nearly east, you get a boost close to 0.

That's the whole idea, the decision between choosing them will not really change your SW experience.


@TRIPLING TURKEYS, :( That's why my modding motivation went down, looking for some hugs IRL.
Ahkmid the Emoji Turban Guy 22 Apr, 2016 @ 7:17pm 
@ivanx you now have no hug
Glowth 22 Apr, 2016 @ 6:39pm 
I got shipwrecked toady and saw this mod on the front page of the workshop. Can you explain what exactly this fixes and if I should I use Normalize boost (on) or boost off (off)?
IvanX  [author] 21 Apr, 2016 @ 10:24pm 
@Super Suit 12, :' ) Thank you, I needed that!. *hugs back*
kaisham 21 Apr, 2016 @ 7:19pm 
interesting
DizzyChimera 21 Apr, 2016 @ 4:52pm 
You have earned: 1 HUG
*gives hug*
uberduba 21 Apr, 2016 @ 2:21pm 
AWESOME
Veneceos 21 Apr, 2016 @ 10:54am 
Nice !!
IvanX  [author] 20 Apr, 2016 @ 12:41pm 
Now that's possible :) If some other mod changes how waves work, this mod might override 1 function back to 'nearly normal' and then the other mod will only have half it's content - that's a good reason for a crash. Anyways if you happen to crash again, save a screenshot, or contents of error log (documents/klei/donotstarve/log.txt)
voyager156 20 Apr, 2016 @ 12:37pm 
Hmm that's strange... I get 2 crashes in a row. After disabling this mod I traveled through the fog normally. But maybe some other mod have conflict with this one...
IvanX  [author] 20 Apr, 2016 @ 12:26pm 
@voyager156, been going into the fog and back for like 5 mins, no crash. Seems like It's caused by some other mod, next time it happens, save a screenshot of the crash, and i can decipher it to tell which mode crashed it and why.
IvanX  [author] 20 Apr, 2016 @ 12:14pm 
@voyager156, That's weird, the code i changed had nothing to do with the fog. Let me check it out
voyager156 20 Apr, 2016 @ 10:24am 
This mod makes my game crash when entering a fog...
372123212 20 Apr, 2016 @ 7:03am 
fuck YOU!!!!!
IvanX  [author] 19 Apr, 2016 @ 10:12pm 
You're welcome :dsham:
IvanX  [author] 19 Apr, 2016 @ 7:49am 
I just hope klei would fix this issue soon, so i can close this mod, lol. As for the normalized boost, not sure if it'll find the audience, but it felt a shame to make an entire mod just to fix 3 lines of code ^^
Fairy 19 Apr, 2016 @ 6:49am 
YESSSSS THANK YOUUU
IvanX  [author] 18 Apr, 2016 @ 2:22pm 
Have fun with bug-free ocean ;)