Quantcast
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO Tools & Utilities for Developers

Category: LotRO Tools & Utilities for DevelopersInteriorLocations
Interface Information
Download
How do I install this? (FAQ)
Name: InteriorLocations
Author:
Date: 02-08-2018 04:51 AM
Size: 15.29 Kb
Version: 1.0
Rate File:  out of 5 with 0 votes  
Description
InteriorLocations contains basic data about almost all interiors in the game.

I am defining an area that uses the interiors system as an area for which /loc shows the cInside flag. Otherwise, the area uses the landscape system.

A short textfile discussing the differences between the landscape and interior systems in slightly more detail is included.

For every interior, the following data is available:
  • the name of the interior as shown underneath the minimap
  • the DataID of the interior's map image, for use with SetBackground etc.
  • the width and height of the map image
  • the region, lx and ly coordinates of the interior

Note that the coordinates enable /loc output to be used to deduce which interior the player is in. How to do this is shown in the comments at the top of the lua file.

Simple accessor functions are provided. These are documented at the top of the lua file.

Examples:

To iterate over the table:
Code:
-- Find all interiors with the Sindarin word "barad" (tower):
for interior in InteriorLocations.iter() do
  local name = string.lower(interior.name)
  if string.find(name, "barad") ~= nil then
    Turbine.Shell.WriteLine("Tower found: "..interior.name)
  end
end
To find a table entry by DataID:
Code:
-- We found this picture with AssetBrowser, what interior is it?
local did = 0x410E6A9F
-- Multiple interiors may use the same map image:
local indices = InteriorLocations.find_did(did)
if indices == nil then
  Turbine.Shell.WriteLine("No interior found with map image "..tostring(did))
else
  for _, index in ipairs(indices) do
    local data = InteriorLocations.get(index)
    Turbine.Shell.WriteLine("The image is used for "..data.name)
  end
end
File Statistics
User Rating:
 out of 5 with 0 votes
Downloads: 764
Views: 2397
Favorites: 1
Uploaded By:
 
Last Modified: N/A

View Pictures. Download Now! Post A Comment


Post A Reply
Author Comments Comment Options
Unread 02-08-2018, 08:15 PM  
Rigantona
The Undefeated
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 2
Uploads: 3
Thanks Thurallor. I am pleasantly surprised that you found interiors.txt interesting. It really only scratches the surface of what I could have been written, I worried it was a useless "halfway house". Sometimes by being too brief you end up just being wrong.

1. My wording was too terse. I mean that the heightmaps for the 160m x 160m landblocks are 32 x 32 height data points. Briefly: with experience, by lowering game settings to minimum, and observing appropriate terrain, one can spot discrete steps in the ground and measure them with /loc. As you probably know, heightmaps have dimensions of some power of two. Think about three different heightmaps used to define a landblock mesh: 16x16, 32x32, or 64x64, for example. This results in a massive difference in geometric detail.

2. I believe the full /loc format is:

rN: always present, region N (1..4)
lxN lyN: always present, land coordinates. One 160m x 160m landblock is 8x8 of these coordinates
iN: present if in a private instance. Assumption: N identifies the instance for SSG, see below.
cInside: present if the player is in an interior
oxN, oyN, ozN: always present. ox and oy are in the range [0, 160) on the landscape, but can be negative in interiors.
hN: present in landscape; heading in degrees, 0 = north

Concerning the instance number. Some simple experiments: 1) I entered Barad Gularan simultaneously with two characters on two separate accounts. Their /loc output on entering was identical except for this number. 2) I entered the public dungeon Minas Elendur on the two accounts. This area features dynamic layers. The characters could see each other without being grouped. /loc for both characters reported the same instance number. 3) I went to the Treasure Field, where dynamic layers were reported. No instance number was shown by /loc.

So, there is no universal indication of dynamic layers nor of content layers in the /loc output.

Last edited by Rigantona : 02-18-2018 at 08:36 PM.
Rigantona is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 02-08-2018, 06:44 PM  
Thurallor
The Undying
 
Thurallor's Avatar
Interface Author - Click to view interfaces

Forum posts: 131
File comments: 168
Uploads: 12
I found interiors.txt interesting. A couple of questions:
  1. By "5m resolution", did you mean 5m of height range, within each 160mē block? (I would normally take "5m resolution" to mean "5m granularity".) If so, how did you discover this?

  2. Is there any indication of "dynamic layers" in the /loc command?
Thurallor is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 01:49 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui