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.

DarkBASIC Professional Discussion / Disappointed w/ DBPro

Author
Message
Gamer
23
Years of Service
User Offline
Joined: 29th Apr 2003
Location:
Posted: 9th Jul 2003 23:11
True that DBPro is a great game programming language, but the reason I bought it was because of its 'supposed' capability of packaging all media files into the executable. But quite apparently, this feature does not work based on the responses that I've got from my recent posting. Now, what I have is a finished product that cannot be distributed. From what I've read, this has been a problem for some time, and it's hard to believe it still has not been fixed. Besides,
my project fails to load if I add an icon file to the Icons panel.
That means every time my exe is generated, it's generated w/ the DBPro
logo as an icon. How the QA or programmers missed these bugs is beyond comprehension because they're so obvious. It's not like a math bug where it may only occur one out of ten thousand times. I'm just extremely disappointed w/ this product, and by the people who released it. I guess they say 'Good things aren't cheap, and cheap things aren't good'. I don't mind spending another $100 for a better product, but $100 isn't that cheap for a lot of us in the first place.
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 9th Jul 2003 23:29
Still doesn't stop you using a free installer though for the time being, though...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins and other exciting things - oh my, yes!
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Jul 2003 23:39
alot of the stuff your mentioning really has a good deal to do with the IDE rather than the compiler.

as for attaching the media - there are other (and better) means for achieveing this.

Falelorn
23
Years of Service
User Offline
Joined: 19th Jun 2003
Location: Canada
Posted: 10th Jul 2003 00:09
What free installers are there?
Gamer
23
Years of Service
User Offline
Joined: 29th Apr 2003
Location:
Posted: 10th Jul 2003 01:30
I know there are some other installers out there, but I want to protect the integrity of my media files. And the only way to do that is for DBPro to incorporate them into the exe, which it doesn't. If you know there's other way, then let me know.

Avan Madisen
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 10th Jul 2003 02:02
Hi

To include all of the media within the execute you have to go into the media button on the control panel (that's on one side of the screen) and add the directories you want to include. Be aware that it will include all subdirectories within the one you choose, so you don't need to include any other the subdirectories within ones you select. Then it should automatically add all of that data when you compile, if it doesn't then go to 'settings' and you should find the option button called "EXE with attached media" and two check boxes below it. Selecting that should work.

I've only had problems with checking the 'encrypt attached media' and 'compress attached media' boxes, I found that using those slowed the loading times quite significantly, and checking both actually caused my system to crash. But my system is a little old.

I haven't personally played with the icons, mainly because I haven't needed to yet. So I can't offer anything on that point.

Gamer, you say that DBP doesn't support attaching media to the executes it creates, well I can say it works fine for me (as long as I don't compress or encrypt the data that is), so all I can say is try again and see if it really isn't working.

Another way to protect your data is to create your own data types by actually writing the data directly into the files manually so that other programs can't understand it all. Which means, unless someone actually knows how you've put the data into the files, they won't be able to nick it so easily! As long as you write and read the data into and out of the files in exactly the same way, you shouldn't have too many problems.

I hope that's helped in some way.

Avan

The glass is half empty...
That way there's more room for improvement!
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 10th Jul 2003 02:40 Edited at: 10th Jul 2003 02:41
The best free installer is INNO Setup
I think that it's even better than Install Anywhere.

Gamer I agree with your points.

The more you see, the more you know.
The more you know, the more you see.
Gamer
23
Years of Service
User Offline
Joined: 29th Apr 2003
Location:
Posted: 10th Jul 2003 03:05
Avan, I've tried it three times before I posted my original message.
I checked the 'EXE w/ attached media' button in the Settings panel; I
added the media files in the Media panel (I didn't type out each media file name, but just *.bmp, *.wav, etc.); I saved my project and exited;
I went back in, made sure the settings were still there and then made the exe. The exe only runs in the directory where all my media files are. But when I copy the exe to a different folder, it errors out w/ an error saying 'Can't find sound file'. But if I copy all my media files to that new folder, then it runs. So, tell me what did I do wrong?

Ian T
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 10th Jul 2003 04:54
It works fine with me, Gamer. I have a project with bitmaps, sounds, maps, and some text files; I do have them selected individually, but they work fine and I can run the .exe anywhere.

--Mouse

Famous Fighting Furball
Gamer
23
Years of Service
User Offline
Joined: 29th Apr 2003
Location:
Posted: 10th Jul 2003 11:20
Well, let me try selecting each media file (I've thirty of them! That's why I used wildcard). What about the icon? Does that work for you?
Thanks.

Yuri
23
Years of Service
User Offline
Joined: 12th Jun 2003
Location: Italy
Posted: 10th Jul 2003 13:08
i've downloaded from a link in a post somewhere in this forum a program called "icon changer".
it work perfectly.. if you want, try it.
if you can't figure out where to download it, tell me, i put the program online somewhere.

CBMZone main administrator
http://www.cbmzone.com
Eckker
23
Years of Service
User Offline
Joined: 27th Jun 2003
Location:
Posted: 10th Jul 2003 16:12 Edited at: 10th Jul 2003 16:18
Hi,

Gamer, I've had some of the same problems aswell. More specifically with bitmaps and sprites. (I've not tried sounds yet.)

After hours of playing with all the options and different possibilites, I found that loaded bitmaps added to the exe fine. However, loaded images used as sprites became huge and covered the whole screen. I gave up trying to figue it out!!! I have to now put my image sprites into my root directory. Maybe it's just a system specific thing???

Quote: "
Another way to protect your data is to create your own data types by actually writing the data directly into the files manually so that other programs can't understand it all. Which means, unless someone actually knows how you've put the data into the files, they won't be able to nick it so easily! As long as you write and read the data into and out of the files in exactly the same way, you shouldn't have too many problems.
"


Is this simple to do? Any advice on exactly how to do it would be great.

Thanks
Eckker

Kangaroo2
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 10th Jul 2003 19:50
Yes I've had this problem with DBP too, I can literally NEVER get it to compile with every file I specified included, its very frustrating, but I guess its more of an IDE problem than a DBP bug.

The way I go about it is making my on PAK style files, and use one of various programs to change the Icon, as pointed out already

Personally although this is very annoying, I don't actually think its a reason to be "dissappointed" with Pro, its easy to get round, and not necessarily DBS's fault, they don't make or update the IDE as far as I'm aware, I think its Guy Savvoie, although don't quote me on that. Check Realgametools.com from any updates from Guy

Bunnies aren't just cute like everybody supposes, They got them hoppy legs & twitchy little noses,
And what's with all the carrots? What do they need such good eyesight for anyway?
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 10th Jul 2003 22:23
I found after patch 3 included images wouldn't load right, but sounds worked fine.
I read somewhere that if you load all media before doing anything else then it works - but i not tried this.
Critters
23
Years of Service
User Offline
Joined: 11th Apr 2003
Location: United Kingdom
Posted: 11th Jul 2003 00:06
Click Team has a good free installer!! its great!

[href]www.clickteam.com[/href]



.

Avan Madisen
23
Years of Service
User Offline
Joined: 12th Sep 2002
Location: The Castle Anthrax
Posted: 11th Jul 2003 01:17
Hi

Ok, Gamer, you asked what you're doing wrong, so I'll run through exactly what I do to attach the media to my exe's and hopefully that should help.

All my media files are kept in a single folder called 'data', which is stored in the same directory as the .dba and .dbpro files. I tend to separate things via subdirectories, such as textures, 3d, sound etc. Then when I attach the media I only attach the one directory, 'data' and use a full wild-card so every single file within 'data' in it's subdirectories is attached.

So far that's always worked fine for me. Just don't add any of the subdirectories or files, otherwise it'll attach them a second time (or worse) and make the exe larger then it should be.

Eckker, in answer to your question, it's not always easy. It really depends on a few things, mainly what data you're storing. Things like images you can change into memblocks and then just read the total memblock size to the file first (so you can recreate the memblock later) and then just stream the data from the memblock into the file directly. Then just stream the data back again when loading and create the image from the memblock. All I can really say is play around with the file and memblock commands, read from one and write to the other. Be careful as it can take some practice before you get results, and because you'll be playing with actual data files rather then just ram, start with some small files first!

Don't worry too much about reading the correct variable types from the memblock, you can just read the whole lot out as bytes and the system should be able to reconstruct it correctly as long as the data goes into the memblock in the correct order.

The great thing about this is you can put the data into the file exactly how you choose, so if you're feeling adventurous you could jumble the data up into any order you like.

The biggest problem with trying this is you get no compression what so ever, so images are effectively saved like bitmaps, so unless you come up with your own method of compressing the data, you can easily end up with huge data files, and my experience in compressing those data files hasn't been too promissing on compression ratio. Play with it, you might figure something out.

Avan

The glass is half empty...
That way there's more room for improvement!

Login to post a reply

Server time is: 2026-07-18 07:31:29
Your offset time is: 2026-07-18 07:31:29