Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions regarding 0.0.5.1
#1
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 Smile 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][Image: 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! Smile
Reply
#2
Ad 1. I don't have idea why, in this version I'm using my linux server to test with others.
Ad 2. I guess this is new system pack feature Wink You have to check this one.
Ad 3. Not exactly, but player will be invisible for others and others for him.
Ad 4. No. This is timer, not render function Smile If you want less interval use onRender.
Ad 5. This feature should be avaliable in new version.
Ad 6. Well, my bad. Functions are into MP engine, but are not binded.
Ad 7. In dev 8 probably u were using Nubzior module, which is much faster, becase is written in native C. Well I guess, I will have to bind file class in multiplayer for better performance.
Reply
#3
Thanks for taking the time! Smile

1. Is there any info I can provide you that could help narrow this one down? My server runs on windows if that's helpful. If they run a server on their machine and connect through the localhost, that works btw, so their installations shouldn't be the cause.
2. Sorry for this one. I honestly wasn't even aware, the systempack is still being worked on and didn't consider it could be the cause. My bad.
3. Would it be possible to get a setPlayerInvisible function in future G2O versions? Being able to easily make players invisible is a great feature G2O had over gmp.
4. I would only be able to use onRender on the clients though, right? Admittedly, I don't really need shorter intervals on the server, so this isn't a big deal.
5. Awesome!
6. No problem. Thanks for looking into it.
7. Thanks again!
Reply
#4
First of all, you should test pings between you and your assistant. If pings works on hamachi well, then maybe something blocking the windows server like firewall? Check firewall exceptions Smile
Invisible is good feature for admins, spectators etc. But if u want to make player invisible just for action like a change visual, u should use unspawn instead of invisible.
Reply
#5
It was indeed the firewall. I feel like an idiot Big Grin

We could really use invisibility for administration-purposes, where you're still able to see and interact with other players. Virtual worlds btw. would also be useful, if possible
Reply
#6
Virtual world are already implemented.
Reply
#7
How do I use them though? I can't find anything related to them in the functionlist and setPlayerVirtualWorld does not exist.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Small questions HammelGammel 10 7,318 06.03.2016, 03:17
Last Post: HammelGammel
  2 Questions Imperator 2 2,974 04.11.2015, 02:41
Last Post: Imperator

Forum Jump:


Users browsing this thread: 1 Guest(s)