饥荒
Wave Fix + Fog Fix [SW]
48 条留言
Jayfang 2017 年 1 月 2 日 下午 7:39 
░░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP!
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
░░░░░▐▌░░░░░░░░░█░░
IvanX  [作者] 2016 年 9 月 17 日 上午 1:33 
I don't mind deleting the mod :P
Mobbstar 2016 年 9 月 16 日 下午 10:47 
Did they also fix the wetness when in fog?
Unknown 2016 年 9 月 16 日 下午 2:00 
They fixed waves. this mod isn't needed anymore.
Kasuha 2016 年 5 月 27 日 下午 12:54 
Thanks!
IvanX  [作者] 2016 年 5 月 27 日 下午 12:48 
Uploaded the fix, thanks for the find :) Funny how nobody complained about it earlier!
Kasuha 2016 年 5 月 27 日 上午 2:07 
Ah, I missed that you subtract the value from 360 instead of subtracting 360 from it. Ok then, it should work.
IvanX  [作者] 2016 年 5 月 27 日 上午 12:21 
there's math.abs(waveangle - playerangle)
Thus the difference is always positive
Kasuha 2016 年 5 月 26 日 下午 11:10 
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  [作者] 2016 年 5 月 26 日 下午 10:47 
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 2016 年 5 月 26 日 下午 10:15 
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 2016 年 5 月 26 日 下午 10:14 
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  [作者] 2016 年 5 月 26 日 下午 2:48 
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 2016 年 5 月 26 日 下午 2:29 
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  [作者] 2016 年 5 月 26 日 下午 12:27 
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 2016 年 5 月 25 日 下午 2:43 
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 2016 年 5 月 16 日 上午 10:21 
You think so? No updates for long time.
IvanX  [作者] 2016 年 5 月 15 日 上午 7:00 
You're welcome! I sure hope it gets fixed in the game soon, so this mod will no longer be needed.
Vizaru 2016 年 5 月 14 日 下午 9:35 
Thank you for this mod! I feel like this should be how the default game works.
star 2016 年 4 月 25 日 上午 11:41 
Это правильно :)
Sleepy-Keyzer 2016 年 4 月 24 日 下午 3:25 
Huh...

I didnt realize that.....heh.
IvanX  [作者] 2016 年 4 月 24 日 上午 11:24 
Why booooooooooooooT? :steamsad:
FreshLiverWhy 2016 年 4 月 24 日 上午 9:18 
nooooooooooo:steamsad:
tostikOwO 2016 年 4 月 24 日 上午 4:23 
спасибо
IvanX  [作者] 2016 年 4 月 24 日 上午 3:34 
@Shad!52, В Shipwrecked когда ловишь волну для ускорения, у тебя безопасный угол 180 градусов. Так вот иногда можно плыть почти под одним углом с волной и все равно вместо ускорения врезаться в нее, получая урон и намокая. Фикс это исправляет, + теперь при потере управления в тумане (на краю карты), ты тоже больше не врезаешься в волны
tostikOwO 2016 年 4 月 24 日 上午 12:04 
что делает этот fix
IvanX  [作者] 2016 年 4 月 23 日 上午 11:18 
Added fix for getting hit by waves when entering fog. Now you don't :p
Damo 2016 年 4 月 23 日 上午 5:01 
11/10 :dssmallbird:
IvanX  [作者] 2016 年 4 月 22 日 下午 11:02 
@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 2016 年 4 月 22 日 下午 9:14 
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  [作者] 2016 年 4 月 22 日 下午 9:12 
@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 2016 年 4 月 22 日 下午 7:17 
@ivanx you now have no hug
Glowth 2016 年 4 月 22 日 下午 6:39 
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  [作者] 2016 年 4 月 21 日 下午 10:24 
@Super Suit 12, :' ) Thank you, I needed that!. *hugs back*
kaisham 2016 年 4 月 21 日 下午 7:19 
interesting
DC-23A7 "Mira" 2016 年 4 月 21 日 下午 4:52 
You have earned: 1 HUG
*gives hug*
uberduba 2016 年 4 月 21 日 下午 2:21 
AWESOME
Veneceos 2016 年 4 月 21 日 上午 10:54 
Nice !!
IvanX  [作者] 2016 年 4 月 20 日 下午 12:41 
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 2016 年 4 月 20 日 下午 12:37 
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  [作者] 2016 年 4 月 20 日 下午 12:26 
@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  [作者] 2016 年 4 月 20 日 下午 12:14 
@voyager156, That's weird, the code i changed had nothing to do with the fog. Let me check it out
voyager156 2016 年 4 月 20 日 上午 10:24 
This mod makes my game crash when entering a fog...
372123212 2016 年 4 月 20 日 上午 7:03 
fuck YOU!!!!!
IvanX  [作者] 2016 年 4 月 19 日 下午 10:12 
You're welcome :dsham:
IvanX  [作者] 2016 年 4 月 19 日 上午 7:49 
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 2016 年 4 月 19 日 上午 6:49 
YESSSSS THANK YOUUU
IvanX  [作者] 2016 年 4 月 18 日 下午 2:22 
Have fun with bug-free ocean ;)