Map Editor in Python - Part 3 - Pygame Adventure Game 19

  Рет қаралды 352

Alexander Farrell

Alexander Farrell

Күн бұрын

Пікірлер: 10
@anthonydrakefordshadow
@anthonydrakefordshadow 6 ай бұрын
You’re back 🎉 What an awesome day 🥳
@alexanderfarrelltech
@alexanderfarrelltech 6 ай бұрын
That is so kind, thank you so much for the encouragement. And really all the encouragement this whole time. This was the most difficult one to get done, but now its done. More to come.
@anthonydrakefordshadow
@anthonydrakefordshadow 6 ай бұрын
@@alexanderfarrelltech I don’t have to work this evening so I actually get to sit and absorb 🤩
@Nubbley
@Nubbley 5 ай бұрын
ive watched this twice over. idk why but im getting "IndexError: list index out of range". when i try to go to forest_center.map in game it crashes, as well as when i select forest_center.map in the map editor. "Error parsing line: 5,9. list index out of range" Traceback (most recent call last): File "/Users/*/Desktop/RPG Pygame/src/core/area.py", line 99, in load_file y = int(items[2])
@Nubbley
@Nubbley 5 ай бұрын
File "/Users/*/Desktop/RPG Pygame/src/main.py", line 13, in e.run() File "/Users/*/Desktop/RPG Pygame/src/core/engine.py", line 76, in run a.update() File "/Users/*/Desktop/RPG Pygame/src/components/player.py", line 153, in update t.on(self.entity) File "/Users/*/Desktop/RPG Pygame/src/components/teleporter.py", line 15, in super().__init__(lambda other: teleport(area_file, int(player_x), int(player_y)), x, y, width, height) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/*/Desktop/RPG Pygame/src/components/teleporter.py", line 9, in teleport player.x = player_x*32 ^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'x'
@Nubbley
@Nubbley 5 ай бұрын
Error parsing line: ,11,1. invalid literal for int() with base 10: '' the map works if i delete and replace. however when i go into the editor, i cant go back.
@Nubbley
@Nubbley 4 ай бұрын
For anyone wondering i fixed the bug. center_forest.map has tiles missing in it. you need to fill the map out with tiles in the bottom right of the map, as well as 1 extra tile outside of the zone before saving it as a binary file otherwise it creates a gap in the code and is showing that there is nothing there to read.
@alexanderfarrelltech
@alexanderfarrelltech 4 ай бұрын
Thank you so much for finding this and sending the bug. I think I'm going to patch the forest_center map on the branch just in case anyone runs into this issue in the future. Sorry you had to go through the trouble in finding this bug with the hole in the forest_center.map file.
@Nubbley
@Nubbley 4 ай бұрын
@@alexanderfarrelltech i struggle with bug fixes so it was fun trying to figure it out!
@Nubbley
@Nubbley 4 ай бұрын
after fixing my crashes i noticed 2 things going on. 1 - you cannot enter dialogue/mine/chopping if you have a weapon equipped. and 2 - if you unequip an item it drops it on the ground while still holding in inventory, duplication.
Hands-On Power BI Tutorial 📊 Beginner to Pro [Full Course] 2023 Edition⚡
3:02:18
HELP!!!
00:46
Natan por Aí
Рет қаралды 66 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 209 МЛН
Animations in Python - Pygame Adventure Game 20
28:42
Alexander Farrell
Рет қаралды 590
CLI SURVIVAL GAME in C 🌴
48:17
Alexander Farrell
Рет қаралды 113
Rendering voxels with raytracing,  rust + wgpu (Stream 50)
2:36:45
neropatti stream archive
Рет қаралды 110
How I Make Sprites in GIMP
24:05
Alexander Farrell
Рет қаралды 126
How I make chess videos
2:40:30
tangentstream
Рет қаралды 14
The Quest To Make Unbreakable Glass
22:23
Veritasium
Рет қаралды 2,7 МЛН
The ultimate introduction to Pygame
3:47:58
Clear Code
Рет қаралды 3 МЛН
Chopping Trees in Python - Pygame Adventure Game - 12
27:04
Alexander Farrell
Рет қаралды 495
Coding an Inventory - Pygame Adventure Game 11
37:04
Alexander Farrell
Рет қаралды 999