#16225 - Echo - Tue Feb 10, 2004 11:09 pm
hello we're french sorry for our english
We have to do a game with HAM and we need help becouse we don't know how to insert a txt file in a program.
Thegame is a Question/answer
Pliz help or we will be killed!!!!!!!!!!
Last edited by Echo on Wed Feb 11, 2004 10:29 am; edited 1 time in total
#16227 - niltsair - Tue Feb 10, 2004 11:45 pm
const char YourTextVariableName[]={"Enter your text Here"};
You might want to drop the use of the 'f' word without cause, don't come accross too well.
_________________
-Inside every large program is a small program struggling to get out. (Hoare's Law of Large Programs)
-The man who can smile when things go wrong has thought of someone he can blame it on. (Nixon's Theorem)
#16230 - dagamer34 - Wed Feb 11, 2004 1:06 am
I am going to ignore the f*** comment down at the bottom of the post and assume that you have some deadline that is making you type things you normally wouldn't say in this board (or any other for that matter).
Try the www.ngine.de forums. And do not talk to them like you talked to us. You will get little if any help that way.
Good luck!
_________________
Little kids and Playstation 2's don't mix. :(
#16252 - AndOrAFK - Wed Feb 11, 2004 6:44 am
I didn't see the last line in his post originally; so when I saw: Quote: |
You might want to drop the use of the 'f' word without cause, don't come accross too well. |
I did a double-take: Quote: |
hello we're french sorry for our english |
Hehe... indeed, having taken umpteen-bajillion years of french, I can safely say that the very word 'french' conjures up the most vile feelings inside of me. =P[/quote]
#16254 - tepples - Wed Feb 11, 2004 7:08 am
French foreign language students should always remember that a Frenchman or a Quebecois has been "taking" French for far longer than you have. "Language immersion: it works."
Anyway, back on topic: I know of two main ways to put a file in a ROM, either by converting it to an assembly language source code file (the "bin2s" method), or by including it in an archive appended to the ROM (the "GBFS" method).
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#16263 - batblaster - Wed Feb 11, 2004 12:42 pm
Go to Ham Mailing List i think is Better, and check the Vham Web site you found a lot of demo with all you need for HAM...
_________________
Batblaster / 7 Raven Studios Co. Ltd
------------------------------------------
#16313 - sgeos - Thu Feb 12, 2004 6:08 am
You could write something to convert the text file to a use-able format. A use-able format is probably a bunch of const strings:
Code: |
const char q1[] = "What color do you see?";
const char a1_a[] = "Red"
const char a1_b[] = "Yellow"
const char a1_c[] = "Green"
const char a1_d[] = "Blue" |
NOTE: The variable names are pathetic and reflect zero effort.
-Brendan