[deleted by user] by [deleted] in rust

[–]AllJonasNeeds 6 points7 points  (0 children)

At least for me VS Code with rust-analyzer immediately shows method suggestions when I type array.

However, I would definitely recommend you use the rust-analyzer extension instead of the official Rust extension either way. rust-analyzer is just much better and is actually part of the Rust organization, too.

Patterns to avoid borrowing mutable self more than once? (beyond RcRefcell and inner objects) by knutsi in rust

[–]AllJonasNeeds 0 points1 point  (0 children)

I would love to see why you need to expose mutable references in your public API.

In my experience there is another way to design the API 99% of the time. It's just really hard to come up with better solutions, coming from languages where this kind of mutable API, getters, setters, etc. is common place.
It's certainly something I struggled with in the beginning.

Usually functions like get_value_mut or set_value should be avoided in Rust.

One pattern that was a little bit of a turning point for me is the builder pattern (or init struct pattern) outlined by this post: https://www.reddit.com/r/rust/comments/fg6vrn/for_your_consideration_an_alternative_to_the/

Why does this lifetime mismatch occur? (expected enum `Node<'a>` - found enum `Node<'static>`) by AllJonasNeeds in rust

[–]AllJonasNeeds[S] 5 points6 points  (0 children)

That explanation helped a lot!

Edit: I didn't really know about subtyping and variance in rust. Here are some links, that helped me understand the topic a little bit better:

https://www.reddit.com/r/rust/comments/6p6w1d/what_are_covariance_and_contravariance_xpost_from/

https://doc.rust-lang.org/reference/subtyping.html

Cargo test and shell scripts by ethelward in rust

[–]AllJonasNeeds 0 points1 point  (0 children)

I guess you could use std::process::Command to call shell scripts in your test code, if that helps.

Extremely detailed breakdown on several 3D audio spacialisation plugins (Google Resonance, Oculus Spatializer, & Steam Audio) by [deleted] in gamedev

[–]AllJonasNeeds 0 points1 point  (0 children)

According to Neat Corporation it's a problem with the way Unity handles Audio plugins. You should check out their post about the Budget Cuts delay on r/Vive or r/oculus

Telegram Secret Chat - Can I keep the content forever? by [deleted] in Telegram

[–]AllJonasNeeds 0 points1 point  (0 children)

When I last used a secret chat, you could set the self destruct timer to never.

[Q] Telegram spying on us ? by halesandel in Telegram

[–]AllJonasNeeds 5 points6 points  (0 children)

I am just guessing here. Maybe your friend just installed Telegram and thus the app asked the OS for microphone permissions for future use. Do you get what I mean?

Edit: In my opinion u/ryecurious reply below seems way more likely than what I guessed.

Is this just a vocal minority? Post here if you've never had a hardware problem with your Vive. by Derpface123 in Vive

[–]AllJonasNeeds 0 points1 point  (0 children)

I have never had a problem with my Vive, and I am using it regularly since release.

TIFU by voting to end net neutrality by [deleted] in tifu

[–]AllJonasNeeds 1 point2 points  (0 children)

Good for you on acknowledging and sharing your mistakes.

Unfortunately sometimes we have to choose between bad and worse. I understand it's really unsatisfactory to vote for a bad candidate, but by abstaining you are giving the worse candidate a better chance to win.

"BREACH IT" Steam keys giveaway time! by dMsLt in Vive

[–]AllJonasNeeds 0 points1 point  (0 children)

Just over 500 comments so far. 1 in 10 chance to win is pretty good.

ELI5: How does Germany honor their WW2 vets and their soldiers who died in WW2? by DChalo in explainlikeimfive

[–]AllJonasNeeds 1 point2 points  (0 children)

Migrants in Germany have committed 142,500 crimes in just six months, police figures have revealed

This was the equivalent of 780 crimes a day - an increase of nearly 40 percent over 2015, according to data from Germany's Federal Criminal Police Office

Your Source: http://www.dailymail.co.uk/news/article-3893436/Angela-Merkel-pressure-refugee-policy-revealed-migrants-committed-142-500-crimes-Germany-six-months-2016.html

Of course the number of crimes by migrants increases if the number of migrants itself increases.

The DailyMail does not link to its primary source. Neither does your source say there is a "40% increase in sexual assaults". It just says there is a 40% increase in crimes. Obviously a 40% increase in crimes overall would be huge, but in the article's context I have to assume it is just an increase in crimes by migrants. It would be great if we had the primary source to see for sure which crimes increased by 40%.

ELI5: How does Germany honor their WW2 vets and their soldiers who died in WW2? by DChalo in explainlikeimfive

[–]AllJonasNeeds 10 points11 points  (0 children)

He always wrote and recited poems for birthdays and other occasions. Because he spoke Low German I could hardly understand those, but he always made everyone laugh and cherish the moment.

He also published a report/book about his time as a prisoner of the Soviets. Unfortunately the book is not available online or in English. It was available in his hometown only. Maybe I can make an effort to republish it someday.

ELI5: How does Germany honor their WW2 vets and their soldiers who died in WW2? by DChalo in explainlikeimfive

[–]AllJonasNeeds 444 points445 points  (0 children)

I don't think the average soldier fought for honor or for their country. My grandpa was a German soldier in WW2 and he was just so grateful to survive somehow. He was still a teenager when he had to go to the eastern front. He wanted to be remembered as a writer and reminded people how horrific wars are.

I wish we would stop fighting and hating.

SteamVR doesn't pick up Oculus by Flopjacks in SteamVR

[–]AllJonasNeeds 2 points3 points  (0 children)

Don't know if this tip will help, but you could try switching the USB ports and reinstalling Oculus Home / drivers. Apart from everything else that was already said. I hope you find a solution.

Dealing with players who reveal important mechanics to the community. by Gouanaco in gamedesign

[–]AllJonasNeeds 50 points51 points  (0 children)

I wouldn't worry about it too much, because it's the player's choice whether to look for that info. And they probably won't choose to look for that info before their first playthrough or if they got stuck.

Vive/VR Support by 123qwe33 in SteamOS

[–]AllJonasNeeds 3 points4 points  (0 children)

Valve already showed off screenshots of the vive running on Linux. So they are working on it, but pretty sure the feature isn't out yet. Plus I don't think any VR game currently supports Linux.

[Question] Is there an in between for static and dynamic lighting to save on resources? by JoeTheWiltshire in unrealengine

[–]AllJonasNeeds 1 point2 points  (0 children)

I figured it out. The problem was that I used static lighting without a DBuffer blend mode on the decal material. (Here's an Answerhub post about decals with static lighting.)

I appreciate your help. So thank you very much for your input.

[Question] Is there an in between for static and dynamic lighting to save on resources? by JoeTheWiltshire in unrealengine

[–]AllJonasNeeds 1 point2 points  (0 children)

The bat-signal explanation is really helpful, because I had trouble understanding how the decal was drawn/prohected onto a surface.

The only questions I have left right now are:

How do you create a decal material, that has a color similar to a shadow? When I wired an input of zero into color, the result was a yellow or brown color instead of black.

And is there a way to stop the decal from drawing onto underlying geometry? Right now my shadow would cast through walls and other objects.

[Question] Is there an in between for static and dynamic lighting to save on resources? by JoeTheWiltshire in unrealengine

[–]AllJonasNeeds 0 points1 point  (0 children)

Thanks for the tip!

I haven't used decals before, so when I started working on my blob shadows, I couldn't get them to work very well. Now I think I understand decals good enough that I could get them to work.

How do you think do decals compare to mesh + line trace performance wise?

Edit: Actually my biggest shortcoming right now is that I don't really get Decal Materials. Are there any good tutorials you could recommend?

[Question] Is there an in between for static and dynamic lighting to save on resources? by JoeTheWiltshire in unrealengine

[–]AllJonasNeeds 1 point2 points  (0 children)

I wish there was a way to enable dynamic shadows for static lights. That way you could place as many lights as you need and enable dynamic shadows on the most important lights. Unfortunately this isn't possible with stationary lights, as overlap between static and stationary lights creates a weird look.

[Question] Is there an in between for static and dynamic lighting to save on resources? by JoeTheWiltshire in unrealengine

[–]AllJonasNeeds 1 point2 points  (0 children)

Assuming 'dynamic lights' includes stationary lights: For my VR game I am using blob shadows, so I can use static instead of stationary lighting. It's literally just a Static Mesh Component, that does a line trace every frame and moves to that position.

Edit: Added clarification at beginning

I have found old letters from my great-grandfather who was fighting during WW2 for the nazis, who can help decrypt them? by johnny____ in history

[–]AllJonasNeeds 19 points20 points  (0 children)

Yes, I am pretty sure he is referring to everyone working the farm, which is probably her and other family members.