Cyberpunk 2077

Cyberpunk 2077

Vis statistikk:
Carry Capacity console command not saving (SOLVED)
So when I enter a console command to increase carry capacity, specifically

newStat = "CarryCapacity"; newValue = 100; ModStatPla = function(stat, value) PlaEnt = Game.GetPlayer():GetEntityID(); SS = Game.GetStatsSystem(); print(" - Current "..stat.." value: "..SS:GetStatValue(PlaEnt, stat).." \n - Added: "..value.." \n ") SS:AddModifier(PlaEnt, RPGManager.CreateStatModifier(stat, gameStatModifierType.Additive, value)) end ModStatPla(newStat, newValue)

or

effect = "CarryCapacity" ModStatPlayer = function(ID, value) Game.GetStatsSystem():AddModifier(Game.GetPlayer():GetEntityID(), RPGManager.CreateStatModifier(ID, gameStatModifierType.Additive, value)) end if Game.GetStatsSystem():GetStatValue(GetPlayer():GetEntityID(), gamedataStatType.CarryCapacity) >= 49000 then ModStatPlayer(effect, -50000) print(" - INFINITE CARRY CAPACITY: OFF") else ModStatPlayer(effect, 50000) print(" - INFINITE CARRY CAPACITY: ON") end

It works - until I load the game. Is there a way to make carry capacity STAY changed?


+++++++++++++++EDIT: ++++++++++++++++++++++++++++++++
Figured something out. from the mod:

"Categorized All-In-One Command List"
https://www.nexusmods.com/cyberpunk2077/mods/521?tab=description&BH=0


StatValue = 500; StatType = 'CarryCapacity'; PID = Game.GetPlayer():GetEntityID(); SS = Game.GetStatsSystem(); currValue = SS:GetStatValue(PID, StatType) print(" - Current [] value: "..string.format("%f", currValue)) if currValue == StatValue then print(" - "..StatType.." is already "..StatValue..", no need to edit. \n ") else statMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatType, 'Additive', StatValue); SS:RemoveAllModifiers(PID, StatType, true) SS:AddSavedModifier(PID, statMOD) print(" - [] SETTED TO : "..string.format("%f", StatValue).." \n ") end

Replace the 500 at the beginning with whatever value you want.
And look in the Progress section for permanent stat changes, NOT Cheats section.
Sist redigert av Carlton BEaEnkEs, no E; 12. jan. 2024 kl. 22.49
< >
Viser 16 av 6 kommentarer
craigsters 12. jan. 2024 kl. 12.31 
below was posted at reddit for 2.0 patched game https://www.reddit.com/r/cyberpunkgame/comments/16tn4vs/how_to_increase_the_carryweight_capacity_by/

Game.GetStatsSystem():AddModifier(Game.GetPlayer():GetEntityID(),RPGManager.CreateStatModifier(gamedataStatType.CarryCapacity,gameStatModifierType.Additive,99999999))

I'd use this instead, works for me 2.0 Patch Support - No Carry Weight - Disable Encumbrance, works for 2.1 as well https://www.nexusmods.com/cyberpunk2077/mods/9247?tab=files
Sist redigert av craigsters; 12. jan. 2024 kl. 12.44
Opprinnelig skrevet av craigsters:
below was posted at reddit for 2.0 patched game https://www.reddit.com/r/cyberpunkgame/comments/16tn4vs/how_to_increase_the_carryweight_capacity_by/

Game.GetStatsSystem():AddModifier(Game.GetPlayer():GetEntityID(),RPGManager.CreateStatModifier(gamedataStatType.CarryCapacity,gameStatModifierType.Additive,99999999))

I'd use this instead, works for me 2.0 Patch Support - No Carry Weight - Disable Encumbrance, works for 2.1 as well https://www.nexusmods.com/cyberpunk2077/mods/9247?tab=files
That didn't save the change either on saving/loading. And I already tried that mod, the carry capacity just reads as the default.
Opprinnelig skrevet av craigsters:
below was posted at reddit for 2.0 patched game https://www.reddit.com/r/cyberpunkgame/comments/16tn4vs/how_to_increase_the_carryweight_capacity_by/

Game.GetStatsSystem():AddModifier(Game.GetPlayer():GetEntityID(),RPGManager.CreateStatModifier(gamedataStatType.CarryCapacity,gameStatModifierType.Additive,99999999))

I'd use this instead, works for me 2.0 Patch Support - No Carry Weight - Disable Encumbrance, works for 2.1 as well https://www.nexusmods.com/cyberpunk2077/mods/9247?tab=files
Figured something out. from the mod:

"Categorized All-In-One Command List"
https://www.nexusmods.com/cyberpunk2077/mods/521?tab=description&BH=0


StatValue = 500; StatType = 'CarryCapacity'; PID = Game.GetPlayer():GetEntityID(); SS = Game.GetStatsSystem(); currValue = SS:GetStatValue(PID, StatType) print(" - Current [ "..StatType.. " ] value: "..string.format("%f", currValue)) if currValue == StatValue then print(" - "..StatType.." is already "..StatValue..", no need to edit. \n ") else statMOD = Game['gameRPGManager::CreateStatModifier;gamedataStatTypegameStatModifierTypeFloat'](StatType, 'Additive', StatValue); SS:RemoveAllModifiers(PID, StatType, true) SS:AddSavedModifier(PID, statMOD) print(" - [ "..StatType.." ] SETTED TO : "..string.format("%f", StatValue).." \n ") end

Replace the 500 at the beginning with whatever value you want.
And look in the Progress section for permanent stat changes, NOT Cheats section.
HeatSeekeR 5. mars kl. 21.42 
For a permanent simple solution, but only works with Phantom Liberty DLC:
this is a carrying capacity shard. It adds 2 to your capacity. --> Game.AddToInventory("Items.AirdropPermaReward", 1)

So for example, if you want to add 1000 to your carrying capacity, just do this in the CET console (replace 500 with the number you want):
for i = 0, 500 do Game.AddToInventory("Items.AirdropPermaReward", 1) end

NOTE: your game may freeze while the loop runs. Just wait for it to finish, save your game and you are good. Don't be too greedy...
Sist redigert av HeatSeekeR; 5. mars kl. 21.44
ZigCat 2. apr. kl. 13.08 
i actually didn't know you could put loops into the console. thank you so much! =)
craigsters 2. apr. kl. 13.18 
I use this CET mod Simple Menu - An In-Game UI including Hotkeys [www.nexusmods.com] to change my weight limit and to make police not bother me or wanted and for infinite ammo and it has lot's more useful cheats in it's mod
Sist redigert av craigsters; 2. apr. kl. 13.18
< >
Viser 16 av 6 kommentarer
Per side: 1530 50

Dato lagt ut: 12. jan. 2024 kl. 0.57
Innlegg: 6