![]() |
Bakekitsune's Editable Binary Database (.INI STYLE!) - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Bakekitsune's Editable Binary Database (.INI STYLE!) (/showthread.php?tid=1627) |
Bakekitsune's Editable Binary Database (.INI STYLE!) - Bakekitsune - 19-03-2008 EDIT: seraphelic omg i swear to god i didn't steal your idea sorry mate i did this then posted it and looked at the other topics and i was like WTF! usually only people who get stoned have the same ideas as me. i haven't been on here in years, man this forum has changed so much :S YOU CAN EDIT THIS WITH NOTEPAD This is my code, (it can save 1000 strings in 5 milliseconds WOOT!). Anyway that's all and good but i was just wondering if there was a better way of doing it? or a way to optimize it faster? any changes? its not quite finished yet... im gonna use pointers Also theres one more feature i need to add in each function. one can save an array but can't save In an array, the other can only do the opposite (but loading), just need to pull the codes over basically. Although you can do without quite easily it just won't be as fast. You can also select which pieces of data from the file to load into memory. Save a piece of data without having to save the whole file all over again. EDIT: The position of the data and length isn't saved in the db but calculated by good old but FAST assembly. Code: ttime1 = GetTickCount() Code: Sub SaveEditBin(Name As String, Var As String, Val As String, Optional ByRef ArraySize As Long, Optional ByRef nFileNum As Byte) Result: Text file with (you can edit with Notepad and it will come up with the right result) Code: time=05 In this case data543=IAMDATA if i change data543=OH!YEAH in notepad, then if you ask for data543 then you get OH!YEAH . >>> PS: Props to Sepiroth for giving me my first lesson in binary ( Yes i optimized it with NO dope! or NOdoze... i always get confused between the two ![]() If your gonna tax this code i dunno put like Bakekitsune's Editable BinDB anyway reference me or i will stab u! Re: Bakekitsune's Editable Binary Database (.INI STYLE!) - seraphelic - 19-03-2008 Bakekitsune Wrote:usually only people who get stoned have the same ideas as me. |