Dumb question? Dumping graphics into save files?

Non-platform specific questions.

Dumb question? Dumping graphics into save files?

Postby BeyondtheTech » Tue Jul 05, 2005 2:19 pm

I am really enjoy the saveVars/loadVars command as it is easily able to pass data between programs so easily. I was wondering if it was possible to dump a graphic or animation using the saveVars command, or even music.

One idea is this: let's suppose I have a game that has a "face maker" feature, much like some EA Sports games where you can "create a player." You can draw it (or draw on it) or assemble from different pieces (nose, eyes, brows, chin, lips, accessories such as hat, glasses, etc.). You can then save it (with the saveVars) command and send that file over to someone else so they can load it.

There are a few more uses to this theory, like breaking the game executable into game and data. It may take less time to load, or make it possible to move the data to another portion on the Pocket PC.

Is this at all possible?
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby makslane » Wed Jul 06, 2005 12:51 am

Is not possible, sorry
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby willg101 » Wed Jul 06, 2005 2:38 am

So you can't save what's on a canvas actor, either?
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby makslane » Wed Jul 06, 2005 12:01 pm

No :oops:
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Fuzzy » Thu Jul 07, 2005 2:52 am

Not directly; but you can write the pixel data to a text file, using the PPM format then use an external file converter to change it to png or whatever. Its a text editor based format. Ultra simple! look at this site!

http://www.physics.emory.edu/~weeks/graphics/mkppm.html
and here
http://netpbm.sourceforge.net/doc/ppm.html
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