=[KsK wrote:
= Podracer]Ok, but when i open the sample with the editor it´s very uncomfortable to read and understand:
// EXAMPLE FILE
BBLog.sourceCallback(
{
type : 'user',
list : {
// name could also be empty but for better reading you should also add the name
// the user id is the URL user id which can be extracted from the user statistic page link
// example: http://battlelog.battlefield.com/bf3/soldier/
{user-name}/stats/{user-id}/
'344922784' : {"name" : 'DJ-Brainnrg'},
'123456789' : {"name" : 'FooBar123'}
}
}
);
Is it possible to copy the own list into this sample whitout the {} and stuff?
Otherwise it´s not too simple.
Use
http://www.flos-freeware.ch/
to edit these files.
And this is simple. Just edit the numbers with UserID, "name" stays name (it's a function) and change 'FooBar123' with username.
Lines starting with // are comment lines, so you can comment some updates.
So, you just edit example file deleting (or commenting) 2 exemple lines and add your lines, with format below (inside original {}:
'00000000' : {"name" : 'Username'},
Final file:
// My Radar File
BBLog.sourceCallback(
{
type : 'user',
list : {
// name could also be empty but for better reading you should also add the name
// the user id is the URL user id which can be extracted from the user statistic page link
// example: http://battlelog.battlefield.com/bf3/soldier/
{user-name}/stats/{user-id}/
//Original lines
//'344922784' : {"name" : 'DJ-Brainnrg'},
//'123456789' : {"name" : 'FooBar123'}
'00000000' : {"name" : 'Username'},
'11111111' : {"name" : 'Player2'},
'1234567890' : {"name" : 'PlayerName'}
}
}
);
Spaces in front of line are purely aesthetic.