Re: I need help, again!

2019-02-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @post 57, Thanks again. I knew about the classes, but I already set up my project in such a way that the classes would force me to rewrite the thing from scratch. Oh well, lesson learned. URL: https://forum.audiogames.net/post/410974/#p410974 -- Audiogames

Re: I need help, again!

2019-02-10 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! This has to deal with name spacing, variables made in a function live and die in that function unless passed to an outside source, so global or return functions are usually required. With return functions its more about deciding under what conditions you want

Re: I need help, again!

2019-02-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @post 55, thanks, that worked.Now: To a question of a different nature. Suppose I'm building an idel gathering game. Let's assume that we'll use a list for storing our resources. We'll use index to iterate and move through the list. The problem? The index doesn't

Re: I need help, again!

2019-02-09 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Oops. Sorry, lib_openal.py and such do have a pyglet dependancy, specifically they use pyglet.lib to load OpenAL.DLL. You can install pyglet, but you don't have to use any of its functions for this. Alternatively you can edit the lib scripts and try swapping

Re: I need help, again!

2019-02-09 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Oops. Sorry, lib_openal.py and such do have a pyglet dependancy, specifically they use pyglet.lib to load OpenAL.DLL. You can install pyglet, but you don't have to use any of its functions for this. Alternatively you can edit the lib scripts and try swapping

Re: I need help, again!

2019-02-09 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So, @post 53, I had pyglet installed. When I removed pyglet, open al gives me the "No module named pyglet error." Tips? I would go and use pyglet, but I understand Jack shit about it, literally. I much prefer writing my own event loops, even if it breaks

Re: I need help, again!

2019-02-09 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So, @post 53, I had pyglet installed. When I removed pyglet, open all gives me the "No module named pyglet error." Tips? URL: https://forum.audiogames.net/post/410707/#p410707 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-guc

Re: I need help, again!

2019-02-09 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Hm, that seems to indicate that the version of OpenAL its finding doesn't support that OpenAL Soft function. Do you have OpenAL installed on your system? If so it could be the non-OpenAL Soft version, and its going to try and default to that over whats

Re: I need help, again!

2019-02-09 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Alright, we have another issue on our hands here:Here's my code. Note: A seperate test.py file is being used to run this.import sys import os dir_path = os.path.dirname(os.path.realpath(__file__)) os.chdir(dir_path) import lib_openal as al import lib_alc as alc

Re: I need help, again!

2019-02-09 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Alright, we have another issue on our hands here:Here's my code. Note: A seperate test.py file is being used to run this.import sys import os dir_path = os.path.dirname(os.path.realpath(__file__)) os.chdir(dir_path) import lib_openal as al import lib_alc as alc

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
Re: I need help, again! I'm pretty sure iterating through the event queue is enough for pygame to handle it. URL: https://forum.audiogames.net/post/410508/#p410508 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Like with programming languages in general, learning one can help you better understand and use others. Think of it more as gaining experience, it could prove useful in the future depending on your needs. Anyway, here's an example of Pygames mixer:import pygame from

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Like with programming languages in general, learning one can help you better understand and use others. Think of it more as gaining experience, it could prove useful in the future depending on your needs. Anyway, here's an example of Pygames mixer:import pygame from

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Wild 2D audio would be nice for a bit, I feel like I will be doing myself a disservice.  I feel like it’s much better to pick a set of tools and stick with them, rather than pick a set of tools and then switch to new ones later.  I would appreciate any tips

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! If you run your script from another directory, it would use your current directory as the working one, for example:C:\yourdir> python yourscript.pyThis would make the current directory where you run your script the current working directory, but this:C:\>

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Sorry if i'm not responding much, things have been pretty crazy the past few weeks. If you run your script from another directory, it would use your current directory as the working one, for example:C:\yourdir> python yourscript.pyThis would make the curr

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @Post 46, I thought pygame.event.pump was for keeping the event list clean and prevent it from filling up? Do let me know how do I not use it accessively. URL: https://forum.audiogames.net/post/410466/#p410466 -- Audiogames-reflector mailing list Audiogames

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
Re: I need help, again! I did notice that in your code you call the pygame event pump function unnecessarily. It could be that function since you're calling it a lot. URL: https://forum.audiogames.net/post/410424/#p410424 -- Audiogames-reflector mailing list Audiogames-reflector

Re: I need help, again!

2019-02-08 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So an update: I've figured out the delay issue, I think. I have built several small projects, couple of dice games to be exact, and I think I'm ready to add in another layer, sound. I have done some research, and a popular library to use in here is sound_lib

Re: I need help, again!

2019-02-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Yea! Alridy! it works! Any idea why the script wasn't in it's default directory originally? Why do I need to do pygame.display.update() if I'm planning to only use the audio? Also, you're right, the input is slightly delayed. Is it because of the way the pygame

Re: I need help, again!

2019-02-04 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Hm, try putting the following code at the beginning of your script, before you import Tolk:import sys import os #check the current working directory print(os.getcwd()) #get the current directory of your script dir_path = os.path.dirname(os.path.realpath(__file__

Re: I need help, again!

2019-02-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @post 41, thank you for the info. @post 38: Right, your example gave the same results. Furthermore, when I did pip install tolk and tried importing the thing it gave me an error about the handler module not being there, and I checked, it is in the same folder

Re: I need help, again!

2019-02-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @post 41, thank you for the info. @post 38: Right, your example gave the same results. Furthermore, when I did pip install tolk and tried importing the thing it gave me an error about the handler module not being there, and I checked, it is in the same folder

Re: I need help, again!

2019-02-04 Thread AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
Re: I need help, again! The loop problems from what I can see aren't caused by Tolk. There are a few logic errors.In the menu module you haven't imported pygame. For every module you import that module needs to import required modules. K_UP and K_DOWN are defined in the pygame module

Re: I need help, again!

2019-02-04 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @post 38: I will try your suggestions as soon as I get home, which should be in a little over 2 hours. @post 39. Thing is, I can't do the method described. I don't have the Tolk library installed, I only have the files. There's no setup.py or anything, and I don't

Re: I need help, again!

2019-02-04 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: I need help, again! Another idea before getting into experimentation stage myself, did you try inserting the errorneous script into an interactive python prompt line by line to see if the same error pops up as soon as the tolk import happens? Maybe this one will fix your problem

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! I'm actually using the x86 Tolk binaries, they should work just as well on an x64 windows platform, so you could try swapping those over and see if it makes a difference, and yeah having them in the same folder should do it, either that or it could be something

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! First, thanks for taking the time to answer despite the cold. Second, I'm afraid we still have the persisting 126, can't find the module errors when running your example on my end. Would you mind uploading your version of Tolk assuming you didn't download the one I

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! First, thanks for taking the time to answer despite the cold. Second, I'm afraid we still have the persisting 126, can't find the module errors on my end. Would you mind uploading your version of Tolk assuming you didn't download the one I linked to in post 35

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! First, thanks for taking the time to answer despite the cold. Second, I'm afraid we still have the persisting 126, can't find the module errors on my end. Would you mind uploading your version of Tolk assuming you didn't download the one I linked to in post 35

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! I don't think you need to pass Tolk to functions, as it acts as a global class. Also remember to include the screen reader driver dll's from the tolk archive in /lib/x64 if your using the 64 bit version, or /lib/x32 for 32 bit.In this example you gave:import time

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! That's the thing: The script is in the exact same folder as the other ones were. Hell, it's even in the same file! The problem is encountered only when I try and do loops, which crashes the program. The scripts work fine, I used sys.exit(0) to proove

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! That's the thing: The script is in the exact same folder as the other ones were. Hell, it's even in the same file! The problem is encountered only when I try and do loops, which crashes the program. The scripts work fine, I used sys.exit(0) to proove

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! That's the thing: The script is in the exact same folder as the other ones were. Hell, it's even in the same file! The problem is encountered only when I try and do loops, which crashes the program. The scripts work fine, I used sys.exit(0) to proove

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! That's the thing: The script is in the exact same folder as the other ones were. Hell, it's even in the same file! The problem is encountered only when I try and do loops, which crashes the program. The scripts work fine, I used sys.exit(0) to proove

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: I need help, again! Hi,looks like a problem which encounters directly when importing Tolk. Please make sure you're running both scripts with the same python version and from within the same working directory. I often encounter things like a virtual environment within one project which

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: I need help, again! Hi,looks like a problem which encounters directly when importing Tolk. Please make sure you're running both scripts with the same python version and from within the same working directory. I often encounter things like a virtual environment within one project which

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Right, so more info if yall can help me here. I think there is a problem with the Tolk file I got. The following script works like it should:import time import pygame import Tolk from pygame.locals import * Tolk.load() pygame.init() screen = pygame.display.set_mode

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Right, so more info if yall can help me here. I think there is a problem with the Tolk file I got. The following script works like it should:import time import pygame import Tolk from pygame.locals import * Tolk.load() pygame.init() screen = pygame.display.set_mode

Re: I need help, again!

2019-02-03 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! I do. I have the Tolk files in there. Thing is, the Tolk works in the main file, and in the menu file if I add it to any other function but run. When I add it to run function, the program crashes, though it does the same without it, as well. My code is short, and I

Re: I need help, again!

2019-02-02 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! I do. I have the Tolk files in there. Thing is, the Tolk works in the main file, and in the menu file if I add it to any other function but run. When I add it to run function, the program crashes, though it does the same without it, as well. My code is short, and I

Re: I need help, again!

2019-02-02 Thread AudioGames . net Forum — Developers room : The Dwarfer via Audiogames-reflector
Re: I need help, again! do you have the tolk.dll file in the same directory as your script? Tolk.py should be in there as well.b URL: https://forum.audiogames.net/post/409123/#p409123 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: I need help, again!

2019-02-02 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So @Ethin, I think I figured out what you meant by dlls not working. I currently have an issue with creating a menu class and using Tolk to speak it. The tolk works great in the main file, but as soon as I try and pass it to my loop for the menu things break, badly

Re: I need help, again!

2019-02-02 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So @Ethin, I think I figured out what you meant by dlls not working. I currently have an issue with creating a menu class and using Tolk to speak it. The tolk works great in the main file, but as soon as I try and pass it to my loop for the menu things break, badly

Re: I need help, again!

2019-02-02 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So @Ethin, I think I figured out what you meant by dlls not working. I currently have an issue with creating a menu class and using Tolk to speak it. The tolk works great in the main file, but as soon as I try and pass it to my loop for the menu things break, badly

Re: I need help, again!

2019-01-31 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! 1: no, pygame does not restrict your usage of anything. You are free to use whatever you like (even other event handlers alongside the main one) but I wouldn't if I were you.2: a module is one of three things:* a .py file that can be imported with the import

Re: I need help, again!

2019-01-31 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So I have a couple of questions.1: Say I want to use pygame for my window creation, would it restrict me from using certain functions in python itself? Pretty silly, I know, but I want to check.2: What is the difference between a class and a module? I mean is class

Re: I need help, again!

2019-01-31 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So I have a couple of questions.1: Say I want to use pygame for my window creation, would it restrict me from using certain functions in python itself? Pretty silly, I know, but I want to check.2: What is the difference between a class and a module? I mean is class

Re: I need help, again!

2019-01-30 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! You put tolk.py and tolk.dll in the same location as your script. URL: https://forum.audiogames.net/post/408476/#p408476 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman

Re: I need help, again!

2019-01-30 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So I wanted to be able to get the user to hear stuff from their screen reader, and doing a bit of research yielded Tolk, direct download link I looked at the tolk.h file, and it's pretty understandable. My issue? Well, uh, I can't import it? Where do I paste

Re: I need help, again!

2019-01-25 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Right, I believe the indention problems are completely fixed now. Now you can run the thing and it should... work? URL: https://forum.audiogames.net/post/407428/#p407428 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: I need help, again!

2019-01-24 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! That's OK URL: https://forum.audiogames.net/post/407302/#p407302 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: I need help, again!

2019-01-24 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! OK. It’s done. I did it on an iPhone, so I apologize for any indention errors. URL: https://forum.audiogames.net/post/407281/#p407281 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin

Re: I need help, again!

2019-01-24 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So while failing at an affine cipher, I decided to take a break. Sometimes it helps, sometimes it doesn't. In short, I coded something else: Note, replace 2, 3, and 4 greater than signs with spaces. Then go to every function and edit the top of it, up till the loop

Re: I need help, again!

2019-01-24 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! Have you considered using code tags? Like (replace left and right bracket with the actual chars, the forum provides no way of escaping BBCode):left bracket code right bracketdef hi():    returnleft bracket /code right bracket URL: https://forum.audiogames.net/post

Re: I need help, again!

2019-01-24 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! Have you considered using code tags? Like:[[]] Test [[]] URL: https://forum.audiogames.net/post/407253/#p407253 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: I need help, again!

2019-01-24 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So while failing at an affine cipher, I decided to take a break. Sometimes it helps, sometimes it doesn't. In short, I coded something else: Note, replace 2, 3, and 4 greater than signs with spaces. Then go to every function and edit the top of it, up till the loop

Re: I need help, again!

2019-01-16 Thread AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
Re: I need help, again! Normally the ^ operator is exponentiation (2^2 = 2 squared, 2^3 = 2 cubed, etc). In python though ^ is the bitwise  xor operation. Python's exponentiation operator is ** (as in, 2**2 or 2**3).You can't directly reverse the modulus operation unless you know

Re: I need help, again!

2019-01-16 Thread AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
Re: I need help, again! Normally the ^ operator is exponentiation (2^2 = 2 squared, 2^3 = 2 cubed, etc). In python though ^ is the bitwise  xor operation. Python's exponentiation operator is ** (as in, 2**2 or 2**3).You can't directly reverse the modulus operation unless you know

Re: I need help, again!

2019-01-16 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @Ethan, could you explain how to undo the modulus opparator using numbers please? I'm still in algebra, so forgive me for not being able to keep up with you. heh. I also seem to grasp things quicker and or better if you give me an _expression_ with numbers, Rather

Re: I need help, again!

2019-01-16 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @Ethan, could you explain how to undo the modulus opparator using numbers please? I'm still in algebra, so forgive me for not being able to keep up with you. heh. I also seem to grasp things quicker and or better if you give me an _expression_ with numbers, Rather

Re: I need help, again!

2019-01-16 Thread AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
Re: I need help, again! Ord takes a character as input and returns the ascii value of that character, which in python is an integer. You are transforming the integer for the cipher, which is fine. You then call str on the result, which just turns the number into a string without actually

Re: I need help, again!

2019-01-15 Thread AudioGames . net Forum — Developers room : stewie via Audiogames-reflector
Re: I need help, again! Ord takes a character as input and returns the ascii value of that character, which in python is an integer. You are transforming the integer for the cipher, which is fine. You then call str on the result, which just turns the number into a string without actually

Re: I need help, again!

2019-01-14 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! Yeah, you messed up, and I'm honestly not sure where you went wrong with this one. I think, however, that you are over-complicating things. When I run your cipher and add a chr() call, I get back bytes (yes, literal Unicode sequences).Edit: actually, your quite

Re: I need help, again!

2019-01-14 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Right, I think this is how the affine cipher works.Code goes below, again, replace the > with spaces.def affine(a, b, c):>message2 = "">for i in c:>>x = ord(i)>>message2+=str((a*x+b)%26)>return message2I'm sure it's broken in a wa

Re: I need help, again!

2019-01-11 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! Oh, no, I had fun writing all that. No bother, it was fun to see someone interested in learning about programming and cryptography. URL: http://forum.audiogames.net/post/404683/#p404683 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin

Re: I need help, again!

2019-01-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! note: It seems like the forum trims my spaces for indention. I have changed the spaces to > signs, so just replace those with spaces when you run my code.@Ethin, Thanks for the explanation of the cipher. Looks like it's gonna be a joy to write, not...I have a

Re: I need help, again!

2019-01-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @Ethin, Thanks for the explanation of the cipher. Looks like it's gonna be a joy to write, not...I have also seemed to fix the broken rot_13 method. Tell me if I did it or not.Code goes below.def rot_13(message): message2 = "" for i in message:  x = ord(i)

Re: I need help, again!

2019-01-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! @Ethin, Thanks for the explanation of the cipher. Looks like it's gonna be a joy to write, not...I have also seemed to fix the broken rot_13 method. Tell me if I did it or not.Code goes below.def rot_13(message): message2 = "" for i in message:  x = ord(i)

Re: I need help, again!

2019-01-10 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! The affine cipher is a type of monoalphabetic substitution cipher. The way it works is as follows:* You pass the cipher a string* Each letter in an alphabet (i.e. the base64 or base32 alphabet) is mapped to its numeric equivalent* That numeric equivalent

Re: I need help, again!

2019-01-10 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! The affine cipher is a type of monoalphabetic substitution cipher. The way it works is as follows:* You pass the cipher a string* Each letter in an alphabet (i.e. the base64 or base32 alphabet) is mapped to its numeric equivalent* That numeric equivalent

Re: I need help, again!

2019-01-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So back to school we go, and one of the things we're welcomed back to is rot_13. Can anyone give me tips on shortening down code and or tell me if I implemented it correctly?Code goes below.def rot_13(message): message2 = "" for i in message:  x = ord(i)

Re: I need help, again!

2019-01-10 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So back to school we go, and one of the things we're welcomed back to is rot_13. Can anyone give me tips on shortening down code and or tell me if I implemented it correctly?Code goes below.def rot_13(message): message2 = "" for i in message:  x = ord(i)

Re: I need help, again!

2019-01-07 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Post 9, yeah... I should stop with that, point noted. I'll try and write less repetitive code in the future. URL: http://forum.audiogames.net/post/403759/#p403759 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: I need help, again!

2019-01-07 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! @8, exactly. You got it! The solution can be expressed in a much more elegant method, but this also works. As an example, in C you might bit-shift each character to the left by one and OR it with the character bit-shifted to the right by 7 ((c<<1)

Re: I need help, again!

2019-01-07 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! @8, exactly. You got it! The solution can be expressed in a much more elegant method, but this also works. URL: http://forum.audiogames.net/post/403710/#p403710 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: I need help, again!

2019-01-07 Thread AudioGames . net Forum — Developers room : Kyleman123 via Audiogames-reflector
Re: I need help, again! if you never want to care about going out of range, just take the input move number and mod it by 94 and then ad 32. I would just also take x as the new ASCII value stop adding move to it all the time.x = ord(i) + movemove = (x % 94) + 32 URL: http

Re: I need help, again!

2019-01-07 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So is this what you're talking about when it comes to circular shifting? (note: I've also fixed the asky support, I hope...)def trashy(message, move):  message2 = ""  for i in message:    x = ord(i)    if x+move <32 or x+move >126:      print("

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! The ASCII thing can be explained simply with an example, as below:How much do you want to shift your letters by?35What is your message?hi‹ŒThere's your problem. The problem with this code is that you don't enforce an ASCII range limit; so someone could, say, shift

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! The ASCII thing can be explained simply with an example, as below:How much do you want to shift your letters by?35What is your message?hi‹ŒThere's your problem. The problem with this code is that you don't enforce an ASCII range limit; so someone could, say, shift

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: I need help, again! The ASCII thing can be explained simply with an example, as below:How much do you want to shift your letters by?35What is your message?hi‹ŒThere's your problem. The problem with this code is that you don't enforce an ASCII range limit; so someone could, say, shift

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Okay, I was an idiot. I forgot to review the screen. Thanks post 4.A question: Yes: I was aiming at a Caesar cipher. What do you mean by it failing? Can you show me an example of it failing and give me a tip at how to fix it? Don't give the code, I don't want

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Okay, I was an idiot. I forgot to review the screen. Thanks post 4.A question: Yes: I was aiming at a Caesar cipher. What do you mean by it failing? Can you show an example and give me a tip at how to fix it? Don't give the code, I don't want that. Give a general

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: I need help, again! Well, what if it IS printing the message, but the message is an empty string? Something I do sometimes to track down irritating bugs is litter my code with print statements to try and get an idea of what may be causing it. So the first thing you could do is maybe

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Okay, I was an idiot. I forgot to review the screen. Thanks post 4.A question: Yes: I was aiming at a URL: http://forum.audiogames.net/post/403583/#p403583 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! Okay so can you have any clew as to what to check? The script runs... And then exits without printing the message. Why! No error is given, no nothing, it's just sitting there. URL: http://forum.audiogames.net/post/403583/#p403583 -- Audiogames-reflector

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: I need help, again! Hi,@CarterTemm: yeah, didn't know that topic and thus didn't know this Python 3 thingy. I got both versions installed and tried with Python 2, which didn't work, thats why i replaced it and voilla.Didn't mention the ascii range though, this code looked like some

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector
Re: I need help, again! OP said he was using python 3 in a previous topic. raw_input is a python 2 thing, replaced with input in any later version.Original script works fine for me. Never run interactive applications from the run dialog, as the run dialog is not at all meant for displaying

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector
Re: I need help, again! OP said he was using python 3 in a previous topic. raw_input is a python 2 thing, replaced with input in any later version.Original script works fine for me. Never run interactive applications from the run dialog, as the run dialog is not at all meant for displaying

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector
Re: I need help, again! OP said he was using python 3 in a previous topic. raw_input is a python 2 thing, replaced with input in any later version.Original script works fine for me. Never run interactive applications from the run dialog, as the run dialog is not at all meant for displaying

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: I need help, again! So here's my code, which is still broken:def trashy(message, move):  message2 = ""  for i in message:    x = ord(i)    message2= message2+chr(x+move)  print(message2)print("How much do you want to shift your letters by?")numbermove = int(raw

Re: I need help, again!

2019-01-06 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: I need help, again! Hi,well, exchange input against raw_input and it will actually work.D:\>python run.py How much do you want to shift your letters by?2 What is your message?hello jgnnqBest Regards.Hijacker URL: http://forum.audiogames.net/post/403477/#p403477 -- Audioga