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.

I am Hammerstrike. Do not cross me, wizard, or you will find your bones shattered beyond mending. I have fought in every battle, every fight, in every place. I am power. I am the strongest warrior. Nothing will hurt me if i will it

Thumbs up

2019-06-09 14:12:10

Well. Without code it's impossible to troubleshoot.

My name is Inigo Montoya. You killed my space bar. Prepare to die!

http://l-works.net

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

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha

2019-06-09 17:12:50

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

love is nice. If someone is against of it, don't listen to them. You must listen to your heart

Thumbs up

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.

Hi, I am simter, 14 years old, from germany. If you want to conntact me, my email is [email protected] and my skype karmienmedias.
Hay. Ich bin simter, 14 jahre alt, aus deutschland. Wenn du mit mir in kontakt treten möchtest, meine email ist [email protected] und mein skype ist karmienmedias.

Thumbs up

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?

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha

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.

Thumbs up

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.

flawless victory!

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.

I'm not sure what to put here, so...
Roses are black
Violets are black
I'm blind!

Thumbs up

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.

Hi, I am simter, 14 years old, from germany. If you want to conntact me, my email is [email protected] and my skype karmienmedias.
Hay. Ich bin simter, 14 jahre alt, aus deutschland. Wenn du mit mir in kontakt treten möchtest, meine email ist [email protected] und mein skype ist karmienmedias.

Thumbs up

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.

My name is Inigo Montoya. You killed my space bar. Prepare to die!

http://l-works.net

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

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.

I'm not sure what to put here, so...
Roses are black
Violets are black
I'm blind!

Thumbs up

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);
}

I am Hammerstrike. Do not cross me, wizard, or you will find your bones shattered beyond mending. I have fought in every battle, every fight, in every place. I am power. I am the strongest warrior. Nothing will hurt me if i will it

Thumbs up

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.

Thumbs up +1

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.

if you wish,  you could give a look at my github profile.
If you want to get in touch with me you can follow me on Twitter
have a nice day.
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.

I am Hammerstrike. Do not cross me, wizard, or you will find your bones shattered beyond mending. I have fought in every battle, every fight, in every place. I am power. I am the strongest warrior. Nothing will hurt me if i will it

Thumbs up

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?

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha

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.

I am Hammerstrike. Do not cross me, wizard, or you will find your bones shattered beyond mending. I have fought in every battle, every fight, in every place. I am power. I am the strongest warrior. Nothing will hurt me if i will it

Thumbs up

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.

Hi, I am simter, 14 years old, from germany. If you want to conntact me, my email is [email protected] and my skype karmienmedias.
Hay. Ich bin simter, 14 jahre alt, aus deutschland. Wenn du mit mir in kontakt treten möchtest, meine email ist [email protected] und mein skype ist karmienmedias.

Thumbs up

2019-06-10 15:37:48

@11, it's simteraplications

Hi, I am simter, 14 years old, from germany. If you want to conntact me, my email is [email protected] and my skype karmienmedias.
Hay. Ich bin simter, 14 jahre alt, aus deutschland. Wenn du mit mir in kontakt treten möchtest, meine email ist [email protected] und mein skype ist karmienmedias.

Thumbs up

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.

My name is Inigo Montoya. You killed my space bar. Prepare to die!

http://l-works.net

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

Raduvay se, raduvay
Raduvay se domaki ne
Kolko liste po gorach
Tolko zdrave na taz kyshcha

2019-06-10 21:43:57

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

My name is Inigo Montoya. You killed my space bar. Prepare to die!

http://l-works.net