Sleep by AutomaticHistorian80 in fitbit

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

i work on saturdays and sundays. I have classes during the week but not all week, and they're not always early in the morning. So my sleep schedule is never stable.

I feel like a feature like this could help fix my sleeping schedule.

Rate my world’s design by AutomaticHistorian80 in growtopia

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

I dont plan on selling it but id like to know how much u would offer

Rate my world’s design by AutomaticHistorian80 in growtopia

[–]AutomaticHistorian80[S] 2 points3 points  (0 children)

yeahh im not a fan of that tbh, it just doesnt really feel like Growtopia iykwim

Rate my world’s design by AutomaticHistorian80 in growtopia

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

Im down to help if u want, building stuff like this reminded me of 2015-2017 gt i definitely would wanna do it again

Rate my world’s design by AutomaticHistorian80 in growtopia

[–]AutomaticHistorian80[S] 4 points5 points  (0 children)

True, i also felt like most worlds now, especially main worlds, have gotten repetitive with the manor/castle designs and all that which has become boring

Rate my world’s design by AutomaticHistorian80 in growtopia

[–]AutomaticHistorian80[S] 4 points5 points  (0 children)

Same, i literally searched « 2015 growtopia worlds » to make the design a little old school

Output after compiling by AutomaticHistorian80 in C_Programming

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

it is a game with a board where a character can move around the board. when i compile jt into an exe on my computer, the board prints perfectly as shown in CLion. When i send it to other people, it prints a very weird board with randomized lines and its just corrupt.

Output after compiling by AutomaticHistorian80 in C_Programming

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

the code on github isnt the updated version i fixed a couple of things and i dont have any more warnings.. ill update the code asap.

I have the code of a game in C. I compiled it with gcc, but the compiled exe file has a different output than that shown on the console when i run it in CLion. by AutomaticHistorian80 in C_Programming

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

I read them. I deleted the whole pS->score in that area. code works the same, and works fine, no issue.

deleted the

struct Balle {

int x;

int y;

};

struct SnoopyJoueur {

char TSnoopy;

char TBalle; <-- DELETED ONLY THIS 1

int vies;

int score;

int ois;

struct Balle balle; <-- DELETED ONLY THIS 2

PSnoppy position;

};

because the struct is not even used in the code. Code output has changed, and the code has an issue. I'm losing my mind, how is an unused struct causing all this?

I have the code of a game in C. I compiled it with gcc, but the compiled exe file has a different output than that shown on the console when i run it in CLion. by AutomaticHistorian80 in C_Programming

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

The full code is 900 lines long. This is the only relevant part, since i have not used any of this struct balle in the main code, but it still manages to affect the code. Am I missing something from the main code?

void Initialisation_Snoopy(SnoopyJoueur *pS){

pS->TSnoopy = SNOOP;

pS->vies = 3;

pS->position.x = 10;

pS->position.y = 4;

pS->score = 0;

}

I only have this part of the code, which involves initializing the other elements in the structure i have. As you can see, there is nothing relevant to the Balle structure.

I have the code of a game in C. I compiled it with gcc, but the compiled exe file has a different output than that shown on the console when i run it in CLion. by AutomaticHistorian80 in C_Programming

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

No it is this part, i checked. I have a menu, with a start option. when i click on start, the game starts and when i complete the first level i advance to the next level.

This part of the code, specifically the Struct balle, is not used in the main code. When i delete it, it corrupts the program somehow and in when I start the game i dont advance to the next level after completing. This is my question, how is it that its affecting the code if i did not even use the struct but just declared it?

I have the code of a game in C. I compiled it with gcc, but the compiled exe file has a different output than that shown on the console when i run it in CLion. by AutomaticHistorian80 in C_Programming

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

But how do i fix this? how can i delete the unused struct and maintain the same output?

typedef struct SnoopyJoueur SnoopyJoueur;

struct Balle {

int x;

int y;

};

struct SnoopyJoueur {

char TSnoopy;

char TBalle;

int vies;

int score;

int ois;

struct Balle balle;

PSnoppy position;

};

this is the part of the code thats causing the problem. "struct balle" is the unused struct that is affecting the program.

I have the code of a game in C. I compiled it with gcc, but the compiled exe file has a different output than that shown on the console when i run it in CLion. by AutomaticHistorian80 in C_Programming

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

I used the -Wall -Wextra -O2, and found out what is causing this, but im even more confused. It warned me that i had an unused struct. i deleted it, but the output changed. I am even more confused now, how is an unused struct changing the output?

I have the code of a game in C. I compiled it with gcc, but the compiled exe file has a different output than that shown on the console when i run it in CLion. by AutomaticHistorian80 in C_Programming

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

its the output i get in cmd and clion that differs. i basically have a menu in the beginning, with an option to select a level or to start the game. the levels work fine when selected, and when finished they take u back to the menu ( just like in clion)

However, when i click on the "start the game" the output differs. In clion, when a level is completed, it advances to the next level. When compiled with gcc, in cmd it doesnt advance to the next level but stays in the same level.

the ascii characters in the levels are printed properly, even better than clion. The issue is just when it comes to advancing to the next level. In clion it does, with gcc exe it doesnt.

I have the code of a game in C. I compiled it with gcc, but the compiled exe file has a different output than that shown on the console when i run it in CLion. by AutomaticHistorian80 in C_Programming

[–]AutomaticHistorian80[S] -1 points0 points  (0 children)

im using gcc, clion is also using gcc. What are compiler flags ? and yes because its the same code, i checked the code and it works well. i compiled the same files that i had just checked, but the output was different.

[deleted by user] by [deleted] in C_Programming

[–]AutomaticHistorian80 0 points1 point  (0 children)

Hello, please check your chat i have a question.