Re: Need help with a script

2019-11-03 Thread AudioGames . net Forum — Developers room : microsoftsam203 via Audiogames-reflector
Re: Need help with a script Hello,Thanks all for the help.I have looked at the code now and I still have a question.        countdown(n-1)Why is this line indented like that? I mean why has this line 8 spaces instead of 4? It's not a part of the els function.@3 I meant if this developers

Re: Need help with a script

2019-11-03 Thread AudioGames . net Forum — Developers room : microsoftsam203 via Audiogames-reflector
Re: Need help with a script Hello,Thanks all for the help.@3 I meant if this developers section of the audiogames forum was for development in general or only for audiogame development. URL: https://forum.audiogames.net/post/472247/#p472247 -- Audiogames-reflector mailing list

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : Munawar via Audiogames-reflector
Re: Need help with a script The good thing about languages like Python is that your computer won't crash because you blew your stack. It's considered a safe environment to play around in since you can overflow the stack without much in the way of consequences. So don't worry about crashing

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: Need help with a script @7, yep. If you have a while loop in a recursive function it will run infinitely and would most likely increase the possibility of a stack overflow or something worse. I.e.: if you have a function and a while loop that repeatedly calls that function, then you

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: Need help with a script @7, yep. If you have a while loop in a recursive function it will run infinitely and would most likely increase the possibility of a stack overflow or something worse. URL: https://forum.audiogames.net/post/472165/#p472165 -- Audiogames-reflector mailing

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Need help with a script @6, are you refering to my suggestion of using a while loop?I'm not very experienced in python and didn't realize that you could return from a def like that. URL: https://forum.audiogames.net/post/472147/#p472147 -- Audiogames-reflector mailing list

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: Need help with a script @4, no, no, never do this. I'll explain why in a moment.@OP, what you've made is called a recursive function. That is, you've made a function that "recursively" (or repeatedly) calls itself with either the same or modified arguments. This is a bit of a

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : pauliyobo via Audiogames-reflector
Re: Need help with a script @3microsoftsam203 wrote:#Don't get the user input in the function, as doing so will basically cause them to reenter a number every time a program runsI don't get this. Can you explain why this happens?You are adopting a technique called recursion. Recursion

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Need help with a script microsoftsam203 wrote:Hello,Thanks a lot for the help.I still have some questions. #Don't get the user input in the function, as doing so will basically cause them to reenter a number every time a program runsI don't get this. Can you explain why this happens

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : microsoftsam203 via Audiogames-reflector
Re: Need help with a script Hello,Thanks a lot for the help.I still have some questions. #Don't get the user input in the function, as doing so will basically cause them to reenter a number every time a program runsI don't get this. Can you explain why this happens?Why does input only work

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : microsoftsam203 via Audiogames-reflector
Re: Need help with a script Hello,Thanks a lot for the help.I still have some questions. #Don't get the user input in the function, as doing so will basically cause them to reenter a number every time a program runsI don't get this. Can you explain why this happens?Why does input only work

Re: Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Need help with a script I will provide the fixed script and will comment the things I've changed and or addeddef countdown(n): #Don't get the user input in the function, as doing so will basically cause them to reenter a number every time a program runs if n <= 0: pr

Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : microsoftsam203 via Audiogames-reflector
Need help with a script Hello all,I'm learning python with the help of a book called think python 2. In chapter 6 there is an exercyse where you have to make a program that counts down from 10 to 0. When it reaches 0 it should print blast off.Now as an extra exercyse, I thought I'm going

Need help with a script

2019-11-02 Thread AudioGames . net Forum — Developers room : microsoftsam203 via Audiogames-reflector
Need help with a script Hello all,I'm learning python with the help of the book think python 2.In chapter 6 there is an exercyse where you have to make a program that counts down from 10 to 0 and when it reaches 0 it prints blast off.Now as an extra exercyse, I thought I'm going to let

Re: Need help in this script

2017-03-28 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Need help in this script Just to be clear, the extension scripts need to be copied over in to python/lib/site-packages/pyglet/media/drivers/openal. The python and Pyglet directory names may vary abit depending on versions, if pyglets installed as an egg file then open it as a zip file

Re: Need help in this script

2017-03-28 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Need help in this script Hi. No my graphic card is NVIDIA 920 MX. URL: http://forum.audiogames.net/viewtopic.php?pid=304417#p304417 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin

Re: Need help in this script

2017-03-28 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Need help in this script Okay, let's just say that you really don't see any errors here, which is quite unlikely, this might just have one reason which I actually encountered some time ago.My laptop contained a really old graphics card from ATI, which is now AMD, and used a much older

Re: Need help in this script

2017-03-28 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Need help in this script Hi again, I have fixed those things, I have added prints and stuff like that, But even nothing prints. Here is the code:import pygameimport pygame.mixerimport timeimport randomfrom pyglet.media.drivers.openal import lib_openal as alfrom

Re: Need help in this script

2017-03-28 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Need help in this script Yes. I have copyed that into my openal location. And thanks for your help, Gonna do this now and will post the results here. URL: http://forum.audiogames.net/viewtopic.php?pid=304358#p304358 ___ Audiogames

Re: Need help in this script

2017-03-27 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Need help in this script Does the Pyglet OpenAL example and Pygame mixer work individually? As the OpenAL examples I wrote require copy over certain Pyglet scripts to include the proper extensions. Your script seems to work alright with a few adjustments, such as in line 20 player

Re: Need help in this script

2017-03-27 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Need help in this script No amir. I have counted them and they are all set correctly. And either if that's what you said, python must show an error regarding that blocks are not correct something like that. So the problem is something else. URL: http://forum.audiogames.net

Re: Need help in this script

2017-03-27 Thread AudioGames . net Forum — Developers room : visualstudio via Audiogames-reflector
Re: Need help in this script hello@kianoosh, look at your code, it might indented improperly after that while loop which makes your game exit, you must remove one tab character(i didnt count your tab chars) URL: http://forum.audiogames.net/viewtopic.php?pid=304275#p304275

Re: Need help in this script

2017-03-27 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Re: Need help in this script Yes i know, and I do the same. But i don't get anything. At least nvda doesn't read any errors. Just it exits the app. I know something is mistaken, But don't know what! URL: http://forum.audiogames.net/viewtopic.php?pid=304259#p304259

Re: Need help in this script

2017-03-27 Thread AudioGames . net Forum — Developers room : Kyleman123 via Audiogames-reflector
Re: Need help in this script if your system is set just to run .py files with python by pressing enter in your file browser, it might not output an error. especially if it outputs those to the cmd prompt which will close ones python ends, then its gone forever.i always open a command

Need help in this script

2017-03-27 Thread AudioGames . net Forum — Developers room : kianoosh via Audiogames-reflector
Need help in this script Hi guise.Last night I tryed out the pygame with pyglet openal libraries. Everything went fine, But when i tryed to run it, It suddenly exited and i didn't get any errors. Any helps are a pritiated. Here's the script:import pygameimport pygame.mixerimport timeimport