Open dtdannen opened 2 years ago
Some notes regarding running sprints on local device:
The webserver fails to automatically reload DCSS upon changing anything in the repository. So you could delete most files and create junk, and it will not affect the webserver, regardless of restarting the webserver or not.
I fixed this issue locally by running "make WEBTILES=y" to recompile DCSS and by waiting for it all to reload, then starting webserver again. That being said, this is a really slow solution. Would like to know a faster way to refresh it.
Filename does not seem to matter for the sprints. I renamed red_sonja to blue_sonja and it still just displayed it as red sonja and worked fine.
Not quite sure how to make the agent play the sprint specifically rather than start a normal run.
Easy code snippet for me to add sprints to the right folder from some custom sprints folder like on the repository " cd customSprintFileLocation cp ./customSprintFileName ~/dcss/crawl/crawl-ref/source/dat/des/sprint "
where customSprintFileLocation is whatever directory you're taking your custom sprint from( could be ./dcss-ai-wrapper/custom_sprints)
and where customSprintFileName is whatever your sprint is called
assuming the dcss super folder is located in your root directory (~). Otherwise, replace the ~ with the correct path.
The sprints that come with the game are located here: https://github.com/crawl/crawl/tree/master/crawl-ref/source/dat/des/sprint
The custom sprints we've made at various points in time are located here: https://github.com/dtdannen/dcss-ai-wrapper/tree/master/custom_sprints
All you need to do is make a new sprint file in the folder crawl-ref/source/dat/des/sprint/ and then run the webserver.
As an example you can take the hellosprint.des in our custom sprints, rename it to hello_sprint.des (I'm not sure if name matters, it may need to match the name in the file contents itself) and move it into the docker container's ..crawl-ref/source/dat/des/sprint/ folder, then start up the webserver like the normal. I think it should automatically show up at the end of the list in the sprints.
I just tested this myself and got it to work. I need to update the README on the project with these instructions. Great question, thank you for asking!
If you aren't able to get it to work, please let me know. On my docker container, I had to install nano to create a new sprint file.