Muzychenko Andrey
3be26282b3
Fixed lower case .dat file loading.
...
Ref #164 .
2022-11-22 16:31:38 +03:00
Low-power
f561cadf63
Allow loading data files with lowercase name ( #164 )
...
* Allow loading data files with lowercase name
* Added lower case support for all game data files.
Co-authored-by: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com>
2022-11-22 12:40:50 +03:00
Muzychenko Andrey
80947888a0
Optimized table restart, external font loading.
...
Fixed memory leak related to restart.
Added window to table size adjustment on init, imperfect.
2022-11-17 15:43:59 +03:00
Muzychenko Andrey
9f0ae0434e
Render tweaks part 1: refactored sprite struct.
...
Optimized sprite handling in render.
Fixed switch warning in control.
2022-09-21 16:43:45 +03:00
Muzychenko Andrey
dfe1665ba1
Message code enum part 4: finalized transition of Message to enum class.
2022-09-06 16:57:56 +03:00
Muzychenko Andrey
e80010e3c6
Message code enum part 3: light and light group.
2022-09-06 16:48:09 +03:00
Muzychenko Andrey
44d5fd5097
Message code enum part 1: global messages and some hacks.
2022-09-05 10:17:37 +03:00
Muzychenko Andrey
42226a14c9
Simplified get_rc_string, merged pinball and pb.
2022-08-31 15:18:22 +03:00
Muzychenko Andrey
88f835d068
Removed unused translated texts.
...
Fixed translation.h include leak.
Added TTextBox font color support.
2022-08-31 11:11:21 +03:00
Alexis Murzeau
66a868083a
Add translations ( #153 )
...
* Add translations from v1
* Add font configuration (to be able to use non-latin languages)
* translations: remove includes that are already in pch.h
* translations: rename enums and avoid macros
* Fix crash when the font file doesn't exist
* translations: avoid u8 to avoid reencoding by MSVC
MSVC will read the file as ASCII and reconvert characters as UTF-8, this will corrupt characters as the file is in fact already in UTF-8.
* translations: remove NUMBER in enums
* translations: handle non existing translations gracefuly (don't crash)
Fallback to english if available, else return empty string
* Testing pull collaboration.
* Rollback: remove NUMBER in enums.
* Get rid of namespace, use header instead.
* Collapsed translated text struct and array.
* Fixed build errors and warnings.
* Simplified language list.
* All new types, locals and globals should use CamelCase.
* Removed unnecessary ImGui patch.
* Rearranged TTextBox immediate mode draw.
* Final touches: removed unused declaration in gdrv.
Removed unused Msg entries and added new check.
* Remove placeholder english texts from missing translations
Co-authored-by: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com>
2022-08-31 07:58:03 +03:00
Muzychenko Andrey
c1c74878df
Multiball part 1: control and component changes from FT.
...
The result is 3DPB/FT hybrid, with control closer to 3DPB and components closer to FT.
2022-08-25 17:09:17 +03:00
Muzychenko Andrey
14a8d64b67
TLight: cleanup, code from FT, new test commands.
2022-08-24 13:32:35 +03:00
Muzychenko Andrey
acd1ad34b2
Code from FT: simplified TFlipper sprite update.
...
TFlipperEdge moving geometry stored in object.
2022-08-23 08:14:28 +03:00
Muzychenko Andrey
e283a643b3
Added support for multiple music tracks in FT mode.
...
Note that taba3 is not currently played as it needs multiball support.
Issue #129 .
2022-05-20 19:32:09 +03:00
Muzychenko Andrey
97aea20586
Renamed some collision variables.
2022-05-20 11:51:00 +03:00
Muzychenko Andrey
fdf1f6c9f1
Cleaning up maths: part 3.
...
Demangled methods, vectors args by ref, added comments, more accurate ray_intersect_line.
2022-05-13 11:15:30 +03:00
Muzychenko Andrey
2d0da712e3
Cleaning up maths: part 2.
...
Renamed vector2.
2022-05-11 16:47:13 +03:00
Muzychenko Andrey
d23444b983
Cleaning up maths: part 1.
...
Vector3 inherited from vector2.
2022-05-11 16:42:45 +03:00
Muzychenko Andrey
cc06d35bc7
Fixed high score insertion for multiple players.
...
Refactored high_score.
Issue #131 .
2022-04-11 10:28:20 +03:00
Muzychenko Andrey
43af97127b
Simplified game mode, pause.
2022-01-05 11:38:50 +03:00
Muzychenko Andrey
3400ea4576
Added WD and Linux-specific /usr/* to game data search paths.
...
Improved data not found error message.
Ref #100 .
2021-12-08 15:55:49 +03:00
Muzychenko Andrey
919b537e28
Added FT demo data support.
...
Tested with .006 ,.020 RC2, there might be more versions out there.
Fixed mds2midi.
Ref #22 .
2021-11-24 17:25:23 +03:00
Muzychenko Andrey
64c3f2031b
Added “Prefer 3DPB game data” option.
...
Useful for quickly switching between the two datasets.
3DPB and FT data can be stored in one folder without collisions.
2021-11-21 15:40:56 +03:00
Muzychenko Andrey
ecdf802d68
Added game data loading from user folder (SDL_GetPrefPath).
...
Ref issue #80 .
2021-11-05 10:16:27 +03:00
Muzychenko Andrey
5cd01807b2
winmain: converted int to bool.
...
Cleaned up some of the PR changes.
2021-10-23 09:02:51 +03:00
toxie
57af3af800
Increase precision of mode_countdown_ handling ( #52 )
...
* fix harmless warnings and properly try/catch allocations via new
otherwise the error handling will never be triggered
* increase precision of mode_countdown_ handling
potentially there could be modes running a bit too long, depending on passed in ms (which were implicitly truncated before when passing in)
also fix some harmless warnings
* document warnings that i cannot handle on my own
* revert changes to have a new cleaner PR after review/cherry picks
* increase precision of mode_countdown_ handling
potentially there could be modes running a bit too long, depending on passed in ms (which were implicitly truncated before when passing in)
also fix some harmless warnings and add comments where original code is 'correct' but weird
2021-10-23 07:33:04 +03:00
Muzychenko Andrey
06b760e8dd
Player controls: added mouse and game controller remapping.
...
Fixed duplicate button id.
2021-10-17 18:18:29 +03:00
Muzychenko Andrey
5947727f80
Tweaked ball mouse control cheat.
2021-10-10 17:13:43 +03:00
Muzychenko Andrey
8c4f38c0af
Cheats: flipped literals, made some toggle, added GUI.
2021-10-05 16:48:13 +03:00
Muzychenko Andrey
8d2745fc33
Added support for sub-millisecond frame times.
2021-10-03 18:06:19 +03:00
oz
93de90b680
Replaced memory with new.
...
Cleaned up gdrv, zdrv, render.
2021-10-02 17:45:31 +03:00
Muzychenko Andrey
81c2034a16
Replaced objlist_class with std::vector.
...
Fixed minor bug in TLightGroup.
Cleaned up some warnings.
2021-10-01 18:55:44 +03:00
Muzychenko Andrey
8a421a2623
Implemented player controls dialog.
...
This last missing major feature brings v2 into feature parity with the original and closer to release.
Ref issues #16 , #17 .
2021-10-01 09:05:38 +03:00
Muzychenko Andrey
03deda2f9d
Added event wait timeout when idle.
...
Added show menu button to prevent lockout; this somewhat ruins no menu aesthetic.
Cleaned up 3DPB vs. FT methods in midi.
2021-09-29 17:53:49 +03:00
Muzychenko Andrey
b4cb827d73
winmain: reworked main loop for smoother frame times.
...
imgui_sdl: added handling for device lost.
midi: load PINBALL.MID in uppercase and using absolute path.
Added UPS/FPS options, by default 120/60.
2021-09-28 08:14:18 +03:00
Muzychenko Andrey
22ce8ac538
gdrv: blit no more, present render:vScreen directly.
...
Improved split bitmap handling.
2021-09-25 16:52:19 +03:00
Muzychenko Andrey
fd9de493e6
Added linear filter option for vScreen texture.
...
Rollback blit to backing storage – its persistence is not guaranteed.
Added project URL to About dialog.
Added source ports table to readme.
2021-09-23 12:16:58 +03:00
Muzychenko Andrey
4c196a9290
Added table resolution and UI scale options.
...
gdrv: blit directly to backing store of vScreen texture.
Added missing cheat_bump_rank sub, oops.
Fixed some warnings.
2021-09-22 15:50:07 +03:00
Muzychenko Andrey
c63c6701ac
gdrv: RGBA buffers, pre-applied palettes, SDL bitmap origin.
...
Refactored partman.
Added sprite viewer.
2021-09-21 13:14:39 +03:00
Muzychenko Andrey
8bae7a5b05
Added user settings persistence.
...
Using ImGui .ini writer.
2021-09-16 10:57:46 +03:00
Muzychenko Andrey
c5b7c0ad16
Fixed some of the memory leaks and Clang warnings.
...
DrMemory and Valgrind work with regular debug builds.
2021-09-14 15:33:18 +03:00
Muzychenko Andrey
28e2417ef9
Made it compile with GCC on Linux.
...
Fixed GCC warnings and Windows specifics.
Restored C++11, switch to 14 was not supposed to happen.
Not 100% sure about my Find* module section.
2021-09-09 11:40:54 +03:00
Muzychenko Andrey
2fe6d6d33a
Removed windows.h dependency.
...
Added support for music in MDS format.
2021-09-06 16:27:58 +03:00
Muzychenko Andrey
9a10d72e1f
gdrv: simplified bitmap, fixed blit, improved SDL present.
...
Removed some Windows dependencies.
2021-09-01 11:02:57 +03:00
Muzychenko Andrey
a09ea75d80
SDL port v1, Windows only for now.
...
Working: graphics, sound, music (3dpb only).
Not working: GUI, user settings.
2021-08-27 13:29:41 +03:00
Muzychenko Andrey
98f234fce3
Replaced GlobalAlloc with malloc.
...
WaveMix keeps GlobalAlloc for authenticity.
Fixed float to double casts.
Some cleanup.
2021-02-18 12:53:25 +03:00
Muzychenko Andrey
55984fbb08
Fixed x64 build warnings.
...
Replaced __intN with intN_t.
Some cleanup.
2021-02-16 19:03:45 +03:00
Muzychenko Andrey
1c5256a4c6
Added table resolution support.
...
Only works with FT .dat file.
FT music does not work - different format.
2021-02-06 16:53:47 +03:00
Muzychenko Andrey
d594f5fdb7
Converted memory to direct pointers.
...
Fixed memory leaks in uninit.
Fixed some of the code analysis warnings.
Enabled /MP build.
Cleaned up the code.
2021-02-02 18:29:54 +03:00
Muzychenko Andrey
49f6132d23
Added loader for Full Tilt .dat files, v1.
...
Works with some data hacks in lowest resolution.
Seems to work ok, even though BL is still 3DPB.
2021-01-31 17:29:53 +03:00