Re: Problem with UniversalSpeech in Python 3

2019-02-26 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: Problem with UniversalSpeech in Python 3

Thanks for the help! Well, for now I have switched to Python 32 bit, but maybe compiling a 64 bit version wouldn't be such a bad idea. Although I don't know enough about c++ to know how much work it would need. Thanks for all your effort. I certainly appreciate it.Cheers.

URL: https://forum.audiogames.net/post/414685/#p414685




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


Re: Problem with UniversalSpeech in Python 3

2019-02-25 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: Problem with UniversalSpeech in Python 3

Thanks guys. Changing my Python to 32 bit solved the problem. Although now I'm having another. When I want to use sayA or speechA functions I get this error:Traceback (most recent call last):  File "", line 1, in   File "E:\us\UniversalSpeech.py", line 24, in sayA    def sayA(msg, interrupt=True): return __uspeech.speechSayA(msg, interrupt)OSError: exception: access violation writing 0x0139F30CBut other functions work. I'm not sure what is the differenc between say and sayA. I half remember something about supporting unicode. Now which one supports it and which doesn't I don't know.

URL: https://forum.audiogames.net/post/414447/#p414447




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


Problem with UniversalSpeech in Python 3

2019-02-24 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Problem with UniversalSpeech in Python 3

Hello everyone.I'm trying to use UniversalSpeech in Python 3, but when I import its Python module I get an error. Like this:>>> import UniversalSpeechTraceback (most recent call last):  File "", line 1, in   File "E:\us\UniversalSpeech.py", line 2, in     __uspeech = __ctypes.cdll.UniversalSpeech  File "C:\Program Files\Python37\lib\ctypes\__init__.py", line 426, in __getattr__    dll = self._dlltype(name)  File "C:\Program Files\Python37\lib\ctypes\__init__.py", line 356, in __init__    self._handle = _dlopen(self._name, mode)OSError: [WinError 193] %1 is not a valid Win32 applicationI thought maybe I needed to register the dll file, but even that didn't help. I would appreciate any help.Cheers.

URL: https://forum.audiogames.net/post/414306/#p414306




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


Re: Looking forAccessible IDE

2019-02-24 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: Looking forAccessible IDE

I loved Visual Studio when I was working with CSharp and Visual Basic, but it's not doing well with Python, at least not for me. The IntelliSense is very slow and unreliable. Also sometimes when I choose a IntelliSense suggestion, it doesn't remove the letters I've already written, and creates typos.I'm now testing VS Code and I'm quite impressed with the efford gone to make it accessible. My main problem with VS Code is the terminal. If I can find a solution for it, I probably start using it for all my python programming.

URL: https://forum.audiogames.net/post/414285/#p414285




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


Question about C and C++?

2017-06-25 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Question about C and C++?

Hello everyone,In the online course I'm taking, the language of choice for the first 6 weeks is C. Before, I didn't have a very high opinion of C. I like object oriented programming, and the biggest thing turning me away from C was the fact that it's not object oriented. But in these several lesson, I have come to really like the power and freedom of C. Despite the arcane parts and ridiculous identifiers like fread, fprintf, and strlen that my screen reader reads weirdly, working with the full understanding about how you are doing something and how you're interacting with hardware--especially memory is rather satisfying. So I'm thinking of learning C++ in addition to C later as my main programming language to have both the power of C and object oriented features. The question is, what is exactly the relationship between C and C++? Would I be able to seamlessly switch between them? I mean, is the syntax of C++ identical to C only with object oriented 
 parts added, or it's not the case?Cheers.

URL: http://forum.audiogames.net/viewtopic.php?pid=316887#p316887





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

Playing row numbers with the posibility of interrupt in BGT?

2017-05-28 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Playing row numbers with the posibility of interrupt in BGT?

Hello everyone,I'm trying to develop a small game in BGT, in which I need to announce the row and column numbers of each cell when you use arrows to move in the grib. Something like 5, 8. The problem is with interrupting the numbers when the player is moving rapidly on the grid. My solution is this function I wrote that doesn't work very smoothly:void PlayCell(){sound SayX, SayY;SayX.load("Voices/" + x + ".wav");SayY.load("Voices/" + y + ".wav");SayX.play();while (SayX.playing){if (key_pressed(KEY_LEFT) || key_pressed(KEY_RIGHT) || key_pressed(KEY_UP) || key_pressed(KEY_DOWN)){SayX.stop();return;}wait(5);}SayY.play();while (SayY.playing){if (key_pressed(KEY_LEFT) || key_pressed(KEY_RIGHT) || key_pressed(KEY_UP) || key_pressed(KEY_DOWN)){SayY.stop();return;}wait(5);}
}Isn't there a better way? For example, isn't it possible to merge two sounds in one sound object? So for example, I can merge 5 and 8 to one sound object and play it without so much fuss?Thanks in advance.Cheers,  Meisam URL: http://forum.audiogames.net/viewtopic.php?pid=312861#p312861 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Is it me or is bgt really terrible with memory consumption

2017-03-06 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: Is it me or is bgt really terrible with memory consumption

In your dictionary, you use strings like "rock". As far as I understand, using string in this particular situation is a bad idea. Firstly, each letter takes one byte. So a string like "hardwood" would take 8 bytes, while if you use a int8 or uint8 and assign a number (between 0 to 256 for uint8 and -128 to 127 for int8) for hardwood, it would only take 1 byte. Secondly, when you want to compare two tiles, the engine has to compare character by character and in a big game it will slow down the execution. Arrays of uint8 is the best in my humble opinion. that 90x90x90 array you wanted, if you make it as uint8 there won't be any problem, it'll only take 711 kb. I doubt you would have more than 256 tiles for your game, and if you have, use a uint16.Cheers.

URL: http://forum.audiogames.net/viewtopic.php?pid=300768#p300768





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

Re: My current dilemma, choosing the right programming language

2016-12-26 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: My current dilemma, choosing the right programming language

@nuno69Hi.I do the same, with NVDA, I move on the line I want to move using arrow keys, then press NVDA key + / on the num pad to bring mouse pointer on the line. Then I keep the left mouse button on the mouse down. Then I use the arrows to move to the line I want to replace with the last one, press NVDA key + / on num pad again and release the left mouse button on the mouse. It sometimes work perfectly and sometimes not. I just repeat it until the line goes where I want it to. I think you can do the same with Jaws, but I don't remember with combination keys brings the mouse pointer to where pc cursor is.Hope it works. Good luck.

URL: http://forum.audiogames.net/viewtopic.php?pid=291038#p291038





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

Re: My current dilemma, choosing the right programming language

2016-12-25 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: My current dilemma, choosing the right programming language

@nuno69Well, to begin with, I used the very short but interesting enough course from a website called www.sololearn.com. It only covers some aspects of the language, enough to get familiar with it, and it is designed for being used on smart phones. But I used it on my computer, because I couldn't solve a kind of question that you need to rearrange the lines of code by drag and drop on my Android device. But on the computer I could do it with some difficulty. (If you decided to take the course, mention it and I'll tell you the trick I used to move the lines up and down in that kind of questions.)Then, more or less familiar with the basics of the language, I started reading the c# tutorial from www.tutorialpoint.net. Microsoft itself has a c# guide, just search for something like "msdn c# guide".Good luck.

URL: http://forum.audiogames.net/viewtopic.php?pid=290901#p290901





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

Re: My current dilemma, choosing the right programming language

2016-12-18 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: My current dilemma, choosing the right programming language

Hello,Like you, after BGT, I tried to learn another language, and jumped from one language to another, waisting a lot of time and not spending enough time on a specific language to really become sufficient in it. You will hear a lot of different answers to this question. Mine is c#. Visual Studio is an absolutely amazing tool. IntelliSense gives you suggestions when you type the first few letter of a keyword or declared method or variable. Pressing space or enter will type it automatically. It makes your work much, much faster. The outlining gives you the ability to hide parts of the code that you are done with and make the code much more compact and easy to work with. Plus, VS makes creating windows and other visual controls like textboxes, comoboxes, buttons etc. a childplay. And finally C# itself is a very powerful and (in comparason to languages like C and C++) easy language. Plus, C# is from the C family, and for you that come from BGT, its syntax will be very fam
 iliar.About incryption, I'm not sure if .net has anything out-of-box. For sound, (as far as I know), .net has the capability of a simple player that only plays wave files. For more advance sound playing, I use a dll called IrrKlang that is very powerful, and you can use it with different languages, including c#. Although if you want to sell your product you have to buy a license for it. I haven't learn it very well yet, but I saw a IrrKlang example that lets you play encoded sound files. .Net has more than 4000 classes, so I think somewhere among them is something to encrypt your files, and if not, there are always dlls around for things like that. For screen reader and SAPI5, there is UniversalSpeech.dll that works very well. And finally I have to mention that C# is first and foremost a programming language for Windows, although you can use Mono to program for Mac and Linux, and other OSs as well. It got really long, sorry.

URL: http://forum.audiogames.net/viewtopic.php?pid=290098#p290098





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

Re: help with some code

2016-07-28 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: help with some code

Hello,You have put a semicolon after the while statement. Remove it. Plus, you haven't enclosed the code underneath while statement in braces. You should use while like this:while (true){// some code to be executed repeatedly}

URL: http://forum.audiogames.net/viewtopic.php?pid=270955#p270955





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

Re: A way to detect that capslock is on?

2016-07-18 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: A way to detect that capslock is on?

Ah, I have put Jaws' typing echo on word. But it seems that it's better to put it on character when I'm coding.

URL: http://forum.audiogames.net/viewtopic.php?pid=268584#p268584





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

A way to detect that capslock is on?

2016-07-18 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


A way to detect that capslock is on?

Hello there,Isn't there a script or add-on for Jaws or NVDA that when capslock is on, plays a small beep or something when you are typing? When I'm coding, mostly in bgt, sometimes I turn capslock on to type something like "KEY_ESCAPE" and then forget to turn it off and write a few lines all in capital characters until I notice and have to retype all of it. It's really annoying.Thanks.

URL: http://forum.audiogames.net/viewtopic.php?pid=268533#p268533





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

Re: Help about Scratch?

2016-07-08 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: Help about Scratch?

Hi,I did the project with the help of my sister, but after trying to submit it and saw that many questions I have to answer are not accessible, I gave up the certificate. I'll just listen to the videos and do the projects for myself. And you are right, such a program is almost impossible to make accessible. They could make a coding pane that you could code instead of graphical interaction, but then it would lose its objective that is being simple and easy to understand.Cheers.

URL: http://forum.audiogames.net/viewtopic.php?pid=267263#p267263





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

Re: A question

2016-07-04 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Re: A question

Hi,Depends on how complicated you want it to be and what you prefer. I, for example, would use a two dementional array of int8 or uint8 type (for minimum use of memory). Then, assign a number for each different square. For example 0 for dirt, 1 for hardwood, 2 for grass etc. Then I'd fill the map the way I want it. After that, I would add conditionals to my movement function to do different things depending on what number the current square is. For example play the appropriate step sound, or fall down or burn etc.

URL: http://forum.audiogames.net/viewtopic.php?pid=266755#p266755





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

Help about Scratch?

2016-06-29 Thread AudioGames . net ForumDevelopers room : MeisamAmini21 via Audiogames-reflector


  


Help about Scratch?

Hello there,I have taken CS50x course on EdX.org to fill my time in summer, but the project I have to do for the week 0 of the course is with Scratch, a graphical programming environment that is not at all accessible. Don't any of you by any chance know something that helps me to do my work? I think I'll get one of my family members to help me, but I honestly don't understand the thing much, even though I'm not a stranger to programming. I understand all the concepts, but the way of implimenting them in Sratch is strange.Cheers.

URL: http://forum.audiogames.net/viewtopic.php?pid=266305#p266305





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