2019-06-09 08:27:39

hey, everyone.
Got a question.
I've began trying to code from yesterday and have now learned some stuff, like dynamic menues, soundplaying, alerts/questions etc.
1 Problem is that When i set a wait timer, like. I'm not givving the hole code since i don't have it. This.
speak("test");
wait(10);
speak("this is a test");
It will crash. I don't see the problem with the code, it's fine but it just crashes. gotta go, Thanks.

see ya later. Hope you don't fall off a roof.

2019-06-09 14:12:10

Well. Without code it's impossible to troubleshoot.

Much less active on this forum than in the past.

Check out my live streams: http://lerven.me
follow me on Twitter: http://twitter.com/liamerven

2019-06-09 14:26:55

Yeah. Please share your code and someone will definitely help you.
My kind advice is to abandon BGT and learn something else, as BGT is archaic and you will be getting less and less support, as more and more people are changing technologies to something that might actually be useful

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com

2019-06-09 17:12:50

yeah bro if you can learn python. It's so very fast, and popular at this time

Yours kindly

2019-06-09 19:18:29

python is difficult. I also don't see the problem with the code, but when i don't have the full code i can not say a thing.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-06-09 19:20:20

Lol, your BGT is more difficult than Python, or... maybe not? Cause you cannot learn and you don't have any code to still?

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com

2019-06-09 20:22:41

Did you define a tts voice and use it for speak? Sorry, I haven't touched BGT for a long time, but you have to define your voice with "tts_voice voice;" and then "voice.speak("text");"

We are pleased, that you made it through the final challenge, where we pretended we were going to murder you. We are throwing a party in honor of your tremendous success. Place the device on the ground, then lay on your stomach with your arms at your sides. A party associate will arrive shortly to collect you for your party. Assume the party submission position or you will miss the party.

2019-06-09 23:19:48

@4, python isn't really fast, i assure you that it's slower than bgt.
But python is way way  more flexible than bgt, that's true.

2019-06-09 23:34:05

Python is a lot slower to learn then bgt, but it's waaaaaaaaaay more flexable, and still being updated.
About the code, I see nothing wrong with it, but I don't have the hole code. as i believe post 6 said, you have to define the tts voice.

2019-06-09 23:50:38

@6
you by your self never released an own program, so you should not throw accusations arround that all my code is based of stolen source.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-06-10 00:05:44

Hey Centre. What is your git hub username? smile

2019-06-10 00:18:21

I think there have been enough tests to prove that Python when optomized correctly can be just as efficient as BGT. And that's not what this topic is even about. Why is it when someone asks a BGT question you all have to get in to a pissing match over which is better? If someone wants to use it and be ham stringed by it's limitations then let them.

Much less active on this forum than in the past.

Check out my live streams: http://lerven.me
follow me on Twitter: http://twitter.com/liamerven

2019-06-10 01:06:20

Agreed with Liam. If someone asks for help about BGT, you go off on them to learn a nee language. Its sad, but at this point you should be happy that they're actually learning it to begin with and not stealing sourcecode.

Ivan M. Soto.
Feel free to check out my work and services.
http://ims-productions.com

2019-06-10 02:01:27

Agree with liam and ivan here.
While python will probably make better games, if they want to learn bgt, let them. That's they're choice. Just because you don't like it, they might.
It's like the fucking ipod touch 7 again.
Some people don't like it, so they throw a fucking shitfit.

2019-06-10 09:31:56

Hey guys, sorry I didn';t reply earlier. After I posted this topic i fell asleep and woke up at 2AM. Anyway, here's the code.
#include "speech.bgt"
#include "dynamic_menu.bgt"
#include "sound_pool.bgt"
sound menuenter;
void main()
{
tts_voice voice;
sound_pool pool;
show_game_window("ARA. V0.1");
menuenter.load("menuenter.wav");
speak("DRACOMALFOY");
wait(10);
speak("TESTINGTesting222");
wait(5);
install_keyhook;
dynamic_menu menu();
menuenter.play_looped();
menu.add_item_tts("twang");
menu.add_item_tts("manu.");
menu.wrap = true;
menu.allow_escape = true;
menu.run("A R a. v1.",true);
}

see ya later. Hope you don't fall off a roof.

2019-06-10 09:51:48 (edited by targor 2019-06-10 09:55:42)

First, you have to use "voice.speak()", not just "speak()" because you use the tts-object here. And you forgot the parentesis when calling "install_keyhook;". It must be "install_keyhook();".
Third, "dynamic_menu menu" is an object declaration and doesn't need parentesis at the end.
One small question: You mentioned in another thread that you've just began to learn BGT and have seen "alert", "question" and "dynamic_menu". This is the game programming tutorial. Have you first learned the BGT language tutorial. If not, make sure to learn that first because the game programming tutorial takes the concepts discussed in the language tutorial and combines them with game programming.

We are pleased, that you made it through the final challenge, where we pretended we were going to murder you. We are throwing a party in honor of your tremendous success. Place the device on the ground, then lay on your stomach with your arms at your sides. A party associate will arrive shortly to collect you for your party. Assume the party submission position or you will miss the party.

2019-06-10 09:54:34

lol nuno, you seriously are getting annoying. You don't like BGT? I get it. But let people use what they like, it's their choice after all.

Paul

2019-06-10 10:27:39

Alright. So I fixed it. One problem, is it refuses to speak with nvda. How do i make it speak with nvda? Another thing, When I am trying the if (key_pressed(KEY_T)) for example, and adding
{
knife.play();
}
would not work. Why is that?
greetings. Ps, I might ask one billion questions here, so sorry about that.

see ya later. Hope you don't fall off a roof.

2019-06-10 11:54:46

@Paul, my first post was just an informatic one, he could've missed the announcements posted earlier, I have written:

nuno69 wrote:

Yeah. Please share your code and someone will definitely help you.
My kind advice is to abandon BGT and learn something else, as BGT is archaic and you will be getting less and less support, as more and more people are changing technologies to something that might actually be useful

What is annoying in this behavior?

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com

2019-06-10 12:24:24

Alright, I am a beginner in bgt and I don't have something to lose. If you think I should try python, then no, it's just too hard trying to find manules and stuff. I don't know what to code in, other than bgt.

see ya later. Hope you don't fall off a roof.

2019-06-10 14:13:49

@17, thumps up. @16, he included a speach.bgt if that contains the speak(string) funktion, that can work. The dynamic menu class does not support speaking through nvda. How ever there is a dynamic_menu_pro class which also contains some other usefull stuff like speaking and so. You can find it in masons open source titles. This also supports background music, paning of sounds, and speaking through nvda.

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-06-10 15:37:48

@11, it's simteraplications

Lamas with hats, but with sponge bob as carl Stay tuned.

https://www.youtube.com/channel/UCvAUQt … subscriber

2019-06-10 17:49:15

First have you declare knife as a sound?
sound knife;
knife.load("knife.ogg");

Second. The wait function only pauses in the millisecond range. I would suggest wait(3000) this is 3 seconds, or better yet, I believe tts_voice has speak_wait or something similar.
Unsure what speech.bgt is as it's not a standard library so I can't comment on it.

Much less active on this forum than in the past.

Check out my live streams: http://lerven.me
follow me on Twitter: http://twitter.com/liamerven

2019-06-10 20:33:07

And, every time you ask a question it's recommended you paste the information generated by the language interpreter, as it might help us narrow down the issues in more complicated programs, which you might be posting later

If you want to contact me, do not use the forum PM. I respond once a year or two, when I need to write a PM myself. I apologize for the inconvenience.
Telegram: Nuno69a
E-Mail: nuno69a (at) gmail (dot) com

2019-06-10 21:43:57

I was actually about to mention that.
It helps having an output of what errors are generated.

Much less active on this forum than in the past.

Check out my live streams: http://lerven.me
follow me on Twitter: http://twitter.com/liamerven