Sopel97 / gtasa_firefighter_simulator

A simulator for firefighter submission in GTA San Andreas.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTA San Andreas Firefighter Simulator

This is a faithful reimplementation of the GTA San Andreas in-game firefighter submission generator. It also exposes the in-game node data for pathfinding on roads (though, as of 2023-04-17, it requires more work to properly reflect common paths that don't follow the road lanes)

Requirements

  • Python 3.6.8 (may run on lower, but not tested)
  • pip install -r requirements.txt

Usage

See python main.py --help, and ./examples/ for invocations.

Examples

Results of running python multi_main.py examples/all_commands.txt (2023-04-18), cropped to save space, can be found at https://drive.google.com/drive/folders/1VNjB-6eLX4UGel1yi5Slw0M_nIi_VQJ1?usp=sharing.

TODO

Model and algorithms

  • IMPORTANT: Improve the connectivity in the graph for pathfinding. Currently it only follows road lanes, which is not optimal in most cases.
  • Figure out a good metric for including death-warps
  • Figure out if it's possible to take the driving model into account when pathfinding (for example the time needed for a U-turn)
  • Figure out what's up with some nodes, like for example that weird node ellipse on water north-east of SF.
  • Research better heuristics for guiding simulation of all the levels at once?

Presentation

  • Smoothen the heatmap
  • Add interactive mode?

Docs

  • ff.md

About

A simulator for firefighter submission in GTA San Andreas.


Languages

Language:Python 100.0%