Case Posted March 31, 2010 Posted March 31, 2010 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.
RvEYoda Posted March 31, 2010 Posted March 31, 2010 (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 March 31, 2010 by =RvE=Yoda 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'
Case Posted March 31, 2010 Author Posted March 31, 2010 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.
Case Posted April 1, 2010 Author Posted April 1, 2010 There are only 10 types of people in the world: Those who understand binary, and those who don't.
104th_Crunch Posted April 1, 2010 Posted April 1, 2010 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?
Panzertard Posted April 1, 2010 Posted April 1, 2010 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 Alex Okean Posted April 6, 2010 ED Team Posted April 6, 2010 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 ?
Case Posted April 6, 2010 Author Posted April 6, 2010 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.
RvEYoda Posted April 6, 2010 Posted April 6, 2010 (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 April 6, 2010 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'
Recommended Posts