[Mod] Spectator Mode [git] [spectator_mode]

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

[Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

A simple mod allowing you to watch and continuously follow the other players in their 3rd person view.
You're invisible and undetectable for the players when you're in this mode.

Can be useful for admins or moderators in their task of monitoring.

Requires the privilege "watch".

Commands :

Code: Select all

/watch <player name>
/unwatch (get back to your initial position)
Download | Sources | Bug report

Image
Last edited by jp on Sat Feb 13, 2016 19:00, edited 3 times in total.

User avatar
benrob0329
Member
Posts: 1341
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] Spectator Mode [git] [spectator_mode]

by benrob0329 » Post

Nice! Could you make it so that you can watch a givin coordanince?

I see a Mesecons camera system in the making....

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

benrob0329 wrote:Could you make it so that you can watch a givin coordanince?
No.

User avatar
firefox
Member
Posts: 1709
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox
Location: Xanadu

Re: [Mod] Spectator Mode [git] [spectator_mode]

by firefox » Post

cool =(0.0)=

but since the targeted player doesn't know when being watched, you should rename it to "Stalker" ;)
✨🏳️‍🌈♣️✨

User avatar
prof-turbo
Member
Posts: 516
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

Re: [Mod] Spectator Mode [git] [spectator_mode]

by prof-turbo » Post

Nice !
The actual existing spectators modes are very buggy in PvP games/modes.
Thanks a lot !

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Mod] Spectator Mode [git] [spectator_mode]

by programmingchicken » Post

Made my first pull request, and I think it's pretty useful! :DDD
<gamerdude> I apologize for the above content

User avatar
kaadmy
Member
Posts: 706
Joined: Thu Aug 27, 2015 23:07
GitHub: kaadmy
IRC: KaadmY
In-game: KaadmY kaadmy NeD

Re: [Mod] Spectator Mode [git] [spectator_mode]

by kaadmy » Post

Cool! :D
Never paint white stripes on roads near Zebra crossings.

Pixture

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

Update : the watcher is now able to switch of player while already watching someone. Thanks to programmingchicken for the idea.

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Mod] Spectator Mode [git] [spectator_mode]

by programmingchicken » Post

Was an easy fix but I didn't look into it well enough lol
<gamerdude> I apologize for the above content

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Fixer » Post

Trololo! This is very good and useful, what is TODO for now? Also, make it able to fly on its own (without attach to play), that will be VERY-VERY useful :}

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

No TODO actually, I don't have a big ambition for this mod.

luizrpgluiz
Member
Posts: 20
Joined: Thu Mar 19, 2015 18:11
IRC: luizrpgluiz
In-game: luizinho

Re: [Mod] Spectator Mode [git] [spectator_mode]

by luizrpgluiz » Post

you can create a new command to see first person with the camera fixed on the player? For you will be very complicated to program it?
cdb_HTWLEyTsySH8

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Fixer » Post

Does it work if the watched person deep in the cave around the blocks?

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

Fixerol wrote:Does it work if the watched person deep in the cave around the blocks?
You can use F7 for avoid the black screen in tight areas. The 3rd person view makes the camera "collide-able" with the nodes.

User avatar
maikerumine
Member
Posts: 1420
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

Re: [Mod] Spectator Mode [git] [spectator_mode]

by maikerumine » Post

Hello!

I just tested this out and found a few bugs:

*on exit of game as watcher the game crashes.
*on unwatch, watcher is teleported to the person being watched.
*during watch mode you are able to break all nodes and even hurt the player.
Talamh Survival Minetest-->viewtopic.php?f=10&t=12959

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

Trying to reproduce and working on this.

EDIT: seems like the troublemaker was the latest feature added. Now reverted.

amadin
Member
Posts: 549
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Spectator Mode [git] [spectator_mode]

by amadin » Post

This is good anti-griefing mod if you suspect of griefing or cheating someone. Also its presence on the server can terrify their :)

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Fixer » Post

Looks like if you have hunger mod, it will show double one over your hud after watching someone with it.
Another problem, if someone you watch leaves the server, you will stay as a ghost on that place.

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

Fixerol wrote:Looks like if you have hunger mod, it will show double one over your hud after watching someone with it.
I know, Hunger mod uses HUD elements in a special manner it seems.
Second problem is not fixable without checking within a globalstep (meaning more lag).

Anyways I won't bother to fix this. Don't expect much from me for this mod.

neoascetic
Member
Posts: 26
Joined: Wed Dec 24, 2014 08:56
GitHub: neoascetic
IRC: neoascetic
In-game: neoascetic

Re: [Mod] Spectator Mode [git] [spectator_mode]

by neoascetic » Post


User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Minetestforfun » Post

The MinetestForFun Team [spectator_mode] improved from the jp's mod : https://github.com/MinetestForFun/serve ... tator_mode

New features listed here : https://github.com/MinetestForFun/serve ... /issues/79

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

Re: [Mod] Spectator Mode [git] [spectator_mode]

by jp » Post

Update : project moved on Minetest Mods.

User avatar
SAMIAMNOT
Member
Posts: 416
Joined: Wed Sep 03, 2014 00:51
In-game: notanewbie
Location: Desert

Re: [Mod] Spectator Mode [git] [spectator_mode]

by SAMIAMNOT » Post

It's kinda cool but when you unwatch it screws everything up, I don't think it's been updated for the new Minetest 5 positioning system.
I test mines.

User avatar
FreeGamers
Member
Posts: 650
Joined: Sat May 25, 2019 00:15
GitHub: is proprietary I use NotABug
Location: United States
Contact:

Re: [Mod] Spectator Mode [git] [spectator_mode]

by FreeGamers » Post

I also ran into this bug, it seems to offset the player's position to be 1 node higher off the ground when /unwatch is used.
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: [Mod] Spectator Mode [git] [spectator_mode]

by Miniontoby » Post

Cool mod and please put it on content.minetest.net because then we can download it simpler.
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 16 guests