December 01, 2020, 03:26:06 PM

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

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 549
  • Bonjour
    • FABERSGAMES
PureBasic no media file
« on: October 28, 2019, 09:57:00 AM »
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 .
Celeron N3060 1.6 ghz duel core  4 Gb ram 32 gig storage  HD400 Graphics 160 gig external hard drive....

Offline Derron

  • Hero Member
  • *****
  • Posts: 3271
Re: PureBasic no media file
« Reply #1 on: October 28, 2019, 10:23:43 AM »
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: 549
  • Bonjour
    • FABERSGAMES
Re: PureBasic no media file
« Reply #2 on: October 28, 2019, 11:09:07 PM »
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 .
Celeron N3060 1.6 ghz duel core  4 Gb ram 32 gig storage  HD400 Graphics 160 gig external hard drive....

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 549
  • Bonjour
    • FABERSGAMES
Re: PureBasic no media file
« Reply #3 on: November 03, 2019, 11:41:57 AM »
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.
Celeron N3060 1.6 ghz duel core  4 Gb ram 32 gig storage  HD400 Graphics 160 gig external hard drive....

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal