does game editor support file reading/writing

Non-platform specific questions.

does game editor support file reading/writing

Postby kicy » Tue Nov 13, 2007 3:25 am

Basicly, I need to make a rpg engine that can load external files which contain the information to build a map (or level; which would be made with a level editor specificly for my game). Can game editor do this?
kicy
 
Posts: 2
Joined: Tue Nov 13, 2007 2:43 am
Score: 0 Give a positive score

Re: does game editor support file reading/writing

Postby Rux » Tue Nov 13, 2007 4:50 am

Yes, but I don't know how. Ask SGT.Sparky.
I'm not good at coming up with signatures...
User avatar
Rux
 
Posts: 645
Joined: Sun Apr 29, 2007 9:26 pm
Location: Sitting on your moniter invisable.
Score: 35 Give a positive score

Re: does game editor support file reading/writing

Postby Fuzzy » Tue Nov 13, 2007 5:42 am

Fuzzy speaks in his best SGT Sparky voice: "yes they can! now play my latest game and tell me what you think!"

You'll want to study fread, fwrite, fgets, fputs, and especially fgetc and fputc. to open files you will need fopen() and fclose(). once you understand them, go and study a simple file format like tga. There are lots of references to the format on the web.

Here is some definative reading: http://en.wikipedia.org/wiki/Fopen
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: does game editor support file reading/writing

Postby akhad » Tue Nov 13, 2007 7:46 am

The basics of reading a text file are in this thread.
[urlhttp://game-editor.com/forum/viewtopic.php?t=1605&highlight=readlines[/url]

Writing to a file is a similar process using the commands Fuzzy mentioned.
User avatar
akhad
 
Posts: 43
Joined: Tue Jan 16, 2007 1:59 pm
Location: U.K
Score: 0 Give a positive score

Re: does game editor support file reading/writing

Postby kicy » Tue Nov 13, 2007 9:28 pm

k thanks alot, I was trying to decide what engine i should to make my rpg :)
kicy
 
Posts: 2
Joined: Tue Nov 13, 2007 2:43 am
Score: 0 Give a positive score

Re: does game editor support file reading/writing

Postby Fuzzy » Wed Nov 14, 2007 12:11 am

Use the Game editor! its certainly got the best community.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron