Giter Club home page Giter Club logo

Comments (74)

remance avatar remance commented on May 22, 2024

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?

from masendor.

remance avatar remance commented on May 22, 2024

Or maybe you can try moving the game folder to another location that does not have permission locked.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

ok

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

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
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/gamescript/game.py", line 640, in init
self.genre_ui_dict = make_genre_specific_ui(self.main_dir, self.screen_scale, self.genre)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/gamescript/common/game/setup/make_genre_specific_ui.py", line 8, in make_genre_specific_ui
genre_battle_ui_image = load_images(main_dir, screen_scale, [genre, "ui", "battle_ui"], load_order=False)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/gamescript/common/utility.py", line 63, in load_images
load_order_file = [f for f in os.listdir(dir_path) if f.endswith("." + "png")] # read all file
!! FileNotFoundError: [Errno 2] No such file or directory: '/users/emma/pycharmprojects/masendor 2.0/masendor-0.6.3.5/gamescript/common/ui/battle_ui'

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

remance avatar remance commented on May 22, 2024

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)

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

I got this: /Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5

from masendor.

remance avatar remance commented on May 22, 2024

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?

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

yes
It says 0.6.3.5

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

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
runmenu = game.Game(main_dir, error_log)
File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/gamescript/game.py", line 641, in init
self.genre_ui_dict = make_genre_specific_ui(self.main_dir, self.screen_scale, self.genre)
File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/gamescript/common/game/setup/make_genre_specific_ui.py", line 8, in make_genre_specific_ui
genre_battle_ui_image = load_images(main_dir, screen_scale, [genre, "ui", "battle_ui"], load_order=False)
File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5/gamescript/common/utility.py", line 63, in load_images
load_order_file = [f for f in os.listdir(dir_path) if f.endswith("." + "png")] # read all file
FileNotFoundError: [Errno 2] No such file or directory: '/users/emma/pycharmprojects/masendor 2.0/masendor-0.6.3.5/gamescript/common/ui/battle_ui'

from masendor.

remance avatar remance commented on May 22, 2024

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/.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

I got /Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.5

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

Also there is no battle_ui in /users/emma/pycharmprojects/masendor 2.0/masendor-0.6.3.5/gamescript/common/ui/battle_ui

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

remance avatar remance commented on May 22, 2024

I add a new release version. Not sure if this error will be fixed properly though.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/gamescript/game.py", line 686, in init
self.change_game_genre(self.genre)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/gamescript/game.py", line 860, in change_game_genre
genre_setting = importlib.import_module("gamescript" + new_genre + "genre_setting")
!! File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 973, in _find_and_load_unlocked
!! ModuleNotFoundError: No module named 'gamescript/users/emma/pycharmprojects/masendor 2'

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

remance avatar remance commented on May 22, 2024

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?

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

Oh I did delete the two dots

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

now this is happening

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/gamescript/game.py", line 686, in init
self.change_game_genre(self.genre)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16/gamescript/game.py", line 860, in change_game_genre
genre_setting = importlib.import_module("gamescript." + new_genre + ".genre_setting")
!! File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 961, in _find_and_load_unlocked
!! File "", line 219, in _call_with_frames_removed
!! File "", line 1014, in _gcd_import
!! File "", line 991, in _find_and_load
!! File "", line 973, in _find_and_load_unlocked
!! ModuleNotFoundError: No module named 'gamescript./users/emma/pycharmprojects/masendor 2'

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

macOS monterey version 12.1

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

ok

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

Please tell me when you are finished

from masendor.

remance avatar remance commented on May 22, 2024

Sure, so far I have finished with Linux testing and going to do macOS next.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

ok

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

any luck>

from masendor.

remance avatar remance commented on May 22, 2024

Working on it. Having a bit of trouble installing some python module in macOS for some reason.

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

how do you use the package

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

also still no work

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16m7/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16m7/gamescript/game.py", line 704, in init
self.create_unit_slot(0, 0, range(0, 64), start_pos) # make player custom unit slot
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16m7/gamescript/common/game/create_unit_slot.py", line 7, in create_unit_slot
dummy_subunit = subunit.EditorSubunit(troop_id, game_id, self.unit_build_slot,
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-0.6.3.16m7/gamescript/subunit.py", line 702, in init
self.image = self.block
!! AttributeError: 'EditorSubunit' object has no attribute 'block'

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

remance avatar remance commented on May 22, 2024

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?

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

I ran main.py

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

what am I supposed to download anyways?

from masendor.

remance avatar remance commented on May 22, 2024

If you download Mac_Dream.Decision.0.6.3.16.zip, then it is correct. Can you try run main.exec?

from masendor.

remance avatar remance commented on May 22, 2024

actually how come there is main.py in the release download? I don't think it is in there.

from masendor.

remance avatar remance commented on May 22, 2024

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

from masendor.

remance avatar remance commented on May 22, 2024

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?

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

ok

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

How to get the exact version of the requirements

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

also I'm getting this:
!! Traceback (most recent call last):
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-main/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-main/gamescript/game.py", line 702, in init
self.create_unit_slot(0, 0, range(0, 64), start_pos) # make player custom unit slot
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-main/gamescript/common/game/create_unit_slot.py", line 7, in create_unit_slot
dummy_subunit = subunit.EditorSubunit(troop_id, game_id, self.unit_build_slot,
!! File "/Users/Emma/PycharmProjects/Masendor 2.0/Masendor-main/gamescript/subunit.py", line 698, in init
self.image = self.block
!! AttributeError: 'EditorSubunit' object has no attribute 'block'

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

remance avatar remance commented on May 22, 2024

The terminal for requirements installation need to be in the game directory too by the way.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

I already got the all the requirements

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

but it still no work

from masendor.

remance avatar remance commented on May 22, 2024

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.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

Also when you go to Customize does the thing below keymap say macOS copy?

from masendor.

remance avatar remance commented on May 22, 2024

Unfortunately I can't check my macOS until next month. By configuration do you mean in pycharm project configuartion? Here is mine in windows (if it helpful).

image

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

no

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

in the main menu

from masendor.

remance avatar remance commented on May 22, 2024

No idea what you mean by main menu. Can you post screenshot?

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

Screen Shot 2022-11-22 at 4 39 18 PM

from masendor.

remance avatar remance commented on May 22, 2024

That setting affect only the keyboard key mapping I think. So that is probably correct setting.

from masendor.

remance avatar remance commented on May 22, 2024

Not quite sure if it different from mac pycharm or not but the configuration I meant is the one where you run the project.

image

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

oh wait did you open it on github

from masendor.

remance avatar remance commented on May 22, 2024

No, I have the project in my local folder.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

ok

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

It works now, but it's very slow and most of the maps don't work

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

and a lot of errors

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

!! Traceback (most recent call last):
!! File "/Users/Emma/Documents/GitHub/Masendor/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/game.py", line 718, in init
self.run()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/game.py", line 1110, in run
self.menu_map_select(mouse_left_up, mouse_left_down, mouse_scroll_up, mouse_scroll_down, esc_press)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/menu_map_select.py", line 62, in menu_map_select
self.change_to_source_selection_menu()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/change_to_source_selection_menu.py", line 44, in change_to_source_selection_menu
team_army, team_leader = self.read_battle_source(
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/read_battle_source.py", line 12, in read_battle_source
self.team_pos[row["Team"]].append([int(item) for item in row["POS"].split(",")])
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/read_battle_source.py", line 12, in
self.team_pos[row["Team"]].append([int(item) for item in row["POS"].split(",")])
!! ValueError: invalid literal for int() with base 10: ''

from masendor.

remance avatar remance commented on May 22, 2024

How did you fix it? And yeah most of maps not working right now after I start implementing arcade mode. Only try testmap for now.

By the way did you try disable animation in the option menu yet? Hopefully it should help make the game faster a bit.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

I got this while trying to use testmap in tactical:
2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 08:47 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit!! Traceback (most recent call last):
!! File "/Users/Emma/Documents/GitHub/Masendor/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/game.py", line 718, in init
self.run()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/game.py", line 1113, in run
self.menu_team_select(mouse_left_up, mouse_left_down, mouse_scroll_up, mouse_scroll_down, esc_press)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/menu_team_select.py", line 78, in menu_team_select
self.start_battle()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/start_battle.py", line 11, in start_battle
self.battle_game.run_game()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/battle.py", line 587, in run_game
self.change_battle_state()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/tactical/battle/change_battle_state.py", line 46, in change_battle_state
this_subunit.start_set(self.camera_zoom, self.subunit_animation_pool)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/subunit/start_set.py", line 8, in start_set
self.swap_weapon()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/subunit/swap_weapon.py", line 43, in swap_weapon
self.process_trait_skill()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/subunit/process_trait_skill.py", line 11, in process_trait_skill
self.skill = skill_convert(self, self.skill, add_charge_skill=True)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/subunit/process_trait_skill.py", line 34, in skill_convert
skill_dict = skill_dict | leader_skill_dict
!! TypeError: unsupported operand type(s) for |: 'dict' and 'dict'

from masendor.

remance avatar remance commented on May 22, 2024

The operand type(s) for |: 'dict' and 'dict' error should not happen unless you use python older than version 3.9. Did you still use python 3.8?

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

yes

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

it works now

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

but how to control your characters

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit2022-11-27 18:49 -- Empty method is called
/Users/Emma/Documents/GitHub/Masendor/gamescript/common/battle/generate_unit.pyAt Line35:generate_unit!! Traceback (most recent call last):
!! File "/Users/Emma/Documents/GitHub/Masendor/main.py", line 12, in
runmenu = game.Game(main_dir, error_log)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/game.py", line 718, in init
self.run()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/game.py", line 1113, in run
self.menu_team_select(mouse_left_up, mouse_left_down, mouse_scroll_up, mouse_scroll_down, esc_press)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/menu_team_select.py", line 78, in menu_team_select
self.start_battle()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/game/start_battle.py", line 11, in start_battle
self.battle_game.run_game()
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/battle.py", line 942, in run_game
self.subunit_updater.update(self.current_weather, self.dt, self.camera_zoom,
!! File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pygame/sprite.py", line 539, in update
sprite.update(*args, **kwargs)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/subunit.py", line 588, in update
self.status_update(weather=weather)
!! File "/Users/Emma/Documents/GitHub/Masendor/gamescript/common/subunit/status_update.py", line 207, in status_update
self.special_effect[effect][0][1] = True
!! KeyError: 2

from masendor.

remance avatar remance commented on May 22, 2024

Depend which mode you play. If tactical you can move them similar to other rts. If arcade mode move them via wasd and mouse click for attack. Which map the last error occur?

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

I think it was tactical

from masendor.

remance avatar remance commented on May 22, 2024

Ok this error should be fixed in the new update. Thanks for the report.

from masendor.

Hamster-lord avatar Hamster-lord commented on May 22, 2024

ok

from masendor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.