Re: [Audyssey] bgt help
I'm familiar with handles, and had tried a few different forms, getting compilation errors all over the place. Unfortunately, the only one I didn't try was item@[]. -- From: "Aaron Baker" <theultimatemasterofarc...@gmail.com> Sent: Sunday, August 07, 2016 12:35 To: "Gamers Discussion list" <gamers@audyssey.org> Subject: Re: [Audyssey] bgt help Hello, This is an issue I've had to hack around before. The best way I've found to fix it is to convert all of your objects to object handles. item@[] lookup(string keyword) It might be a bit of work, but its so much better to use handles anyway that you won't regret it. In fact, I would probably write the line item@[]@ lookup(string keyword) such that we are not only using an array of handles, but we're returning a handle to the array itself. You also really can't take proper advantage of inheritance with out using handles. If this is beyond your current knowledge of BGT, I suggest researching handles, if not also inheritance. Handles are amazing things that will probably make your game run faster, too! Best, Aaron On 8/7/16, john <jpcarnemo...@gmail.com> wrote: > Hi All, > > I've been hacking at a project for a couple weeks now, and am getting some > rather confusing array-related errors when trying to compile. > > I've seen these before, but they usually only occur when trying to use > objects with nondefault constructors in arrays in some fashion. > > In this case, its a method declaration line that seems to be breaking: > > > > item[] lookup(string keyword) > > The error is: > > > > File: array > > On line: 0 (0) > > Error: The subtype has no default factory > > File: > > On line: 20 (1) > > Information: Compiling database::lookup(string) > > > > The item class is fully valid and included in the script. > > The lookup function is as follows: > > > > item[] lookup(string keyword) > > //This function returns a list of items that can be referenced by a given > keyword. > > { > > item[] results;//Note that this line doesn't break, just the function > declaration > > for(int count=0; count<contents.length(); count++)//loop through database > contents, checking each item > > { > > if(contents[count].check(keyword)) results.insert_last(contents[count]); > > } > > return results; > > } > > > > If anybody has a clue what's going on here, I'd really appreciate some > help. > > Also, if you know how to use objects that have constructors with arguments > in arrays, I'd love to know too; that particular issue has been costing me > a > tremendous amount of debugging and fixing time. > > > > Thanks, > > John > --- > Gamers mailing list __ Gamers@audyssey.org > If you want to leave the list, send E-mail to > gamers-unsubscr...@audyssey.org. > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/gamers@audyssey.org. > If you have any questions or concerns regarding the management of the > list, > please send E-mail to gamers-ow...@audyssey.org. > --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] bgt help
Hello, This is an issue I've had to hack around before. The best way I've found to fix it is to convert all of your objects to object handles. item@[] lookup(string keyword) It might be a bit of work, but its so much better to use handles anyway that you won't regret it. In fact, I would probably write the line item@[]@ lookup(string keyword) such that we are not only using an array of handles, but we're returning a handle to the array itself. You also really can't take proper advantage of inheritance with out using handles. If this is beyond your current knowledge of BGT, I suggest researching handles, if not also inheritance. Handles are amazing things that will probably make your game run faster, too! Best, Aaron On 8/7/16, johnwrote: > Hi All, > > I've been hacking at a project for a couple weeks now, and am getting some > rather confusing array-related errors when trying to compile. > > I've seen these before, but they usually only occur when trying to use > objects with nondefault constructors in arrays in some fashion. > > In this case, its a method declaration line that seems to be breaking: > > > > item[] lookup(string keyword) > > The error is: > > > > File: array > > On line: 0 (0) > > Error: The subtype has no default factory > > File: > > On line: 20 (1) > > Information: Compiling database::lookup(string) > > > > The item class is fully valid and included in the script. > > The lookup function is as follows: > > > > item[] lookup(string keyword) > > //This function returns a list of items that can be referenced by a given > keyword. > > { > > item[] results;//Note that this line doesn't break, just the function > declaration > > for(int count=0; count contents, checking each item > > { > > if(contents[count].check(keyword)) results.insert_last(contents[count]); > > } > > return results; > > } > > > > If anybody has a clue what's going on here, I'd really appreciate some > help. > > Also, if you know how to use objects that have constructors with arguments > in arrays, I'd love to know too; that particular issue has been costing me a > tremendous amount of debugging and fixing time. > > > > Thanks, > > John > --- > Gamers mailing list __ Gamers@audyssey.org > If you want to leave the list, send E-mail to > gamers-unsubscr...@audyssey.org. > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/gamers@audyssey.org. > If you have any questions or concerns regarding the management of the list, > please send E-mail to gamers-ow...@audyssey.org. > --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
[Audyssey] bgt help
Hi All, I've been hacking at a project for a couple weeks now, and am getting some rather confusing array-related errors when trying to compile. I've seen these before, but they usually only occur when trying to use objects with nondefault constructors in arrays in some fashion. In this case, its a method declaration line that seems to be breaking: item[] lookup(string keyword) The error is: File: array On line: 0 (0) Error: The subtype has no default factory File: On line: 20 (1) Information: Compiling database::lookup(string) The item class is fully valid and included in the script. The lookup function is as follows: item[] lookup(string keyword) //This function returns a list of items that can be referenced by a given keyword. { item[] results;//Note that this line doesn't break, just the function declaration for(int count=0; count
[Audyssey] BGT help
Hello everyone, I was wondering if anyone is able to help me learn BGT, or, does anyone have the audio BGT tutorial? Because if you do, that would be appreciated. Thanks Ivan Soto Follow me on twitter @blinkwizard23 or my other account BW_audio --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] BGT help me please: sound objects array.
Gabriel, The problem si that you declare your sound handles as if they were elements of an array which has already been created, but you first need to declare the array of handles before assigning or referring to them. Best Regards, Hayden -Original Message- From: Gamers [mailto:gamers-boun...@audyssey.org] On Behalf Of Gabriel Battaglia (Kriyaban) Sent: Tuesday, February 12, 2013 4:15 AM To: Gamers Audissey Mailinglist Subject: [Audyssey] BGT help me please: sound objects array. Hi dear all. Could you please help me to fix this error? This is just a small example that reproduce it. tone_synth[] synth(2); void main() { synth[0].waveform_type=3; synth[1].waveform_type=3; synth[0].note_ms(C4,130); synth[1].note_ms(C6,130); //Error in the following line sound@ tasto[0] = synth[0].write_wave_sound(); sound@ tasto[1] = synth[1].write_wave_sound(); tasto[0].play_wait(); tasto[1].play_wait(); } The interpreter says: File: [...] On line: 3 (1) Information: Compiling void main() File: [...] On line: 9 (7) Line: sound@ tasto[0] = synth[0].write_wave_sound(); Error: Expected ';' File: [...] On line: 10 (7) Line: sound@ tasto[1] = synth[1].write_wave_sound(); Error: Expected ';' I can't understand why it is not allow to use indexes in this sort of assignement. If I erase the [0] and [1] indexes, the script runs correctly. Thanks for your appreciated help. Gabriel. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
[Audyssey] BGT help me please: sound objects array.
Hi dear all. Could you please help me to fix this error? This is just a small example that reproduce it. tone_synth[] synth(2); void main() { synth[0].waveform_type=3; synth[1].waveform_type=3; synth[0].note_ms(C4,130); synth[1].note_ms(C6,130); //Error in the following line sound@ tasto[0] = synth[0].write_wave_sound(); sound@ tasto[1] = synth[1].write_wave_sound(); tasto[0].play_wait(); tasto[1].play_wait(); } The interpreter says: File: [...] On line: 3 (1) Information: Compiling void main() File: [...] On line: 9 (7) Line: sound@ tasto[0] = synth[0].write_wave_sound(); Error: Expected ';' File: [...] On line: 10 (7) Line: sound@ tasto[1] = synth[1].write_wave_sound(); Error: Expected ';' I can't understand why it is not allow to use indexes in this sort of assignement. If I erase the [0] and [1] indexes, the script runs correctly. Thanks for your appreciated help. Gabriel. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
[Audyssey] BGT help.
Hey. I am having issues with the documentation. I can't get in the tutorial. Can someone give me a copy of the document in a text file? Thanks! -- Email services provided by the System Access Mobile Network. Visit www.serotek.com to learn more about accessibility anywhere. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] BGT help.
What does BGT stand for? - Original Message - From: michael barnes c...@samobile.net To: gamers@audyssey.org Sent: Sunday, January 29, 2012 5:36 AM Subject: [Audyssey] BGT help. Hey. I am having issues with the documentation. I can't get in the tutorial. Can someone give me a copy of the document in a text file? Thanks! -- Email services provided by the System Access Mobile Network. Visit www.serotek.com to learn more about accessibility anywhere. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] BGT help.
Hi Keith, It stands for Blastbay Game Toolkit. HTH On 1/29/12, Keith S hea...@mchsi.com wrote: What does BGT stand for? --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.
Re: [Audyssey] BGT help.
What problem are you having with getting into the documentation? It's a standard windows help file. Chris Bartlett -Original Message- From: gamers-boun...@audyssey.org [mailto:gamers-boun...@audyssey.org] On Behalf Of Thomas Ward Sent: Sunday, January 29, 2012 7:33 AM To: Gamers Discussion list Subject: Re: [Audyssey] BGT help. Hi Keith, It stands for Blastbay Game Toolkit. HTH On 1/29/12, Keith S hea...@mchsi.com wrote: What does BGT stand for? --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org. --- Gamers mailing list __ Gamers@audyssey.org If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org. You can make changes or update your subscription via the web, at http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/gamers@audyssey.org. If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.