Commit graph

77 commits

Author SHA1 Message Date
hispidence
df11377a51 Make GetItemByName take a const ref, and make its error print the name of the item that could not be found.
Register GetItemByName in GameLogicScript instead of winmain. Register GameScriptColor too.

Define the lambdas passed to GameScriptItemInfo in terms of the actual functions we define. Functions that make a GameScriptItemInfo should pass false to make_unique (so the Lua object made does not control the lifetime of the ITEM_INFO).
2021-07-20 17:58:11 +01:00
MontyTRC89
f81d8e439f Added FROM_DEGREES function; Added quantity param to PickedUpObject(); LUA scripting refactoring WIP; 2021-06-29 05:00:15 +02:00
Brad Ellis
1a41e3ef50 Remove Strings and CurrentStrings from GameFlow; they were for the old system. Remove LoadScript for the same reason. 2021-06-25 14:33:26 +01:00
Brad Ellis
fb732fa0d0 Load script data from Lua. 2021-06-16 15:10:05 +01:00
Trxye
35af9b2c92 clean up ring inventory code; fix KillItem(); 2021-05-26 01:58:30 -05:00
asasas9500
87448c9c6a Remove getCurrentCommit() 2021-02-08 23:59:03 -03:00
asasas9500
a63a46c82e Delete empty files 2021-02-07 18:15:20 -03:00
Nils
09b86dcb35 Removing Debug Console 2021-02-03 16:21:24 +01:00
Nils
87d062aa3e Added working Release Configuration 2021-01-19 16:49:40 +01:00
KrysB4k
a6a9050d4a Revert "Pushables: Fix error in stack height code, use bbox Y1 value for non-rigid pushables"
This reverts commit 21977d5eba.
2020-12-25 01:31:17 +01:00
KrysB4k
21977d5eba Pushables: Fix error in stack height code, use bbox Y1 value for non-rigid pushables
Y1 value of pushable's bounding box is now used in computing block height
2020-12-25 01:30:24 +01:00
asasas9500
d4c6cc4a97 Fix line endings 2020-12-21 13:16:29 -03:00
Nils
ea9afa7413 Refactored framework.h
Removed Renderer headers from framework.h
Removed bass headers from framework.h
Removed windows-related headers to avoid nameclashes with std::min and std::max
added <algorithm> for general-purpose functions (like std::min/max)
Added NOMINMAX define to project
Minor Refactorings
2020-09-29 21:43:56 +02:00
asasas9500
912b0abbae Fix bridges; Fix script IDs 2020-09-28 10:04:44 -03:00
asasas9500
c06fa6f9e2 Merge branch 'master' into NoShifts 2020-08-25 19:25:28 -03:00
Nils Gaitzsch
cb96f011f9 Displaying Commit Message on Title 2020-08-18 20:26:47 +02:00
Nils Gaitzsch
82b3944dde Deactivated Pool memory
@TODO: Fix Pool
Changed pointers for ChunkIds to smart pointers
2020-08-11 19:18:36 +02:00
Nils Gaitzsch
11b2e2cd61 Refactored functions 2020-08-09 15:25:56 +02:00
asasas9500
671d59e1c8 Merge branch 'DiagonalCollisions' into NoShifts 2020-08-07 16:43:29 -03:00
asasas9500
b53eb41bbb Merge branch 'DiagonalCollisions' into NoShifts 2020-06-21 14:09:31 -03:00
Nils Gaitzsch
3781370e06 Putting Renderer into namespace
made g_Renderer a global object
2020-06-21 14:27:12 +02:00
Nils Gaitzsch
c860919616 Fixed std namespace collisions
Refactored ChunkID/ChunkReader/Writer
2020-06-20 23:39:08 +02:00
Nils Gaitzsch
d5dc365c06 Made g_Inventory a constant object.
Fixed shadow intensity
Fixed CameraViewConstantBuffer
2020-06-16 19:45:06 +02:00
asasas9500
189302e8c0 Improve hack 2020-06-11 23:03:05 -03:00
asasas9500
b56ff11743 Hack for frame advance, frame stop and slow motion 2020-06-11 16:25:19 -03:00
asasas9500
1732048a00
Scripting (#211)
* Create template for variables; Rename properties; Improve console input

* Improve console input again
2020-06-09 09:16:51 +02:00
TokyoSU
cbceefd67a Fix newlevel.h missing file (replaced by levelloader.h) 2020-05-30 20:52:36 +02:00
TokyoSU
ee59d27517 (Broken) Deleted Global Folder
- No more enums.h, constants.h, macro.h, etc...
- moved all structure in types.h to there respective file.
2020-05-30 15:55:23 +02:00
TokyoSU
9045a2206d Partially finished Entity Folder Refactoring
- Less Compile Time
- ObjectInfo now use std::function.
- added isPickup and isPuzzleHole in ObjectInfo.
- Renamed EVIL_LARA to LARA_DOPPELGANGER (DOPPELGANGER in xml)
- Removed TR1 Larson/Pierre and TR1 Raptor.
2020-05-27 19:07:34 +02:00
TokyoSU
9c1c4517d7
New project format (#206)
* Starting Reformat the project

- New Import Method, no more "../../" in import,
- New Entity Folder Structure, less compile time

* Refactoring the Project

- added precompiled header with default import like microsoft or directx.
- fix many double import.
- fix math.h confliting math.h from
microsoft.
- fix effects.h confliting Effects.h from DirectX.
- refactored TR4 entity folder and how it's loaded.

* Update Some Code Before Switching to Master

* Finished the NewProjectFormat Template

- need to finish entity in the master later.

* Added Monty NewFileFormat

* Fixed Monty NewFileFormat Include

* Revert "Fixed Monty NewFileFormat Include"

This reverts commit ebf0afca10.

* Trying to fix conflits for NewFileFormat

* Fixed .filters

* Last Commit in NewProjectFormat
2020-05-27 09:21:20 +02:00
MontyTRC
c5fb6c6fa9
Merge branch 'master' into NewFileFormat 2020-05-24 08:33:06 +02:00
Montagna Marco
52bedeb114 Ready to merge 2020-05-24 08:31:36 +02:00
Montagna Marco
dc750d48ef Fixes to level loader; First tests; 2020-05-23 19:59:58 +02:00
Nils Gaitzsch
8eabbb2309 Console Output 2020-05-04 22:10:01 +02:00
Nils Gaitzsch
ca12b10ec3 Added Debug Console Window
Added Script function that handles standalone script commands
2020-05-01 20:42:17 +02:00
MontyTRC
6b16828381
Merge branch 'master' into scripting 2020-04-30 21:52:16 +02:00
asasas9500
960110196e Improve Lua scripting 2020-04-28 12:24:10 -03:00
Montagna Marco
2f306993a8 Added missing changes from last commit; Fixed WndProc for exiting game when window is closed; 2020-04-27 06:38:50 +02:00
Montagna Marco
85e462f6a2 First EXE build successfully 2020-04-24 19:15:05 +02:00
Montagna Marco
4cc46789e9 Decompiled input 2020-04-23 19:22:01 +02:00
Montagna Marco
9f05715977 Decompiled level loading functions; Moved lot of vars in DLL; Added Zlib; 2020-04-22 14:12:10 +02:00
TokyoSU
3670fddc71 Added Sophia
- deleted all the __cdecl except for the #define function. because /Gd enable the __cdecl for function by default.

- added the commented code in FireWeapon for TR3 entity (some function is missing)
2019-12-02 14:49:19 +01:00
Montagna Marco
09c2957f4f Merged branches 2019-12-02 09:11:21 +01:00
TokyoSU
538677a6e4 Update DirectXTK, Fix ANGLE, Add Minecart 2019-11-30 13:51:37 +01:00
Montagna Marco
2443494349 Decompiling Lara 2019-11-21 07:43:34 +01:00
MontyTRC89
1fddf24dd1 Fixed audio device enumeration; Fixed setup dialog; Removed audio fade causing sample cut off; Fixed inventory fade; Added title load screen; 2019-05-10 20:38:54 +02:00
MontyTRC89
fbf0e8dabd Added title image 2019-05-09 13:50:55 +02:00
MontyTRC89
7bbd2b9b8d Added default configuration; Added sound devices configuration; 2019-05-09 08:06:30 +02:00
MontyTRC89
3e13bdd891 New setup dialog; Refactoring configuration dialog; Refactoring strings; New strings added; 2019-05-08 21:11:18 +02:00
MontyTRC89
3be58f2b4a Code cleaning; Correct full screen mode; 2019-05-03 20:58:36 +02:00