PureDataConverter

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

PureDataConverter

Post by ts-soft »

With this tool you can write several individual files that are needed by
your program (pictures, sounds, sprites, DLLs etc.) into one single file,
which later is to be included (packed if you like) in your Exe file.


Currently there are 3 output formats:

* Include file with Hex data (linux compatible!)
* Include file + BinPack (linux compatible!)
* Windows resource which has to be linked (Import „MyResource.res“ : EndImport)


Currently 3 pack formats are supported:

* none (unpacked)
* jCalg1 (Caution: This is currently not compatible with x64.)
* zip (doesn’t need any UserLib, DLL or similar, uses zlib.lib which is located in the PureBasic folder)

Preview of the GUI:

Image

The GUI requires windows 2000 +
The generatet Output requires PB 4.30 +

The GUI is multilingual, english, german, french, spain, italian, romanian, swedish, turkey and russian

Download V 1.6

Feedback welcome

Update: Version 1.6
Projectfile supports more than 256 entries

Update: Version 1.5
Update checker added

Update: Version 1.3
New functions:

Code: Select all

Result.s = UDRes_GetFileName(ResNumber[, hModule])
Result.s = PBData_GetFileName(ResNumber)

Result = UDRes_GetResNumber(FileName.s[, start[, hModule]])
Result = PBData_GetResNumber(FileName.s[, start])
Update: Version 1.2
New Outputformat: BinPack

Update: Version 1.1
AddFiles added
AddDirs (recursive) added
some cosmetic for other languages with long phrases

Update: Version 1.1.001
russian language added
Last edited by ts-soft on Fri Jul 24, 2009 12:21 am, edited 12 times in total.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Great work Thomas - this is a cracker! :)

Thanks.
I may look like a mule, but I'm not a complete ass.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

you are welcome :)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

I can sense great use with this and 3d resources... :)

I'll give it a blast tonight!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Build 028 uploadet

france documentation added, thanks to hardfalcon :D
spain.lng added, thanks to DarkDragon :D
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Update: Version 1.1
AddFiles added
AddDirs (recursive) added
some cosmetic for other languages with long phrases
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Coolman
Enthusiast
Enthusiast
Posts: 103
Joined: Sat Sep 03, 2005 4:07 pm

Post by Coolman »

8), Thanks.
*** Excuse my bad English, I uses has translating program ***
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Update: Version 1.2

New Outputformat: BinPack
Uses the same functions as Hexdata.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Update: Version 1.3

Support for filenames added!

// edit
Update: Version 1.4 Build 005
Gui save last used Outputformat
Projectfile save last used Outputformat
Helpwindow save positions
added Statusbar
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Excellent utility TS-Soft. I made a translation for romanian, if you want to add it:

PureDataConverter_RO.zip

Thanks!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

is added, thank you :D

@all
Add a language is easy, only make a langname.lng prefs file with your
language, this is required to work.

langname.ico with a 16x16 flag of your land (optional)
langname.html for doc, works with F1 (optional)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Many thanks Thomas.
This is a brilliant idea and work. :wink:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Update V 1.5

added Updatechecker
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Update:

1.5.003:
Bug with x64 Support ( UDRes_Get(), PBDataGet() ) fixed

1.5.002:
Language support for Updatechecker added

1.5.001:
A small linguistic correction
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
infratec
Always Here
Always Here
Posts: 7580
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Post by infratec »

Hi Thomas,

a (maybe stupid) question from a newbie:

I want to include a dll. So far so good.
Than I can load the dll with PBData_Get into the memory.
Ok, but how do I know where are the entrypoints of the different functions?
Or direct: how can I call the functions inside the dll?

Or have I to save the dll via PBData_Save and call them as usual?

Best regards,

Bernd
Post Reply