Resource Compiler

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pusztry.

I mentioned this else where but this is the proper place to mention it so.
Fred,
Can you please work on a resource compiler for the next version. It would be a real great improvement. A total self-contained exe. No installer/ a dir. NOTHING but the exe.

Thanks

Ryan

WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by pusztry.

Fred,
Is this in the plans for the future?

Thanks

- Ryan


WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Can you please work on a resource compiler for the next version.
> A total self-contained exe. No installer/ a dir. NOTHING but the exe.

You can do this already, as shown here:

viewtopic.php?t=2047


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Hi-Toro.

Yeah, but that's a rather hacky solution, IMHO, extracting to temporary folders...


--
See ya,
James L Boyd.
http://www.hi-toro.com/
--
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

Read also this Thread please: viewtopic.php?t=2029

You have 4 CatchXXXX commands for Bitmaps,
Sound and Sprites.

All other Files can be included as plain Data
with the way PB showed.
Rings also wrote something about it in the
Tips & Tricks section: viewtopic.php?t=1107

The search function in this forum works just fine.. :)

Before you do IncludeBinary you can pack the files
with the Packer commands (see PureBasic help) or you could
compress the final .EXE before release.

Extracting to harddisk is only required when you need
to include files that are loaded by a PureBasic or
System (API) command - like DLLs, MIDI, MODs etc..

If you include TextFiles you could make a small system
to catch the strings from memory (strings in a textfile
dont have a 0 (NULL/ZERO for AsciiZ) at the end).
Another way for textfiles would be to write a little helper
that converts a textfile to a data file with including 0´s,
so you can use PeekS() in your final program.

Your own Data formats can be included as they are
and you access them with the Memory commands like
PeekB(), PeekW(), PeekL(), PeekS() etc...

Should be a start...

And remember: everything is possible - it depends on you :)

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Yeah, but that's a rather hacky solution, IMHO, extracting to
> temporary folders...

You only have to extract for file formats not supported with the
CatchXXXX commands... you don't need to extract for images, sounds,
and a few other types, if that helps?


PB - Registered PureBasic Coder
Post Reply