RE: [C#] Virtual21 - 21 Game Simulator 09-23-2016, 03:10 PM
#6
(09-23-2016, 02:38 PM)VirtualFrost Wrote:(09-23-2016, 12:17 PM)Bish0pQ Wrote: Looks pretty good already, would be interesting to see how this turns out.I would have considered SQL but as of now I have no web servers to run a database on to store information so I'm only thinking locally as of now.
For what you asked and saving the data, you could link to an online Access or SQL database?
Or you can create a directory in the same directory as the file is ran from. I don't know what it is exactly in C# but in VB.NET it would be
Code:Dim strStartupPath as String = My.Application.Info.DirectoryPath & "\Foldername\" If Directory.Exists(strStartupPath) = True Then   '## Do something Else   Directory.Create(strStartupPath) End if
(09-23-2016, 01:27 PM)hybris.softwares Wrote: you could create a json file to store settings, and save it as "settings.json" inside the program folder.I'll check that out in the morning, thanks!
Use this library to handle json : http://www.newtonsoft.com/json
Regards,
Hybris
I've also had pointed out to me about the random being initialized each button press and that has been fixed.
The button initializing random each time would not be a real security issue, unless the player is able to click it multiple times per millisecond, which i think is pretty impossible.
Btw,
Good work!
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)