Skip to content

(suggestion) make map saves per-map #497

Open
@Fennecai

Description

@Fennecai

It doesnt make much sense, at least to me, that a map save will apply to maps that arent the same map. I cant personally think of any use case where that would be useful other than maybe carrying a map save over to a day/night version of an otherwise identical map. In most cases, when i save a map, i actually dont want it to load the same file on other maps because props will be in weird mis-matched positions and such.

my suggestion is to modify the map save functionality in a way where it'll save and load per-map, based on the current loaded map. This should be relatively straight-forward to do, since i actually modified my copy of advdupe2 to do exactly this.

all i did was point all the relevant file.write calls to a subfolder of advdupe2_maps based on game.GetMap(), instead of only writing directly into advdupe2_maps.. so for example, if i'm playing on gm_mobenix, instead of saving autoload.txt to data/advdupe2_maps/autoload.txt, it now saves to data/advdupe2_maps/gm_mobenix/autoload.txt.

I also made the relevant changes to all the places where it loads the file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions