Natural Selection 2
Login Now >
Click here to create a new account
Unknown Worlds Entertainment
Home
Game Guide
Community
Media
Forums
Store
Twitter
Facebook
YouTube
Latest Developer Posts
Promoted Content
matso
Master of Patches
1:53PM
NS2_Goliath
Probably of interest: http://forums.unknownworlds.com/discussion/130399/location-relevancy-get-around-max-relevancy-distance-by-location-based-relevancy
matso
Master of Patches
1:47PM
Location Relevancy; get around max-relevancy distance by location based relevancy
Short summary: You can use multiple location entities to build up a manual relevancy tree, freeing the mapper from any restrictions on distance. Even if you don't modify the map, entities in the same Location as the player will always be visible to him. Use with care. Documentation: // ======= // // lua\LocationRelevancy.lua // // Created by: Mats Olsson (mats.olsson@matsotech.se) // // Adds the ability to make entities relevant by location. // // Background: // For performance and bandwidth reasons, updates for entities in NS2 are only sent // from the server to the client if the entity is "relevant". // // Relevancy is mainly calculated using distance (40m normally). Maps are usually carefully // constructed to avoid longer sight ranges than this, though you can sometimes notice them // (in Summit/Crevice, you will notice that if you go all the way west, everything around the // resource node disappears and then blinks into existence when you get close enough). // // Some custom maps (Skyfall, Goliath) are built around very large locations where this // problem is glaringly obvious. // // How it works: // // This mod uses a feature of the spark engine to make entities relevant depending on location. // // It adds the concept of a relevancyGroup and lets a location be part of one or more // relevancyGroups. Whenever a player enters a location, everything in all locations that // share at least one relevancyGroup with a players current location becomes relevant to // the player (a relevancyGroup is just a name, bw, nothing fancy about it). // // By default, each location creates a relevancyGroup with the locations name, meaning that // when a players enters a named location, all entities in locations with the same name becomes // relevant to him. This is done automatically, and applies to all maps. // // For advanced uses, where the mapper want more control over relevancy, a new field has been added // to the location entity in the Editor, location.relevancyGroups. This field may contain a // comma-separated list of relevancyGroup names to which the location will belong. // // If a '-' is part of the list of relevancyGroup names, this location will NOT use its name // as a relevancy group. No need to consider this unless you start running out of relevancyGroups, // there is a maximum of about'ish 25 available (print out kMaxRelevancyGroups for exact numbers). // There will be errors logged in the log if you run out. Oh, and you need to mark up all locations // with a name that you don't want with a '-' to get rid of it. // // In order to see this field, you need to use the LaunchPad and open the LocationRelevancy mod - // it is in your NS2 AppData file, workshop id m8bead14_... before starting the Editor from the // LaunchPad. You should see a "Relevancy Groups" field when you select a location entity. // // You can turn on and off location relevancy by using the (cheats-guarded) "locrel" console command. // // // Examples: // Veil, Cargo (those large container walls were added to avoid long sightlines) // AAAAA // AAAAA // AAAAA // B C // bbbB Cccc // // A is a large location with two adjecent locations, B and C, and we assume that the view-distance from // B into A is longer than max relevancy distance. Setting B and C relevancyGroups to "A" would make all of // A,B,C belong to one relevancyGroup, "A". So as soon as you enter any of those three, all entities in all // three locations would be relevant to each other. // // Notice that you could have the named location "B" be spread over two location entities - marked as // "B" and "b" above, and only set the relevancyGroup to "A" for the B location. // // Example 2 (Goliath, Storage) // TTT // SSSSSSSSSSSSSSSSSSSSSSSSSSSSS // SSSSSSSSSSSSSSSSSSSSSSSSSSSSS // LLLL SSSSSSSSSSSSSSSSSSSSSSSSSSSSS RRRRR // SSSSSSSSSSSSSSSSSSSSSSSSSSSSS // SSSSSSSSSSSSSSSSSSSSSSSSSSSSS // BBB // // The Storage location can be accessed from four different directions. Using the same // trick as for Cargo would make all of them the same relevancy group, which would mean // that everyting in the Top, Left and Right locations would become relevant if when you // entered the Bottom location. May or may not be a problem; it would depend on how many // entities you would expect to be in those areas. // // Assuming it IS a problem, and also assuming that there is no LOS between Top/Left/Right/Bottom, // you can handle this by having creating four new relevancy groups "LS", "TS", "RS" and "BS", // and using: // // Storage.relevancyGroups = LS,RS,TS,BS // Left.relevancyGroups = LS; // Right.relevancyGroups = RS; // ... etc // // This means that if you are in Storage, all entities in all five locations are relevant. If // you are in one of the entrance locations, only entities in your own location and in Storage // are relevant. // // It is highly unlikely that this will be an actual problem - the cost of keeping 10-20 extra // entities relevant is not likely to significantly affect your framerate and if you are in // the Storage location, you would have them all relevant anyhow. // // You could go further, splitting the Storage into multiple entities, each having its own set // of relevancy groups. This can quickly get quite complicated though. // // The best way of working is to design the map with location relevancy in mind. // // =========
Sewlek
The programmer previously known as Schimmel
11:31AM
Sewlek's Balance mod
mod is now updated
Squeal_Like_A_Pig
Janitor
3:02AM
Build 247 is now live on Steam! - Natural Selection 2
Evil.Iguana wrote: » Did Docking not get any alterations this patch? I had thought it was planned to remove locker rooms as a possible start location as it gives a huge advantage to the team that starts there. There are much much larger changes then just removing locker rooms as a marine start location, though that has been done in the WIP version. The new and improved Docking is almost done, but didn't quite make this patch. It will definitely go out with the next patch, though.
Hugh
Cameraman
May 20
Build 247 is now live on Steam! - Natural Selection 2
Updated post to include Descent and Mineshaft changes
MurphyIdiot
NS2 programmer
May 20
time to make the mods - problem
Can you email me a zip of your mod? I can try to figure out what is going on. brianc@unknownworlds.com
Hugh
Cameraman
May 20
Build 247 is now live on Steam! - Natural Selection 2
Bitey wrote: » Could do that in my sleep Everyone knows you don't sleep, Bitey!
Hugh
Cameraman
May 20
Build 247 is now live on Steam! - Natural Selection 2
Updated post to include Veil changes by @Mendasp and make the YouTube video work
Hugh
Cameraman
May 20
Build 247 is now live on Steam! - Natural Selection 2
Bump to open comment thread. Enjoy Build 247 everyone! Remember, it is ten pushups every time you get killed by one of Steve's bots!
Forums
Recent Threads
Activity
Best of...
Unknown Worlds Entertainment
Getting Started
[Error- Build 247] Altab or press Windows key >>> Game crash "Engine state can not recover"
191
views
14
comments
1
point
Most recent by
Leech0r
6:48PM
Technical Support
Quick switch, it doesn't work?
171
views
5
comments
4
points
Most recent by
IronHorse
6:45PM
Technical Support
B247 does not launch.
611
views
26
comments
1
point
Most recent by
mortmann
6:42PM
Technical Support
New vote system....
51
views
2
comments
0
points
Most recent by
GrayW
1:56PM
Server Discussion
Editor grid tool display problem
1
view
0
comments
0
points
Started by
[AwE]Sentinel
12:02PM
Technical Support
More Discussions
General
Anyone else sick of this invincible structure bug
811
views
37
comments
2
points
Most recent by
Robotix
6:46PM
General Discussion
There's No Updated Wiki/Manual
61
views
4
comments
0
points
Most recent by
DC_Darkling
6:41PM
General Discussion
Do the "Perfomance-Jam"!!!
1.8K
views
81
comments
15
points
Most recent by
IronHorse
6:41PM
General Discussion
UWE to replace Vanilla NS2 with Sewlek's balance mod in the near future
5.8K
views
229
comments
0
points
Most recent by
IronHorse
6:37PM
General Discussion
ns2 id's
71
views
4
comments
0
points
Most recent by
lwf
6:27PM
General Discussion
More Discussions
Veteran
Pro players - Competitive play Vs Pub Play
1.2K
views
38
comments
0
points
Most recent by
turtsmcgurt
5:53PM
Competitive Play
Do you use difference sensitivity/DPI for the races (marines/aliens) ?
761
views
35
comments
0
points
Most recent by
current1y
4:20PM
Competitive Play
Australian Cyber Gamer Tournament Season 1 comes to a close
141
views
7
comments
0
points
Most recent by
nezz
6:31AM
Competitive Play
NSL/Comp Summit/Tram/Veil/Descent
4.3K
views
133
comments
2
points
Most recent by
Mendasp
May 20
Competitive Play
Custom HUD mod
221
views
7
comments
0
points
Most recent by
Mendasp
May 20
Competitive Play
More Discussions
Creation
NS2Stats - Statistics for Natural Selection 2
1.4K
views
59
comments
4
points
Most recent by
Sint
6:44PM
Modding
Location Relevancy; get around max-relevancy distance by location based relevancy
81
views
4
comments
3
points
Most recent by
DarkSeraph
5:22PM
Mapping
Remake List
Which NS1 map is still missing and your favorite?
491
views
27
comments
0
points
Most recent by
Hypergrip
4:58PM
Mapping
co_BlackMesa
171
views
11
comments
1
point
Most recent by
=Mr.P=
4:05PM
Mapping
Spark Editor - Features (to speed up mapping) - you are (personally) missing ?
351
views
28
comments
0
points
Most recent by
Solaris
3:06PM
Mapping
More Discussions
Other
Xbox One (1)
11
views
0
comments
0
points
Started by
Xyth
6:12PM
Off-Topic
Planetside.... Sequel?
234K
views
815
comments
0
points
Most recent by
Align
4:55PM
Off-Topic
Save draft!
1
view
0
comments
0
points
Started by
ezekel
3:34PM
Web Site Feedback
Basic income (Unconditional cash) to poor people showed big results
451
views
36
comments
0
points
Most recent by
Rob
2:02PM
Discussions
NASA and Google appear to be dabbling in Quantum Computing
181
views
5
comments
2
points
Most recent by
ezekel
May 18
Off-Topic
More Discussions
Community
Copyright
Developer
Terms of Use
Privacy
Unknown Worlds Entertainment Logo
© 2013,
Unknown Worlds Entertainment
. All rights reserved.
Visual Design by
Fully Illustrated