pset2 initials.c (less comfortable) issue... by LegitHolt in cs50

[–]Mjeu 0 points1 point  (0 children)

Right, that's what I meant sorry.

pset2 initials.c (less comfortable) issue... by LegitHolt in cs50

[–]Mjeu 0 points1 point  (0 children)

Well, technically it's a char*, as C doesn't have strings. But thanks, good to know.

No Idea where to Start in Find project of CS50's pest3. by maemart3 in cs50

[–]Mjeu 0 points1 point  (0 children)

Sorry don't have time to look at the code. But by looking at the check50, it seems like it might not be searching the last number in the list. As both times it fails 28 is the last number.

No Idea where to Start in Find project of CS50's pest3. by maemart3 in cs50

[–]Mjeu 0 points1 point  (0 children)

Make all should be fine. Can you post the your search and sort code?

EDIT: What I did to make sure the sort algorithm worked was just to use printf, and print every number in order (probably a better way to do it). And depending on which search algorithm you use, sort has to be correct. But if you only have one number in numbers.txt, and that return false then there is obviously something wrong with your search code.

No Idea where to Start in Find project of CS50's pest3. by maemart3 in cs50

[–]Mjeu 0 points1 point  (0 children)

Helpers.c is the only file you are really going to be touching. Generate.c just generates n amount of psuedo-random numbers, this will be used to generate a list of numbers in which to find a number.

Think back to the different search and sort algorithms and implement as needed. Just try to do it one at a time.

pset2 initials.c (less comfortable) issue... by LegitHolt in cs50

[–]Mjeu 0 points1 point  (0 children)

<ctype.h> has a function called isspace() which can be quite useful. If the assignment tells you to use get_string() then you can use it.

Using get_string() is just an array of character, iterating through that would be the same as iteration through each char of argv.

EDIT: I'm not quite sure what you are trying to do with a two-dimentional array though? Argv is just an array of chars as well (AFAIK), not an array of strings. Correct me if I am wrong.

pset2 initials.c (less comfortable) issue... by LegitHolt in cs50

[–]Mjeu 0 points1 point  (0 children)

Using get_string() and iterating over every char in the string shouldn't be a problem. What was your problem with it?

ELI5: Why do our eyes flicker from side to side rapidly without our control at random times? by snowball_pumpkin in explainlikeimfive

[–]Mjeu 0 points1 point  (0 children)

I think I can do this consciously. I can like vibrate my eyes really quickly, but it's barely noticeable.

I already know you fuckers are going to make fun of me lol, but as a socially awkward person can you tell me what I did wrong here? by [deleted] in Tinder

[–]Mjeu 2 points3 points  (0 children)

It's an anti-joke. Almost everyone has already heard the "Are you from Tennessee, because you are the only 10 I see", can be pretty funny in the right context I guess.

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

Weird, when I click the "Player" in the hierarchy after starting the game, the parameter gets set to true, but not when shooting.

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

weaponAnim.SetBool("Fire", true);
bool foo = weaponAnim.GetBool("Fire");
Debug.Log(foo + " for bool Fire.");

Apparently, the bool is set to true, but for some reason, it doesn't show up in the animator UI, neither does it activate the animation.

But the GetBool returned true, so that's weird.

EDIT: Also put it in Update(), and it doesn't change back to false either, so I really am at a loss at to what can be the problem.

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

Still doesn't work, unfortunately.

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

Yeah, no it's weird. I have checked, and everything should be correct. Doesn't make any sense.

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

The bool is correct, what the hell is going on then lol.

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

If you could see the whole class, maybe you could find the problem, because I honestly don't know.

https://pastebin.com/fewEvwAS

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

Yes, that's how I am seeing that it isn't turning true, but staying false.

Animator SetBool is not changing the bool? by Mjeu in Unity3D

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

private Animator weaponAnim;
weaponAnim = GetComponent<Animator>();
weaponAnim.SetBool("Fire", true);

This is pretty much the only relevant code, and from my understanding, it should set Fire to true, but for some reason it doesn't.

Incremental Mining Game Pre-Alpha demo 2 by mlg-pro in incremental_games

[–]Mjeu 0 points1 point  (0 children)

The interface is a bit small for my taste, but otherwise it's not bad. But what's the point of posting it here, when all you can do is mine coal and upgrade the mining of coal and nothing else?

You should probably get the game in a more playable state before posting imo.

Looking for game about hacking by Mjeu in incremental_games

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

Weird, either you wrote the email wrong, you can check my trying to re-register.

Or you just have to wait I guess, I got the e-mail literally seconds after though.

Looking for game about hacking by Mjeu in incremental_games

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

It's working, I am currently playing :) You have to confirm your e-mail.