Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-17 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I am just going to point out that you're beginning to give the impression that you're not trying very hard to handle things on your own.  I would spend some time learning to Google.  I would also spend some time reading the official Python reference documentation, for example the descriptions of all the built-in types or the list of the built-in functions.  There are literally more resources on Python than I could read in the next 10 years if all I did was read Python resources every day.  Tons of books that start from the perspective of someone who has never programmed in their life.  Tons of things you can find with a quick Google on good code design.  It's understandable if you have specific questions for a game or something, but going back and forth here on things like basic list operations and how the import statement works is making it somewhat evident that you're trying to find specific answers to specific questions that you're facing right now rather than developing an overall understanding.  Perhaps, in future, come to us with a Google resource that you found and explain why it confused you or something to that effect.

URL: https://forum.audiogames.net/post/553282/#p553282




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-17 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

aha, I found pritty much the same results,  but wasn't paying atenchin to the remove methid

URL: https://forum.audiogames.net/post/553279/#p553279




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-17 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

These are the first couple results I found in under 10 seconds by typing "removing items from a list python"1234I'm serious. It literally took longer for me to type this out rather than google

URL: https://forum.audiogames.net/post/553276/#p553276




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-17 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@161 hmm, so I got the del methid but that one also neads an integer when I try to use it like: del object[i], is there an other way to use it

URL: https://forum.audiogames.net/post/553270/#p553270




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-17 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I am sorry to say this, but googling removing items from a list gave me an answer. I encourage you to do likewise.

URL: https://forum.audiogames.net/post/553267/#p553267




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-17 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

hi all, is there anyway I can get an  int of the current index of a for loop? because lets say I have a loop that should delete the current index if the current index object have les than 0 health, doing object.pop(i) doesn't work because i is not an integer, and trying to change it to an intiger by doing object.pop(int(i)), doesn't also work

URL: https://forum.audiogames.net/post/553265/#p553265




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Python will complain.  You need to learn not to do that.  It's very bad practice.  Most other languages will complain too, and I'm surprised it works in BGT.There is an idea in programming called the single responsibility principle.  It means that each thing in your program should be responsible for one sort of thing.  In general, issues around circular dependencies, the name for the sort of problem you're describing, come up from not following it.  Put another way it's a symptom, not the cause.  You need to get good at learning how to use modules.  To give you an example, let's say I'm writing BK3.  I might have the following modules:sound: Knows how to play sound files, either panned or as background music.  Offers this through a SoundEngine class.Map: Knows how to store tiles in some sort of big array. Knows how to read this array from disk.  Knows how to write this array to disk.  Offers a Map class to do all of this.Camera: Offers a class which takes a sound.SoundEngine and a map.Map.  Has some methods that get called when keys are pressed.  Knows how to play the camera sounds.Physics: Takes a Map. Offers a PhysicsEngine class and a PhysicsBase class. You inherit from PhysicsBase to give an object position and velocity, and you register them with PhysicsEngine.  PhysicsEngine will call functions you provide or give you lists of events, but it doesn't know how to play sounds itself.Level: offers a Level class.  It knows how to read a level definition from disk, load the map, load the objects in the level.  it's also a somewhat reasonable place to put code that connects events from the physics engine to sound.game_loop: Offers a function run_game_loop, which knows how to run the game loop, start up Level, and route keyboard events to appropriate functions on various things.main: Checks for updates, checks for authorization, etc. Figures out where the levels are on disk.  Generally does setup.  Then starts game_loop.Obviously you're not at the point of being able to think about projects this big and this seems like a lot.  But what I just got is a pretty long list.  For example I can open a Python shell and test physics or maps by importing them.  When I'm working on sound, physics, or map I don't have to think about the rest of the game.  When I'm working on the higher level pieces like camera or level, I only have to think about the public API of physics, sound, and map, and I don't have to remember how they work internally.  If I want I can bring in unit testing stuff to test some of it in an automated fashion.  When I get bugs, usually I can narrow them down to a module rather than thinking about the whole program all at once.  Many of those example modules don't even import each other in the first place.And yes, it also eliminates the circular dependency problem.  Which is important.  But compared to making me able to even write really big projects in the first place, solving that problem is kind of beside the point.  Unfortunately BGT doesn't even have a proper module system, and doesn't spend any time talking about arranging your code to be maintainable, so here we are.Your brain is like a computer in the sense that you have finite amounts of memory to shove details about your code in.  People aren't good at thinking about programming.  Code organization is how you make up for those two fundamental problems of biology.  It doesn't matter how good you are, if you don't organize code well you'll hit a ceiling you can't get past, and it will be hundreds or thousands of times smaller than where you could be if you did learn to organize code.  You can disregard this stuff only for really small projects.  Many people do, and then wonder why they're stuck.  Otherwise, knowing how to split things up so that you only have to think about a little bit at a time is the difference between a finished large project and literally never getting to the point where it runs.

URL: https://forum.audiogames.net/post/552991/#p552991




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

thank you a lot, though can you give me an advice of what files i'll mainly nead, like one for vairiables, one for functions etc, it will be very helpful, I am sorry if I ask a lot

URL: https://forum.audiogames.net/post/552987/#p552987




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

It will, it’s called circular import.  Like I said, don’t do this. Separate your code into another module.

URL: https://forum.audiogames.net/post/552986/#p552986




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so back in to the question, if I want to call something from the main script i'll have to import the main script, which, if python doesn't complain, will make an endless loop

URL: https://forum.audiogames.net/post/552979/#p552979




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

It's not an include file.  The only other languages that do things how BGT does here are C and C++.But you're overcomplicating it.  If you have a myfile.py next to your main.py then you can import myfile.  And then myfile.anything references whatever anything is in myfile.  Maybe anything is a variable, or a function, or a class.  Up to you.  But that's literally all there is to it.  There's a couple other import syntaxes for making your code shorter, or for dealing with two modules with the same name.  But that's it.  You're not finding info because there is no info to find.  Your confusion comes from knowing BGT and having to unlearn BGT things.  Find any Python tutorial and it will explain modules; your job is going to be not to go "how is this like BGT?" when you read that chapter.Unless you put code in a module that does something (as opposed to just declaring functions) the order you import them doesn't matter.  Python will run it once at the first import and then after that everything gets the same copy.  Amerikranian is warning you not to run code in modules because we don't know the order it'll run in, so if you have map.py and map.py needs sound.py to be ready first, that might or might not actually happen.  There's also a bunch of Python tools which assume that modules don't run code, some of which you may want to use in the near future.  An example of this is pylint, which gives you warnings and errors, and sphinx, which generates documentation.  Because Python only runs modules once, you import modules from anywhere that's going to need to use them, and the order you import them doesn't matter.The answer to making sure sound.py is ready for map.py is to do:import sound
import map

def main():
sound.initialize()
map.initialize()And put the setup code in an initialize function in both.Modules are namespaced.  What this means is that you can have two modules with a function of the same name, and you always have to import them and refer to them by name.  It's always myfile.foo unless you explicitly tell Python otherwise.  I've listed the syntaxes somewhere else in this thread, but using them is bad practice and will only confuse you, so just stick to import myfile.

URL: https://forum.audiogames.net/post/552956/#p552956




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

aaa, i'm so confused, so the module is actually just a storage of variables, classes, and functions that can be accessed by openning the storage and take the thing we nead, its not an actuall part of the program like includes in bgt

URL: https://forum.audiogames.net/post/552955/#p552955




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Imports are explicit. If you import module A in module B, you cannot use module B in module A unless you import it.  As for your previous question, that is what I’m saying to you. Main scripts are designed to be, well, main scripts. They are the ones that import assets and start the show, not the ones that contain the entire logic for the program. What you are trying to do is a kin to creating your game within your main function in the BGT script.  It’s not going to work well.  That being said, you should already know how to do this, at least theoretically. The from statement takes in a variable from module and dumps it into your current name space. For example: from math import pi Means that you can just now type pi and access it. I will tell you this, though. If your module  has a call to some function at the bottom of the file, there is a chance, depending on how you import it, that the said function will be called before you are ready to do so.  This is why you should not import things from your main script, but rather  in your main script. You need to attempt to do your best to write the assets outside of the main script, and then use all of them together.  It is going to be hard. Python is more modular than BGT. It specifically prevents you in most cases from just dumping everything into one module. That being said, it is a good skill to have. There’s an argument to be made hear that Python code is going to be generally cleaner than the one written in BGT, but it is extremely subjective. Cleanliness means different things to different people. One solution that I can suggest is splitting your code into different files. Move all your variables to a different module, and then use it in your scripts. That should get you started, even though that is not really Best practice.

URL: https://forum.audiogames.net/post/552953/#p552953




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Imports are explicit. If you import module A in module B, you cannot use module B in module A unless you import it.  As for your previous question, that is what I’m saying to you. Main scripts are designed to be, well, main scripts. They are the ones that import assets and start the show, not the ones that contain the entire logic for the program. What you are trying to do is a kin to creating your game within your main function in the BGT script.  It’s not going to work well.  That being said, you should already know how to do this, at least theoretically. The from statement takes in a variable from module and dumps it into your current name space. For example: from math import pi Means that you can just now type pi and access it. I will tell you this, though. If your module  has a call to some function at the bottom of the file, there is a chance, depending on how you import it, that the said function will be called before you are ready to do so.  This is why you should not import things from your main script, but rather  in your main script. You need to attempt to do your best to write the assets outside of the main script, and then use all of them together.  It is going to be hard. Python is more modular than BGT. It specifically prevents you in most cases from just dumping everything into one module.

URL: https://forum.audiogames.net/post/552953/#p552953




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I have a lot of questions about modules so if you can point me to a place where I can learn more about them it'll be cool, I already googled it but didint found good results, but 1 more question though, so if I want to call a function from an other module to this module, both are imported in the main script, can I do that normily or do I nead to import the module with the other module that I want to run from

URL: https://forum.audiogames.net/post/552946/#p552946




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I mostly nead to know that to be able to access variables from the main script

URL: https://forum.audiogames.net/post/552940/#p552940




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@149 nope, my main script contains, the main function, moste of the variables, the game function which handels moste of the game stuf like walking etc, and some other functions related to the game

URL: https://forum.audiogames.net/post/552939/#p552939




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

That is generally not advisable since your main script is what starts your program.

URL: https://forum.audiogames.net/post/552934/#p552934




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-16 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

hi all, so to call a function from a module.  I tipe module.functionname, but what if I want a module to call something from my main script

URL: https://forum.audiogames.net/post/552930/#p552930




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-04 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I know this is a tad bit late to the talk, but thought I'd throw it out there anyways.Py2EXE actually makes quite small exe files. But if you use that, you want to make 200 percent sure hat your code is cythonized, or someone will be able to get your python bytecode in about 5 minutes as what Py2EXE does is put pyc files (if un-cythonized) into a zip inside the exe file. However if you cythonize, it's pyd files :-).

URL: https://forum.audiogames.net/post/548778/#p548778




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-04 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@145, fair enough, though zip() does make things easier once you do get comfortable with iterators. (FP in general is really nice.)

URL: https://forum.audiogames.net/post/548773/#p548773




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@144Zip works with any number of iterators as-is, but they're asking about the typical O(n^2) collision algorithm everyone starts with, and aren't fully comfortable with the idea of an iterator yet in the first place, so this probably isn't helpful.

URL: https://forum.audiogames.net/post/548701/#p548701




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-04 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@142 you could also use zip(). However, note that if your combining more than 2 iterators you can get really, really complex zip() calls (like, 2-3 levels of nesting at least). I wonder if there's something like a multizip()?

URL: https://forum.audiogames.net/post/548695/#p548695




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@142Probably not at your level of programming experience, but if objects are only 1 tile you can put them all in an array, then do myarray.sort(key = lambda o: o.position).  Then for each index in the array the next object to the left is myarray[i-1] and the next to the right is myarray[i+1].  Obviously make sure to check that the indices don't go negative or past the end.Then you write some relatively tricky loops over it to find out what might be close to something else.  But what exactly you need here depends on what you want to do, and optimizing collision in general becomes a whole thread itself.The right answer is to go find a library for spatial hashes and use it, though.  That or any of various kinds of tree.In general I advise you to avoid optimizing collision until you're not learning basics, unless you're already at a point where this is a problem for you.

URL: https://forum.audiogames.net/post/548691/#p548691




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-04 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so is there anyway to avoid nested for loops? I know they can lag so much, here is a testso if I want to se if a sertin object has reached the sekond object location I do something like that:for i in object: for i2 in object:  if i.location>i2.location:   i.location-=1  elif i.location<=i2.location:   i.location+=1if we have a lot of objects in that array it could lag so much, so any way to avoid this with something les laggy?

URL: https://forum.audiogames.net/post/548555/#p548555




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@139that's kind of a bug on Lucia's side then.  My guess is they don't check before they decide to use it.  Again, I'd open an issue against them, it should throw something that's more informative.

URL: https://forum.audiogames.net/post/548466/#p548466




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

You can tell pyinstaller to include binary items in your executable, but then you have to code your executable to know that.

URL: https://forum.audiogames.net/post/548453/#p548453




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

You can tell pyinstaller to include binary items in your executable, but then you have to code your executable to know that. (Side note: I don't trust the cryptography in pyinstaller, especially given that it didn't work on the rare times I tried it.)

URL: https://forum.audiogames.net/post/548453/#p548453




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

oh my godi'm sorry yall for annoying you, there was a sound missing, didint thot it can do all of that

URL: https://forum.audiogames.net/post/548427/#p548427




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Make sure that all of the required assets, such as sounds, are in the same directory as your executable. They don’t get copied automatically.

URL: https://forum.audiogames.net/post/548420/#p548420




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@35 I have em all

URL: https://forum.audiogames.net/post/548386/#p548386




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@134I'd open an issue against the Lucia github repository if you can't figure it out.

URL: https://forum.audiogames.net/post/548385/#p548385




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

You need the accessible_output_2 and sound_lib folders in your directory. The ones with the DLL's.

URL: https://forum.audiogames.net/post/548384/#p548384




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

here is the error:its only in the compiled versionTraceback (most recent call last):  File "treecrasher.py", line 79, in   File "treecrasher.py", line 62, in main  File "site-packages\lucia\audio\bass\soundpool.py", line 593, in update_listener_2d  File "site-packages\lucia\audio\bass\soundpool.py", line 603, in update_listener_3d  File "site-packages\lucia\audio\bass\soundpool.py", line 51, in updateAttributeError: 'NoneType' object has no attribute 'position'

URL: https://forum.audiogames.net/post/548380/#p548380




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

yeah, that happens with pyinstaller and, quite francly, with every python packaging tool out there. You might wander why this happens? well, the basic thing is that, when tools like pyinstaller "compile", so to say, your code, it needs to package the whole python interpreter with all its hugeness, along with any modules it needs, plus any dll's. So, I'd advice you, from now on, either you stop trying to package it because you have seen for your self how it goes, or stop using the --onefile flag. If you stop trying to distribute binaries, learn how to use git and github, make your things opensource to the public or use a private git repository/server and start from there. If rather you'd quit using the --onefile, it'll generate a directory instead of a file, which can be, believe me, sometimes a timesaver.Personally, I don't use python that much nowadays, exactly because of that. Instead, when I want to make something compilable/packageable with eas, I always choose c#. As an added bonus, this way, you avoid what's known as dll hell, as long as you use .net assemblies. plus your executable becomes smaller, because the vm, unlike the python interpreter, comes included with all modern versions of windows.But, python is a very nice language indeed, so what I'd recommend is trying to not use the --onefile flag, or if that doesn't work, try explicitly specifying --onedir, this will help you in the long run.now, to your error, can you give us more info about it? DK, a traceback, log, whatever? maybe try building the thing without the --windowed flag and runn it in a terminal?

URL: https://forum.audiogames.net/post/548317/#p548317




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Okay? So fix the error? Pyinstaller does make big exe files. I don't know exactly what you want us to tell you.

URL: https://forum.audiogames.net/post/548314/#p548314




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-07-03 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so I installed pyinstaller, did everything neads to be done to compile a script but...it output'd a 31 mb file while the hole script is 2 kb, and not just that, the 31 mb file doesn't eavin run, it gives a faitil error

URL: https://forum.audiogames.net/post/548298/#p548298




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-26 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

You'll probably want to read a tutorial on Python modules,  but if you do this:import myfileThen you do this:myfile.my_function()If you do this:import my_function from myfileTHen:my_function()works fine.  You should almost never use this next one, because if you do then it's impossible for anyone to tell where functions came from, but you can also do:from myfile import *In which case all the functions and variables in myfile.py are usable without qualification (i.e. it's my_function(), not myfile.my_function()).Let's say that you really don't like how long a module name is.  It's 3 subdirectories deep and you just don't want to do myfolder1.myfolder2.myfile.my_function().  You can do:import myfolder1.myfolder2.myfile as mfThen:mf.my_function()Works.There's some other syntax for importing that's important, and if you want to put your files in folders instead of all right next to each other you'll need to know about __init__.py, but this should get you going.Edit: it's from myfile import *, because it was early and I mixed it up with a _javascript_ syntax.

URL: https://forum.audiogames.net/post/545811/#p545811




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-26 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

You'll probably want to read a tutorial on Python modules,  but if you do this:import myfileThen you do this:myfile.my_function()If you do this:import my_function from myfileTHen:my_function()works fine.  You should almost never use this next one, because if you do then it's impossible for anyone to tell where functions came from, but you can also do:import * from myfileIn which case all the functions and variables in myfile.py are usable without qualification (i.e. it's my_function(), not myfile.my_function()).Let's say that you really don't like how long a module name is.  It's 3 subdirectories deep and you just don't want to do myfolder1.myfolder2.myfile.my_function().  You can do:import myfolder1.myfolder2.myfile as mfThen:mf.my_function()Works.There's some other syntax for importing that's important, and if you want to put your files in folders instead of all right next to each other you'll need to know about __init__.py, but this should get you going.

URL: https://forum.audiogames.net/post/545811/#p545811




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-26 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so I got a questionfirst sorry for reviving this but it dont worth creating a new topic just for itthe question is:if I have a seprit file that has some functionsand I import itto use the functions inside do I nead to just normily call them likemyfunction()or do I nead to call the file name before it like thatfilename.myfunction()

URL: https://forum.audiogames.net/post/545758/#p545758




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I believe that Lucia does allow you to use open al, theoretically. However, it’s quite buggy and I never got it to work right.  I recommend reading through this post and beyond to get some useful links to a wrapper which Magurp has built.

URL: https://forum.audiogames.net/post/539985/#p539985




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I believe that Lucia does allow you to use open al, theoretically. However, it’s quite buggy and I never got it to work right.  I recommend reading through this post and beyond to get some useful links to a rapper which Magurp has built.

URL: https://forum.audiogames.net/post/539985/#p539985




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-11 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so, a question is cominghow to use opan al in lucia, I know its pocible since there are files with lucia about open al, and from I understand open al is a 3d sound cystom, can I use it with sound pool or how

URL: https://forum.audiogames.net/post/539982/#p539982




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-11 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@124, amerikranian has  very useful guides in the artikels room, page 2, read the 3 parts, and then check out his lucia exambles in his signicher, it really helps

URL: https://forum.audiogames.net/post/539967/#p539967




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

My signature or the guides I wrote in the articles room could be a good place to start if you’re looking to create games.

URL: https://forum.audiogames.net/post/539853/#p539853




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : matt1211 via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Hi. I have some python questions as well, and since this is already a pretty big topic about learning python, figured I'd ask here rather than creating a new one.I was wondering where I could look to learn more about compiling python projects, and including libraries in projects?I'm at the point where I can write simple programs in python and run them in the console, but I'm really not sure how to progress from here. I think the most complicated thing I've done is a shitty battleship kinda game, typing in coordinates to shoot and such. I would like to learn more about hooking in keyboard, sound and such if possible though, as well as compilation like I said. Docs seem to be kinda scattered, so mainly just not sure wheer to look.Thanks in advance for any help! 

URL: https://forum.audiogames.net/post/539844/#p539844




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

while loops are faster than for loops, why are peaple useing for loops thenso the first code gives me timer is elapsed 1.999755859375

URL: https://forum.audiogames.net/post/539551/#p539551




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

oh, thanks

URL: https://forum.audiogames.net/post/539483/#p539483




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

That is correct. The only time you really use the integer approach is when working with multiple lists.

URL: https://forum.audiogames.net/post/539478/#p539478




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

oh? I se,  so if we dofor i in trees:so, i will be a tree?if not how we could  treet it like a tree theni'm sorry but that's new to me, sorry for spamming questions

URL: https://forum.audiogames.net/post/539466/#p539466




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Right, but it also gives clear examples of looping through a list directly rather than changing the index to an integer.

URL: https://forum.audiogames.net/post/539463/#p539463




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

cmon 118, I did  read it again and that how I knoo I should of used range(len(bla))

URL: https://forum.audiogames.net/post/539417/#p539417




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-10 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

cmon 118, I read it again and that how I knoo I should of used range(len(bla))

URL: https://forum.audiogames.net/post/539417/#p539417




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Please go read post 99. Please. I wrote it for a reason.

URL: https://forum.audiogames.net/post/539305/#p539305




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

if the range methid be useless i'll be scrood then I dont really know of an other way

URL: https://forum.audiogames.net/post/539286/#p539286




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

That's fine, but you could have just used i directly instead of making i be an integer and indexing into map yourself.  Until you understand this, you'll keep having these issues, and you'll have an extremely hard time with dicts and sets, where whre range(len(x)) won't work anymore.

URL: https://forum.audiogames.net/post/539285/#p539285




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

thanks! I got it to work by doing:for i in range(len(map))

URL: https://forum.audiogames.net/post/539283/#p539283




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Well, to be honest, if you have a thing that's made of lists, dicts, ints, floats, and strings only, you can save yourself a lot of trouble and:import json
print(json.dumps(thing))And to read/write JSON to a file I believe it's:with open("file.txt", "w") as f:
json.dump(obj, f)And:with open("file.txt", "r") as f:
x = json.load(f)I might be slightly off on the file ones though.  But it will just handle all of this parsing for you.  If you need something human editable that's a little bit harder, you might want to write your own parser, but the JSON dump and dumps functions take 4 or 5 arguments that make it pretty and there's also pyyaml and toml which have almost the same API but write things in a format that's even more friendly to humans.But to answer your question, you can do lists of strings, but the indexes aren't strings, the values are strings.  I don't know what BGT has, but as far as I know the AngelScript arrays don't have string indices either unless AngelScript did the thing where you combine arrays and dicts, which I don't think it does.  I'm pretty sure you're misunderstanding how arrays work somehow.But for your code itself, for i in map gives you the elements in the list, so map[i] isn't necessary, just use i. If you want i to be the indices you need for i in range(len(map)), but that's the long way around when for i in map is good enough.  Python for loops are not BGT for loops, you're getting the values of the thing being iterated over.  I'm not going to explain further unless there's something more to be said that's not in post 99.

URL: https://forum.audiogames.net/post/539281/#p539281




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

ok here is the code
I tryed to make a simple thing to make a map cystom, a very simple one, and I think I got it?
map=[]
def platform(minx,maxx,miny,maxy,minz,maxz,tilename):
map.append(str(minx)+":"+str(maxx)+":"+str(miny)+":"+str(maxy)+":"+str(minz)+":"+str(maxz)+":"+str(tilename))
def gt(x,y,z):
mt=""
for i in map:
sd=map[i].split(":")
if len(sd)== 7:
x1=int(sd[0])
x2=int(sd[1])
y1=int(sd[2])
y2=int(sd[3])
z1=int(sd[4])
z2=int(sd[5])
tile=str(sd[6])
if x1<=x and x2>=x and y1<=y and y2>=y and z1<=z and z2>=z:
mt=tile
return mt
platform(0,10,0,10,0,0,"sand")
print(gt(1,1,0))
the error hapins in this line
sd=map[i].split(":")

URL: https://forum.audiogames.net/post/539265/#p539265




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

ok here is the code
I tryed to make a simple thing to make a map cystom, a very simple one, and I think I got it?
map=[]
def platform(minx,maxx,miny,maxy,minz,maxz,tilename):
map.append(str(minx)+":"+str(maxx)+":"+str(miny)+":"+str(maxy)+":"+str(minz)+":"+str(maxz)+":"+str(tilename))
def gt(x,y,z):
mt=""
for i in map:
sd=map[i].split(":")
if len(sd)== 7:
x1=int(sd[0])
x2=int(sd[1])
y1=int(sd[2])
y2=int(sd[3])
z1=int(sd[4])
z2=int(sd[5])
tile=str(sd[6])
if x1<=x and x2>=x and y1<=y and y2>=y and z1<=z and z2>=z:
mt=tile
return mt
platform(0,10,0,10,0,0,"sand")
print(gt(1,1,1))
the error hapins in this line
sd=map[i].split(":")

URL: https://forum.audiogames.net/post/539265/#p539265




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

oh? I didint thot arrays are normily cant be strings..., in bgt we can just do string[]

URL: https://forum.audiogames.net/post/539263/#p539263




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Lists are arrays. If you want to do what you're calling string lists, use a dict:x = dict()
x["foo"] = 5Or:x = {
"foo": 5,
"bar": 12,
"the_player": player,
}Iterating (for i in my_dict) gives the keys. Usually people will do:for k, v in my_dict.items():
# stuffSO that they can get both at once (k is the key, v is the value, I wouldn't get into how .items() works, just use it).

URL: https://forum.audiogames.net/post/539261/#p539261




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-09 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

arg! TypeError: list indices must be integers or slices, not str, that's no good! so I cant make string lists?

URL: https://forum.audiogames.net/post/539259/#p539259




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-08 Thread AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

i use pyinstaller. but it is very symple. you can encript your bite code with a key then it is not easy to retrieve your code.

URL: https://forum.audiogames.net/post/538930/#p538930




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

If you’re looking for code protection, Cython  is your best bet.

URL: https://forum.audiogames.net/post/538706/#p538706




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-08 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so is nuitka good with compiling python scripts? I mean is decompiling with it is as easy as pyinstaller, if not it will be great, I guess?

URL: https://forum.audiogames.net/post/538690/#p538690




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-08 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so is nuitka good in compiling python scripts? I mean is decompiling with it is as easy as pyinstaller? if not it will be great, I guess?

URL: https://forum.audiogames.net/post/538690/#p538690




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-07 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

not like that, I ment something like the followinglets asoom I have a function that do what neads to be done to make a new platform, it takes 5 poramitors, minx, maxxx, miny, maxy, tilenameand I do the followingplatform(0,10,10,20,"dert")and then while the player is inside minx,maxx,miny,maxy and they walk they will hear the sound of tilename+".ogg"

URL: https://forum.audiogames.net/post/538521/#p538521




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-07 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

How you handle the data can have an effect on the kind of response or effect your going for. In a game like Zelda, you can walk fluidly across many tiles in a non-even way, whereas in a roguelike you snap from one tile to the next and a very set way. The difference really is more in how you handle moving the player, not necessarily on how you handle the map data. But anyway, how tile based maps are usually handled is with a simple 2D array, or a list of lists, creating an area with a width and height:#a 5 by 5 map
area = [[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0]]In the above code we have a 5 by 5 map area. Each element in those lists, in this case a bunch of zeros, symbolically represents objects. 0 in this case means open space, but you could make it so the number 1 means a wall, 2 a torch, 3 a goblin, etc. This is a way of representing things in an abstract sense within a map area. You can go deeper with this using a 3 dimensional array. There are other ways of handling it though that don't necessarily involve grids, if you'd prefer.

URL: https://forum.audiogames.net/post/538518/#p538518




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-07 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

no just topdown, like putting a sand platform at from x 0 to x 100 and from y 10 to y 30, you got the idea

URL: https://forum.audiogames.net/post/538513/#p538513




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-07 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

When you say "platform", in what way do you mean? Like a free moving game like Zelda, or like a snap like tile based roguelike? Is it a side scroller or top down?

URL: https://forum.audiogames.net/post/538510/#p538510




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-07 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

hey all, I didint spammed questions in a while sowhat is the best way to make a map cystom? that's, making the player able to walk on difrint platformsI have a half completed idea in my mind but it cant be done I think because its half completeduseing arrays to hold difrint platformsbut I have no idea how to do this on code, if you give me the logik of such thing I can translate it in to code, I promiss

URL: https://forum.audiogames.net/post/538463/#p538463




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Right. You should have gotten everything you needed from post 99. Feel free to ask for clarification, but I really think I explained it accurately enough to make you understand.

URL: https://forum.audiogames.net/post/538094/#p538094




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

my way is like thatfor i in trees:and then the code go's here

URL: https://forum.audiogames.net/post/538089/#p538089




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@Meatbag, how does your for loop look when looping through trees? Consider the following example:x = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in x:
print(i)What do you think this code will produce as it's output? If you said the items of a list, you would be correct. Now, typing the following makes your i an index of the list, and thus prints 0 through 9.x = [2, 4, 6, 8, 10, 12, 14, 16, 18]
for i in range(len(x)):
print(i)This loops through the indexes of the elements rather than the items themselves. If your code looked like the first example, you can't use i as an index of trees because iisalready a tree. You can then access the properties of the item in the list by just doing i.x, i.y, etc.Hmm, perhaps a final example could help?class Tree:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z

list_of_trees = []
for i in range(5):
list_of_trees.append(Tree(0, i, 0))

#Multiple ways of looping through the list are shown below.
#The first method makes i the actual tree object in the list
for tree in list_of_trees:
#We can access the tree properties normally here, like so:
print("Tree coordinates: ", tree.x, tree.y, tree.z)

print("Alternative looping method is shown below")
#Method two makes i become the index rather than the element, i.e:
for tree_index in range(len(list_of_trees)):
#We can't access properties here by doing tree_index.x, tree_index.y, and tree_index.z. Remember: tree_index is an integer
print("Current tree index: ", tree_index, ". Current tree coordinates: ", list_of_trees[tree_index].x, list_of_trees[tree_index].y, list_of_trees[tree_index].z)Hope this helps

URL: https://forum.audiogames.net/post/538088/#p538088




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

@Meatbag, how does your for loop look when looping through trees? Consider the following example:x = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in x:
print(i)What do you think this code will produce as it's output? If you said the items of a list, you would be correct. Now, typing the following makes your i an index of the list, and thus prints 0 through 9.x = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in range(len(x)):
print(i)This loops through the indexes of the elements rather than the items themselves. If your code looked like the first example, you can't use i as an index of trees because iisalready a tree. You can then access the properties of the item in the list by just doing i.x, i.y, etc.Hmm, perhaps a final example could help?class Tree:
def __init__(self, x, y, z):
self.x = x
self.y = y
self.z = z

list_of_trees = []
for i in range(5):
list_of_trees.append(Tree(0, i, 0))

#Multiple ways of looping through the list are shown below.
#The first method makes i the actual tree object in the list
for tree in list_of_trees:
#We can access the tree properties normally here, like so:
print("Tree coordinates: ", tree.x, tree.y, tree.z)

print("Alternative looping method is shown below")
#Method two makes i become the index rather than the element, i.e:
for tree_index in range(len(list_of_trees)):
#We can't access properties here by doing tree_index.x, tree_index.y, and tree_index.z. Remember: tree_index is an integer
print("Current tree index: ", tree_index, ". Current tree coordinates: ", list_of_trees[tree_index].x, list_of_trees[tree_index].y, list_of_trees[tree_index].z)Hope this helps

URL: https://forum.audiogames.net/post/538088/#p538088




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

for exampleimport luciaimport syslucia.initialize()lucia.ShowWindow()while 1:    lucia.process_event()    if lucia.key_pressed(lucia.K_Q):        lucia.quit()        sys.exit()    lucia.pygame.time.wait(5)this should fix the problem

URL: https://forum.audiogames.net/post/538052/#p538052




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

oh just use import sys and you put sys.exit above or below where you called your lucia.quit()

URL: https://forum.audiogames.net/post/538050/#p538050




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

ok sorry for double posting and spamming questions, I figuered out the error above but got a new one, so I have a list that holds the trees, and a for loop to loop throo them, but 1 thing's rong here, in side the for loop
Traceback (most recent call last):
  File "C:\Users\ahmed\projects\python lirning\treecrasher.py", line 68, in 
main()
  File "C:\Users\ahmed\projects\python lirning\treecrasher.py", line 64, in main
if me.x<=trees[i].x+4 and me.y>=trees[i].y-4 and me.x>=trees[i].x-4 and me.y<=trees[i].y+4:
TypeError: list indices must be integers or slices, not tree

URL: https://forum.audiogames.net/post/538049/#p538049




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-06 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

so what do this error means?pygame.error: video system not initializedand how to fix it? i'm useing lucia

URL: https://forum.audiogames.net/post/538035/#p538035




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Edsharp is all well and good until you start discovering that it crashes at the drop of a hat if you try to do anything advanced and is missing basic features like the ability to save an empty file.The right answer is to learn jaws and/or NVDA console reviewing stuff (for NVDA it's just NVDA+arrows).  You end up needing them anyway.

URL: https://forum.audiogames.net/post/537744/#p537744




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Something else is your collision detection:if me.x<0:
me.x==0
if me.y<0:
me.y==0
if me.x>30:
me.x==30
if me.y>30:
me.y==30In this case, your doing a conditional check equivalent to "is me.y equal to 0?" after you've already setup an if statement. You sould use a single equal sign to change its value, like so:if me.x<0:
me.x=0

URL: https://forum.audiogames.net/post/537739/#p537739




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

oh thanks

URL: https://forum.audiogames.net/post/537621/#p537621




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

timer is a class. When declaring classes you need parenthesies. walktimer = timer.timer()And as I said, Lucia does have a built in speech and timer module if you ever want to clean up your directory

URL: https://forum.audiogames.net/post/537619/#p537619




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

actually I notessed that and fixed it, here is the codefrom random import randintfrom random import randrangeimport timerfrom speech import speakimport luciaimport syserrors_log = open("errors.log", "a")sys.stderr = errors_loglucia.initialize()p=lucia.audio_backend.SoundPool()walktime=timer.timerclass player:    def __init__(self,x=0,y=0,z=0):        self.x=x        self.y=y        self.z=zclass tree:    def __init__(self,x=randint(0,30),y=randint(0,30)):        self.x=x        self.y=y        p.play_2d("treeloop.ogg",me.x,me.y,x,y,true)def main():    lucia.show_window("treecrasher")    me=player()    while True:        if me.x<0:            me.x==0        if me.y<0:            me.y==0        if me.x>30:            me.x==30        if me.y>30:            me.y==30            lucia.process_events()        if lucia.key_down(lucia.K_UP) and walktime.elapsed>=500:            walktime.restart()            me.y+=1        elif lucia.key_down(lucia.K_DOWN) and walktime.elapsed>=500:            walktime.restart()            me.y-=1        elif lucia.key_down(lucia.K_LEFT) and walktime.elapsed>=500:            walktime.restart()            me.x-=1        elif lucia.key_down(lucia.K_RIGHT) and walktime.elapsed>=500:            walktime.restart()            me.x+=1        if lucia.key_pressed(lucia.K_ESCAPE):            lucia.quit()main()

URL: https://forum.audiogames.net/post/537594/#p537594




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

actually I notessed that and fixed it, here is the codefrom random import randintfrom random import randrangeimport timerfrom speech import speakimport luciaimport syserrors_log = open("errors.log", "a")sys.stderr = errors_loglucia.initialize()p=lucia.audio_backend.SoundPool()walktime=timer.timerclass player:    def __init__(self,x=0,y=0,z=0):        self.x=x        self.y=y        self.z=zclass tree:    def __init__(self,x=randint(0,30),y=randint(0,30)):        self.x=treex        self.y=treey        p.play_2d("treeloop.ogg",me.x,me.y,treex,treey,true)def main():    lucia.show_window("treecrasher")    me=player()    while True:        if me.x<0:            me.x==0        if me.y<0:            me.y==0        if me.x>30:            me.x==30        if me.y>30:            me.y==30            lucia.process_events()        if lucia.key_down(lucia.K_UP) and walktime.elapsed>=500:            walktime.restart()            me.y+=1        elif lucia.key_down(lucia.K_DOWN) and walktime.elapsed>=500:            walktime.restart()            me.y-=1        elif lucia.key_down(lucia.K_LEFT) and walktime.elapsed>=500:            walktime.restart()            me.x-=1        elif lucia.key_down(lucia.K_RIGHT) and walktime.elapsed>=500:            walktime.restart()            me.x+=1        if lucia.key_pressed(lucia.K_ESCAPE):            lucia.quit()main()

URL: https://forum.audiogames.net/post/537594/#p537594




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

It should be walktimer, not walktime.

URL: https://forum.audiogames.net/post/537586/#p537586




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

stil same...Traceback (most recent call last):  File "C:\Users\ahmed\projects\python lirning\treecrasher.py", line 50, in     main()  File "C:\Users\ahmed\projects\python lirning\treecrasher.py", line 45, in main    elif lucia.key_down(lucia.K_RIGHT) and walktime.elapsed>=500:TypeError: '>=' not supported between instances of 'property' and 'int'

URL: https://forum.audiogames.net/post/537585/#p537585




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

that is why you should make use of >= and not only >

URL: https://forum.audiogames.net/post/537582/#p537582




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

ok found the error useing the logsTraceback (most recent call last):  File "C:\Users\ahmed\projects\python lirning\treecrasher.py", line 50, in     main()  File "C:\Users\ahmed\projects\python lirning\treecrasher.py", line 45, in main    elif lucia.key_down(lucia.K_RIGHT) and walktime.elapsed>500:TypeError: '>' not supported between instances of 'property' and 'int'

URL: https://forum.audiogames.net/post/537566/#p537566




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-05 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

I do have speech history and I use it already to see any errors that may appear.  but I can't find any error with that

URL: https://forum.audiogames.net/post/537563/#p537563




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

bro i suggest you to use EdSharp text editor and compile from there so that it will show all the errors as screen reader output after you exit your game. by mistake if you missed it you can view by speech history. you can get it from herethankyou.

URL: https://forum.audiogames.net/post/537484/#p537484




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

You should go learn how to review the screen with NVDA.  The error is happening, but since the command prompt is not in focus, it doesn’t get read out by the screenreader.

URL: https://forum.audiogames.net/post/537456/#p537456




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Sorry for double posting, but lucia has speech and timer built in as well so you don't need external modules for those

URL: https://forum.audiogames.net/post/537441/#p537441




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : Ty via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Heya meetbag. Try thisimport syserrors_log = open("errors.log", "a")sys.stderr = errors_logThis should log errors to a file if they're unable to be caught by the terminal. Hope this helped 

URL: https://forum.audiogames.net/post/537439/#p537439




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

The game can write to the console even though it's in a separate window.  If you do python main.py from a command prompt and an error happens, it goes to the console, and you need to check there afterword.  If you don't run Python from command prompt, often as not the error goes into the abyss of darkness, never to be retrieved by anyone save through communing with the dead spirits of our ancestors, because Windows will either not give it a command prompt to write to at all, or it will, but it'll close instantaneously when the game ends, taking the output with it.We need to either know that there is an error (and what it is), or we need to know for sure that there isn't an error.  But since I already pointed out one thing with your code that should absolutely 100% be causing an error, there probably is one, and you need to figure out where it is.  So please start by either running this from the command prompt and checking the command prompt after it exits, or tell us that you've done that and it's empty.

URL: https://forum.audiogames.net/post/537436/#p537436




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

sure, pygame will install with lucia,  I have it

URL: https://forum.audiogames.net/post/537433/#p537433




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Hm. Do you have pygame installed? Lucia uses it as a dependancy for keyboard input.

URL: https://forum.audiogames.net/post/537432/#p537432




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

stil same, when it runs it makes a new windo for the game so I dont think it will solv something

URL: https://forum.audiogames.net/post/537430/#p537430




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


Re: I want to lirn pithon but pithon doesn't want me to do so

2020-06-04 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: I want to lirn pithon but pithon doesn't want me to do so

Are you running this from a command prompt or by clicking the .py file?  If the latter, run it from a command prompt and I bet there will be.

URL: https://forum.audiogames.net/post/537429/#p537429




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


  1   2   >