Playground for a future app that digs into AoE2 data and presents it in a user friendly way.
Temporary link for the project using vercel: https://aoe2card.vercel.app/
- https://aoestats.io (well maintained)
- https://aoe2.net (gets outdated)
- https://github.com/denniske/aoe2companion
- github.com/KSneijders/AoE2ScenarioParser
- github.com/pau795/AoE2DatabaseWeb
- github.com/pau795/AoE2DatabaseAndroid
- node v18.*
- It's possible to use
node v14.*
, but thenpnpm v7.*
is required.
- It's possible to use
- pnpm
- Optional (if
tsx
desired):pnpm install -g tsx
(Will tell if environment PATH lacks an entry, fix accordingly).
- Compile project for development:
pnpm i
- install dependencies.pnpm dev
- start server in development mode.
pnpm install -g prettier
for:prettier -w .
(which can be run withpnpm format
as well, being a task inpackage.json
)
- styled-components.vscode-styled-components for Styled Components
- https://github.com/HSZemi/aoe2dat is the source for SiegeEngineers.
SiegeEngineers combine/copy those:
- aoe2techtree project:
- halfon project:
- Pull current data from SeigeEngineers and HSZemi:
- Windows:
> iwr -outf ./src/data/json/data.json https://raw.githubusercontent.com/SiegeEngineers/aoe2techtree/master/data/data.json > iwr -outf ./src/data/json/strings.json https://raw.githubusercontent.com/SiegeEngineers/aoe2techtree/master/data/locales/en/strings.json > iwr -outf ./src/data/json/units_buildings_techs.json https://raw.githubusercontent.com/HSZemi/aoe2dat/master/data/units_buildings_techs.json
- Linux / Mac:
$ wget -P ./src/data/json/data.json https://raw.githubusercontent.com/SiegeEngineers/aoe2techtree/master/data/data.json $ wget -P ./src/data/json/strings.json https://raw.githubusercontent.com/SiegeEngineers/aoe2techtree/master/data/locales/en/strings.json $ wget -P ./src/data/json/units_buildings_techs.json https://raw.githubusercontent.com/HSZemi/aoe2dat/master/data/units_buildings_techs.json
- Windows:
- Format
json
files for uniformness in searches with thefmt
task defined inpackage.json
:pnpm fmt
. - Update current DE build in
./src/data/json/patch.json
(See https://github.com/SiegeEngineers/aoe2techtree/commits/master for the number).
\Steam\steamapps\common\AoE2DE\widgetui\textures\ingame\staticons\
- https://aoestats.io/api/patches/?format=json gives us the latest known patch number, at least known to aoestats.io.
- Sicilians. Several "same" units can be produced from different buildings:
Castle & Donjon
- Pikeman shows as 2 IDs: 358 & 1787.
- Spearman shows as 2 IDs: 93 & 1786.
- Halberdier shows as 2 IDs: 359 & 1788.
- Serjeant shows as 2 IDs: 1660 & 1658.
- Elite Serjeant shows as 2 IDs: 1659 & 1661.
- Huns. Castle upgrade "Marauders" "Enables you to create Tarkans at Stables".
- Goths. Castle upgrade "Anarchy" "Allows Huskarls to be created at the Barracks.".
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptions
property like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommended
toplugin:@typescript-eslint/recommended-type-checked
orplugin:@typescript-eslint/strict-type-checked
- Optionally add
plugin:@typescript-eslint/stylistic-type-checked
- Install
eslint-plugin-react and
add
plugin:react/recommended
&plugin:react/jsx-runtime
to theextends
list