Page 1 of 1

Using .dll to write data to an external file?

Posted: Fri May 06, 2011 10:27 pm
by TheJamsh
Basically, I'd like to be able to (for example), track how many enemies a player has killed, and then output that to a hidden file that can then be read back later by another mission .dll

The idea, is to have some sort of stats tracking system, which collects all your kills, deaths etc via one .dll, writes this to a file stored in the registry or somewhere not entirely easy to break into, and then read that data back. Of course, keeping said data 'unhackable' will likely be impossible, but nevertheless...

Re: Using .dll to write data to an external file?

Posted: Fri May 06, 2011 11:09 pm
by bigbadbogie
The data would not be quite so hackable if it were put into secret codes and randomly split among files.

I think that C++ DLLs can write to files and retrieve information, but it goes without saying that the Scriptor can't.

Re: Using .dll to write data to an external file?

Posted: Mon May 09, 2011 1:52 pm
by Nielk1
Point 1: Don't write files with the DLL, use registry. Write backup routine that can extract or import this data so that someone can easily move their saves.
Point 2: Pack the data with some fluff, maybe an asymmetric encryption.
Point 3: Stat tracking sounds like something you would do with a relay to a web server.