Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facility to quickly test save warping #14

Open
Matherunner opened this issue Aug 23, 2016 · 3 comments
Open

Facility to quickly test save warping #14

Matherunner opened this issue Aug 23, 2016 · 3 comments

Comments

@Matherunner
Copy link
Collaborator

Matherunner commented Aug 23, 2016

Inspired by hlstuff's SWT which is a testing tool to quickly save warp from one map to another without the need to manually specify the intermediate maps and landmarks.

In order to figure out the intermediate steps, BXT must have knowledge of an undirected graph linking all maps together. The graph should be stored in a file and specified by

bxt_save_warp_graph filename

The file should contain an undirected graph with maps as vertices and landmarks associated with the edges. It is yet undecided as to what format the file might take.

When save warping, BXT should by default take the path with the least intermediate steps. However this may not always be desirable. Therefore we can consider adding a command that generates an indexed list of all possible paths sorted by the number of steps.

bxt_save_warp_paths dest

This should generate a list that looks like this:

[0] map1 -> map2 -> map5
[1] map1 -> map3 -> map4 -> map5
[2] map1 -> map6 -> map7 -> map8 -> map4 -> map5

To actually save warp, we might have a command that takes the destination map name and an optional index to the path list.

bxt_save_warp dest [index]

Note that this is a cheat command. It should only be enabled with sv_cheats 1.

@YaLTeR
Copy link
Owner

YaLTeR commented Aug 23, 2016

At which point would the map graph be built?

@Matherunner
Copy link
Collaborator Author

I'm not sure what should be responsible of building the graph. It'd either be BXT itself or some external tool.

@YaLTeR
Copy link
Owner

YaLTeR commented Aug 23, 2016

I think building the graph at first invocation of the save warp command would make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants