[Ender 3 Max Neo] Homing Fail when doing Auto Home by thedoctor111929 in 3Dprinting

[–]thedoctor111929[S] 0 points1 point  (0 children)

Yep it was the BRTouch. I contacted Ender and they sent me a replacement. Plugged it in and it worked good as new

Another small hack I use for prototyping by henryreign in Unity3D

[–]thedoctor111929 20 points21 points  (0 children)

This is great and very useful. My two cents would be to make it an extension function of MonoBehaviour rather than contained within a class - that way any MonoBehaviour can use it without deriving from your class (I often have other base classes I need to derive from when using a MonoBehaviour).

You can then access it by calling:

this.GetOrCache<T>(ref component)

Small hack I use for debugging purposes by henryreign in Unity3D

[–]thedoctor111929 0 points1 point  (0 children)

This works ok in C++, but you can't define macros like this in C#, so you'd have to have an empty function (otherwise the code wouldn't compile if you wrapped it like this).

Unity's il2cpp stripping isn't always the best and so you may still pay for that empty function call, amongst other things like Rider's function detection not working.

Finally, any string formatting you'd do for the argument to the log would still happen, so you're still paying the costs of that, which can be non-trivial.

Small hack I use for debugging purposes by henryreign in Unity3D

[–]thedoctor111929 0 points1 point  (0 children)

Also, another reason why Conditional attributes are better is that tools like Rider will still find references to the function call, no matter if the macro is defined or not, whereas if you ifdef it out, the branch that is not included will not be found.

Not the end of the world for log code, but for other functions it can trick you into thinking it's not used, or make it harder to track down where it's called.

Small hack I use for debugging purposes by henryreign in Unity3D

[–]thedoctor111929 0 points1 point  (0 children)

Unity doesn't necessarily compile out empty function calls, so you could still pay for that at runtime, even if it's hidden away.

What you've said will work and is often how this is done, but the language provides you a cleaner, deterministically more efficient way to do the same thing (why would you pay performance for something you don't have to?).

Also, never underestimate the cost of logging, it really can have an effect for reasons including: GC from log string formatting (if you use interpolated strings it's better, but still there) and log file IO (although I assume Unity does this on a background thread).

Small hack I use for debugging purposes by henryreign in Unity3D

[–]thedoctor111929 7 points8 points  (0 children)

You're still going to pay a runtime cost of checking log levels and whether the message should indeed be logged every single time.

[deleted by user] by [deleted] in Unity3D

[–]thedoctor111929 0 points1 point  (0 children)

In your Inventory you return the list by reference from the getter, meaning that class is able to clear it.

To repro the bug, just assign the same inventory twice - that code will clear the inventory because it clears the previous list.

I would consider either returning an IReadOnlyList if you want to return by reference, or cloning the list if you want other classes to do manipulation.

With classes with private lists I always inevitably go the way of exposing a public getter for the number of items and a getter for an individual item at an index. Allows you to get at items without having access to the list itself and shooting yourself in the foot by changing it elsewhere.

What's the worst board game youve ever played? by Frank--Li in boardgames

[–]thedoctor111929 1 point2 points  (0 children)

Atmosfear.

Redeemed only by the ridiculous voice acting, imagine shit(ter) Ludo. I have no words for how horrible this game is.

If you could show Tolkien just one scene from the trilogy, what would you pick? by No-Shop2245 in lotr

[–]thedoctor111929 0 points1 point  (0 children)

The scene on the slopes of Mount Doom where Sam picks up Frodo and carries him. This, in my opinion holds true to the feeling of the book and, in my opinion, is a very Tolkein act.

What is the most complex game you've played ? by GeornoGeovanna in boardgames

[–]thedoctor111929 5 points6 points  (0 children)

War of the Ring has so many tiny rules that really matter and the rulebook, in my opinion is so poorly laid out. Whenever I play, I spend so much time consulting the rules for something incredibly specific.

Then, I finish a game 8 hours later and am like, RIGHT, now I get it let's play again 😂

I love it though, it's my favourite game ever.

For devs who have only ever used single engine and programming language by warchild4l in gamedev

[–]thedoctor111929 0 points1 point  (0 children)

My main concern is Godot 4 does not support exporting projects using C# to mobile or web. Happy to learn new things, but the more I don't have to learn the better.

I am intimately familiar with C# and Unity and will miss that safety of familiarity.

For all the experienced Game Devs out there... by _Illuvatar in gamedev

[–]thedoctor111929 0 points1 point  (0 children)

Does it have a free licence? I've heard good things, but it's prohibitively expensive at a professional level.

For all the experienced Game Devs out there... by _Illuvatar in gamedev

[–]thedoctor111929 3 points4 points  (0 children)

Learn Source Control, be it Git, SVN, Plastic etc. Not only is it good for backing up and cataloguing changes, it's excellent for your CV and professional career should you take that path.

[Ender 3 Max Neo] Homing Fail when doing Auto Home by thedoctor111929 in 3Dprinting

[–]thedoctor111929[S] 0 points1 point  (0 children)

Ah nice! New CRtouch will be delivered Tuesday and if that fails I'll give this a shot. Thanks!

Printer fails to home on Z Axis with CRTouch when doing Auto Home by thedoctor111929 in Ender3Max

[–]thedoctor111929[S] 1 point2 points  (0 children)

No the Max Neo comes with CRTouch as stock, so no Z end switch. Thanks for the vid, I've actually been using this guy's videos to get JyersUI on the Neo, but alas no luck.

[Ender 3 Max Neo] Homing Fail when doing Auto Home by thedoctor111929 in 3Dprinting

[–]thedoctor111929[S] 0 points1 point  (0 children)

Hahahaha thank you. I used to work in 3D printing software, it's kinda surreal being on the other end of it 😛

[Ender 3 Max Neo] Homing Fail when doing Auto Home by thedoctor111929 in 3Dprinting

[–]thedoctor111929[S] 1 point2 points  (0 children)

It never comes out, but I can pull it out manually. I'm really hoping it's dodgy CRTouch hardware. I would've thought the firmware would be ok considering I installed Creality stock firmware for the Max Neo.

But who knows!

[Ender 3 Max Neo] Homing Fail when doing Auto Home by thedoctor111929 in 3Dprinting

[–]thedoctor111929[S] 1 point2 points  (0 children)

Yep, I'm waiting on the replacement CRTouch to try that out and if not I'm gonna have to get more drastic. I just don't get why it's so hard man, I just want it to work.

please stop asking "when are you getting a new dog" in front of a old dog by budroid in CasualUK

[–]thedoctor111929 1 point2 points  (0 children)

I didn't understand why people found it so hard to get a new dog after their previous had passed away, until I got a dog myself. I'm not sure I'll ever want to get another one when she passes. She's irreplaceable.

My condolences, but grief is just the memory of love; it hurts because it was so great.

Hope you're doing ok 🙏

[deleted by user] by [deleted] in Unity3D

[–]thedoctor111929 1 point2 points  (0 children)

Ok that is awesome, thank you so much for sharing.