Comments (7)
Hey @Tonyx97
Very interesting problem, I'm going to test it out tomorrow or the day after and try to find the bug. Any pieces of code that would help replicate the issue would be of great help!
from librg.
Thanks for the quick reply, I will attach the actual test project. I'm using VS 2022 with v143 MSVC compiler and C++20 as default language, it's currently in debug and x86 because I'm implementing the library as part of my mod in an existing game which requires reversing and so on. There may be useless files in the project but everything needed is linked by the project file itself so it should compile right away.
A quick summary, you should focus on server.cpp which is where I'm doing all the tests mostly. In line 115 I set the default chunk for entities, you can change the hardcoded chunk from there, if it's above 2^15 no events will be called, among other things. In line 220, I left some debug code to change from chunk to chunk which could be helpful for runtime tests. Hopefully I didn't make any stupid mistake regarding chunks lmao.
from librg.
Thank you for the details! I will take a look :)
from librg.
Found the root cause, overflow indeed!
Here is the place with fix: 5b42c08
(Also added a special test case to verify against that)
Going to push the new release now
from librg.
Also, did you know you can just download a single header file from our releases page?
That way, you won't have to download and set up all of the structure and build and link librg binaries as you did in your example
from librg.
Oh nice work! I'm so glad to see you fixed it :D
. Yeah I know about the single .h but actually I want a static library instead, matter of preferences :D
from librg.
Got it!
Thank you for the report. Please let us know if you'll encounter any other problems.
from librg.
Related Issues (20)
- Noob question: How does a single header library not cause mutiple symbol definitions? HOT 3
- Possible WebRTC support? HOT 2
- Your are using eNet code which does not exist HOT 5
- Encryption & Security HOT 1
- Fix compilation regression with the latest ZPL dep HOT 1
- Timestamping HOT 1
- C# Wrapper. HOT 15
- Does not work using C++ HOT 2
- chunk pos calculating issue HOT 1
- calculation wrap-around chunk from chunkpos HOT 1
- chunk position from index calculation issue HOT 1
- chunk radius viewer issue for 0 size HOT 1
- Can't get position data when entity created. HOT 2
- How to properly install and add this lib to C++ project? HOT 7
- How to generate different ID for different clients? HOT 3
- Ownership information in reader OnCreate event HOT 8
- Implement optional arena allocator within query method HOT 1
- Entity aren't removed for the owners HOT 6
- Compile error in using C++ HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librg.