Re: pack in bgt

2016-09-22 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector


  


Re: pack in bgt

To add a file to your pack:pack file pf;void main(){pf.open("pack.dat");pf.add_file("sounds/soundname.ogg","soundname.ogg");pf.close();}and how would we read from this?sound test;void main(){set_sound_storage("pack.dat");test.load("soundname.ogg");test.play_wait();}Hope that helps!

URL: http://forum.audiogames.net/viewtopic.php?pid=279993#p279993





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: pack in bgt

2016-09-22 Thread AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector


  


Re: pack in bgt

Go read the documentation and add files to your pack. But, here's how you would take the files for use in the game.sound s;void main(){set_sound_storage("*");// this assumes you want to pack the files in your executable. Otherwise, replace the "*" with "sounds.dat"set_sound_decryption_key("somestupidkey", true);s.load("something.ogg");s.play();}

URL: http://forum.audiogames.net/viewtopic.php?pid=279917#p279917





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: pack in bgt

2016-09-21 Thread AudioGames . net Forum — Developers room : jonikster via Audiogames-reflector


  


Re: pack in bgt

I need an example.

URL: http://forum.audiogames.net/viewtopic.php?pid=279846#p279846





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: pack in bgt

2016-09-21 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector


  


Re: pack in bgt

Firstly, you will need to find out how the pack_file object works. Instructions are in the read me. The basic steps are this:1. Open a pack file.2. Add the sound/sounds to the pack file.3. Close the pack file.4. Set your sound storage to the pack file.5. Play the sound giving the name you called it when adding to the pack file.Hope that helps!

URL: http://forum.audiogames.net/viewtopic.php?pid=279833#p279833





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector