ephphatha
3fda0586bd
Add support for parsing fixed point decimal strings
3 years ago
Gleb Mazovetskiy
65e0ad88d2
Further reduce demo file size
...
The vast majority of events are rendering events:
Type | Count
-------------|------:
Rendering | 58,971
MouseMotion | 19,651
GameTick | 6,414
MouseButton | 516
Key | 7
Custom | 1
Encodes Rendering events in a single byte when possible.
Demo file size: 253,410 bytes -> 194,439 bytes
3 years ago
ephphatha
5f6e5ae9fb
Refactor iterator parsing to allow more reuse
3 years ago
Gleb Mazovetskiy
eb51a8beb3
Reduce demo message size
...
`DemoMsg` struct and event data are now kept separately.
RAM usage for the timedemo messages: -85% (1.8 MiB -> 261 KiB)
Demo (`.dmo`) file size: -57% (590,790 bytes -> 253,410 bytes)
3 years ago
Stephen C. Wills
45dbe6aa61
Shift software cursor graphic and remove special casing ( #6512 )
3 years ago
ephphatha
32c3316743
Load experience data from file
...
Also added an iterator based API, though it's not useful for this use-case. Might be nice in the future?
The field/record iterators is single-pass input iterators with shared state.
To avoid rescanning fields unnecessarily parseInt currently can only be called once, it would be possible to make these iterators bidirectional with a bit of extra state (holding onto the start pointer)
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
3 years ago
ephphatha
4e3f46603a
Remove unused attribute _pMaxLvl
3 years ago
Anders Jenbo
1af58fa4de
Update CI test demo recording
3 years ago
Anders Jenbo
8f74f86a6e
🐛 Use the alternate stairs up banner is active
3 years ago
Anders Jenbo
261776b255
Correct OOB check in PrepareInnerBorders()
3 years ago
Anders Jenbo
13c5c09990
Clean up Light related naming
...
A few are left unchanged as they will be removed in a later commit
3 years ago
obligaron
abcea9853c
Update timedemo test to include improved lightning
3 years ago
Anders Jenbo
ec9d1b5550
Rename _oLight to applyLighting
3 years ago
obligaron
6f9453c00e
Introduce GenerateStaffName/GenerateStaffNameMagical
3 years ago
staphen
0d43f468e5
Improve missile collision interpolation logic
3 years ago
obligaron
4cec35ea77
Update timedemo test
3 years ago
Anders Jenbo
d67dec05e1
Update timedemo test
3 years ago
obligaron
f54a8f27ca
Update timedemo
3 years ago
Anders Jenbo
715926e751
Fix single room cathedral with quest piece ( #5321 )
4 years ago
Gleb Mazovetskiy
6327e713e0
Lowercase all file paths
...
We want to be able to use unpacked MPQs on low-end platforms
(PS2/rg99/etc).
This is tricky on case-sensitive filesystems. Avoids case issues by
lowercasing all paths in the code (then we'll just need lowercased
listfiles).
4 years ago
obligaron
2493f06116
ActorPosition: Remove offset, offset2 and velocity
4 years ago
obligaron
385627e95b
Copy save file when creating reference or comparison save game
4 years ago
Gleb Mazovetskiy
ba34bafb3f
Use SDL events directly
...
Removes redundant miniwin events and queue, using SDL events directly instead.
Demo migrated using this script: https://gist.github.com/glebm/8a73b04f695de96f344cc2e35151e03e
4 years ago
Vladimir Olteanu
bd689e9359
Fix time demo
4 years ago
obligaron
2c7e886c85
Add detail log info to CompareSaves
4 years ago
Gleb Mazovetskiy
adf40f5c80
misc_msg: Always use `lParam` for mod state
...
Previously, keyboard events used `lParam` for modifier key state,
while mouse events used `wParam`.
Changes the mouse events to use `lParam`, which allows us to
change `lParam` to `uint16_t`.
Demo migrated with a script.
4 years ago
Gleb Mazovetskiy
79e23f26f2
misc_msg: Encode keyboard mod state directly
...
`demo_0.dmo` migrated with a script
4 years ago
obligaron
40283ca69e
Introduce timedemo based tests
4 years ago
Anders Jenbo
ac4c754430
Add test for borken Catacombs generatrion
4 years ago
Anders Jenbo
fe45e617dd
Test single chamber chathedral
4 years ago
Anders Jenbo
e8ed195ef6
Place Anvil from the .dun rather then a hardcoded array
4 years ago
Anders Jenbo
6962fcd63e
Clean up PlaceMiniSet()
4 years ago
Anders Jenbo
b2278b85f8
Apply workaround for OOB in DRLG L1
4 years ago
Anders Jenbo
e43cf251fb
Test Hell quest sets using dummies
4 years ago
Anders Jenbo
28d7c96063
Test reamaning Catacombs set levels using dummy sets
4 years ago
Anders Jenbo
50a222f1a2
Test generating a level for the butcher quests
4 years ago
Anders Jenbo
9181ba412b
Add tests for levels with quest sets using dummy maps
...
Banner1.DUN, Banner2.DUN, SKngDO.DUN, Blind1.DUN are custom maps made to
facilitate the tests that load map files as elements for generated
levels.
4 years ago
Anders Jenbo
29a66f69e2
Test basic Caves and Nests levels
4 years ago
Anders Jenbo
0a71f1ffb3
Test basic Hell levels
4 years ago
Anders Jenbo
8b685c2f30
Remove duplicate objects from fixtures
4 years ago
Anders Jenbo
848222b8f3
Test Catacomb level generation ( #4651 )
4 years ago
Anders Jenbo
30a6d3412f
Test crypt level generator
4 years ago
Anders Jenbo
c241cae9e3
Test cathedral level generation
4 years ago