Re: some help needed with python

2020-12-08 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: some help needed with python @12Are you sure that's where the file is located?Also, not sure if it's relevant, but your code (and output) is showing up with a right quotation mark, rather than an apostrophe or double quote. Not sure what editor you're using, but this could

Re: some help needed with python

2020-12-08 Thread AudioGames . net Forum — Developers room : Samuel Farrugia via Audiogames-reflector
Re: some help needed with python Hello all, apologies for bringing this topic back from the dead, but I’ve run into a fresh, new, and very crappy problem. So, thanks to your guys’ posts, I was able to figure out how to play music. For some strange reason however, playing sounds still

Re: some help needed with python

2020-11-16 Thread AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
Re: some help needed with python aggreed with @8you can also use double backslashes. here, i will explain you the logic why it isn't working.as you know, we have many backslash characters in strings like \n or \rso, here you used backslash followed by the name of the audio. python

Re: some help needed with python

2020-11-16 Thread AudioGames . net Forum — Developers room : bhanuponguru via Audiogames-reflector
Re: some help needed with python aggreed with @8you can also use double backslashes. here, i will explain you the ligc why it isn't working.as you know, we have many backslash characters in strings like \n or \rso, here you used backslash followed by the name of the audio. python

Re: some help needed with python

2020-11-15 Thread AudioGames . net Forum — Developers room : Turret via Audiogames-reflector
Re: some help needed with python pygame.mixer.init() is if you're using the rest of pygame. URL: https://forum.audiogames.net/post/589965/#p589965 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman

Re: some help needed with python

2020-11-15 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: some help needed with python Double your \ so they're escaped, and use os.path.normpath to make sure it's formatted correctly.With pygame, I get confused about when you should use pygame.mixer.init, and when you should use pygame.mixer.pre_init. You do one when you use the rest

Re: some help needed with python

2020-11-15 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector
Re: some help needed with python hi...from what I know, python treets backslashes as line continuation character, maybe try useing forward slashes instead? URL: https://forum.audiogames.net/post/589953/#p589953 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: some help needed with python

2020-11-15 Thread AudioGames . net Forum — Developers room : Samuel Farrugia via Audiogames-reflector
Re: some help needed with python @6, thanks for the suggestion, I’ve gone and done that. When I tried adding ‘r’ to the file path, a couple of things happened. Firstly, when I tried it with a .wav file, pygame brought me this error.pygame.mixer.music.load(r'A_2093\Sounds\Intros\Survivor

Re: some help needed with python

2020-11-14 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: some help needed with python You need to add an r in front of your path string, it needs to look like this: pygame.mixer.music.load(r'A_2093\Sounds\Intros\Survivor\Survivor_Intro_Music.ogg')Otherwise the backslashes won't be properly escaped. Or decide for the regular string and escape

Re: some help needed with python

2020-11-14 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: some help needed with python Can you post the full traceback? As for the current working directory, add this to your script:import os print(os.getcwd())This will tell you the current working directory, which is where your script is looking for your files. If your files aren't

Re: some help needed with python

2020-11-14 Thread AudioGames . net Forum — Developers room : Samuel Farrugia via Audiogames-reflector
Re: some help needed with python Hi all.@3, the reason I decided on trying to use pygame to play my sound files, rather than the playsound module, is that I wanted to loop music in the background, whilst also having other audio files playing at the same time. I’ve tried using playsound

Re: some help needed with python

2020-11-12 Thread AudioGames . net Forum — Developers room : Turret via Audiogames-reflector
Re: some help needed with python Why exactly do you need pygame for this? It appears to be a console game.  You can try.import playsoundplaysound.playsound("meow.wav",block=True/False) # block is if the thread should be slept or not until the sound is done.

Re: some help needed with python

2020-11-12 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: some help needed with python Part of it could be pathing and the current working directory. Try using a simpler test script for loading/playing sound, you can find one [here] in one of my previous posts. If it doesn't work, you can try checking the current working directory. URL

some help needed with python

2020-11-12 Thread AudioGames . net Forum — Developers room : Samuel Farrugia via Audiogames-reflector
some help needed with python Hello all.I’m trying to code a small text based RPG (in the same style of the Wastes), as my first python project. I’ve been trying to find a way how to implement sounds for when the player selects different options, fights enemies, etc.after a bit of research