Exported builds load no town maps (.tscn.remap skipped); Calwen becomes a 1x1 wall and the player is stuck after paying the gate #29
Labels
No labels
playtest
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ai-collab/animrpg202610#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
In an exported build,
MapBook._load_towns()loads no town maps. Every town falls back to a 1×1 all-wall layout. After paying the Calwen gate fee, the player is placed in that stub town and cannot move, leave, or interact with anything.Environment
main@ffcc88c, VERSION0.4.4, Godot 4.7godot4 --headless --export-pack "Windows Desktop" animrpg.pck). No export templates were available, so no.exewas built or run.Cause
scripts/world/map_book.gd,_load_towns():On export, Godot converts text scenes to binary and lists them as
<name>.tscn.remap. Every file fails the.tscncheck, so_townsstays empty.town_layout()then returns its fallback (map_book.gd~190–202): width 1, height 1, cells["wall"], no doors, spawn and gate at (0,0).Verified repro (export pack)
Probe script printing
DirAccess.get_files_at("res://scenes/maps/towns")andMapBook.town_layout(calwen):--path .)--main-pack animrpg.pck)calwen.tscn, … (17)calwen.tscn.remap, … (17)Effect in play (follows from the code above)
_enter_townsucceeds and charges the 24-gold fee (tier 1), leaving a new character at Gold 0. The hero is placed at (0,0) of the stub town._celltreats every out-of-bounds tile aswall, so_walkablerefuses every step._town_interact: the tile is notgateand there are no doors, so it prints_say("The street is quiet.")(game_manager.gd:726). The player cannot leave.User report (Windows exe, not independently run)
Brandon: when he enters the first town he cannot move anywhere, leave, progress, or interact; nothing allows northward movement; "I get stuck at the guard". His screenshot shows:
Calwen,Day 07:02,Gold 0,Ren F 17/18The street is quiet., with no dialogue or advance indicatorThis matches the stub-town behavior above.
Expected
An exported build loads the same town maps as a source run. Entering Calwen places the hero at the south or east landing of the 28×28 map with working doors and gate.
Why the automated playtester missed it
tools/playtest/run.shruns the project from source (--path .), where the.tscnfiles exist under their own names. The playtester never runs an exported build, so it never hits the remap listing.Corrected on branch
0.4.4/city-gate-court(commitb54b8fa), pull request #30.MapBookkept a town file only when the name ended in.tscn. The Windows export pack lists each town as<id>.tscn.remap(17 files, and no plain.tscn). Those names were skipped, so every town fell back to a 1×1 wall and the street read as quiet.The loader strips
.remapand loadsscenes/maps/towns/<id>.tscn. A repeated name loads once.Verified with
godot4 --headless --export-pack "Windows Desktop"andtools/probes/town_pack.gdon that pack: plain=0, remap=17, Calwen 30×30 with 9 doors, spawn (14, 26), south gate (14, 29), east gate (29, 14). Malrec is 46×54. Pelden is 20×20. The source tree lists 17.tscnfiles and the same layouts.Calwen is 30×30 on this branch because the south and east courts are part of the map. The 28×28 figure in the report is the walled interior.
This pull request uses Fixes #29, so the issue closes when the pull request merges.