PDA

View Full Version : File handling in TBGL module



ErosOlmi
21-02-2007, 23:15
Hi Petr,

I'm trying to create a bundled example using TopDown3D example.
As you may know, when a bundled exe is executed, it extract all bundled files as System/Hidden files.
I've discovered that some TBGL functions are not able to find files if they have System/Hidden attributes.

Do you think it will be possible to change this behave and been able to search for all kind of files?
We had the same problems when we started thinBundle and just solved with the following PB code:

FUNCTION File_Exists(BYVAL FullFileName AS STRING) AS LONG
FUNCTION = %FALSE
IF DIR$(FullFileName, %NORMAL OR %READONLY OR %HIDDEN OR %SYSTEM) = "" THEN EXIT FUNCTION
FUNCTION = %TRUE
END FUNCTION


Ciao
Eros

kryton9
21-02-2007, 23:30
Having these games as single executeable downloads will be great. Eros, if you have an idea for thinBasic logo or can tell me the font you are using I could work on a splash screen to put in each game as it runs so people can see it is developed in thinbasic. Give me any other info you would like for such a screen. Then I will leave it up to Petr to tell me if he would like it as one bmp file, or if he wants it in 3d models in m15 format to animate it

I was thinking this could in corporate a basic game instructions too, instead of using the messagebox.

I will try to make a prototype and upload later too to give something to talk about and bounce ideas back and forth.

ErosOlmi
21-02-2007, 23:35
The attached is the TT font used for thinBasic logo.
Up to you and to your fantasy ...

Thanks
Eros

Petr Schreiber
22-02-2007, 00:18
Hi,

TBGL should be thinBundle ready,
I need to do some tests but thanks to Eros source code service it was piece of cake !

kent, your idea with logo-controls is good !


Bye,
Petr