CP77_radioExt
CP77_radioExt copied to clipboard
init.lua:75: in function <init.lua:68>
In version 2.12a, it doesn't seem to be working. The following log content was found in the MOD folder(All the logs keep repeating this content) radioExt.2.log
I'm having the same issue.
+1, having the same issue
I ran into this issue as well. To provide the answer up-front: this happens if you get to "[RadioExt] Error: Red4Ext part of the mod is missing" (this was my case) or "[RadioExt] Red4Ext Part is not up to date: Version is xxx Expected: xxx or newer" in the troubleshooting section. In my case, it was due to the current latest release (v.2.6)'s DLL being incompatible with Cyberpunk 2077 version 2.2 (and 2.12?). v2.7 is on Nexus Mods, and works with 2.2, although the key differences are the minimum version in the just init.lua and pre-compiled RadioExt.dll (see commit 4d51803). v2.6 could be upgraded to v2.7 by replacing 2 files without downloading from Nexus Mods.
Confirming the Issue + Fix
(This is only for "[RadioExt] Error: Red4Ext part of the mod is missing")
To avoid going down the route of trying to fix this and have it not be the problem, you can confirm if this is the problem for you by going to the red4ext/logs/ and opening the log file for the run. If it contains a DLL loading error, the RadioExt.dll is incompatible. Example:
[YYYY-MM-DD HH:MM:SS.MMM] [RED4ext] [info] RED4ext has been successfully initialized
[YYYY-MM-DD HH:MM:SS.MMM] [RED4ext] [info] RED4ext is starting up...
[YYYY-MM-DD HH:MM:SS.MMM] [RED4ext] [info] Loading plugins...
[YYYY-MM-DD HH:MM:SS.MMM] [RED4ext] [info] Loading plugin from '...\Cyberpunk 2077\red4ext\plugins\RadioExt\fmod.dll'...
[YYYY-MM-DD HH:MM:SS.MMM] [RED4ext] [info] Loading plugin from '...\Cyberpunk 2077\red4ext\plugins\RadioExt\RadioExt.dll'...
[YYYY-MM-DD HH:MM:SS.MMM] [RED4ext] [warning] Could not load plugin 'RadioExt'. Error code: 1114, msg: 'A dynamic link library (DLL) initialization routine failed.', path: '...\Cyberpunk 2077\red4ext\plugins\RadioExt\RadioExt.dll'
If there is no log file or no attempt to load RadioExt, RED4Ext is probably not set up correctly.
Lua Cause
Within init.lua, the error occurs at line 75 (or 72?) because radioManager is nil. It is initialized at line 41, but this won't happen if RED4Ext isn't able to load the DLL or at all (logged at line 33 and ended at line 34). An incompatible version would also cause the same problem at line 37 and return at line 38.
The error could be silenced by checking if self.radioManager is defined. Ex:
...
registerForEvent("onUpdate", function(delta)
if not self.radioManager then return end --Avoid flooding logs with errors every update if RED4Ext failed to load.
if (not self.runtimeData.inMenu) and self.runtimeData.inGame then
self.Cron.Update(delta)
...
I would suggest having a check like this since this error seems to happen at whatever your framerate is. That can't be good for disk I/O.