Re: sort ascending with classes in bgt

2019-11-24 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: sort ascending with classes in bgt OK, so I'll move ahead by quoting the BGT manual and drawing conclusions out of it. Lets start with the most obvious, looking up array::sort_ascending, the remarks section says:BGT Manual wrote:Please note: To sort an array of classes it is necessary f

Re: sort ascending with classes in bgt

2019-11-24 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: sort ascending with classes in bgt OK, so I'll move ahead by quoting the BGT manual and drawing conclusions out of it. Lets start with the most obvious, looking up array::sort_ascending, the remarks section says:BGT Manual wrote:Please note: To sort an array of classes it is necessary f

Re: sort ascending with classes in bgt

2019-11-25 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: sort ascending with classes in bgt First of all, I made a mistake here. It needs to be return this.pt - cmp.pt;of course.Then, its nice to know that your class is actually called pb_entry, not pb, so you'll have to adapt the class names accordingly.Your class would then look like this:

Re: Skills and enemies in Python?

2019-11-26 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Skills and enemies in Python? I'd suggest you read at least a bit into Python. Lists and dictionaries are the very basics of the Python programming language and if you did read into it, you'd know about those, thus your question would be obsolete. Just add a enemies list and append your

Re: Skills and enemies in Python?

2019-11-26 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Skills and enemies in Python? @8 of course do I know about C++ vectors, thats why i'd suggest to look into lists. Other than that Python doesn't support typed datatypes, thats almost exactly the same. Yeah, there are behind the scenes differences like Python lists actually being associa

Re: 2 python questions

2019-12-01 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: 2 python questions With the help of Cython it is possible to achieve real multithreading in Python. It is more complicated however. But the simple multithreading Python itself provides should be enough to support data processing while waiting for input just fine.Best Regards.Hijacker U

Re: help with networking in python

2019-12-01 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: help with networking in python Relating to your last sentence:ashleygrobler04 wrote:And that networking examples are not related to audio game stuff...I'd recommend to not just you, but all of the newbie developers here, to start generalizing your google search terms and your way of thi

Re: help with networking in python

2019-12-01 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: help with networking in python Of course. I admit that thats a thing every new developer needs to learn. You need to generalize your problem as far as possible. An audio game is actually something much more easy than a usual video game, because it uses the very same concepts that a vide

Re: Pygame or PyQt which Gui?

2019-12-05 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Pygame or PyQt which Gui? Usually WX Python if needed, Qt should be fine though. URL: https://forum.audiogames.net/post/482969/#p482969 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audi

Re: Pygame problem

2019-12-05 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Pygame problem We'll need your code to sort things out, everything else simply doesn't work. URL: https://forum.audiogames.net/post/482970/#p482970 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/l

Re: Lucia - OpenSource AudioGame engine written in Python

2019-12-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Lucia - OpenSource AudioGame engine written in Python Thats what this page is all about. URL: https://forum.audiogames.net/post/483841/#p483841 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listi

Re: Another question again, still Python, yea?

2019-08-04 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Another question again, still Python, yea? The last solution you provided is more close to the one i'm using right now in one of my projects. Each level has a list of conditions which decide upon something happens, e.g. winning or losing conditions. If one of my winning conditions retur

Re: AudioGame Collaboration: Should We Do It?

2019-08-05 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: AudioGame Collaboration: Should We Do It? Hi there,just one small correction: when cloning a repository that is not private, even though you're using a https url, you don't need to provide username and password, you don't even need a GitHub account.And one other addition: in my oppinion

Re: How to get started coding aplications in python?

2019-08-07 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: How to get started coding aplications in python? PyQT isn't as accessible as wxPython though. I've used wxPython several times already. Its true that it can be pretty tricky and trial-and-error-like, but it can create almost entirely accessible GUIs at least, whereas QT still is a bit o

Re: python, how to load the text without freezing a program

2019-08-09 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: python, how to load the text without freezing a program First of all, thats too less information. What are you using to display the text field? Might the freeze be related to the GUI framework? Which library are you using to load PDFs/how do you load texts? Might the freeze result out o

Re: Few questions

2019-08-09 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Few questions Just use BGT if you want, but i'd recommend to read through the tutorial and don't copy all the stuff to see that its working, but read and understand the tutorials to see how programming actually works, because the question "how does BGT know what to do" tells me that you

Re: User input in pygame?

2019-08-09 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: User input in pygame? You need to handle keydown events. You know, pygame handles any user interaction by raising events. Those events need to be handled within the main game loop. Whenever a key is used when in the game window (maybe even outside), an event is created. You need to hand

Re: User input in pygame?

2019-08-10 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: User input in pygame? I ment entering text as well, and @3 only showed you an example for what I described earlier, thanks for that .Best Regards.Hijacker URL: https://forum.audiogames.net/post/454480/#p454480 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gu

Re: a question related to cython and MinGW

2019-08-12 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: a question related to cython and MinGW The Cython docs should actually explain everything you need to get yourself going:Just click hereBest Regards.Hijacker URL: https://forum.audiogames.net/post/455042/#p455042 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: A good reverb handler for bgt?

2019-08-14 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: A good reverb handler for bgt? Libaudioverse is rather laggy, I experienced that myself already too. I didn't find a nice way to add effects like reverbs to BGT yet apart from adding an entirely new sound interface via external libraries, and I didn't found an implementation well enough

Re: ASP.Net

2019-08-14 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: ASP.Net We do use ASP at work, running all of it on an IIS server which does work quite fine and using C# in productive environments for web development is quite nice as well.Best Regards.Hijacker URL: https://forum.audiogames.net/post/455445/#p455445 -- Audiogames-reflector maili

Re: Pathfinding implementation?

2019-08-16 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Pathfinding implementation? @bgt lover: how should we know? BGT's source is closed after all. But judging from its performance, its probably A*, and it seems to be a rather bad implementation, considering that its using C++ under the hood.Best Regards.Hijacker URL: https://forum.audiog

Re: coding in auto it3?

2019-08-17 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: coding in auto it3? It doesn't, you simply tell the struct which datatypes are stored within and it will simply reconstruct it and create the corresponding pointers if necessary. Why is it important how AutoIT3 handles its structs internally? It shouldn't bother you actually, such engin

Re: coding in auto it3?

2019-08-18 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: coding in auto it3? Python as well doesn't do type checking behind the ctypes interface, its just type checking the values you enter from the Python side. Just like in AutoIT3, BGT and all others, you tell Python the signature of the function you're going to call, using the unified Pyth

Re: My problem in C

2019-08-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: My problem in C Its just as easy as bgt lover suggests and its just plain mathematics. All you need to know is contained in the already mentioned sentences, you don't need to know more about the measurements, in fact, whatever the book says must not be true, but your answer would still

Re: Reading pdf files in c#

2019-08-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Reading pdf files in c# Did you google your problem before? Because when I'm googling things, I find packages over packages for C#, like PDFNet, the package more powerful than everything Python has to offer, at least thats how it seems:PDFNetBest Regards.Hijacker URL: https://forum.aud

Re: Iron python and how to use it on Ubuntu

2019-08-22 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Iron python and how to use it on Ubuntu That simply sounds like an accessibility issue, rather than a problem with IronPython itself.Best Regards.Hijacker URL: https://forum.audiogames.net/post/457142/#p457142 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gu

Re: problems when installing Modules in python

2019-08-22 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: problems when installing Modules in python So, it seems like Python and Pip are not running under the same Python version in your case. Try this instead:python -m pip install pyperclipThis will make sure to run pip under the very same python you use to run your script.Best Regards.Hijac

Re: Reading pdf files in c#

2019-08-22 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Reading pdf files in c# Just as a side-note, i'd recommend you to at least think about the solutions people provide without saying "yes I looked into it but it doesn't help me", just to do a 180 later and say "oh, now that I see an example (you could have googled that yourself btw), it

Re: issue attempting to load sounds

2019-08-25 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: issue attempting to load sounds We'd need the code to find the bug, because all I can tell you is that it does work for sure.Best Regards.Hijacker URL: https://forum.audiogames.net/post/457586/#p457586 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.

Re: splitting my python code into multiple .py files like in bgt

2019-08-26 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt You'll have to "write a module", even though you don't have to do anything to make it an actual module. Then just import it like in bgt. You could also dofrom my_module import *to import all stuff from that specific module, wh

Re: splitting my python code into multiple .py files like in bgt

2019-08-26 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: splitting my python code into multiple .py files like in bgt Na, you're messing keywords up a bit here. A single file is a module, a folder however is a package and needs to contain a __init__.py file (it may be empty) so you can import modules from it.You also need to import a module t

Re: counting characters in lua

2019-09-01 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: counting characters in lua Hi,thats pretty simple. You need to get the # signs out of the string, either by creating a trigger for it, or parsing it out of the already available string inside a script. Lets take the following for example:s = 'Summon rift entity: ##'Now you need to creat

Re: classes in classes in bgt, can i do that?

2019-09-03 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: classes in classes in bgt, can i do that? Nope, you cannot add classes in classes in BGT. But why don't you add those arrays directly inside the parent class, instead of creating a child class?Best Regards.Hijacker URL: https://forum.audiogames.net/post/459459/#p459459 -- Audiogam

Re: python question

2020-07-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: python question You can actually do the same thing gettext does, you can define something that will be globally available to all your submodules, theoretically. It is possible, but not just bad coding style, but, als Camlorn already said, its most likely to cause problems later on. If y

Re: python question

2020-07-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: python question So take those situations as a challenge to find new and more appropriate way to handle those problems instead of solving them with more global variables. URL: https://forum.audiogames.net/post/554053/#p554053 -- Audiogames-reflector mailing list Audiogames-reflecto

Re: Accessible_output2 and Pyglet Title Issue

2020-08-06 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Accessible_output2 and Pyglet Title Issue HiI'm pretty sure thats a question of speed here. NVDA seems to work like it receives the messages to be spoken first, and then right afterwards, before being able to speak anything, the window pops up, forcing NVDA to discard any messages withi

Re: Question about bgt handles

2019-02-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Question about bgt handles Hi,you can do so too, but this will internally create copies of the data you move around. When coming from the Java world, you most probably won't get in touch with the call by reference and call by value patterns.Call by value means that whenever you assign a

Re: Decompiling an APK file

2019-02-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Decompiling an APK file Well, if the code is in binary format its probably not legal to try and reverse engineer it anyway, so why add resources to do so here? I'm pretty sure that no apk tool can do that for you anyway, since its totally up to the language used to build the app how the

Re: Question about bgt handles

2019-02-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Question about bgt handles CAE_Jones wrote:Are handles supported for strings in BGT? It's kinda weird about handles for things like vectors.Not sure here, I just used it to clarify things, didn't test it though and creating copies of strings doesn't take too long usually, don't use it a

Re: Decompiling an APK file

2019-02-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Decompiling an APK file Nope, thats definitely not how its supposed to work . Wether you accepted the license or not doesn't change anything about it being in place, just because you say no to the license doesn't mean that you may crack the code or resell the program under your own name

Re: Folder organization in bgt

2019-02-23 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Folder organization in bgt I'd say, as long as your program starts, noone is there to disagree with your code management. So just do as you like most.Best Regards.Hijacker URL: https://forum.audiogames.net/post/413954/#p413954 -- Audiogames-reflector mailing list Audiogames-reflec

Re: Another question about sounds...

2019-02-23 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Another question about sounds... You simply didn't get the object-related programming scheme here. BGT itself does it exactly that way, you need to include the soundpool but you also need to create an object of the soundpool class. Thats what you'll need to do in python as well, writing

Re: variables versus standard numbers in bgt

2019-03-12 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: variables versus standard numbers in bgt Hi,we'd need more of your code to clearly identify your issue, but there already several things which are going wrong here.Zarvox wrote:So,, if I tell bgt, at 6 seconds to play a sound, it will. However if I assign an integer value to 6000 and te

Re: Getting started with coding audiogames in Python?

2019-03-13 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Getting started with coding audiogames in Python? My my, we again came down to the level of BGT-bashing without arguments did we?Fact is: Oriol wants to go away from BGT and JS. Both have their pros and cons, but they don't matter, since Oriol stated that he wants to use Python, so no r

Re: Getting started with coding audiogames in Python?

2019-03-14 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Getting started with coding audiogames in Python? Oh they aren't, the thing just is that people tend to stick to the libraries they know instead of moving to new alternatives, such as pybass which is pretty damn old, sound_lib which is too, accessible_output2 and so on. Also, most of th

Re: help with a strange runtime in bgt

2019-03-15 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: help with a strange runtime in bgt Well, that code doesn't seem to be enough, I guess there is actually a loop ment to run around this code, so without that one we cannot help you. If its a for loop, manually removing entries from an array will end you up accessing higher indices which

Re: help with a strange runtime in bgt

2019-03-15 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: help with a strange runtime in bgt Well, that code doesn't seem to be enough, I guess there is actually a loop ment to run around this code, so without that one we cannot help you. If its a for loop, manually removing entries from an array will end you up accessing higher indices which

Re: help with a strange runtime in bgt

2019-03-16 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: help with a strange runtime in bgt rory-games wrote:I'd try restarting the loop if a cannonball got removed, so then the for loop counter  will  go back to 0, and no more runtime will occur.Thats one way, but a rather costly one, that would mean wrapping this loop inside another loop wh

Re: Hypothetically installing MacOS in VirtualBox with sound

2019-03-16 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Hypothetically installing MacOS in VirtualBox with sound Well, I myself do have a Yosemite VM with working sound and VO running, but it runs within VMWare Player and not Virtual Box, and I got it already set up, so there was no need to install it manually, I thus can't say anything abou

Re: Cutting code from the scripts in python?

2019-03-16 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Cutting code from the scripts in python? Tolk has some serious trouble with its dll. Usually tolk should provide several solutions to searching for its dll or selecting them during runtime or some other way. You are right, it is just possible to add the path to the overall system paths

Re: compiling code?

2019-03-16 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: compiling code? Yep, Cython is probably the only way to do so, and even this is still no 100% guarantee, since its still a Python interpreter required to run the code and there are ways to hack and retrieve code by manipulating the Python interpreter. But if you don't use Cython or some

Re: The Synthizer Thread

2020-06-09 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: The Synthizer Thread As far as I understand it, its supposed to be cross-platform capable, so yeah. URL: https://forum.audiogames.net/post/539039/#p539039 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/ma

Re: The Synthizer Thread

2020-06-22 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: The Synthizer Thread Buffers are in as far as I can see, so creating sounds from in-memory should be possible, and as soon as that is a thing, you can theoretically add support for OGG and/or FLAC yourself, although I guess camlorn will at least add support for OGG "natively". URL: htt

Re: Accessible_output2 and Pyglet Title Issue

2020-08-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Accessible_output2 and Pyglet Title Issue Thats probably because at the same time the window opens, or even a little bit before that moment, the console window for the Python script shows up, which is a behaviour you don't want to occur as soon as you deliver your product. You can howev

Re: git vs github for desktop

2020-08-12 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: git vs github for desktop i'm using Git cmd + TortoiseGit most of the time, with the option to use Git in VSCode / IntelliJ if needed. Last time I checked GitHub for desktop, which is like a few years ago, it wasn't accessible at all. That might have changed though.Best Regards.Hijacker

Re: git vs github for desktop

2020-08-12 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: git vs github for desktop Probably from GitHub desktop, but not from Git alone.You can always set up a Git action which creates a new release when a new tag gets created, or even get CI in place to do so for you. URL: https://forum.audiogames.net/post/560972/#p560972 -- Audiogames

Re: Possibility of making a Lucia DLL?

2020-09-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Possibility of making a Lucia DLL? Cython can do this, although you'd have to ship a Python interpreter alongside your extension as well. I however don't see the advantage of such things yet, Lucia still is a rather small project, all its functionalities can still be ported rather easil

Re: GUI Alternatives to WxPython

2020-06-29 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: GUI Alternatives to WxPython My experiences so far:I spend hours and hours with a sighted friend of mine getting wxPython to work, placing things, struggling with sizers and grids, fixing accessibility issues, but getting a pretty accessible interface in the end which looks nice to both

Re: GUI Alternatives to WxPython

2020-06-29 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: GUI Alternatives to WxPython Na, its not an application to help with PyQt5, its an application she wanted to use which doesn't have anything to do with development at all. All the functionalities required to develope "positionless" Qt5 tools are built into PyQt5, you just create the con

Re: dealing with dlc without paypal?

2020-07-06 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: dealing with dlc without paypal? Well, if i'm not wrong here, you aren't. You'd be selling something in that case, and being paid for that without being 18 years old is not allowed, it doesn't matter if that happens via PayPal or not. One way to do this is by asking your parents to be o

Re: VSCode Tasks For Python

2020-07-17 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: VSCode Tasks For Python I'm just getting started with VS Code, but I already encountered a "problem" to which I didn't yet found a solution.I'm working on an PyQt5 application which is organized by FBS, which means that you don't run the application by invoking the python interpreter yo

Re: Popularity of Go

2019-11-06 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Popularity of Go Yeah well, to be honest, this developer community here is rather small, and as far as I know there are only two or three d3evelopers here right now who are experimenting with go, but if those developers are active in the forums and spread the word about it, looks like i

Re: My problem in C

2019-11-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: My problem in C Hi,you forgot to reset almost all variables on every for loop cycle. I'd recommend to always replay your algorithm on paper to see if it works or doesn't, and always just stick to the code you wrote, not how you'd like it to actually work. You'll notice, that temp will b

Re: My problem in C

2019-11-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: My problem in C Hi,you forgot to reset almost all variables on every for loop cycle. I'd recommend to always replay your algorithm on paper to see if it works or doesn't, and always just stick to the code you wrote, not how you'd like it to actually work. You'll notice, that temp will b

Re: newbie python question

2019-11-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: newbie python question Easy solution. Just use one and the same single-threaded loop for your checks/message output and don't use an actual sleep command. You just have two variables which contain the time you want to check next:import time def main(): next_check_flaps = time.time()

Re: Lucia - OpenSource AudioGame engine written in Python

2019-11-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Lucia - OpenSource AudioGame engine written in Python Regarding timers. Import it, create an object and restart it:from lucia.utils import timer def main(): when = timer.Timer() when.restart() # do whatever you need to do with it elapsed = when.elapsed when.pause() when.r

Re: My problem in C

2019-11-20 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: My problem in C Ethin is right, even though you're blind, indentation should become normal for you. Some programming languages like Python require you to indent properly, because they don't have blocks and the indentation decides upon the code execution for you. Its simply a matter of t

Re: Visual studio question

2019-11-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Visual studio question I have to admit that I mainly used VS2015/2017 just to create and maintain the project, but I developed in a different editor and compiled and run the project just from the CLI (msbuild), because VS is a bit laggy here. Only exception was when developing a Xamarin

Re: My problem in C

2019-11-21 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: My problem in C Notepad is fine, In fact, I'm using it myself all the time, or at least a close alternative, Notepad2 right now. Some IDEs may be accessible and helpful, but I didn't find one I liked to use yet. The accessible ones like Eclipse tend to be rather slow compared to simple

Re: classes in classes in bgt, can i do that?

2019-09-03 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: classes in classes in bgt, can i do that? Well, that is surely possible, you just don't have to put the interaction class into the parent class:class interaction { ... } class bot { interaction@[] interactions; }That works fine. Your relation works just fine however, you just need

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? First, the maximum memory usage of Python is just the same as for any other process running under operating systems, means 3,2 GB when x86 and alot more when x64. I however don't believe that your dictionary will grow that large. Why don't you store NPCs and what

Re: classes in classes in bgt, can i do that?

2019-09-04 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: classes in classes in bgt, can i do that? Well, judging from his answer (#5), it very well seems like it did answer his question . But he can specify his question more clearly for sure if they're still things open.Best Regards.Hijacker URL: https://forum.audiogames.net/post/459632/#p45

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? Hi,yeah, that is a way, but overloading the map operator would be more efficient. By doing that and accepting a string as comparable, checking if the string equals the map name, you can use the built-in methods of python lists to find the map you're looking for,

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? Thats exactly what I was recommending, I just wanted him to search a bit for himself . I however would consider backing that operator up with some type checking, or at least exception checking (just following the etafftp pattern), cause otherwise the whole thing

Re: Memory usage in Python?

2019-09-04 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Memory usage in Python? Thats exactly what I was recommending, I just wanted him to search a bit for himself . I however would consider backing that operator up with some type checking, or at least exception checking (just following the etafftp pattern), cause otherwise the whole thing

Re: Empirically setting a screen reader delay

2019-09-07 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Empirically setting a screen reader delay As soon as the support in the NVDA codebase is there, adding the corresponding function to the NVDA dlls should be a matter of 10 minutes and submitting a pull request, which will be very likely to be accepted.Best Regards.Hijacker URL: https:/

Re: Empirically setting a screen reader delay

2019-09-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Empirically setting a screen reader delay Same here, using sndvol for years now and it works perfectly fine.Best Regards.Hijacker URL: https://forum.audiogames.net/post/460431/#p460431 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabah

Re: Empirically setting a screen reader delay

2019-09-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Empirically setting a screen reader delay It just shows the volume output, no matter if its actually outputting something or not.Regarding Windows XP and stuff, you shouldn't bother caring about that too much. XP is long gone now and we as developers shouldn't hang around with outdated

Re: Empirically setting a screen reader delay

2019-09-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Empirically setting a screen reader delay Although done speaking doesn't inform you when the synth started speaking again. But i'm pretty sure that those events can be handled and requested from within NVDA and thus be added to its api as well.Best Regards.Hijacker URL: https://forum.a

Re: problems with tolk

2019-09-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: problems with tolk You're missing braces there, the line should be:Tolk.load()notTolk.loadBest Regards.Hijacker URL: https://forum.audiogames.net/post/460506/#p460506 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.co

Re: Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. It isn't undocumented, its just not in the BGT documentation, because its one of the hidden features of AngelScript. Just use it as follows:dialogue(array = {"Hey, are you there?", "Yeah... what is it?", "I just wanted to check

Re: Declaring the contents of an array in a function call, bgt.

2019-09-09 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. Nope, that shouldn't be a problem either.Best Regards.Hijacker URL: https://forum.audiogames.net/post/460649/#p460649 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-g

Re: Declaring the contents of an array in a function call, bgt.

2019-09-10 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. Nope, it cannot be used interchangeably, but this code I posted earlier is the only way to pass arrays of data over to a function without declaring a variable to do so first. You cannot declare a variable this way, you'd need t

Re: Is Appveyor usable?

2019-09-11 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Is Appveyor usable? Appveyor is usable pretty fine. I don't remember the interface though right now. I am pretty sure that there must be some way though, i'm running more than 3 projects on it right now, maybe 4 or 5, and it works fine.Best Regards.Hijacker URL: https://forum.audiogame

Re: python traceback displaying error help please!

2019-09-14 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: python traceback displaying error help please! More easier way... just fix your redirection via the correct piping commands. On Windows, just do:python my_script.py > errors.txt 2>&1On Linux/Mac/whatever, dopython my_script.py >& errors.txtWill always print the traceback to errors.txtBe

Re: My problem in C

2019-09-18 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: My problem in C Its just the same as before. As long as you're using a signed datatype like int, long or whatever instead of unsigned int, unsigned long (uint, ulong) etc. the well-known less than or greater than operations work fine.int a = -256; int b = a - 3; if(b < a) printf("%d i

Re: My problem in C

2019-09-19 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: My problem in C Ternary is absolutely fine in certain situations. You shouldn't use it in e.g. nested if situations, it will just mess things up, but in the above situation, where a single function should just return values depending on the input and there are just two outcomes possible

Re: Using items on each other

2019-09-26 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Using items on each other What I usually do is add an abstract method to my item base class which is i.e. called is_usable and receives someobject. This method overriden in the different item subclasses then decide upon this item can be used onto something else, like another item, an en

Re: timers in javascript?

2019-04-11 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: timers in _javascript_? You know that timers are just a wrapper class which stores the time when the timer starts (e.g. when calling restart()) and elapsed just returns the current time minus the start time of the timer. Pausing works by storing the already elapsed time and adding it to

Re: Has anyone heart of Chillkat?

2019-05-06 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Has anyone heart of Chillkat? I've already used them about 10 years ago. They once were pretty well advanced due to open source not being such a well-known and popular thing, but most of their stuff should be accomplishable by open source or at least cheaper third-party packages too.Bes

Re: Problem with NVDA addon porting

2019-12-23 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Problem with NVDA addon porting It might be a problem of porting from Python 2 to Python 3, since NVDA 2019.3 uses Python 3 now. Some modules were renamed in Python 3, and NVDA removed some old modules/classes/functions or at least renamed them internally. Without more information, we'l

Re: Problem with NVDA addon porting

2019-12-23 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Problem with NVDA addon porting Yep, thats one of the things NVDA changed recently. I'd recommend to either let the original author port the add-on or hand it over to the NVDA community to do it for you, since you obviously don't know how to handle NVDA add-ons or Python whatsoever. The

Re: Where is the 5th argument?

2019-12-31 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Where is the 5th argument? Either you do: User.__init__(self, name, surname, number)or you do: super().__init__(name, surname, number)mixing both variants together doesn't work. URL: https://forum.audiogames.net/post/489778/#p489778 -- Audiogames-reflector mailing list Audiogame

Re: Where is the 5th argument?

2020-01-01 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Where is the 5th argument? It is within the dev room already. URL: https://forum.audiogames.net/post/489875/#p489875 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: Some JSON stuff

2020-01-07 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Some JSON stuff So you want to actually create JSON. Google JSON and C# and you'll find the answer really quick, so i'll let this up to you. URL: https://forum.audiogames.net/post/491158/#p491158 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com ht

Re: I'm just asking

2020-01-07 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: I'm just asking Well, most of the program clones flying around here were not actually decompiled (which is possible for BGT however), but the original author once send the code to someone untrustworthy and they shared the code with literally everyone else. Thats how the clones began to

Re: mud programming?

2020-01-08 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: mud programming? There are several mud engines out there that do have pretty good documentation. LDMud is one of those:check it out here URL: https://forum.audiogames.net/post/491383/#p491383 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https:

Re: Python from the brain, to the keyboard?

2019-06-12 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: Python from the brain, to the keyboard? The window is usually created by pygame itself too and the mixer module works just fine for simply playing some sounds. But yes, you're right, the mixer doesn't support 3D audio. If you really want to have 3D audio, you should prefer OpenAL (or mo

Re: trimming in multiple line variables in bgt

2019-06-14 Thread AudioGames . net ForumDevelopers room : Hijacker via Audiogames-reflector
Re: trimming in multiple line variables in bgt OK, so trimming and removing a word from a string are two different things. What do you really want to accomplish? Trimming seems to be rather inefficient here, because you'd need to re-join the entire string again.How about just doingtext = st

  1   2   3   4   >