Page 1 of 1

Weird Animations

Posted: 11 Apr 2018, 16:29
by sterfreak
So at first I was running my 1.02 basejka (basemv?) server on an Arch Linux machine with JK2MV version 1.3.1. No issues. I rebuilt my server and decided to give Red Hat a go, but I noticed after the time limit is hit (7 hours) and the map restarts, the player animations are all screwed up. The single bot I have is running around the map doing backflips. Not even the jumping backflips, but like the animation you get when you are kicked in the head and flip around backwards.

I have tried replacing the executable/assets/libraries a couple times. I also have 3 servers with mods installed that do not have this issue with the same 1.4.1 version. I am at a loss on this one. Please let me know if I need to submit a video or something. This is something players can see when connecting to the server, and the animations seem to affect players too.

I tried blaming Red Hat as I couldn't get openJK working on it. But I migrated the game servers to a windows host and have the same problem.


Aside from that, I am aware that HTTPS downaloads are still in progress. I have an ISP that blocks port 80 but not 443. So I am unable to host fast HTTP downloads. I know that if I move the files from my hosting server and place them on the game server it tries to use port 18200 or so.

Is it possible to specify a socket address instead of a URL? Similar to:
http://jk3files.com:18200
Or specify a remote server + port? I tried to do just that, but I couldn't get it to work. I figured it was worth my time to ask before I pulled all of my hair out.

Re: Weird Animations

Posted: 12 Apr 2018, 11:54
by ouned
try deleting assetsmv2.pk3 and see if the problem still happens. Please keep us updated on that as it could be a bug in mvsdk.

did you have a look at the documentation?
https://github.com/mvdevs/jk2mv/wiki/HTTP-Downloads

As of now, it doesn't support TLS though.
Now that someone seems to be interested, I might consider actually implementing it sometime :D

Re: Weird Animations

Posted: 12 Apr 2018, 14:30
by sterfreak
Okay, I moved assetsmv2.pk3 out of my base folder and started all the test servers back up. I will report back when I get home from work.

I have looked through the docs and it mentions:
"Valid values: 0-65535 (TCP Port), Any HTTP-URL (http://...)"
But does not specify that you can use them in conjunction. The way I read it is you can either set the port for the local web service or specify a remote URL to host the downloads. But it doesn't seem to let you specify a remote URL and a port to go with it. Or maybe my ISP is worse than I thought. They block email servers, too :(

But yeah, HTTP downloads is an AMAZING feature. +1 vote for TLS support. Let me know if I can contribute more somehow.

Re: Weird Animations

Posted: 12 Apr 2018, 16:37
by ouned
what do you mean with in conjunction? You can either set a port or use a http url. Not both. (Makes sense I guess?)
If your http server is running on a port that isn't 80, something like "http://abc.de:1337/jk2/gamedata" should work the usual way.
If 443 isnt blocked for you, try running the HTTP server on 443, but unencrypted. Should do the job.


Too make things clearer:
When you set the cvars value to a URL like "http://abc.de:1337/jk2/gamedata", it basically just sends this url to the client and tells it "hey, get your pk3s from there."

Re: Weird Animations

Posted: 12 Apr 2018, 18:37
by sterfreak
You answered the question. "http://abc.de:1337/jk2/gamedata" is exactly what I was looking for. I didn't know if the HTTP downloads were hard coded to use 80 for a remote URL. I will configure apache to listen on a non-standard port as a temporary workaround for now. Good to know I will still get to use the fast downloads!

Still have about 5 more hours until I can report back on the animation issue. Thank you for the swift responses.

Re: Weird Animations

Posted: 12 Apr 2018, 23:48
by ouned
Whenever you come across a URL not containing a port it's 80 for http and for https it's 443. This is just a definition in the protocols standard. Writing http://asdfg.de:80/asdfg is exactly the same as http://asdfg.de/asdfg

Re: Weird Animations

Posted: 13 Apr 2018, 01:02
by sterfreak
I understand completely.

Removing assetsmv2.pk3 from base seems to have fixed the issue. The time limit was hit and when I joined and clicked ready the animations were the correct ones.