Skip to content

An application that visualizes key locations on the game map , items spawned in a specific location , and the locations that spawn a specific item from a dataset of 100k+ randomly generated game seeds.

Notifications You must be signed in to change notification settings

awesomepack/ALTTPR-Item-Distribution

Repository files navigation

ALTTPR-Item-Distribution

Project Scope

Statement of Work

Develop a web application using python to help clients visualize the distribution of items in the randomly generated maps of "A Link To the Past Randomizer"

Deliverables

  • Dataset of 100k+ randomly generated game seeds
  • Python Web application
  • Interactive map of the game with major item regions circled
  • Visualization of item distribution of selected region
  • Visualization of location distribution of selected item

Constraints

This project was set to be completed in two weeks. Conseqeuntly , focus was on producing raw working versions of the deliverables that could be improved upon once in production.

Members: Jason, Merari, Dinh

Analysis of the distribution of items in The Legend of Zelda: a Link to the Past VeeTorp Randomizer

Loading Sample Data

Prerequisites

  • Create a Postgres Database named alttpr

  • Create a file login.py with two entries:

    • postgres_username

    • postgres_password

Execution

Expected Behavior

Once you run locations.py there should be a new table in the alttpr database named location-metadata with 68 rows of data containing columns for seed_guid, map, x and y at a minumum

No longer used by app.py. Instead app.py serves the region/location information from regions.json: a hand stitched restructure of the former location-metadata database

To run: Import or execute the data.py script in an interactive python terminal and then use the loadSample() function to test the database writing, or loadAllData(folderpath) to load files in bulk.

Can be run either via python app.py or via flask run.

Flask Routes
  • /viz1 returns json describing the pins to be drawn on the map and the item locations that those pins represent

  • /playthrough/<seed_guid> returns a json representation of a sample playthrough guaranteed to be able to beat the given seed

  • /regions given POST request: returns the counts of items found at any of the locations in the list given in the request

  • /items/<item_name> returns a count of how often that item appears at each location

  • /viz4 dummy route to eventually serve seed_guid values for use in a dropdown to pair with the /playthrough/<seed_guid> route

About

An application that visualizes key locations on the game map , items spawned in a specific location , and the locations that spawn a specific item from a dataset of 100k+ randomly generated game seeds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published