|
Post by dw817 on Apr 25, 2009 16:57:31 GMT -5
Hello: * If you've ever wanted to bind your DLLs to a single B4GL EXE, like the infamous audiere.dll and b4glsound.dll, well, now you can, and it compresses smaller than PKLITE too. Comes with two example files and instructs on how to use: sites.google.com/site/scenario2009/Home(Look for PackB4GL near the bottom) Make sure to NOT PKLITE compress your EXE for best new compression, go easy on it, it's BETA, and let me know what you think ! update: 9:06pmHere is v0.03. www.fileden.com/files/2009/4/25/2418288/PackB4GL%20by%20David%20W.zipUpdate 11:08pmChurch on the morrow, I see my binder doesn't work if there are multiple directories containing data files for the same program. BEAMS the GAME wouldn't run I'll need to have it bind those as well, and, while very much desirable, it will be some hard work to get it to store the data right back in the same single EXE when you open/save a file, like high-scores, however, I know it can be done.
|
|
|
Post by dw817 on Apr 26, 2009 11:05:53 GMT -5
Further update, Apr 26 10:53am OKAY ! I got Tom's BEAMS game to work ! I thought it was my fault it wouldn't play after I PACKED it, no, he was using an extension it didn't automatically save as part of the EXE; *.BGM. Find the game here: www.basic4gl.net/beams.zipSo load up the game, run it to make sure it works, exit playing, then click [F]ile, [C]reate standalone .EXE, tabbed to Embedded Files, click dd, double clicked the Readme file, click [O]pen.
Then for the cool music stuff, clicked dd again, went inside the Files directory, hit [Home] to select the top file, then holding down the [Shift] key pressed the [Down Arrow] Key until all 12 files were highlighted, clicked [O]pen.
That was it ! Now it could compile to a single EXE. Clicked [C]reate Program. It said:
beams.exe created Note: for sound and music playback to work, you must also distribute: audiere.dll and B4GLSound.dll. All files can be found in the Basic4GL application folder.
OKAY ! So we're almost there. Copy over these two DLLs to the same directory as the game you just compiled \beams\, then bring up my B4GLPACK program.
It will say Loading ... then press a key to begin, select [C]onvert, hit a key, go to select the BEAMS.EXE file. My program will say, "2 DLLs will be packed." "NEW!.EXE" will be created. OKAY to continue ? Hit "Y" for yes. Give it a moment, it's binding it all to a single smaller EXE.
* * * * * * * * * * COMPLETE ! Press a key to exit. Goodbye.
OKAY, now to make SURE this single EXE runs all on it's own, go to find it, it will be in the same directory you have \beams\ running, called "NEW!.EXE." While you're here, compare it with the size of the main EXE pick it up, and put it in a directory you know it can't read its files from, like a new directory called, "chek." Make sure there aren't any other programs around it; it's the only file in the directory. Then RUN it.
Give it a moment to think about what's all in it, then BEAMS ! It works !
I wrote this mostly for the list of cool games already written in B4GL so I could save them as a single EXE to my list of window games, but also for future projects I'm working on like G2009 and S3. And of course, you are welcome to use PackB4GL too for your own projects.
If you have any problems with this utility, please let me know so I can fix them.
Hope This Helps !
|
|
|
Post by matthew on Apr 27, 2009 10:06:41 GMT -5
Nice program dw, is there any chance of being able to change the EXE icon though? I tried using Resource Hacker before packing & changed the icon but after packing it changed back.
|
|
|
Post by dw817 on Apr 27, 2009 19:03:28 GMT -5
|
|
|
Post by matthew on Apr 27, 2009 21:55:43 GMT -5
Ok, I successfully changed the icon by using a combination of eXeScope & IcoFX.
|
|
|
Post by dw817 on Apr 28, 2009 7:44:50 GMT -5
Good deal. I'm still working on G9's editor. Hopefully this will help others with tile based image editing.
|
|