2018-11-01 10:16:47

Another update, You can now spawn tiles without needing of spawn rooms. Read the map.py file. I think i'm done with this engine and now I'm planning to make a game based on this engine to show people how it tastes. Although i still have a copy of the recent changed engine and if anything is suggested here, I'll update the engine again.

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2018-11-01 20:45:16

This thingy is cool. Nice work!

Have a nice day
Veljko

Thumbs up

2018-11-03 06:21:00

hello @kianoosh

Can your add to the readme file all the dependencies that you need to run the game?
For example accessible output (the new) isn't available on PiPi, so "pip install -r requirements.txt" always fails independentli if you use python 2 or 3, x86 or 64. I tried with all of them.
And, when you get accessible output from it's repo, you need the repos of q-continuum. Can you add the links of these on the readme?
The idea is that you have all the necesari information to run the engine in the readme file :3


Only that for now. Thanks for make this, and for develop awesome things on python! The next step is see a great game from you with these tools!
Thanks man!

Thumbs up +1

2018-11-03 13:42:11

Done! Updated the README.md file with the info on downloading accessible output from carter temm's mirror of code formally available on hg.q-continuum.net on github

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2018-11-03 23:28:35

Hello.
I couldn't run this code.
In the beginning, there were problems with the installation of accessible_output2. Now the code does not want to work.
Has anyone been able to run this code? I can describe my steps, maybe someone knows a solution to my problem.
Thanks in advance!

Thumbs up

2018-11-04 13:20:32

Dude. You have to give us the error you're getting so we can help. And check out carter temm's github. There's a mirror of a website there. If you get it, There are a bunch of libraries for you to use, including accessible output. You might get some problems with accessible output2 saying that win32gui could not be found or something about win32gui. Uninstall the pywin32 module(You might need to do this more than one time), then re-get it from pip so you'll have the latest version

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2018-11-04 13:58:12

Yes, it was in Pywin32.

Thumbs up

2018-11-07 08:45:11 (edited by Alan 2018-11-07 09:28:42)

Greetings,
I downloaded source code and tried to run it, but I cannot fix the pywin32 thing smile. I tried uninstalling pywin32 pakage and then installing it again with:
pip install pywin32
I am assuming it's the same pywin32 problem described on other posts. When installing accessible_output2 I get:

Processing dependencies for accessible-output2==0.13
Searching for libloader
Reading https://pypi.python.org/simple/libloader/
Couldn't find index page for 'libloader' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or working download links found for libloader
error: Could not find suitable distribution for Requirement.parse('libloader')

Any other tips? If not, I will try replacing accessibleoutput2 by Tolk or another screen reader library...

Thanks for your great job here.

Thumbs up

2018-11-07 09:27:03

Hi. I think if i'm not mistaken you have to uninstall it more than one time. Also try to delete anything related to pywin32 within your site-packages directory. If that never fixed it, Try tolk. I fixed it that way though

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2018-11-07 09:39:00

Sorry, I have edited post 33, adding the  exact error I am getting when installing accessible_output2, basically:
Processing dependencies for accessible-output2==0.13
Searching for libloader
Reading https://pypi.python.org/simple/libloader/
Couldn't find index page for 'libloader' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or working download links found for libloader
error: Could not find suitable distribution for Requirement.parse('libloader')

Just in case... Uninstalling and installing again (8 times hehe) pywin32 doesn't seem to fix anything sad

Thanks in advance.

Thumbs up

2018-11-07 15:46:17

Ok. This is not related to pywin32 at all. The error which happens about pywin32 should be something about win32gui. Anyways. Get the repossetory on carter temm's github, Which I provided a link to it in the readme, get it, extract the folders, find the libloader and install it manually

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2018-11-08 09:12:34

Morning,
I finally got it runing. I changed universalSpeech2 by universal speech, for some reason when trying to install the library from the continuum repository gives me pywin32 errors and reinstalling pywin32 doesn't solve anything.

After that, I changed line 18 of fps.py cause my system has problems with the default window size, so  now it is:

window=pyglet.window.Window(800, 600, resizable=False, fullscreen=True, caption="FPS thing")

Just in case it's helpful for anyone.

I'm testing your amazing job and considering using it for a project I have in mind, so I can include some fps features into my rpg smile.

Thanks!

Thumbs up +1

2019-06-10 07:54:45

Thank you for movement.py, it is very helpful!
The code could do with a few more docstrings and comments though, although I was able to find what I needed.

Thumbs up

2019-06-10 08:00:55

BTW, kianoosh, we should combine forces, I did a very similar thing in pyaudiogame, using pygame (although it would be very easy to switch to pyglet).
For Accessible_output2, I went ahead and just included it as a single folder in my code. I re-wrote the import statements, and that keeps people from having a problem with all the dependencies. Since accessible_output2 has not been updated in quite a while, I felt safe in doing this.

Thumbs up

2019-06-10 08:20:31

For speech, just use this bit of code (its something Danny and I wrote for a private game engine, but it allows usage of speech APIs on Linux, Mac and windows, so no reason to not reveal it):

import platform
if platform.system()=="Windows":
    import Tolk
elif platform.system()=="Linux":
    import speechd
elif platform.system()=="Darwin":
    from AppKit import *
    
# global variable.
client = None

# Iinitialize the TTS engine based on platform
def initialize():
    if platform.system()=="Windows":
        Tolk.load()
    elif platform.system()=="Linux":
        client = speechd.SSIPClient("")
    elif platform.system()=="Darwin":
        client=NSSpeechSynthesizer.alloc().initWithVoice_(None)

# Speak text
def say(text, interrupt=False):
    if platform.system()=="Windows":
        if interrupt:
            Tolk.output(text, True)
        else:
            Tolk.output(text)
    elif platform.system()=="Linux":
        if interrupt:
            client.cancel()
        client.speak(text)
    elif platform.system()=="Darwin":
        if interrupt:
            client.stopSpeaking()
        client.startSpeakingString_(text)

# De-initialize the TTS engine
def shutdown():
    if platform.system()=="Windows":
        Tolk.unload()
    elif platform.system()=="Linux":
        client.close()
    elif platform.system()=="Darwin":
        client.release()

Give this a try, see how it works for you. If you want to modif ythis file, beware of the APIs your using. For windows, its Tolk, so you'll need tolk.py; for Mac OS, you'll need AppKit and the Python objective-C bindings; and for Linux, you'll need speech dispatcher and its Python module. I've done my best to disassociate it from the engine framework.
Also, for those who are curious to ask: I am only releasing this because it would actually prove quite useful to the community. I highly doubt I'll release much, if any, other code from this particular engine.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.

Thumbs up

2019-06-10 17:57:15

I actually converted this code to pygame a while ago, but I messed it up by switching to another sound library. Not completely though I can still fix it by switching to another sound library but i'm not working on it right now.
some of those functions from movement.py came from Aprone and sam's rotation package and some of my other friends. Although the movement function itself, except for moving x and y is myne(I mean the mechanice)

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-06-12 16:48:44 (edited by Ilya 2019-06-12 16:49:31)

hi, i just got this when running it.
i have all the modules
At line:1 char:109
+ python "C:\Users\ivencjuns\Dropbox\coding\Py Games\python-fps-master\python-f
ps-master\fps.py" |p:\buggy.txt <<<<
    + CategoryInfo          : ObjectNotFound: (p:\buggy.txt:String) [], Comman
   dNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\ivencjuns> python "C:\Users\ivencjuns\Dropbox\coding\Py Games\python
-fps-master\python-fps-master\fps.py"
Traceback (most recent call last):
  File "C:\Users\ivencjuns\Dropbox\coding\Py Games\python-fps-master\python-fps-
master\fps.py", line 2, in <module>
    import console
  File "C:\Users\ivencjuns\Dropbox\coding\Py Games\python-fps-master\python-fps-
master\console.py", line 1, in <module>
    import globals as g
  File "C:\Users\ivencjuns\Dropbox\coding\Py Games\python-fps-master\python-fps-
master\globals.py", line 11, in <module>
    lang=gettext.translation(langstring, localedir='locale', languages=[langstri
ng])
  File "C:\Program Files (x86)\Python37\lib\gettext.py", line 524, in translatio
n
    'No translation file found for domain', domain)
FileNotFoundError: [Errno 2] No translation file found for domain: 'en'
PS C:\Users\ivencjuns>

code is funn

Thumbs up

2019-06-12 17:59:08

This is a weird issue when you try to run a python app from source code that is using gettext via python launcher, or you don't have everything that you should have in your locale folder. Try running it using windows powershell or another command line tool

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-06-12 18:34:09

hmm,
i have, pyglet, wxpython
pyopenal
pywin32

code is funn

Thumbs up

2019-06-13 23:17:18

Hi,
So I fixed all the issues on this thread, except for one that I haven't seen pop up yet. When I try to run, I get a traceback that the package win32gui isn't installed. So, I tried to install it with pip install win32gui but it stops midway, saying something about the wheel requirements couldn't be met. I did the thing where you uninstall pywin32 and reinstall it about 6 times but win32gui still refuses to install. Is there anything I can do? Thanks.

2019-06-14 08:26:46

At post 44 I  mean the locale folder. The gettext module comes with python itself.
At post 45 Are you installing pywin32 via pip? Try pip install --force pywin32
It's weird that it doesn't work for you. Try to install it in the way I mentioned. If it didn't work, let me know here and I try to work out something for you

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-06-14 09:00:46

Try install pypiwin32 that should fix your PROBLEM

Thumbs up

2019-06-14 17:47:32

what is that. I press this but I cante open this that. What did you do?

Thumbs up

2019-06-14 19:15:40

A post full of unknowns. What's "this and that"?
If you mean the game, It surely is a python source code and you need python to be able to run it

Add me on skype: kianoosh.shakeri2
Or follow me on twitter @kianoosh shakeri

2019-06-14 21:03:20

I saying. I press fps.py. I have python. But says C system 32 and closet the 1 seconds

Thumbs up