Closed Hamster-lord closed 1 year ago
Seem like the issue is that the game folder (Masendor-0.6.3.5 2) is in read only, so the game cannot create folder inside it. Can you check if that is the case?
Or maybe you can try moving the game folder to another location that does not have permission locked.
ok
now this is happening
!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/main.py", line 12, in
This is very weird, this issue does not happen to me even if I download from the release. Would it be possible for you to add print(self.main_dir) to around line 160 of game.py file? Then it should be print out if this is the issue I am thinking of.
Or if you are using text editor with no line indication put that after def init(self, main_dir, error_log): pygame.init() # Initialize pygame pygame.mouse.set_visible(False) # set mouse as not visible, use in-game mouse sprite self.main_dir = main_dir (Put print here)
I got this: /Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5
Well this look to be correct. I have no idea why it put gamescript folder on your version. I will keep having a look to see if this happen in other computer as well. Just to make sure, this is the download from the last release version, correct?
yes It says 0.6.3.5
In the main.py file it also says
"/Users/Emma/PycharmProjects/Masendor 2.0/venv/bin/python" "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/main.py"
pygame 2.1.2 (SDL 2.0.18, Python 3.8.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5
Traceback (most recent call last):
File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/main.py", line 12, in
Can't seem to replicate the issue even on other computer. Can you instead try print(main_dir) in make_genre_specific_ui.py? it should be in common/game/setup/.
I got /Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5
Also there is no battle_ui in /users/emma/pycharmprojects/masendor 2.0/masendor-0.6.3.5/gamescript/common/ui/battle_ui
Yeah the issue is that it use gamescript folder path for no reason when no part of the code should make it do that. Even weirder that the prior loading works fine before this error occur.
I add a new release version. Not sure if this error will be fixed properly though.
!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/main.py", line 12, in
For reference, what OS are you using? I may try to use virtual box to replicate your system as much as possible to see what is wrong.
by the way did you edit some parts of the code? The error that say genre_setting = importlib.import_module("gamescript" + new_genre + "genre_setting") is genre_setting = importlib.import_module("gamescript." + new_genre + ".genre_setting"). It miss two dots in there for some reason. Maybe you can check if the dot still in the game.py file?
Oh I did delete the two dots
now this is happening
!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/main.py", line 12, in
macOS monterey version 12.1
ok if I have to guess the issue is that importlib.import_module work differently in macOS. So what I will try next is trying to test the game on both virtual macOS and Ubuntu. Even if I delete the dots the error is still different for yours (ModuleNotFoundError: No module named 'gamescriptarcadegenre_setting'). OR maybe I just have to compile the game in the appropriate OS to make it compatible.
ok
Please tell me when you are finished
Sure, so far I have finished with Linux testing and going to do macOS next.
ok
any luck>
Working on it. Having a bit of trouble installing some python module in macOS for some reason.
ok I manage to make it work. MacOS 12 version is in the release with the name Mac_Dream.Decision.0.6.3.16.zip. Let me know if it does not work on your system.
how do you use the package
also still no work
!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16m7/main.py", line 12, in
It is quite bizarre that you keep getting new error. I just use pyinstaller to compile the game on MacOS in virtual machine and test it in there. This error used to happen to me but I fixed it before, I will have a look.
As usual I can't seem to replicate this problem on my MacOS even with clean download from release. How did you run them game in your system, main.py on pycharm or main.exec directly?
I ran main.py
what am I supposed to download anyways?
If you download Mac_Dream.Decision.0.6.3.16.zip, then it is correct. Can you try run main.exec?
actually how come there is main.py in the release download? I don't think it is in there.
Ah I guess you didn't download the game from release but rather from the front page but still it is weird that it still give you error when it not on mine. What I refer to is from here: https://github.com/remance/Masendor/releases/tag/0.6.3.16m7
Oh I think there may be another possible cause for the error. It seem you are using python 3.8 to run the game. Can you try update it to 3.10 and install modules with the exact version as in requirements?
ok
How to get the exact version of the requirements
also I'm getting this:
!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-main/main.py", line 12, in
Look like the same as previous error to me. To install requirement use command “pip install -r requirements.txt” either in pycharm terminal or mac terminal depend ming on how you run the game. You may also need to setup configuration in pycharm to use python 3.10 instead of 3.8 too if you did not do that yet.
The terminal for requirements installation need to be in the game directory too by the way.
I already got the all the requirements
but it still no work
Can you check if your pycharm project still use python 3.8 to run the game or not? If nothing really work, can you try launch the game from main.exec in mac release instead? It would help me know if the problem come from module issue or os related.
Also when you go to Customize does the thing below keymap say macOS copy?
!! Traceback (most recent call last): !! File "/Users/Emma/PycharmProjects/Madendor/Masendor-0.6.3.5 2/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/PycharmProjects/Madendor/Masendor-0.6.3.5 2/gamescript/game.py", line 218, in init
os.makedirs("/profile")
!! File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/os.py", line 221, in makedirs
mkdir(name, mode)
!! OSError: [Errno 30] Read-only file system: '/profile'