Yet Another Spectator Mod (now for 3.1+ too!)

Did you create a mod, map, music, or a tool? Present them here and earn feedback!
Note: addon requests do not belong here.
Note, everything uploaded to this forum, MUST have a license!

Yet Another Spectator Mod (now for 3.1+ too!)

Postby NoQ » 16 Sep 2011, 09:56

This mod allows spectator locations to "work" on certain maps.
This mod works on both warzone2100-2.3.9 and warzone2100-3.1_beta8, but the behaviour is different.


On 2.3.9:


That's what exactly this mod does:
  • Victory condition checks are disabled for spectators.
  • A command center and a satellite uplink center is spawned near the initial truck for spectators.
  • The initial truck is removed for spectators.
  • All players automatically report every research they completed to spectators. They also report their power level every time a research is completed.

How to use: All players are supposed to load this mod before starting the game. The mod is considered to be a "skirmish mod" (not "global mod" or "campaign mod").

Out of my maps, the following maps are already designed to work with this mod:


The mod reacts on players that start with exactly one truck (even though a few buildings are allowed). These players are considered to be spectators, because on most maps players start with at least 2 trucks.

Note for map makers: For the mod to get applied properly to your map, spectators should have at least a 5x5 square of buildable tiles around their initial truck (with truck being in the middle of the square). It is ok to put a few buildings for spectators (FlaME won't allow you to compile a map without every player having a command center; you might also want to give them a satlink so that spectator locations could work without any mods sometimes).

Known bugs: Normal players are aware of messages submitted to spectators and thus recieve a little bit of annoying noise in their console. Some research strings seem to be missing.

Technical: Since this issue remains unresolved, i decided to hard-code technology names inside the mod, and it turned out to be pretty ugly. Also, the mod will have to be re-done every time the tech tree changes. Don't even think of using it with master builds without re-working. Also, i'm not planning embedding this mod into maps yet, because i don't consider it to be stable, and i don't want to re-do tons of maps every time this mod is imporved.


On 3.1:

So far it just makes the game don't remove things at start for anybody who possesses a sat-link at start of the game. This way, it will work on any map where players have pre-placed satlinks iff they are supposed to spectate.

Note: don't use it in AI games, cause they will try to attack you (even NullBot, that doesn't care about things like command centers or satlinks, still cares about your truck that isn't removed yet).
Last edited by NoQ on 09 May 2012, 13:27, edited 15 times in total.
User avatar
NoQ
Special
Special
 
Posts: 6159
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Yet Another Spectator Mod

Postby Reg312 » 16 Sep 2011, 11:30

Good work :)
every time i was tried to be spectator i was kicked :|
you could set spectators numbers from structures limits screen then mod can be applicable to any map

Normal players are aware of messages submitted to spectators and thus recieve a little bit of annoying noise in their console

normal players can see that other team researched?
Reg312
Regular
Regular
 
Posts: 681
Joined: 25 Mar 2011, 18:36

Re: Yet Another Spectator Mod

Postby NoQ » 16 Sep 2011, 11:31

normal players can see that other team researched?
No, they just see what spectators know about them personally.
every time i was tried to be spectator i was kicked
Usually games where spectators are supposed to be present are pre-arranged, and spectators are recording a video; including spectators just for fun will produce more desync, so it's not allowed very often.
User avatar
NoQ
Special
Special
 
Posts: 6159
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Yet Another Spectator Mod

Postby NoQ » 17 Sep 2011, 05:28

Updated to v1.01. I dirty-fixed the problem of duplicate power reports by binding power reports to technology reports.
User avatar
NoQ
Special
Special
 
Posts: 6159
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Yet Another Spectator Mod (now for 3.1+ too!)

Postby NoQ » 23 Apr 2012, 18:00

Updated to v1.02.

Added some very primary support for warzone2100-v3.1+. Right now it just makes the game don't remove things at start for anybody who possesses a sat-link at start of the game. This way, it will work on any map where players have pre-placed satlinks iff they are supposed to spectate.

The new version of this mod still works on 2.3.9, doing the same thing it did before.

Note: don't use it in games with AIs, cause they will try to attack spectators (even NullBot, that doesn't care about things like command centers or satlinks, still cares about your truck that isn't removed yet).

Note: since multiplayer is currently a bit broken on 3.1_beta8, this mod is close to useless; just a proof of concept, and hope that it will work on the next versions.

Note: this mod doesn't work on 3.1_beta7 or earlier.
User avatar
NoQ
Special
Special
 
Posts: 6159
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Yet Another Spectator Mod (now for 3.1+ too!)

Postby NoQ » 09 May 2012, 13:29

v1.03 - minor bugfix for the 3.1+ part of the mod: spectators no longer have advanced bases technologies pre-researched. This didn't affect anything but behaviour of JS AIs allied with a spectator (the AI couldn't do research because he knew his ally already has it researched, but the research wasn't shared for him either).
User avatar
NoQ
Special
Special
 
Posts: 6159
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Yet Another Spectator Mod (now for 3.1+ too!)

Postby montetank » 12 Feb 2016, 20:37

NoQ wrote:v1.03 - minor bugfix for the 3.1+ part of the mod: spectators no longer have advanced bases technologies pre-researched. This didn't affect anything but behaviour of JS AIs allied with a spectator (the AI couldn't do research because he knew his ally already has it researched, but the research wasn't shared for him either).

Hello NoQ, its an old topic, i know. But the topic is a current one.
In future i want to make all my maps with spectators. I understood almost everything above.
Is there any particular attention should be given?
Command center+only 1 truck + uplink center......check, thats clear.
Square 5x5 .....check.
So-all i have to do is to create a map. But how can i involve this mod automatically to the maps? Making a map-mod to say. The players should only download the maps and put the .wz archives in the map folder and not additionally in the mod folder. Is this possible?
Maybe i understand something wrong. Thanks for your help in advance. :)
In case the WZ-game ends in a draw , the game winner will be determined by penalty shoot-out.
User avatar
montetank
Regular
Regular
 
Posts: 629
Joined: 14 Feb 2013, 00:05
Location: Montenegro

Re: Yet Another Spectator Mod (now for 3.1+ too!)

Postby NoQ » 13 Feb 2016, 11:32

I wouldn't advice for maps with this mod to go to addons, as they would break too often with the new game versions. In any case, the mod most likely needs to be updated anyway. Not sure about the current status of map-mod bugs, will have a look when i have some free time.
User avatar
NoQ
Special
Special
 
Posts: 6159
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Yet Another Spectator Mod (now for 3.1+ too!)

Postby montetank » 13 Feb 2016, 11:50

NoQ wrote:I wouldn't advice for maps with this mod to go to addons, as they would break too often with the new game versions. In any case, the mod most likely needs to be updated anyway. Not sure about the current status of map-mod bugs, will have a look when i have some free time.
Oh-ok. Thx for the answer :3
In case the WZ-game ends in a draw , the game winner will be determined by penalty shoot-out.
User avatar
montetank
Regular
Regular
 
Posts: 629
Joined: 14 Feb 2013, 00:05
Location: Montenegro


Return to Addon discussions