死体
34bcb82bfd
Fix build error
2026-01-06 00:20:39 +01:00
死体
75f6a712cc
Fix building as shared
2025-01-08 21:36:04 +01:00
死体
9adc66975c
Fix build error
2025-01-07 15:01:53 +01:00
死体
6cbb9b2377
Backmerge master
2025-01-06 22:48:39 +01:00
joey
d7232b5f58
remove include
2024-08-09 17:58:52 -04:00
joey
3a294798e8
save string function for writing to files
2024-08-09 17:43:11 -04:00
joey
5c11f94529
format changes
2024-08-08 22:35:04 -04:00
joey
acecc89392
Add file permissions changes
2024-08-06 22:42:04 -04:00
joey
1b477f96cf
Fix for npc-server wrt npc position
2024-07-12 18:51:11 -04:00
John Norman
3ee3c09c67
Fixed a crash with NPC carrying.
2024-07-08 18:57:25 -07:00
John Norman
24ecff7fa5
Fixed bugs with bigmaps.
2024-07-08 18:39:49 -07:00
John Norman
4d93f12f50
Removed the server name from all the log lines.
2024-07-08 16:27:37 -07:00
John Norman
3c1bce6b32
Fixed a bug where a reference to a temporary was being returned.
2024-07-06 21:05:35 -07:00
John Norman
bdfdf5c75b
Fixed another compile error.
2024-07-06 20:57:49 -07:00
John Norman
d6ed2fa896
Standardized position and added NPC Z.
...
X/Y/Z are stored in pixel coordinates and converted.
Added missing NPC Z properties.
2024-07-06 20:24:59 -07:00
John Norman
7774d58e8b
Split shared character props into its own structure.
2024-07-06 20:17:16 -07:00
John Norman
8336d6a326
Resolved compile issues.
2024-07-06 19:57:27 -07:00
John Norman
e403e3c932
Fixed some includes.
2024-07-05 20:34:12 -07:00
John Norman
deb5d3b7df
Switch to BabyDI.
...
Added BabyDI and migrated Server into it.
Replaced pointers of server being passed around with calls to BabyDI.
2024-07-05 17:32:18 -07:00
John Norman
067db344e2
Moved initialization to default member initialization.
2024-07-05 17:13:56 -07:00
John Norman
75393a0a1a
#include updates.
...
Sorted includes.
Converted dependencies to brackets.
Use relative path for includes.
2024-07-05 16:23:33 -07:00
John Norman
01a876044b
CMake updated for renames / file moves.
2024-07-05 16:22:03 -07:00
John Norman
12cff8bf4a
Renamed directories to be lowercase.
2024-07-05 14:15:03 -07:00
John Norman
5b551b3e5e
Moving ScriptClass to the Scripting folder.
2024-07-05 13:57:31 -07:00
John Norman
bee6e36e1c
Moved the Map files into the Level folder.
2024-07-05 13:40:30 -07:00
John Norman
233491528e
Resolved many warnings.
...
Explicitly static_cast numbers.
Changed some number types.
Fixed more instances of auto resulting in a copy.
Ignore some fmtlib warnings.
2024-07-02 13:45:14 -07:00
John Norman
5104cc5870
Set standard NPC colors.
2024-07-01 11:56:12 -07:00
John Norman
04b69ec6d7
Code cleanup.
...
Visual Studio identified cases where numerical overflow could occur before widening and where unintentional copies could be made on usage of "auto". This commit fixes those issues by widening to size_t beforehand, properly using auto&, and explicitly making value copies when necessary.
2024-06-27 10:06:55 -07:00
John Norman
e97be7cce5
Added test for IdGenerator.
...
Added test for IdGenerator.
IdGenerator restricted to std::integral types.
Enabled tests for Windows.
2024-06-27 09:42:33 -07:00
John Norman
19442e7b25
Standardized id management.
...
Added a new IdGenerator template class to handle id assignment.
Moved player, external player, npc, and baddy id handling to the new class.
2024-06-26 12:06:48 -07:00
John Norman
b63f28cee2
Fix putnpc and join for GS1.
...
The function to minify NPC script works off of normal \n line breaks. There were cases where the script was using \xa7 linebreaks, which would cause the minify function to break and erase the whole script.
This removes the conversion of \n to \xa7 in the `Server::addNpc` code since the minify function performs that duty.
This also fixes the `join` command, which was converting to \xa7 before being passed through minify.
Finally, this updates `Player::msgPLI_PUTNPC` to properly mark the NPC type as `PUTNPC` instead of `LEVELNPC`.
2024-06-11 07:39:37 -07:00
John Norman
3dcd494620
Changes from review.
...
Fixed the name of SCachedLevel.
Removed an empty comment.
2024-06-10 17:28:55 -07:00
John Norman
1638f21154
Fix Linux builds.
2024-06-10 13:24:55 -07:00
John Norman
b8baca5f2e
Renamed functions to follow the style guide.
2024-06-10 12:58:53 -07:00
John Norman
e9e9b6e4fe
Renamed CScriptEngine to ScriptEngine across all files.
...
Renamed the class `CScriptEngine` to `ScriptEngine` across all files and functions.
2024-06-10 11:13:35 -07:00
John Norman
5ec4a50f31
Fixing some changes that got lost in the cherrypick.
2024-06-10 11:13:35 -07:00
John Norman
056f49ee4b
Fixed compilation errors.
2024-06-10 11:13:34 -07:00
John Norman
4b01259424
Renamed class names and private/protected member variables.
2024-06-10 11:13:33 -07:00
John Norman
3165f96da0
Formatted all files.
2024-06-10 11:13:32 -07:00
John Norman
c90ce94a34
Fixed #includes after the file renaming.
...
Fixed wrong names in includes.
Fixed some missing includes causing build errors.
2024-06-10 11:13:32 -07:00
John Norman
d19d1e00d1
Updating CMakeLists.txt.
2024-06-10 10:42:22 -07:00
John Norman
6278c94ff4
Folder renames.
2024-06-10 09:08:41 -07:00
John Norman
0ca668c643
File renames.
2024-06-10 09:05:20 -07:00
死体
f59409ba07
Fix jenkins builds
2024-06-07 15:23:58 +02:00
死体
fd5502d5ca
Merge pull request #95 from xx-shitai-xx/patch/fix-level-script-implementation
...
Patch/fix level script implementation
2023-11-15 08:42:46 +01:00
死体
6b752c9a0e
Treat all 2xx httpcodes as succes for HttpPost
2023-11-14 00:55:23 +01:00
死体
47cb58d7fd
Fix CI/CD
2023-11-14 00:18:17 +01:00
死体
1c5b20a9cd
Make level.npcs work the same as level.signs, level.chests and level.links
2023-11-13 20:42:04 +01:00
死体
06854358e7
Fix some mistakes
2023-11-13 19:25:26 +01:00
死体
db8bdd7f03
Use more lightweight http lib for the serverside http requests + fix windows support
2023-11-13 19:09:14 +01:00