Backup option in a game ( C ) [on hold]
up vote
-1
down vote
favorite
I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.
Thanks !
c
New contributor
put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-1
down vote
favorite
I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.
Thanks !
c
New contributor
put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
3
en anglais, svp
– MattHusz
2 days ago
@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago
2
@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago
1
Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago
@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.
Thanks !
c
New contributor
I'm creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are.
Thanks !
c
c
New contributor
New contributor
edited 2 days ago
New contributor
asked 2 days ago
Weder
23
23
New contributor
New contributor
put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by dbush, Eric Postpischil, Broman, mkrieger1, tmlen 2 days ago
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
3
en anglais, svp
– MattHusz
2 days ago
@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago
2
@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago
1
Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago
@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago
add a comment |
3
en anglais, svp
– MattHusz
2 days ago
@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago
2
@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago
1
Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago
@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago
3
3
en anglais, svp
– MattHusz
2 days ago
en anglais, svp
– MattHusz
2 days ago
@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago
@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago
2
2
@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago
@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago
1
1
Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago
Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago
@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago
@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
-2
down vote
Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.
Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.
1
StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago
i wrote both, french and english....
– MLeblanc
2 days ago
While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago
My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago
@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-2
down vote
Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.
Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.
1
StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago
i wrote both, french and english....
– MLeblanc
2 days ago
While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago
My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago
@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago
add a comment |
up vote
-2
down vote
Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.
Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.
1
StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago
i wrote both, french and english....
– MLeblanc
2 days ago
While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago
My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago
@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago
add a comment |
up vote
-2
down vote
up vote
-2
down vote
Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.
Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.
Une fois que tu as défini la structure des données à sauvegarder, utilise les fonctions fwrite/fread pour écrire/lire dans un fichier selon ton propre format adapté à ton jeu.
Once the data structure defined, use fwrite/fread functions to write/read into a file using your specific format.
answered 2 days ago
MLeblanc
44026
44026
1
StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago
i wrote both, french and english....
– MLeblanc
2 days ago
While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago
My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago
@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago
add a comment |
1
StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago
i wrote both, french and english....
– MLeblanc
2 days ago
While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago
My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago
@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago
1
1
StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago
StackOverflow est un site anglophone; veuillez repondre en anglais si vous pouvez / StackOverflow is an English-language site; please answer in English if you can.
– Jules
2 days ago
i wrote both, french and english....
– MLeblanc
2 days ago
i wrote both, french and english....
– MLeblanc
2 days ago
While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago
While it's good that you're trying to make your answer more accessible by using two languages, it's preferable to use just English, given that this is an English-language community with strict rules governing question and answer quality.
– Jules
2 days ago
My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago
My bad, sorry, I corrected my question, she is in English now
– Weder
2 days ago
@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago
@Weber, you need to rewrite your question.... this one has been flagged, no one will answer
– MLeblanc
2 days ago
add a comment |
3
en anglais, svp
– MattHusz
2 days ago
@MattHusz I am creating a game in C that I just finished and I would like to make a "save" option so that when we leave the game, by restarting it, we can make "resume the game" and so take back where we are
– Weder
2 days ago
2
@Weder please update your question with that description rather than posting a comment.
– Jules
2 days ago
1
Even in English, the question is too broad: Please show what you have tried and what specific problem you are facing.
– mkrieger1
2 days ago
@Weder you can improve your question by breaking it up into parts; in your case, that might be "how can I serialize (some part of) my game state," then "how can I write/read game state into/from a file" (which likely already has answers), and "how can I deserialize game state into my engine?"
– Jules
2 days ago