October 17, 2021, 08:03:29

Author Topic: PureBasic no media file  (Read 1195 times)

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 814
  • Bonjour
PureBasic no media file
« on: October 28, 2019, 09:57:00 »
Some thing I didn't realise about PB until last night and that is the fact that no media file of graphics files or sound files need to be kept with your exe file . once an exe file is made all you need is that and the 3dengine dll file . So there are no files for people to mess with lying around for all to see . I guess  most of you Knew that but I thought I would point that out as another plus for PureBasic. All going well over here with my PB adventure  and I feel I have definitely made a good decision in picking up this language . I feel it's the best basic I've tried so far . AGK is also great and can create mobile apps without much trouble . I think I would rate them the same they are both awesome programming tools.
 I feel if you took all the good points of PB and AGK2 and put them together you would have the best language in the world , probably .
« Last Edit: October 28, 2019, 10:23:21 by Pfaber11 »
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

Offline Derron

  • Hero Member
  • *****
  • Posts: 3661
Re: PureBasic no media file
« Reply #1 on: October 28, 2019, 10:23:43 »
Once you collect 100-200MB of assets you will see that putting everything into a binary isn't always a benfit - especially when compiling pretty often.


In BlitzMax you could use the command "IncBin" - other similar language/kits might offer a similar command.


Bye
Ron

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 814
  • Bonjour
Re: PureBasic no media file
« Reply #2 on: October 28, 2019, 23:09:07 »
had a bit of a play and it seems it will only work with 3d apps when using 2d it does not work although there is a code includebinary . whether this does it for you I don't know and the documentation doesn't really tell me how to use it. I'll take another look tomorrow .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 814
  • Bonjour
Re: PureBasic no media file
« Reply #3 on: November 03, 2019, 11:41:57 »
Worked it out in the end . put 3d assets in a zip folder and put in the same folder as exe and 3dengine. Unfortunately It doesn't bundle them into the exe file as I originally thought . My mistake.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal