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 / Problems with attaching media

Author
Message
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 4th May 2003 18:59
I try to create a sprite from an image. It looks correctly when the image aren't attach to the EXE file. When I attached it the the EXE file and recompile again, technically I don't need the image file to be in the directory when I was running the EXE, so I tried to copy ONLY the EXE file to another directory. Yeap, it doesn't cause any problems when loading the image. But when I create the sprite, it looks like a long vertical line.

Interestingly, it doesn't cause any problem when I apply the same image as a texture of a 3D Model.

Hmmm... I am puzzled. What had went wrong? I don't know how to explain this.
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 5th May 2003 15:38
I having trouble with this too.

I got a game with attatched media. Before patch 4 it compiled and run fine. Since patch 4 it compiles but media seems to be arsed up - just graphics, sound is okay.

Anyone know why?
Kangaroo2
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 5th May 2003 21:14
I get this too. I've resorted to having a separate pak style file which I make myself, and get dbpro to uncompile, use and recompile the files. I'd much rather it worked in the first place, but hey, its not life threatening

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 7th May 2003 05:33
Interesting, Kangaroo2. Can you tell me more details how you workaround with this? Are compiling your EXE with the options that generate external PAK file? How to uncompile the PAK file during run time?

Thanks!

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Kangaroo2
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 7th May 2003 07:55
I found that the internal options to create pak files don't work 100% so I resorted to designing my own and writing routines myself. There are many ways in which you could do this. Heres a simple way to give you the idea:

1: get all your media, and make it into a rar or zip file.
2: rename the .rar or .zip file to something else, eg .dbr
3: Rename and unzip it from within DB / DBP
4: load your media
5: Rename and recompress / delete the uncompressed files.

I have seen utility dlls for both rar and zip files, and rar source codes are freely available on the net For extra security you could make the original zip/rar password protected.

Obviously making / designing your own file format / compression techniques would be more secure, but a lot more work

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 7th May 2003 13:12
if it's security of your attatched media you worried about then try the supoib encyptor written by JamesBlond in the 20-line-challenge:

http://www.darkbasicpro.com/apollo/view.php?t=7821&b=11

Login to post a reply

Server time is: 2026-07-11 12:02:16
Your offset time is: 2026-07-11 12:02:16