Page 5 of 5

Re: ManiaPlanet 2 Beta Server 2013-07-30

Posted: 12 Oct 2013, 16:06
by fng_thatoneguy
mooseman2099 wrote:Not seen much in the line of updates here so servers must be up to date with maniaplanet, So the question i would like to ask is when will forceMods be working for the servers and does anybody know of a good internet storage for the images when it is working.

I want some new signs and images for my servers if this is possible.
I use DreamHost and have had good luck with horns and skins locators. They're relatively inexpensive and continue to increase your bandwidth and file storage allocations the longer you stay with them. Their uptime has been great for me the last 5 years, save a couple of years ago where within a few months time they had some serious problems with a few hours outage at a time. I haven't seen anything like that since though.

Good luck in your search! :thumbsup:

Re: ManiaPlanet 2 Beta Server 2013-07-30

Posted: 22 Jan 2014, 13:09
by w1lla
Bugreport:

onPlayerInfoChanged; When changing from player -> spec -> player the currenttargetid is always 255.

If i come in a server as spec it shows the correct currenttargetid.

This happens on Elite servers.

Not sure how to fix, or perfection it.

If more is needed i will post my code which i use to test.

Re: ManiaPlanet 2 Beta Server 2013-07-30

Posted: 23 Jan 2014, 00:03
by TheM
w1lla wrote:Bugreport:

onPlayerInfoChanged; When changing from player -> spec -> player the currenttargetid is always 255.

If i come in a server as spec it shows the correct currenttargetid.

This happens on Elite servers.

Not sure how to fix, or perfection it.

If more is needed i will post my code which i use to test.
I seem to have kinda like the same problems (also in Elite), it gives me values like:
int(2551110)
int(2551010)
int(2551101)
for isSpectator in the Player object, causing handling the PlayerInfoChanged function into a hell, because I can't check if the player's spectator status changed.

Re: ManiaPlanet 2 Beta Server 2013-07-30

Posted: 23 Jan 2014, 08:59
by w1lla
i use that but still it doesnt seem to work for me correctly...

Re: ManiaPlanet 2 Beta Server 2013-07-30

Posted: 23 Jan 2014, 19:38
by TMarc
kremsy wrote:It is not a bug, just check out https://github.com/maniaplanet/dedicate ... Player.php
funny bit mask extraction :lol:

Re: ManiaPlanet 2 Beta Server 2013-07-30

Posted: 23 Jan 2014, 20:55
by Xymph
TMarc wrote:
kremsy wrote:It is not a bug, just check out https://github.com/maniaplanet/dedicate ... Player.php
funny bit mask extraction
It's not a bit mask, it has always been a digit mask. ;)

Re: ManiaPlanet 2 Beta Server 2013-07-30

Posted: 25 Jan 2014, 12:41
by w1lla
TheM wrote:
w1lla wrote:Bugreport:

onPlayerInfoChanged; When changing from player -> spec -> player the currenttargetid is always 255.

If i come in a server as spec it shows the correct currenttargetid.

This happens on Elite servers.

Not sure how to fix, or perfection it.

If more is needed i will post my code which i use to test.
I seem to have kinda like the same problems (also in Elite), it gives me values like:
int(2551110)
int(2551010)
int(2551101)
for isSpectator in the Player object, causing handling the PlayerInfoChanged function into a hell, because I can't check if the player's spectator status changed.

After a little bit more investigating i came to the conclusion that:

- When a player joins the server during a match and goes to spectator and back he can only view his teammates and still the server gives back 255 as target id.
- When a spectator joins he can spectate everyone.

It seems to me that when a player is forced to spectate this also happens in the gamemode in this case: Elite as well as the dedicated doesnt seem to see the targetId.

There are 3 cases:

Code: Select all

foreach (Player in Players) {		
		declare UI <=> UIManager.GetUI(Player);
		if (UI == Null) continue;
		
		// Can select defender to spec
		if (Player.CurrentClan != 0) {
			UI.SpectatorForceCameraType = 1;
			UI.SpectatorForcedClan = Player.CurrentClan;
		} else if (Player.RequestedClan != 0) {
			UI.SpectatorForceCameraType = 1;
			UI.SpectatorForcedClan = Player.RequestedClan;
		} else {
			UI.SpectatorForceCameraType = -1;
			UI.SpectatorForcedClan = -1;
		}
	}
The dedicated only recognises the first if and last if.

But it doesnt recognize the switch between players after being a player.

Its a small investigation as its done on both sides.