primem0ver Posted February 14, 2016 Share Posted February 14, 2016 (edited) I created the ENB Workshop for Skyrim. I am now wanting to make it compatible for Fallout 4. However, I need a list of the weathers in the game. This is easy for me to do using TES5Edit and a custom utility I built myself. Does an editor like this exist for Fallout4? If so, could someone run a custom script on it and copy the results into a text file for me? (I do not own Fallout 4 yet... will buy this summer). Here is the necessary script (works in TESVEdit). Just copy what this prints out to a text file. { List [FormIDCount] allocated FormIDs starting from [FormIDStart] } unit UserScript; const FormIDStart = $0201760E; // CHANGE TO: starting formid for first weather FormIDCount = $6C058; // CHANGE TO: last weather id - starting weather id function Process(e: IInterface): integer; var p, r: IInterface; i: integer; begin p := GetFile(e); for i := FormIDStart to FormIDStart + FormIDCount - 1 do begin r := RecordByFormID(p, i, True); if Pos('WTHR', Name(r)) > 0 then AddMessage(IntToHex(i, 8) + ' - ' + Name(r)); end; Result := 1; end; Edited February 14, 2016 by primem0ver Link to comment Share on other sites More sharing options...
Junnari Posted February 15, 2016 Share Posted February 15, 2016 http://imgur.com/a/pzb6G Two screenshots containing the form & editor ID's for the weathers. Didn't try the script, but assuming that it requires that the ID's are as consecutive numbers, it might not work for the FO4 weathers that use ID's that have other forms between them. Link to comment Share on other sites More sharing options...
primem0ver Posted February 15, 2016 Author Share Posted February 15, 2016 (edited) I appreciate the screenshots. I can now give you a script you can use that will work. It doesn't require that the items use consecutive IDS. It will go through all IDs and look for WTHR in the record name. It will only print these items. As long as the tag format is the same as it was in Skyrim it will work. (It will take a couple minutes. Wait till you see "WEATHERS DONE"). Here is a modified version of the script adjusted so that it will work with what you showed me. { List [FormIDCount] allocated FormIDs starting from [FormIDStart] } unit UserScript; const FormIDStart = $15E; // CHANGE TO: starting formid for first weather FormIDCount = $248548; // CHANGE TO: last weather id - starting weather id function Process(e: IInterface): integer; var p, r: IInterface; i: integer; begin p := GetFile(e); for i := FormIDStart to FormIDStart + FormIDCount - 1 do begin r := RecordByFormID(p, i, True); if Pos('WTHR', Name(r)) > 0 then AddMessage(IntToHex(i, 8) + ' - ' + Name(r)); end; AddMessage('WEATHERS DONE') Result := 1; end; Edited February 15, 2016 by primem0ver Link to comment Share on other sites More sharing options...
lilkandeekid Posted February 15, 2016 Share Posted February 15, 2016 Script is a lil off for FO4Edit it seems...Little playing with it and I got this, which is what I think you where looking for. Applying script...0000015E - DefaultWeather [WTHR:0000015E]0000116B - FXDiamondSunlightBounce [WTHR:0000116B]0000116D - DiamondWeather [WTHR:0000116D]0000116E - DiamondWeatherPastel [WTHR:0000116E]000016EC - IstWeather [WTHR:000016EC]00029BB8 - FXWthrSunlightOffAtNight [WTHR:00029BB8]0002B52A - CommonwealthClear [WTHR:0002B52A]0006ED5A - FXWthrInvertDayNight [WTHR:0006ED5A]000747C8 - FXConcord01 [WTHR:000747C8]0007548F - FXWthrSunlight [WTHR:0007548F]00075491 - FXWthrSunlightWhite [WTHR:00075491]00076A58 - FXConcord01OffatNight [WTHR:00076A58]000777CF - FXWthrInvertDayNighWarm [WTHR:000777CF]00088C57 - FXWthrMoonlightOnly [WTHR:00088C57]00096C61 - FXWthrMorningOnly [WTHR:00096C61]000A1588 - NeutralWeather [WTHR:000A1588]000A6858 - WorldMapWeather [WTHR:000A6858]000DB2A1 - MQ203Weather [WTHR:000DB2A1]000F1033 - CommonwealthGSOvercast [WTHR:000F1033]000FF98F - PrewarPlayerHouseInteriorWeather [WTHR:000FF98F]00108640 - FXInstituteDayNightCycle [WTHR:00108640]0010D573 - FXInstituteDayNightCycleKey [WTHR:0010D573]0010E3D4 - EditorCloudPreview [WTHR:0010E3D4]0010F781 - TCommonwealthMarshOvercast [WTHR:0010F781]00115C64 - GoodneighborWeatherBase [WTHR:00115C64]001209AF - NeutralOvercast [WTHR:001209AF]001256FB - FXNukeWeather [WTHR:001256FB]0012A18E - CommonwealthSanctuaryClear [WTHR:0012A18E]00141AB4 - FXWthrSunlightWhiteBounce [WTHR:00141AB4]00171621 - DefaultInteriorWeatherNoLUT [WTHR:00171621]00171636 - FXWthrSunlightOffAtNightGlass [WTHR:00171636]00191647 - FXWthrInvertDayNightGS [WTHR:00191647]001A65E5 - ConcMuseumWeather [WTHR:001A65E5]001A65F0 - DefaultInteriorWeather [WTHR:001A65F0]001A6994 - CommonwealthSanctuaryClearNukeFog [WTHR:001A6994]001BD481 - CommonwealthGSFoggy [WTHR:001BD481]001C3473 - CommonwealthFoggy [WTHR:001C3473]001C3D5E - CommonwealthGSRadstorm [WTHR:001C3D5E]001C8556 - CommonwealthOvercast [WTHR:001C8556]001CA7E4 - CommonwealthRain [WTHR:001CA7E4]001CC186 - CommonwealthMisty [WTHR:001CC186]001CD096 - CommonwealthMistyRainy [WTHR:001CD096]001D1CEC - FXWthrSunlightOffAtNightBlack [WTHR:001D1CEC]001D670E - CommonwealthClearestSkies [WTHR:001D670E]001E5E60 - CommonwealthDarkSkies [WTHR:001E5E60]001EB2FF - CommonwealthPolluted [WTHR:001EB2FF]001F2529 - CommOvercastTest2 [WTHR:001F2529]001F61A1 - CommonwealthDusty [WTHR:001F61A1]001F61FD - CGPrewarNukeFXWeather [WTHR:001F61FD]0020F46C - CommonwealthOvercastBackup [WTHR:0020F46C]00211221 - VideoVaultExit [WTHR:00211221]002115D7 - CommonwealthMistyRainyBackup [WTHR:002115D7]00216A98 - CommonwealthClearBackup [WTHR:00216A98]0021A563 - CommonwealthClearTrailer1 [WTHR:0021A563]0021A564 - CommonwealthClearTrailer2 [WTHR:0021A564]00222394 - CommonwealthGSRadstormOld [WTHR:00222394]0022239A - CommonwealthRainBackup [WTHR:0022239A]00225922 - CommonwealthSanctuaryClearNoAttach [WTHR:00225922]00226448 - CommonwealthDarkSkies3 [WTHR:00226448]002385FB - CommonwealthDarkSkies2 [WTHR:002385FB]002385FD - CommonwealthClear2 [WTHR:002385FD]002392A2 - CommonwealthFoggyBackup [WTHR:002392A2]002392A3 - CommonwealthGSRadstormBackup [WTHR:002392A3]002392A4 - CommonwealthGSFoggyBackup [WTHR:002392A4]002392A5 - CommonwealthMistyBackup [WTHR:002392A5]002392A6 - CommonwealthSanctuaryClearBackup [WTHR:002392A6]0023AB9C - CommonwealthClearBackup2 [WTHR:0023AB9C]002486A4 - CommonwealthClear_VBFog [WTHR:002486A4]002486A5 - CommonwealthOvercast_VBFog [WTHR:002486A5]WEATHERS DONEException in unit line -1: Error in unit 'UserScript' on line 22 : ';' expected but 'Result' found[Apply Script done] Processed Records: 0, Elapsed Time: 09:47 Link to comment Share on other sites More sharing options...
primem0ver Posted February 15, 2016 Author Share Posted February 15, 2016 Thanks a LOT. That is exactly what I was looking for. I really appreciated it. Link to comment Share on other sites More sharing options...
Recommended Posts