Skip to content

Revamp/v4.0.0 -> Master#114

Open
xx-shitai-xx wants to merge 65 commits intomasterfrom
dev
Open

Revamp/v4.0.0 -> Master#114
xx-shitai-xx wants to merge 65 commits intomasterfrom
dev

Conversation

@xx-shitai-xx
Copy link
Copy Markdown
Collaborator

No description provided.

LoneBoco added 30 commits June 10, 2024 09:05
Refactor the GServer - Part 1
Fixed wrong names in includes.
Fixed some missing includes causing build errors.
Renamed the class `CScriptEngine` to `ScriptEngine` across all files and functions.
Fixed the name of SCachedLevel.
Removed an empty comment.
Refactor the GServer - Part 2
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`.
Added a new IdGenerator template class to handle id assignment.
Moved player, external player, npc, and baddy id handling to the new class.
Added test for IdGenerator.
IdGenerator restricted to std::integral types.
Enabled tests for Windows.
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.
LoneBoco and others added 27 commits July 5, 2024 17:13
Added BabyDI and migrated Server into it.
Replaced pointers of server being passed around with calls to BabyDI.
X/Y/Z are stored in pixel coordinates and converted.
Added missing NPC Z properties.
For some reason the build server was exploding on the usage of size_t when it had never complained before.  To fix it, make sure we include cstddef.
@xx-shitai-xx xx-shitai-xx changed the title Revamp -> Master Revamp/v4.0.0 -> Master Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants