Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Create parser and minimal dashboard #1

Merged
merged 31 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
70275ca
Add python workflows
joschrag Dec 13, 2024
1e2ac7d
Add README.md
joschrag Dec 13, 2024
e66571f
Fix whitespacing
joschrag Dec 13, 2024
7eb3614
Add existing memory files in yaml format
joschrag Dec 13, 2024
6f9e2be
Merge branch 'feature/create-parser-and-minimal-dashboard' of https:/…
joschrag Dec 13, 2024
1004143
Add Building class to manage building related tasks
joschrag Dec 14, 2024
4a2bb7a
Read one memory chunk per cycle and add method to calculate building …
joschrag Dec 15, 2024
e89be9d
Add minimal state machine to detect crusader gamestate
joschrag Dec 15, 2024
01d3a14
Add functions to read single and bulk values from memory
joschrag Dec 15, 2024
f97aee6
Add Stronghold images
joschrag Dec 20, 2024
5264225
Add stat memory addresses of each lord
joschrag Dec 20, 2024
621d887
Add a namelist for buildings and units
joschrag Dec 20, 2024
821f67b
Add memory addresses for entities
joschrag Dec 20, 2024
0df9f42
Renaming module to parser
joschrag Dec 20, 2024
e60bbfe
Add tests folder
joschrag Dec 20, 2024
66da5cc
Fix functions only reading first byte and add dtype parameter
joschrag Dec 20, 2024
cee2536
Setup module variables
joschrag Dec 20, 2024
1b9273e
Setup logging for project
joschrag Dec 20, 2024
f4a8c03
Adjust data types for memory reading
joschrag Dec 20, 2024
4a500e6
Create class to read all lord specific stats
joschrag Dec 20, 2024
6898e0b
Create class to read all units and calculate basic unit statistics
joschrag Dec 20, 2024
a3a1b1e
Add some css color definitions
joschrag Dec 20, 2024
59a173f
Create app for web dashboard
joschrag Dec 20, 2024
c5d8a2b
Update pre-commit checks
joschrag Dec 20, 2024
5352604
Add isort and gitleaks to pre-commit checks
joschrag Dec 20, 2024
71de2b7
Add callbacks to read data from memory and store in app
joschrag Dec 20, 2024
67148fa
Add callbacks to plot graphs from stored data
joschrag Dec 20, 2024
055d3e5
Add callbacks to handle UI changes
joschrag Dec 20, 2024
af55f4a
Add main page
joschrag Dec 20, 2024
1139506
Start app on module execution
joschrag Dec 20, 2024
781dc7b
Add db folder
joschrag Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a namelist for buildings and units
  • Loading branch information
joschrag committed Dec 20, 2024
commit 621d887c268775b0fc881cf442aab55b992ca237
315 changes: 315 additions & 0 deletions memory/names.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,315 @@
Buildings:
1: hovel
2: house
3: woodcuttershut
4: oxtether
5: ironmine
6: pitchrig
7: huntershut
8: mercenarypost
9: barracks
10: stockpile
11: armory
12: fletcher
13: blacksmith
14: poleturner
15: armourer
16: tanner
17: bakery
18: brewery
19: granary
20: quarry
21: quarrypile
22: inn
23: apothecary
24: engineerguild
25: tunnelerguild
26: marketplace
27: well
28: oilsmelter
29: siege_tent
30: wheat_farm
31: hop_farm
32: apple_farm
33: dairy_farm
34: mill
35: stables
36: chapel
37: church
38: cathedral
39: unused
40: keep_one
41: keep_two
42: keep_three
43: keep_four
44: keep_five
45: large_gatehouse
46: small_gatehouse
47: main_wood
48: postern_gate
49: drawbridge
50: tunnel
51: camp_fire
52: signpost
53: parade_ground
54: s_fballista
55: campground
56: parade_ground
57: parade_ground
58: parade_ground
59: parade_ground
60: gatehouse
61: tower
62: gallows
63: stocks
64: witch_hoist
65: maypole
66: garden
67: killingpit
68: pitchditch
69: unused
70: waterpot
71: keepdoor_left
72: keepdoor_right
73: keepdoor
74: tower_one
75: tower_two
76: tower_three
77: tower_four
78: tower_five
79: unused
80: s_catapult
81: s_trebuchet
82: s_batteringram
83: s_siegetower
84: s_shield
85: unused
86: s_mangonel
87: s_balista
88: unused
89: unused
90: unused
91: cesspit
92: burningstake
93: gibbet
94: dungeon
95: stretchingrack
96: rack_flogging
97: choppingblock
98: dunkingstool
99: dogcage
100: statue
101: shrine
102: bee_hive
103: dancingbear
104: pond
105: bear cave
106: outpost
107: outpost
Units:
1: artifacts
2: artifacts
3: artifacts
4: artifacts
5: artifacts
6: artifacts
7: artifacts
8: artifacts
9: artifacts
10: artifacts
11: artifacts
12: artifacts
13: artifacts
14: artifacts
15: artifacts
16: artifacts
17: peasant
18: europ archer
19: woodcutter
20: fletcher walking
21: ox
22: black humanoid mess
23: fleshy something
24: black humanoid mess
25: stone mason quarry worker
26: windmillboy inside
27: fletcher working
28: artifacts
29: palm tree falling
30: palm tree falling
31: birch tree falling
32: quarry ox leader
33: farm worker
34: ladder from ladderman
35: ladder from ladderman
36: baker
37: windmillboy outside
38: artifacts
39: spearman
40: pikeman
41: crossbowman
42: swordsman
43: maceman
44: knight horse
45: artifacts
46: artifacts
47: some worker
48: artifacts
49: artifacts
50: brewery stirring shadow
51: brewery stirring
52: artifacts
53: brewery woman walking
54: artifacts
55: artifacts
56: artifacts
57: something inside
58: swordsmith inside
59: armourer outside
60: artifacts
61: iron mine worker
62: catapult firing
63: cow
64: poleturner inside
65: pitchrig worker inside
66: baker shoving bread
67: wood log being cut
68: tanner inside
69: tanner inside
70: worker and tree
71: worker and tree
72: worker and tree
73: pitchworker walking
74: poleturner with pike
75: tanner with leatherarmour
76: different flags
77: horse
78: merchant walking
79: some shadow
80: some shadow
81: unknown person walking and laying down
82: siege tent
83: mangonel
84: trebuchet loading
85: glitchy worker
86: engineer (with shovel)
87: artifacts
88: hunter / ... / wheel of cheese
89: hunter (with animal)
90: skinned animal (by hunter)
91: deer
92: lion
93: rabbit
94: camel
95: dog
96: priest
97: farm tree stages + something
98: horse in stable
99: castle lady
100: europ lord
101: jester
102: armourer (carrying iron)
103: armourer hammering
104: shields being stacked
105: shadow of tunneler
106: tunneler
107: artifacts
108: monk shadow
109: monk
110: knight riding
111: engineer filling pitch shadows
112: engineer filling pitch shadows
113: engineer filling pitch
114: maypole idle
115: maypole
116: dancing bear
117: dancing bear
118: dancing bear
119: dancing bear
120: tower ballista firing
121: shield walking
122: part of something
123: part of battering ram
124: parts of siege tower
125: chicken shadow
126: chicken
127: mother with child (hovel)
128: child (male)
129: child (female)
130: tunneler building tunnel
131: jester juggling
132: fireeater
133: healer
134: cow landing
135: cow landing 2
136: artifacts
137: artifacts
138: artifacts
139: artifacts
140: artifacts
141: artifacts
142: artifacts
143: some shadow
144: person of 143
145: person / fire arrow
146: innkeeper rolling beer
147: armourer idle
148: artifacts
149: artifacts
150: artifacts
151: artifacts
152: artifacts / chicken
153: artifacts / chicken
154: chicken
155: artifacts / merchant in shop
156: artifacts
157: shadow of 159
158: shadow of 160
159: part of something
160: part of something
161: part of something
162: healer mixing herbs
163: artifacts
164: artifacts
165: artifacts
166: artifacts
167: bird
168: bird
169: people in inn
170: people in inn
171: people in inn
172: artifacts
173: burning stake
174: burning stake
175: burning stake
176: water boy
177: water boy shadow
178: water boy
179: water boy
180: water boy
181: water boy
182: water boy
183: shadows
184: shadows
185: something
186: something
187: something
188: something
189: flag / part of arab archer
190: arab archer
191: slave
192: slinger
193: assassin
194: archer riding
195: arab swordsman
196: fire thrower
197: fire ballista engineers / firing
198: horse shadow
199: horse archer
200: part of dog and flag
201: part of dog and flag
202: dog shadow
203: part of dog
204: part of arab lord
205: arab lord