Test Plan - mdj117/DynamicCities GitHub Wiki
#Dynamic Cities
##Test: Fetching and Running Dynamic Cities
- Use gradlew fetchModuleCities
- Use gradlew fetchModuleDynamicCities
- Use gradlew fetchModuleMedievalCities
- Run the game (gradlew game)
- Activate the module Medieval Cities
- Activate the module Dynamic Cities
- Check if the World generator DynCitiesPerlin is visible
##Test: Dynamic Cities Generation
- Run the game (gradlew game)
- Activate the Medieval cities and Dynamic Cities module
- Use the Medieval Gameplay template
- Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
- Build the world
- Walk over till you find a suitable piece of land near a water body (or a city) or ( x(-225.89091) y(54.236347) z(-150.65865))
- Check if the city's population (The number) is changing
##Test: Dynamic Cities Population
- Run the game
- Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
- Walk over to the city at x(-225.89091) y(54.236347) z(-150.65865))
- Set world time dilation to 100 by using setTimeDilation 100 in the in game console
- Check if world population increases
- Monitor population increase for 7 day cycles
- After 7 day cycles it should be 21806
##Test: Dynamic Cities City Position
- Run the game
- Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
- Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
- Confirm City position by using showPosition
##Test: Dynamic Cities Minimap (Visible)
- Run the game
- Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
- Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
- Check if the blue circle is visible on the minimap where the city should be
- Check if the blue circle increases over time (2 day cycles atleast)
##Test: Dynamic Cities Minimap (Zooming)
- Run the game
- Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
- Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
- Check if the blue circle is visible on the minimap where the city should be
- Check if the blue circle increases over time (2 day cycles atleast)
- Use the slider under the minimap to Zoom in (set value over 0)
- Blue circle should enlarge
- Use the slider under the minimap to Zoom out (set value less than 0)
- Blue circle should shrink
##Test: Dynamic Cities Population when outside of the town
- Run the game
- Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
- Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
- Set world time dilation to 50 by using setTimeDilation 50 in the command prompt
- Check if world population increases
- Monitor population increase for 2 day cycles
- Leave the town
- Check if you're outside of the blue area in the minimap
- Check if the leaving has been recorded in the in game console
- Check Population growth
- Compare the original population (when in the city) vs when returning into the city
- For half a day cycle population growth should be 900
##Test: Dynamic Cities Entering and leaving the town
- Run the game
- Use this seed yDwJHXSkqpr3gfvgtWtRtuOO5it8X5Yy
- Walk over to a city at x(-225.89091) y(54.236347) z(-150.65865)
- Leave the town
- Check if you're outside of the blue area in the minimap
- Check if the leaving has been recorded in the in game console
- Enter the town
- Check if you're inside of the blue area in the minimap
- Check if the entering has been recorded in the in game console