Hi im making a online and offling top down/2d paintball game and was wondering...
When you create a player it will create the ini disgused as a dll in the same folder to the exe that creates it, i was wondering if theres a way for the program to create the file but in a different folder to what the exe is in?
Thanks for you help in advanced...if you wanan take a look at mi silly coding ur welcome to.
oh god... please dont disguise your inis as dlls... it's so lame. they're easy to find as well
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
By using the File object you can also specify the Windows directory (or a sub-directory of that). Although I definately DO NOT recommend hiding your INIs as DLLs in the System or System32 directories. Though a lot of people will use the Windows directory.
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
i would never use the windows folders, i put all my files in the game/app folders unless its a font thats being installed, then naturally that wuld go in the fonts bit
I usually just leave a warning in my INI files telling people not to tamper with em . Encyption works more efficiently, though...
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
23rd August, 2003 at 10:18:35 -
i dont see the point in encryption/disguising of INIs. if people want to be idiots and cheat, let 'em. i'm not losing out.
I now disguise my INI files as a .bmp file. and name it:
characterdir1.bmp or something like that, that way people might think its a picture file of a character or something.
It's about time someone made a 'binary save' extension methinks :B
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G