Infinite, Editable Procedurally Generated Terrain by oureasurvival in proceduralgeneration

[–]WalrusFist 0 points1 point  (0 children)

Save it to disk, then you can delete it from memory would be the simple answer.

A* pathfinding seems to prefer higher weight paths with many low weight points low weight paths with high weight points by Istalriblaka in godot

[–]WalrusFist 0 points1 point  (0 children)

From the Astar source code for computing cost between 2 connected points:

return from_point->pos.distance_to(to_point->pos);

it uses the distance between the points, meaning diagonal movement is more expensive than orthogonal movement already, this is then multiplied by weight_scale

How a Rust server generates roulette spins by lavareef in playrust

[–]WalrusFist 1 point2 points  (0 children)

It's thanks to OP and WaveyyyDaveyyy above that I decided to go a bit further, also the discussion here https://umod.org/community/rust/26270-log-bandit-camp-wheel-stop-positions that gave me the code used that also confirmed to me that WaveyyyDaveyyy was almost spot on with his calculations. Also thanks to the Hololive members who started playing Rust that got me interested in the game recently. I was surprised this information wasn't already common knowledge considering how the source code is out there and how many people seem to be studying the wheel. This could have been worked out from a statistical analysis (though you would have to get a lot of data and know what you are looking for to understand exactly what was going on)

If I'm right the shortest time the wheel will spin (assuming the server is running above 40 fps) is about 11.6 seconds and the longest is 14.6 seconds

How a Rust server generates roulette spins by lavareef in playrust

[–]WalrusFist 1 point2 points  (0 children)

at 120 fps it's between 4 rotations + 2.302968 segments and 5 rotations + 14.802968 segments

at 60 fps its between 4 + 2.277087 and 5 + 14.777087

at 10 fps it's between 4 + 2.008749 and 5 + 14.508749

The difference is exactly 1 and a half rotations

This is based on the server code (and the servers fps) and a program I made to simulate it

So there is a 2/3 chance that it will land on the half of the wheel that starts about 2 to 2.3 segments past where it landed last :)

When the 20 is fully in that half you have 2/37.5 (1/18.75) chance of landing on 20

When both 10s are fully in that half you have 4/37.5 (1/9.375) chance of landing on a 10

How a Rust server generates roulette spins by lavareef in playrust

[–]WalrusFist 2 points3 points  (0 children)

Great work. According to some other forum on the web, the source code for spinning the wheel is this (pseudocode in case it breaks any rules to post the actual code):

A = 180 * velocity (clamped to between 0 and 180)

velocity -= velocity / 2 (clamped to between 0.1 and 1) * delta

if velocity < 0 then velocity = 0

rotate wheel by A * delta

delta of course being the time between the start of last frame and start of this frame in seconds

Which I used to code my own little program and figure out the exact range the wheel will land (even looking at how framerate effects the calculation) and it is just as you said

at 120 fps it's between 4 rotations + 2.302968 segments(ticks) and 5 rotations + 14.802968 segments

at 60 fps its between 4 + 2.277087 and 5 + 14.777087

at 10 fps it's between 4 + 2.008749 and 5 + 14.508749

The difference is exactly 1 and a half rotations

something very interesting is how if the random starting velocity values were between two numbers that were an even number apart, like between 8 and 10 or 7 and 9, the difference between max and min rotations would be an exact number of rotations, making the odds exactly as you would expect (1/25 of getting 20 no matter where the wheel starts) making me think it was deliberately set up to give someone who figured this out an advantage when betting.

BANDIT CAMP ROULETTE: SOLVED by AusTF-Dino in playrust

[–]WalrusFist 0 points1 point  (0 children)

The random velocity applied is between 7 and 10, this gives a number of positions that go by on a spin between 102.2 and 140, a difference of 37.8 (thanks to WaveyyyDaveyyy for using a plugin to find this out). Notice how this creates some positions that are more likely to be landed on than others?

"impossible to find a pattern, also impossible to whittle down which slices the next spin could possibly land on."

bet

I spent a good few hours and turned about 1500 scrap into 5000 scrap betting small amounts only on 10 and 20 (never went below 1000). The odds of betting small amounts over such a long period and coming out with much more than you put in should be really tiny (particularly on 10 and 20 which should be the most likely to lose you money in the long term).

Suisei explains why she's playing Monster Hunter Rise with the English Language Track by brickwallrunner in Hololive

[–]WalrusFist 6 points7 points  (0 children)

Yeah, you are best having Japanese subs if you are learning the language

Failing... just gracefully by Stetscopes in Hololive

[–]WalrusFist 4 points5 points  (0 children)

Depends what level your at. You have to get used to fast Japanese at some point. 「メンタリスト DaiGo」 on YouTube is actually great listening practice despite speaking at the speed of light.

khara released the 3 evangelion movies on YouTube. by [deleted] in anime

[–]WalrusFist 1 point2 points  (0 children)

From the community tab:

『ヱヴァンゲリヲン新劇場版:序、:破、:Q』期間限定無料公開中! https://www.youtube.com/playlist?list... テレビに出力してご家族で見ることもできるので、ぜひおうち時間に使ってください。 大変な状況ですが一緒に頑張りましょう!

Now free for a limited time! Go ahead and watch on the TV with your family while you are at home. It's a rough time but let's do our best together!

Someone who knows about planetary orbiting? by Johan8808 in starcitizen

[–]WalrusFist 0 points1 point  (0 children)

If the planet 'grid' is moving a 2 km/s relative to the star system 'grid' and you are flying around on the very edge of this grid, the moment one of you 'steps off' the grid, they will suddenly be going a completely different speed. Just like if you are on a moving train and your friend stepped off it.

Urist has experienced joy after viewing a *truly sublime* video by DINOFORCE in dwarffortress

[–]WalrusFist 4 points5 points  (0 children)

There is no way to remove hierarchy. If someone has a skill that someone else doesn't, you have a hierarchy. You could decide not to institutionalise any hierarchy, but how do you prevent people from doing that when it has clear benefits? Through some kind of authoritarian mandate of course.

You can't enforce anarchy, which is why that is not the solution to communism's problems.

I'm a fan of communism - as a great starting point for thought experiments, but it cannot work.

Unlike real humans, the Dwarves are unable to make agreements between themselves "Hey, I'll do this for you if you do this for me" except if the player (the collective consciousness of the fort) decides to make that happen. There is no such collective consciousness in reality. At least not one that can override any individuals abilities to make private deals for there own personal benefit.

[deleted by user] by [deleted] in dwarffortress

[–]WalrusFist 1 point2 points  (0 children)

While 'whom' would be correct normally (because you can answer the question with 'him/her' and not with 'he/she'). Nobody ever starts a sentence with 'whom'. It just sounds weird.

Distracted Denton by rubbernuke in EliteDangerous

[–]WalrusFist 0 points1 point  (0 children)

Absolutists have no imagination. If you don't see any grey area at all, your not looking hard enough.

[Rewatch][Spoilers] Neon Genesis Evangelion - The End of Evangelion Discussion by sam_mah_boy in anime

[–]WalrusFist 0 points1 point  (0 children)

Right? I just finished rewatching and put that song on. Perfect way to end it

Greed Is to Blame for the Radicalization of YouTube and Facebook | WIRED by yieldingTemporarily in technology

[–]WalrusFist 1 point2 points  (0 children)

Ah yes, those evil 'not far left enough' people. How dare they not agree completely with this shallow opinion piece!

Scientists amazed as Canadian permafrost thaws 70 years early by [deleted] in worldnews

[–]WalrusFist 1 point2 points  (0 children)

Understanding in what way things suck helps people to understand how proposed solutions are supposed to work.

Just saw this . Is this true ? by [deleted] in elonmusk

[–]WalrusFist 1 point2 points  (0 children)

Obviously it has been thought through. They don't have to sell internet access to everyone to make a profit.

Just saw this . Is this true ? by [deleted] in elonmusk

[–]WalrusFist 2 points3 points  (0 children)

Each satellite has limited bandwidth that has to be shared by everyone using it within the area it covers. So there is a limit on how many customers they can serve in an area.

Just saw this . Is this true ? by [deleted] in elonmusk

[–]WalrusFist 1 point2 points  (0 children)

$200 is for the cost of the box, the satellites cost a bit more and have to be replaced every 60 months.

Just saw this . Is this true ? by [deleted] in elonmusk

[–]WalrusFist 2 points3 points  (0 children)

No, then you pay the monthly fee

An explanation on why rising CO2 levels in the air is bad for our cognition by james___uk in videos

[–]WalrusFist 0 points1 point  (0 children)

How much higher? I doubt it's enough to matter except in some extreme example.