Using .dll to write data to an external file?

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
User avatar
TheJamsh
Bull Dog
Posts: 689
Joined: Sat Feb 19, 2011 5:49 pm

Using .dll to write data to an external file?

Post 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...
User avatar
bigbadbogie
Bull Dog
Posts: 586
Joined: Mon Feb 21, 2011 8:12 am
Location: Ecuadorian Embassy

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

Post 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.
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

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

Post 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.
Post Reply