Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / 15 NEW functions for FILE control (DBC and DBPRO - it couldn't get much easier!)

Author
Message
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 15th Aug 2005 02:39 Edited at: 15th Aug 2005 02:50
(Sorry, for double posting , I posted in the Newcomers, when I should of posted here, delete the other post if you wish )

EDIT: Be sure to check out the IncodeFile and DecodeFile functions! I believe them to be unhackable, well they are as far as my skills go .

I stayed up the last couple of nights creating a set of functions
that make FIlE control much, much, much easier. There are a total
of 15 functions all together which allow you to have complete
control over writting, reading, and returning data in files. Also
keep in mind that these functions work in BOTH DBC and DBPRO, so
you won't have to worry about that because I've tested them in
both programs, and if you'd like to test it yourself then you can
very easily, since I've created a FULL DEMO that uses all 15
functions.

Here's a COMPLETE LIST of all 15 functions:


Here's a DETAILED DESCRIPTION and SYNTAX of all 15 functions:


Here's the 15 FUNCTION'S code:


Here's the DEMO code:


Now BE SURE to save the FUNCTIONS as a .dba file called FileFunctions,
and be sure to KEEP THAT FILE IN SAME DIRECTORY AS THE FILE THAT WILL USE
THE FUNCTIONS. Also MAKE SURE THAT YOU USE THE #INCLUDE command to include
the FileFunctions.dba file with your MAIN SCOURCE file.

I've also included a .zip file with this post that includes the
following in it:

-FileFunctions - Descriptions.txt
-FileFunctions - List.txt
-FileFunctions DEMO.dba
-FileFunctions.dba
-Thread Post.txt

If you just get the .zip file and open it up you can just run the
FileFunctions DEMO.dba in either DBC or DBPRO and test it out. Now I've
tested all 15 of these functions quite a bit, and I'm pretty sure that
I've fixed all the bugs, but if you do happen to find a bug, then please
report it to me as soon as possible. ENJOY!

Attachments

Login to view attachments
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 15th Aug 2005 02:42 Edited at: 15th Aug 2005 02:45
And here's a .exe of the demo file just in case you don't feel like opening DBC or DBPRO and running the code.

(File Attached To This Post)

EDIT: And if you need help with DBC's file commmands, the ones that are included with DBC and some of them in DBPRO then goto my site, and then click on tutorials, and you'll find the help you need there.

Attachments

Login to view attachments
FXTC
19
Years of Service
User Offline
Joined: 3rd Jul 2004
Location: CzechRepublic
Posted: 15th Aug 2005 21:40
very nice post good job

AMD 2,4 512MB RAM,2x200GB hdd,GforceFX5700GT128MB
TEH_CODERER
20
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 15th Aug 2005 22:44
Quote: "-IncodeFile(File$,Seed,Overwrite)"

I know it is unimportant as this looks really useful but isn't it encode? Meh! Nice work.

[url]andrewneale2004@yahoo.com[/url]
http://www.elbsoftware.dbspot.com
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 16th Aug 2005 00:05
Thanks guys and for the encode thingy, Meh I'm too lazy to change it

And let me know if you have any problems with any of them, besides their names .

Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 6th Sep 2005 04:33
someone asked if the incode and decode functions would work for images and such. I made a function that would do the job, but the only problem was that it was extremly slow, like half hour slow. I was trying to find was to make it faster, but then I realized that there really isn't any need for it anyway because if someone wanted to still an image from a game the can just take a screen shot of it, even in professional games, there's no way to stop it, so sorry but the incode and decode functions do not work with image files.

EDIT: They work fairly fast, like a couple of seconds with normal files though for like saving and loading data, opening and saving text files, and stuff like that.

dab
19
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 14th Sep 2005 17:19
If your want to keep people from maaking a screenshot of your game, just TRY this (I've never tried this). When people hit the print screen button, have your program copy another thing to the clipboard, like "Sorry, Sucker, You Can't View My Game OUtside My Game! HAHA In Your Face!" or something like that. You know, use the write to clipboard thing. I think the code would go like this:



------------------------
Visit my website of games
http://www.dabip.co.nr!
Underworld 1020
20
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 15th Sep 2005 21:31
Ya, that might work, but someone could still run a program to get the job done.

Evil stick
19
Years of Service
User Offline
Joined: 27th Mar 2005
Location:
Posted: 16th Sep 2005 13:57
If they were smart enough.

Login to post a reply

Server time is: 2024-05-30 18:50:11
Your offset time is: 2024-05-30 18:50:11