Jump to content

Photo

Radio Stations

radio list frequency

  • Please log in to reply
7 replies to this topic

#1
silhouett

silhouett

    Fan

  • Members
  • PipPipPip
  • 349 posts

Is there a list of default radio stations and there freq ?

 

Like

 

Diamond City 98.000000

Classical  91.000000

 

etc ?

 

 

 

Thanks



#2
zilav

zilav

    Resident poster

  • Premium Member
  • 4,000 posts

Apply this script in FO4Edit to plugins you want to inspect (or just Ctrl+A to select loaded ones)

{
  List radio stations
}
unit ListRadioStations;

function Process(e: IInterface): Integer;
var
  xrdo, r: IInterface;
  rfreq, rname, rradio: string;
begin
  if not ElementExists(e, 'XRDO') then
    Exit;
  
  xrdo := ElementBySignature(e, 'XRDO');
  r := BaseRecord(e);
  
  rfreq := GetElementEditValues(xrdo, 'Frequency');
  
  rname := EditorID(e);
  
  if rname = '' then
    rname := EditorID(r);
  
  if GetElementEditValues(r, 'FNAM\Is a Radio') = '1' then
    rradio := '*Is a Radio*';
  
  AddMessage(Format('%s'#9'%s'#9'%s'#9'%s', [
    IntToHex(GetLoadOrderFormID(e), 8),
    rfreq,
    rname,
    rradio
  ]));
end;

end.

Here is the output for Fallout4.esm as an example.

1st - FormID of transmitter reference

2nd - frequency

3rd - Editor ID of ref, or transmitter activator if ref doesn't have any

4rd - 'Is a Radio' flag is set on activator

 

Spoiler


#3
silhouett

silhouett

    Fan

  • Members
  • PipPipPip
  • 349 posts

Apply this script in FO4Edit to plugins you want to inspect (or just Ctrl+A to select loaded ones)

WOW !!

That is absolutely the Bomb.... :)  Thank you so very Much

I do have a question, is there any way to establish the nearest marker to the radio station or a reference point you can use moveto with ?   would save time for what I am working on.



#4
Reneer

Reneer

    Old hand

  • Premium Member
  • 3,881 posts

If all you have are the radio frequencies (91, 98, etc), then no, there is no way to establish the nearest radio marker (unless you want to try a huge FindClosestReferenceOfType call). What are you trying to accomplish, exactly?



#5
silhouett

silhouett

    Fan

  • Members
  • PipPipPip
  • 349 posts

If all you have are the radio frequencies (91, 98, etc), then no, there is no way to establish the nearest radio marker (unless you want to try a huge FindClosestReferenceOfType call). What are you trying to accomplish, exactly?

No I have now the above info which includes info such as ID  001D2864    44.000000    RadioInstitutePA    so it should some how be possible to grab a nearby marker to that reference or id



#6
Reneer

Reneer

    Old hand

  • Premium Member
  • 3,881 posts

 

If all you have are the radio frequencies (91, 98, etc), then no, there is no way to establish the nearest radio marker (unless you want to try a huge FindClosestReferenceOfType call). What are you trying to accomplish, exactly?

No I have now the above info which includes info such as ID  001D2864    44.000000    RadioInstitutePA    so it should some how be possible to grab a nearby marker to that reference or id

I guess I just don't understand what you're trying to accomplish but it seems like you have all the info you need.



#7
silhouett

silhouett

    Fan

  • Members
  • PipPipPip
  • 349 posts

 

 

If all you have are the radio frequencies (91, 98, etc), then no, there is no way to establish the nearest radio marker (unless you want to try a huge FindClosestReferenceOfType call). What are you trying to accomplish, exactly?

No I have now the above info which includes info such as ID  001D2864    44.000000    RadioInstitutePA    so it should some how be possible to grab a nearby marker to that reference or id

I guess I just don't understand what you're trying to accomplish but it seems like you have all the info you need.

 

Well I do have enough to do what I need, I was just trying to make it easier like some routine that would grab a real Marker which is in the same area as the id of say "RadioInstitutePA"



#8
RadoGamer

RadoGamer

    Old hand

  • Supporter
  • PipPipPip
  • 721 posts

Thanks This worked like a charm!!! Most Appreciated.

 

Apply this script in FO4Edit to plugins you want to inspect (or just Ctrl+A to select loaded ones)

{
  List radio stations
}
unit ListRadioStations;

function Process(e: IInterface): Integer;
var
  xrdo, r: IInterface;
  rfreq, rname, rradio: string;
begin
  if not ElementExists(e, 'XRDO') then
    Exit;
  
  xrdo := ElementBySignature(e, 'XRDO');
  r := BaseRecord(e);
  
  rfreq := GetElementEditValues(xrdo, 'Frequency');
  
  rname := EditorID(e);
  
  if rname = '' then
    rname := EditorID(r);
  
  if GetElementEditValues(r, 'FNAM\Is a Radio') = '1' then
    rradio := '*Is a Radio*';
  
  AddMessage(Format('%s'#9'%s'#9'%s'#9'%s', [
    IntToHex(GetLoadOrderFormID(e), 8),
    rfreq,
    rname,
    rradio
  ]));
end;

end.

Here is the output for Fallout4.esm as an example.

1st - FormID of transmitter reference

2nd - frequency

3rd - Editor ID of ref, or transmitter activator if ref doesn't have any

4rd - 'Is a Radio' flag is set on activator

 

Spoiler






Also tagged with one or more of these keywords: radio, list, frequency

Page loaded in: 1.113 seconds