05.01.2017, 17:23
(This post was last modified: 05.01.2017, 17:52 by HammelGammel.)
In the process of updating my server to 0.0.5.1 I came up with a few problems that I can't solve on my own. I'll just post them here in the hopes that somebody has an answer to them
Thank you in advance, even if just for reading.
- We weren't able to connect to the server via Tunngle/Hamachi. In Tunngle our connection was good, and connecting to the old dev8-server worked fine, but the new server would just be displayed as offline (via the favourites tab). Since our only way to play currently is via virtual LAN, this is a big deal. Is there something I am missing?
- Compared to the last dev-version, the draws have been scaled up significantly, as you can see on the pictures below. Is there a way to scale them back down?
![[Image: c89177449e.jpg]](http://puu.sh/tbZOM/c89177449e.jpg)
![[Image: c99220715b.jpg]](http://puu.sh/tbZRW/c99220715b.jpg)
- There doesn't seem to be a setPlayerInvisible function. Would I achieve the same result by using spawnPlayer and unspawnPlayer?
- Is there a way to set a timer with an interval less than 50ms? 50ms seems to be the miminum now, because everything below never calls their function.
- Is there currently a way to move/rotate the camera of a player? In dev, there was getCameraVob, is there something similar in the new G2O that I just haven't found yet?
- In the new functionlist, there is an "applyPlayerOverlay"-function listed. Calling it either on the client or the server just results in "the index 'applyPlayerOverlay' does not exist". Was it renamed at some point?
- It seems that reading files is significantly slower with the new G2O compared to the file loader in dev8. I have a bunch of pretty big lists containing waypoints for my bots that need to be read every time the server starts. In dev8 this was pretty much instant, now it takes around 10-20 seconds though. Commenting out everything, apart from the actual reading of the file doesn't change anything.
The files admittedly have several thousand lines in them, but this wasn't a problem in dev8. Is there a way to improve performance for reading files?
Thanks for reading!

- We weren't able to connect to the server via Tunngle/Hamachi. In Tunngle our connection was good, and connecting to the old dev8-server worked fine, but the new server would just be displayed as offline (via the favourites tab). Since our only way to play currently is via virtual LAN, this is a big deal. Is there something I am missing?
- Compared to the last dev-version, the draws have been scaled up significantly, as you can see on the pictures below. Is there a way to scale them back down?
![[Image: c89177449e.jpg]](http://puu.sh/tbZOM/c89177449e.jpg)
![[Image: c99220715b.jpg]](http://puu.sh/tbZRW/c99220715b.jpg)
- There doesn't seem to be a setPlayerInvisible function. Would I achieve the same result by using spawnPlayer and unspawnPlayer?
- Is there a way to set a timer with an interval less than 50ms? 50ms seems to be the miminum now, because everything below never calls their function.
- Is there currently a way to move/rotate the camera of a player? In dev, there was getCameraVob, is there something similar in the new G2O that I just haven't found yet?
- In the new functionlist, there is an "applyPlayerOverlay"-function listed. Calling it either on the client or the server just results in "the index 'applyPlayerOverlay' does not exist". Was it renamed at some point?
- It seems that reading files is significantly slower with the new G2O compared to the file loader in dev8. I have a bunch of pretty big lists containing waypoints for my bots that need to be read every time the server starts. In dev8 this was pretty much instant, now it takes around 10-20 seconds though. Commenting out everything, apart from the actual reading of the file doesn't change anything.
Code:
local file = io.file(fileName, "r+");
local currString = file.read(0);
while(currString)
{
currString = file.read(0);
}
The files admittedly have several thousand lines in them, but this wasn't a problem in dev8. Is there a way to improve performance for reading files?
Thanks for reading!
