SophieWalden / Grand-Expansion

A little simplistic game about resource management
6 stars 2 forks source link

Issue building factories, Factory image missing? #3

Closed Gageowe closed 5 years ago

Gageowe commented 5 years ago

Traceback (most recent call last): File "C:\Users(my username)\Downloads\Grand-Expansion-master\Grand Expansion\game.py", line 1235, in MainMenu(0) File "C:\Users(my username)\Downloads\Grand-Expansion-master\Grand Expansion\game.py", line 635, in MainMenu game_loop() File "C:\Users(my username)\Downloads\Grand-Expansion-master\Grand Expansion\game.py", line 1153, in game_loop draw(i (640/width),j (640/height) + 160,"Tile",board[j][i],height,width) File "C:\Users(my username)\Downloads\Grand-Expansion-master\Grand Expansion\game.py", line 538, in draw gameDisplay.blit(Images["Factory"],(x,y)) KeyError: 'Factory'

This error appears similar to the issue I had with Cities

Gageowe commented 5 years ago

Iam having the same issue with fishermen too. I made an image for both the factory and the fisherman and it works fine now.

SophieWalden commented 5 years ago

I am very sorry this is happening to you. I have no idea why this bug is happening, but I have it on my list to try to fix. Is this because when you downloaded an updated game.py, it happened that you didn't download the updated images? I'll try to fix it, but it would be nice if you maybe checked that one thing. Sorry it keeps happening to you

-8BitToaster

THB0705 commented 5 years ago

I just redownloaded the package, but it appears that the factory image is now not by default available in the files. Only the super factory is there... When I upgrade a grass tile I can select to produce a factory, but then when I choose to upgrade that factor I get the same error Gageowe, clearly the image of the factory is still missing. It's a shame that simple mistakes like these are breaking the game.

SophieWalden commented 5 years ago

Ok, the issue is fixed. I don't know how this bug is happening as some of the images in my folder aren't there even though I uploaded the factory image a long time ago. I'm sorry this kept happening, but now I checked and added Factory and Fisherman. This issue is fixed

-8BitToaster