Effects modding

Summary

Published: Jul 12 2024 by @고양이 Last documented edit: Jul 12 2024 by manavortex

Wait, this is not what I want!

CET Script

This script extracts all the VFX names from TweakDB and prints them in the CET Console along with their TweakDB record they are attached to; these can be reused for buffs & status effects.

local GetVFX = function(self)
	local VFX = {}
	local loops = TweakDB:GetRecords('gamedataStatusEffectFX_Record')
	for i,v in ipairs(loops) do
		local recordID = v:GetRecordID().value
		local thisVFX = TweakDB:GetFlat(recordID..'.name').value
		VFX[thisVFX]=recordID
	end
	
	loops = TweakDB:GetRecords('gamedataEffector_Record')
	for i,v in ipairs(loops) do
		local recordID = v:GetRecordID().value
		local thisVFX = TweakDB:GetFlat(recordID..'.vfxName')
		if thisVFX ~= nil then
			thisVFX = thisVFX.value
			VFX[thisVFX]=recordID
		end
	end
	for k,v in pairs(VFX) do
		local theString = 'VFX: '..tostring(v)..'=>'..tostring(k)
		print(theString)
	end;
end;
GetVFX()

FX player (Nexus) is a CET mod that lets you play game effects.

To select and identify effect files used in different ways

As we progress through the game, we encounter many effects, such as those seen in Cyberspace. Since I don't yet know everything, I'll show you the process of creating a mod.

Firstly, we choose the effect we want to import. I found an effect I want to use for overclocking during the Somewhat Damaged quest, and the quest code is Q305_bunker. Navigate to the asset browser and search for related items, focusing on extracting the effect files.

fxLibrary.lua

To confirm if this effect is what I'm looking for, I need the FX player mod. Based on the Cyberpunk installation folder, go to bin\x64\plugins\cyber_engine_tweaks\mods\FxPlayer\modules and confirm that fxLibrary.lua operates in the same format.

Copy the file path of the desired effect to play these files in-game using CET (Cyber Engine Tweaks).

Last updated

Was this helpful?