mmatyas / supermariowar

A fan-made multiplayer Super Mario Bros. style deathmatch game
http://smwstuff.net
434 stars 73 forks source link

Level editor doesn't save #268

Closed Shadowblitz16 closed 6 months ago

Shadowblitz16 commented 6 months ago

The Level editor is saying it's saving but my map in not found.

I even moved the data folder to my home folder so there wouldn't be permission issues.

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 6.5.0-18-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: RENOIR
mmatyas commented 6 months ago

Hi! If the level editor is unable to save the map, you should see some error message in the log (eg. when run from the terminal). Could you post the output of the editor?

Shadowblitz16 commented 6 months ago

@mmatyas

-------------------------------------------------------------------------------
 SMW 2.0 Level Editor
-------------------------------------------------------------------------------

---------------- startup ----------------
[gfx] SDL 2.0.20 loaded.
[gfx] SDL_image 2.0.5 loaded.
[gfx] Renderer: opengl, accelerated
[gfx] Game window initialized (640x480, 32bpp)
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2Extended/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2Extended/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2Extended/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Expanded2/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Expanded2/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Expanded2/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended3/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended3/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended3/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1Extended2/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1Extended2/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1Extended2/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended4/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended4/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended4/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1Extended/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1Extended/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB1Extended/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended2/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended2/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorldExtended2/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorld/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorld/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SuperMarioWorld/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB3Extended/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB3Extended/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB3Extended/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Classic/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Classic/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Classic/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Expanded/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Expanded/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/Expanded/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/YoshisIsland/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/YoshisIsland/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/YoshisIsland/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2Extended2/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2Extended2/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB2Extended2/small.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB3/large.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB3/medium.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/SMB3/small.png...done

---------------- loading graphics ----------------
loading sprite (mode 3) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_tile_types.png...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_transparent_tiles.png ...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_background_levels.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_tileset_levels.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_eyecandy.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_warp.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_warp_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_warp_thumbnail.png...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_platform_path.png ...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_selectedtile.png ...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_nospawntile.png ...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_noitemspawntile.png ...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_platformstarttile.png ...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_selectedtile.png ...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_mapitems.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_mapitems_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_mapitems_thumbnail.png...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_dialog.png ...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_shade.png ...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/tile_animation.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/tile_animation_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/tile_animation_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/blocks.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/blocks_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/blocks_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/unknown_tile.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/unknown_tile_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/tilesets/unknown_tile_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/powerups/large.png...done
Loading sprite (mode 2) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_powerup_selector.png ...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/leveleditor/leveleditor_hidden_marker.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/modeobjects/flagbases.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/modeobjects/racegoal.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/fireball.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/fireball_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/fireball_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/rotodisc.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/rotodisc_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/rotodisc_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/bulletbill.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/bulletbill_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/bulletbill_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/flame.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/flame_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/flame_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/pirhanaplant.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/pirhanaplant_preview.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/hazards/pirhanaplant_thumbnail.png...done
loading sprite (mode 1) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/awards/killsinrownumbers.png...done
loading font /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/fonts/font_small.png ... done
loading font /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/fonts/font_large.png ... done

---------------- load map ----------------
loading map /home/shadowblitz16/Documents/Games/SuperMarioWar/maps/0smw.map [v1.8.0.1] ... done
loading sprite (mode 3) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/backgrounds/Land_Classic.png...done

---------------- ready, steady, go! ----------------
entering level editor loop...
saving map /home/shadowblitz16/Documents/Games/SuperMarioWar/maps/0smw.map ... 
 ERROR: couldn't save map
saving map /home/shadowblitz16/Documents/Games/SuperMarioWar/maps/test.map ... 
 ERROR: couldn't save map

 ERROR: Couldn't open map
loading sprite (mode 3) /home/shadowblitz16/Documents/Games/SuperMarioWar/gfx/packs/Classic/backgrounds/Land_Classic.png...done
saving map /home/shadowblitz16/Documents/Games/SuperMarioWar/maps/test.map ... 
 ERROR: couldn't save map
mmatyas commented 6 months ago

Yeah, hard to tell hat could be wrong, it does seem like a permission error. Not sure how the game was installed, but based on the path in your other issue (/usr/local/games/smw-worldedit), it seems to be a system package? You mentioned moving the data folder, but are you sure the files and subdirectories have the proper ownership and permission settings?

Shadowblitz16 commented 6 months ago

@mmatyas yep that was the issue. I recursivly changed permissions of the SuperMarioWar folder I moved everything too and the level now saves.

I will check if it fixes the world editor