Jump to content

Recommended Posts

Posted

In FC1.12 tools like Tacview could retrieve the player names in multiplayer games.

 

In DCS:BS and LO:FC2.0 this seems no longer possible. The LoGetWorldObjects() and LoGetObjectById() can output the name and unitname, but these will always be the defaults set in the mission editor and will not get overwritten when a multiplayer player selects that unit.

 

As a result Tacview no longer shows the names of the players that flew with you on a server.

 

Is there a way to fix this?

There are only 10 types of people in the world: Those who understand binary, and those who don't.

Posted (edited)

Definitely a bug in the game's export, not a bug in tacview.

I've reported it on the internal bug system. Now we can just pray :P

 

I used this script to log

function LuaExportActivityNextEvent(t)
local tNext = t

local o = LoGetWorldObjects()

for k,v in pairs(o) do
	n = n+1;
	logText("\n");
	if v.Name then
		logText(v.Name);
	end
	logText(" | ");
	if v.UnitName then
		logText(v.UnitName);
	end	
	logText(" | ");
	if v.GroupName then
		logText(v.GroupName);
	end	
end

logText("\n");
logText("\n");

tNext = tNext + 1.0
return tNext
end

 

 

It returned:

F-15C | Blue F-15-5 | Blue F-15-5

 

 

But should probably have returned:

Maverick | F-15C | Blue F-15-5

 

 

Track was taken from 104th server

Edited by =RvE=Yoda
  • Like 1

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

Posted

This is exactly the test that I did. I hoped there was one table value that recorded the player name, but unfortunately not.

 

I hope this is something that can be fixed without the need for a patch. If you haven't done so already Yoda, can you inform the developers?

There are only 10 types of people in the world: Those who understand binary, and those who don't.

Posted

This is just an idea and I may be totally off, but it seems that Servman records player's ID, name and IP. Maybe the logs it creates in the temp folder could be cross referenced, or use the same concept as Servman is using?

Posted

if the net module is available, try play with these:

net.get_name(playerid)
net.get_unit(unitid)

The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning

  • ED Team
Posted

Current name export behaviour:

 

Name - name of type i.e. F-15C

UnitName - name of unit which is come from mission i.e. "Pilot #1"

GroupName - name of unit's group i.e. "Plane Group #1"

 

it means that UnitName and GroupName fully dependant on mission creator choice (if he don't want use default values)

 

player name will be fixed , i.e. that UnitName will return logbook callsign for player controlled aircraft

 

I'll check what Tacview is used .

 

Is it appropriate ?

sigpic2354_5.gif
Posted
I'll check what Tacview is used.
Thank you for looking in to this Alex!

 

The Black Shark tacview.lua uses LoGetWorldObjects to get the name, unitname and groupname of each unit.

There are only 10 types of people in the world: Those who understand binary, and those who don't.

Posted (edited)
Current name export behaviour:

 

Name - name of type i.e. F-15C

UnitName - name of unit which is come from mission i.e. "Pilot #1"

GroupName - name of unit's group i.e. "Plane Group #1"

 

it means that UnitName and GroupName fully dependant on mission creator choice (if he don't want use default values)

 

player name will be fixed , i.e. that UnitName will return logbook callsign for player controlled aircraft

 

I'll check what Tacview is used .

 

Is it appropriate ?

 

Important that it should give the name from the multiplayer GUI in multiplayer games, like in fc1.

 

If player starts MP.bat -> options -> name:

This name should go in LoGetObjectById(x).Name

 

I hope this is something that can be fixed without the need for a patch. If you haven't done so already Yoda, can you inform the developers?

 

Yup, first thing I did after I did the test :).

Edited by =RvE=Yoda

S = SPARSE(m,n) abbreviates SPARSE([],[],[],m,n,0). This generates the ultimate sparse matrix, an m-by-n all zero matrix. - Matlab help on 'sparse'

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...