Commit graph

8102 commits

Author SHA1 Message Date
hispidence
cb1ad16b2d Remove more vestiges of old trigger system. Replace TO_LUA_SCRIPT with the enum that used to be there - TO_BODYBAG - so that the following enums still have their same values. 2021-08-23 22:05:58 +01:00
hispidence
f3354fa0ef Fix broken links in documentation. Add title and description. 2021-08-23 20:16:01 +01:00
hispidence
5f66005277 Remove j. 2021-08-23 19:22:31 +01:00
hispidence
c8377e4ab7 Add new compiled doc files. 2021-08-23 19:19:36 +01:00
hispidence
bc9e863307 Give documentation comments new tag names. Part 2 of making the documentation better. 2021-08-23 19:16:24 +01:00
hispidence
14361edad3 Add ldoc template and modify config file. Part 1 of making the documentation prettier and more sensibly-arranged. 2021-08-23 19:06:15 +01:00
MontyTRC89
4d6658ebef Cleaned last commit 2021-08-23 13:37:13 +02:00
MontyTRC89
dc7e1f683a Fixed the minus sign inside TestLaraPosition 2021-08-23 13:35:26 +02:00
MontyTRC89
26822afb3f Merge branch 'master' of https://github.com/MontyTRC89/TombEngine 2021-08-23 05:50:06 +02:00
MontyTRC89
0cdc6c90a2 Fixed drawing of little beetles 2021-08-23 05:49:47 +02:00
hispidence
bdbded2221 Rename ItemInfo functions newItem and newItemTemporary to new and newTemporary for consistency. 2021-08-23 02:07:17 +01:00
hispidence
99b730b06c Merge remote-tracking branch 'origin/master' 2021-08-23 02:03:20 +01:00
hispidence
9bf5c361e2 Clean up GameLogicScript.
Add some new member functions, ResetLevelTables and GetLevelFunc. The former is called in FreeLevelScripts, which is now called in control.cpp.

Remove AddTrigger, as the LevelFuncs table takes care of triggers.
2021-08-23 02:02:47 +01:00
MontyTRC89
9474284c87 Refactoring ID_LITTLE_BEETLES 2021-08-22 06:08:02 +02:00
MontyTRC89
517ba6b88a Fixed ID_SKELETON 2021-08-22 05:48:14 +02:00
Lwmte
2756a65095 COLL_RESULT conversion in progress (broken) 2021-08-22 01:39:14 +03:00
Lwmte
0f5ca8e55e Use lasersight overlay in lasersight mode 2021-08-21 04:13:42 +03:00
hispidence
369e4c7562 Add and fix documentation. 2021-08-21 00:29:54 +01:00
hispidence
afdec32c1f Fix GetFrameNumber, SetFrameNumber, GetAnimNumber and SetAnimNumber. 2021-08-21 00:25:15 +01:00
hispidence
a75b43b7c5 Implement ScriptAssertF and ScriptAssertTerminateF.
These are like ScriptAssert, but make use of the fmt library (atm hijacking the version that comes with spdlog). This allows us to pass in a format string and some args, and then only create the format string if there's an actual error. This means we won't waste time doing a ton of std::string concatenations if the assert succeeds.

As these are variadic templates, we can't use a std::optional as the last argument to check if we're forcing a different error mode (we possibly could by assuming the last arg is a std::optional, but that seems unclean), so instead I've just separated them out into two functions.
2021-08-21 00:23:14 +01:00
hispidence
f83add0f4c Float->short to fix a warning. 2021-08-21 00:16:22 +01:00
hispidence
6c3f2d1673 Update SetScriptErrorMode call. 2021-08-21 00:15:56 +01:00
hispidence
8d84ee6f3f Rename SetErrorMode to SetScriptErrorMode to avoid VS getting confused by some MS function with the same name. Add GetScriptErrorMode. 2021-08-21 00:13:44 +01:00
hispidence
2981c75827 Set project to C++17, which apparently is what it should be. 2021-08-21 00:11:34 +01:00
MontyTRC89
3bc685dc3b Fixed missile control routine; Improved ID_CROCODILE_GOD; 2021-08-20 16:03:53 +02:00
Lwmte
d394bcc39f Completely get rid of TriggerIndex 2021-08-20 15:26:12 +03:00
Lwmte
1828ddaeab Replace all direct occurences of TestTriggers with TestTriggersAtXYZ and references to TriggerIndex global in structs 2021-08-20 14:13:06 +03:00
MontyTRC89
7093a8df24 Refactored energy bubbles function names; Removed LanguageScript.cpp from the project; Working on ID_CROCODILE_GOD; 2021-08-20 06:00:34 +02:00
MontyTRC89
eebb8dfbba Merge branch 'master' of https://github.com/MontyTRC89/TombEngine 2021-08-20 05:26:07 +02:00
MontyTRC89
0ed8181cda Merge branch 'master' of https://github.com/MontyTRC89/TombEngine; Renamed namespaces;
# Conflicts:
#	TR5Main/TR5Main.vcxproj.user
2021-08-20 05:25:51 +02:00
hispidence
a20cad7ed6 Remove obsolete class. 2021-08-20 03:01:32 +01:00
hispidence
1d052a73e1 Remove comments; these are technically no longer unused as they're linked up with Lua variables. 2021-08-20 02:43:56 +01:00
hispidence
10419d15a8 Fixed some GameFlowScript.cpp warnings:
Remove SkyVelocity1 and SkyVelocity2 - they weren't being used.
Change a loop var to a size_t.
Make GameScriptInventoryObject.yOffset a short.
2021-08-20 02:42:47 +01:00
hispidence
2039df5a27 Add newindex error to SoundSourceInfo. 2021-08-20 01:51:51 +01:00
hispidence
1e2a2bfa63 Fix some documentation. 2021-08-20 01:51:16 +01:00
hispidence
93483e76ef Add unlimitedAir documentation comment. 2021-08-20 01:48:06 +01:00
hispidence
51c3ffe3d3 Give newindex errors to script classes which already have index errors. 2021-08-20 01:41:14 +01:00
hispidence
178b66978a Move index_error_maker into new file (ScriptUtil.h). Add newindex_error_maker. Make them call ScriptAssert instead of just throwing an exception so it won't terminate the application on WARN or SILENT error modes. 2021-08-20 01:37:49 +01:00
Lwmte
48aefdeee6 First commit 2021-08-20 02:01:50 +03:00
Lwmte
19a9b45e1d Add RefreshFloorGlobals hack to temporarily fix issues with monkeyswing and possibly other states 2021-08-19 18:43:52 +03:00
MontyTRC89
095423b30a Fixed locusts; First try of namespaces for objects; 2021-08-19 14:17:21 +02:00
Lwmte
cc481a8e86 Clean up files, fix build type for cso file 2021-08-19 12:28:39 +03:00
Lwmte
dfd08a8660 Move font to /Textures folder, fix project settings to launch proper binary 2021-08-19 11:41:37 +03:00
MontyTRC89
fa009c4dfc Merge branch 'master' of https://github.com/MontyTRC89/TombEngine 2021-08-18 11:18:18 +02:00
MontyTRC89
11f8e533e9 Fixed ID_LOCUST_EMITTER (missing only rendering) 2021-08-18 11:17:42 +02:00
hispidence
431db09f27 Remove spammy printf statement. 2021-08-17 14:24:03 +01:00
hispidence
07a756a369 Remove some unused includes. 2021-08-17 14:23:47 +01:00
hispidence
ac6be98e00 Make Debug and Release configs build two separate executables. This is to stop Visual Studio getting confused and being unable to hit breakpoints or give callstack information when switching from one config to the other.
Add output console back in for Debug.

Make Release able to compile and run.
2021-08-17 14:23:06 +01:00
hispidence
58b9717689 Make TENLog use spdlog.
Debug builds output to console and log file (Build/logs/TENLog.txt), and Release only logs to log file.
2021-08-17 14:19:53 +01:00
hispidence
7d1e8b2350 Add spdlog 1.9.1. 2021-08-17 14:06:08 +01:00