View Full Version : Embed data in Blitz2 programs
oRBIT
29 March 2007, 13:38
I'm a bit new to BlitzBasic2 (yeah in 2007 :)) but I'm curious, is there a way of embedding data within the executable instead of having separate iff/modules/whatever-files on disk? It's not really "hacker-proof" to store titlescreen of your game as an iff-file on disk.. :)
AMOS had some ways of dealing with this but I haven't read about anything similar in Blitz... Hints anyone?
Graham Humphrey
29 March 2007, 14:06
I think something like the INCBIN command would work, I've never actually felt the need to use it myself though.
Out of interest why aren't you comfortable with using separate IFF files? I hardly think the whole hacking thing is a problem for the Amiga in this day and age. I've never had a problem with my stuff.
bippym
29 March 2007, 14:14
the following code is taken from my swoseditor, I wanted to include a graphic within the exe so I could distribute just that (if ya follow)
INCDIR "data:programming/swoseditor/data/"
pic_dat: IncBin "V1.5_shapes"
pal_dat: IncBin "V1.5.pal"
oRBIT
31 March 2007, 20:47
Ok, incbin is the way to go. But how do you load the shapes data then? I'm a blitz2-super-newbie so I am really new into this. :)
The "Loadshape" instruction wants to load a file from disk, right? How do you deal with it since your shape is already included?
bippym
31 March 2007, 21:23
In my source I use
DecodeShapes 1,7,?pic_dat
DecodePalette 1,?pal_dat
mrodfr
01 April 2007, 07:03
hello,
on this site: http://www.amiforce.de, there is an english foum for amiblitz where the authors and some amiblitz users can help you.
there is also an english ML for amiblitz:
http://groups.yahoo.com/group/amiblitz/
you can found the same persons like on the amiforce forum to help you with amiblitz. please increase the ammount of amiblitz users available by joining the forum and/or the ML.
amiblitz3 is a actually developped and tested. you can found news about amiblitz3 on amiforce.de
oRBIT
01 April 2007, 09:56
The "decodeshapes" instruction is not included in my manual.. hmmm..
Graham Humphrey
01 April 2007, 11:15
What version of Blitz are you using? I know for a fact it's included in version 2.1.
bippym
01 April 2007, 11:16
just type it into blitz and press help for command syntax
from blitz.guide
Syntax : DecodeShapes Shape#[,Shape#],MemoryLocation
Library : shapeslib
Description:
DecodeShapes, similar to DecodeMedModule ensures the data is in chip and
then configures the Shape object(s) to point to the data.
oRBIT
02 April 2007, 10:30
What version of Blitz are you using? I know for a fact it's included in version 2.1.
Blitzbasic 2.. Got it from ebay. However when picking the "about" menu says "v1.70".
bippym
02 April 2007, 13:03
you seriously need to upgrade..
I'll chuck together a blitz hdf or similar later if i get time, will include 99% of all the libs etc updated :)
You will need to save all your source as ascii though otherwise alot of commands will balls up
oRBIT
02 April 2007, 14:33
you seriously need to upgrade..
I'll chuck together a blitz hdf or similar later if i get time, will include 99% of all the libs etc updated :)
You will need to save all your source as ascii though otherwise alot of commands will balls up
How do you get upgrades these days without downloading torrents? :) I had to replace the editor cause the original one crashed instantly. I used something called "SuperTed" from aminet and it actually works, however, when exiting Blitz, all Disk I/O seems to freeze so I have to reboot every time I exit.. Annoying.
bippym
02 April 2007, 14:43
what i'll do is upload my amiblitz folder/dir for you to download, simply unpack it and use it, make sure you save ALL your source as ascii now though.. i'll do this after lunch :D
bippym
02 April 2007, 15:49
it's in the zone
Simply unrar and copy over your existing blitz install
oRBIT
02 April 2007, 17:46
Thanks works! The editor still sucks btw but it don't crash my computer on exiting.. :)
mrodfr
02 April 2007, 19:31
hello,
amiblitz 2.4x is on aminet. not the verry latest but pratically.
the last amiblitz in on amiforce.de.
bippym
02 April 2007, 19:38
yes my upload is not the lkatest package, but it works.
My acidlibs & deflibs are quite large too, but there will be libs updated and missing still
oRBIT
02 April 2007, 19:57
I'll try the aminet one or the one at amiforce.de.. The "compile and run" rarely works btw.. Well a print "hello world" works but anything else seems to lock up..
mrodfr
03 April 2007, 07:36
hello,
what is your amiga hardware ???
the best is to post the conpilation problem on the yahoo ML or on amiforce.de because authors of amiblitz are here.
oRBIT
03 April 2007, 09:59
I've got an A1200 with OS3.9 and 68060/50 with 64Mb RAM. Tried the latest beta of AmiBlitz3 but still compile n run rarely works. However generating a working executable seems to work, when the editor doesn't crash.. :)
mrodfr
03 April 2007, 12:20
hello,
you should not use amiblitz3 actually because It's a beta stage. the compil error with amiblitz3 is normal and known (one of the last bugs who must be corrected). NOTE: apparently corrected on last version but not released for betatesting.
I use the same amiblitz3 beta on my amiga for beta testings and suggestions actually for helping the amiblitz3 development.
you should use the last amiblitz2 on aminet or better on amiforce.de for real programming, not amiblitz3 for programming or just for helping the development.
Amiblitz3 will be releasing soon I think.
bippym
03 April 2007, 13:20
What does amiblitz3 bring to the table? what new features is there?
Doc Mindie
03 April 2007, 16:34
What does amiblitz3 bring to the table? what new features is there?
Recompilation of Winslows executables so they work on a superior machine and OS? No?
Darn... would be nice to play WoW on the Amiga :P
mrodfr
03 April 2007, 19:34
What does amiblitz3 bring to the table? what new features is there?
- The structure of amiblitz drawers are differents and better.
- no assign anymore.
- editor program reworked and more system friendly (work with birdie) for using with aos4 or morphos.
- work with all resolution.
- ttf fonts used possible.
- colored instructions (more than amiblitz3).
- lots of new features inside (settings, project managment,...)
- all windows (compiler options,...) are resizable and saveable (made with wizard.library).
- all the guides for amiblitz3 are corrected by me.
- autodocs installable and readable with amiblitz3 with an additionnal program.
- lots of enhancements everywhere.
- .....
just wait after release (weeks or month, don't know) and send amiblitz users MUST send greetings to the developper.
bippym
03 April 2007, 19:38
well a look at the beta might be an idea, even though i'm learning asm, i plan to use blitz to do the aux tools i'll need
mrodfr
06 April 2007, 19:49
http://www.amiga-news.de/de/news/AN-2007-04-00022-DE.html
I'm surprising he let this beta more known that previous version.
test and reports bugs to the author or on the amiforce forum and support amiga development and...good week end :-).
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.