Page 2 of 5

Re: z Encased

Posted: Fri Sep 10, 2021 5:46 am
by asdfen
thank you

Re: z Encased

Posted: Fri Sep 10, 2021 8:04 am
by frivolousam
Taarvin wrote:
Thu Sep 09, 2021 3:43 pm
BUT maybe, just maybe if u have more chars then data read everything correctly.
If u or someone else already is later in game pls post if its workin - Just sayin cuz when u have 2 different characters in team maybe switching between them read data like it should and all options work (I cant check it due to fact just started game again after full release)

Cheers
Just got a companion, didn't effect the table. First 3 stats of my main are still ?? on the table, changing the rest doesn't do anything and shows different numbers then what I started to game with anyway, half of the companion's stats show ?? the other half shows 10 digit numbers like 2346975936

Re: z Encased

Posted: Fri Sep 10, 2021 9:27 am
by Csimbi
Fixed pointers won't work in this game because more or less every variable is part of a separate "module".
These "modules" are sitting in an unordered list - assigned to an "entity" -, and since it's unordered, a "module" can be at any offset.
I have to say the devs did a great job with the timers - or, I should say, they did a great job to work around having timers. Very few games get this right. Encased devs did it right, good job!
But this nonsense with breaking everything into a bazillion of entities and modules? It is just a waste of CPU time.
I don't know whether they intended to mimic the UT engine - that uses components - but UT engine does not break every single thing into a separate module; UT groups a great deal of things into each component, making the code far more efficient because each component has their variables locally.
Encased seems to have to look everything up - some through a chain of pointers, some through code - making it less efficient than what it could be.
There you go, educational purpose.

Re: z Encased

Posted: Fri Sep 10, 2021 10:21 am
by Taarvin
That was kind of rude :D But thank u for heads up about that "engine"
So there is no physical way to make table even easy on (FE character creation table) which will always work ?

Cheers.

Re: z Encased

Posted: Fri Sep 10, 2021 10:34 am
by Csimbi
I said fixed pointers won't work.

Re: z Encased

Posted: Fri Sep 10, 2021 11:09 am
by variante
The attributes are evenly offset (+14 hex offset between 2 closest attributes iirc). Also, the are stored in float, not 4 byte int, and as stat modifiers on top of the base stats which are determined by character's background (i.e. Wing). Additionally, they are arranged in the same order in the memory every time as far as I can see (e.g. perception is first, fortune is 2nd to last, deftness is before fortune). These are signs that fixed offsets should work with dynamic base pointer. Then again, these can change from machine to machine, so I might be wrong still.

At least, it seems that the primary attributes are reasonably chunked together, unaffected by perks/skills or lack thereof. Be careful not to set them too high though, or the game will freeze for 3 minutes preparing for a combat encounter, and run at 5 fps during the combat.

Re: z Encased

Posted: Fri Sep 10, 2021 12:33 pm
by dougvan
At least some console commands still work, so there's that...

Re: z Encased

Posted: Sat Sep 11, 2021 12:13 am
by Tyrranus
anyone got a pointer for hp or some console command for a god mode? the difficulty spikes this game can throw are annoying

edit:
Cheats.DamageImmune() is a console command that seems to work. But note it does NOT protect from fatigue damages

Re: z Encased

Posted: Sat Sep 11, 2021 1:49 am
by gideon25
Here is a zero weight/No weight script.. Have not tested it that much as im still in the beginning of the game..But should work. You can just open table and copy/paste script into zanzers table. BTW, anyone figured out the value types/how to search for hunger, fatigue, etc.?

Re: z Encased

Posted: Sat Sep 11, 2021 2:30 am
by Lord Blade
--console in the command line will activate the console (which you can use with ~)

Data.Common.Perks.Chef.Cost = -100

Will make taking the Chef perk ADD 100 perk points when you take it. Which will let you get all the rest of them (when you meet the conditions).

Avatar.SecondaryAttributes.Encumbrance = 900000

Will give you infinite carry capacity.

Re: z Encased

Posted: Sat Sep 11, 2021 3:20 am
by himmelily
I wanted to pop in and ask if it was possible for someone how to figure out how to change the walk/stealth speed? As it is, speedhack doesn't seem to change how fast the character runs or stealth walks, and it gets to be really slow sometimes.

Re: z Encased

Posted: Sat Sep 11, 2021 8:33 am
by Turtle
FYI if your game is running hot as hell, make sure you set the FPS limit in NVCP.
I set it to 30 which is fine for a game like this, setting it in the in-game settings didn't do anything.

Re: z Encased

Posted: Sat Sep 11, 2021 2:28 pm
by Fin161
Is there any option to edit main attributes in a middle of the game WITHOUT console commands ?

Re: z Encased

Posted: Sat Sep 11, 2021 3:43 pm
by Csimbi
Not so random console commands:
public static void EnableDebug()
public static void ToggleMachinimaMode()
public static void ToggleMachinimaExclusiveMode()
public static void ToggleSilhouettes()
public static void SetMentallyPowerlessNodesState(bool value)
public static void AddExp(int count)
public static void SendMessage(string msgGuid)
public static void SpeedUpGame(int factor)
public static void SlowDownGame(int factor)
public static void SpeedUpGUI(int factor)
public static void SlowDownGUI(int factor)
public static void SwitchGodMode()
public static void AddToParty(Character character)
public static void RecruitCrump()
public static void RecruitYoko()
public static void RecruitSparrow()
public static void RecruitCheerfulJack()
public static void RecruitKotya()
public static void RecruitFox()
public static void RecruitAll()
public static void MakeAllCompanionsPermanent()
public static void RunOffCrump()
public static void RunOffYoko()
public static void RunOffSparrow()
public static void RunOffCheerfulJack()
public static void RunOffKotya()
public static void RunOffFox()
public static void AddExpAll(int count)
public static void CommandMoveTo(Character companion)
public static void AddFatigue(float value)
public static void AddFatigue(Entity entity, float value)
public static void ResetCooldowns(Entity entity)
public static void GetAmmoForPrimaryWeapon()
public static void GetAmmoForSecondaryWeapon()
private static void GetAmmoForWeapon(bool secondary)
public static void MaxOut()
public static void ResetPrimaryStatsDistribution()
public static void ResetAchievements()
public static void StartRandomEncounter(RandomEncounterConfig randomEncounter)
public static void LoadLocation(Location location)
public static bool IsAchievementUnlocked(Achievement achievement)
public static bool IsDLCUnlocked(DLC dlc)
public static string CurrentIntegration()
public static void Kill(Character character)
public static void Combat_KillAllEnemies()
public static void KillAllCharacters()
public static void KillAllFactionMembersOnLocation(Faction faction)
public static void MakeCombatFreeForAll()
public static void MakeCombatFactionsFreeForAll()
public static void StopCombat()
public static void KnockOutSelf()
public static void OneHp()
public static void SwitchGameGUIVisibility()
public static void AddItem(IItem item, int count)
public static void GetTreasure(TreasureTemplate treasureTemplate)
public static void DetermTreasureItemsStatusEffects(TreasureTemplate treasureTemplate)
public static void DetermStatusEffects(StringBuilder builder, List<StatusEffectApplySettings> effects)
public static void UpgradeAllCharacterSkills()
public static void RaiseReputationEvent(string factionGuid, string eventName)
public static void SetAmmo(Ammo ammo, int count)
public static void SetOnStage(Matter matter)
public static void SetOffStage(Matter matter)
public static void CompleteQuestStep(Quest quest)
public static void SpawnCharacter(CharacterTemplate template)
public static void SetEnemyControl(bool value)
public static void AddStatusEffect(IStatusEffect statusEffect, int time, int chance)
public static void ForceAddStatusEffect(IStatusEffect statusEffect, int time)
public static void AddPerk(ConditionalStatusEffect statusEffect)
public static void ChangeRadiation(float newValue)
public static void DamageImmune()
public static void ActivateFogOfWar(float radius)
public static void DeactivateFogOfWar()
public static void ScaleGUI(int percents)
public static void IgnoreByAI()
public static void ShowAllLocations()
public static void TestTutorial(MiscDataRecord record)
public static void FillPDAWithTestInfo()
public static void JamPrimaryWeapon()
public static void EnterTravelMode()
public static void MakesAvatarMentallyPowerless()
public static void OpenWeaponUpgradeWindow()
public static void LearnAllCraftingRecipes()
public static void RefreshTradesOnLocation()
public static void MapSummonUrsula()
public static void MapSummonRegisteredCar()
public static void MapSummonVehicle(Vehicle vehicle)
public static void OpenRelicSlots()

Re: z Encased

Posted: Sat Sep 11, 2021 4:54 pm
by Darkwind
Csimbi wrote:
Sat Sep 11, 2021 3:43 pm
Not so random console commands:
public static void EnableDebug()
public static void ToggleMachinimaMode()
public static void ToggleMachinimaExclusiveMode()
public static void ToggleSilhouettes()
public static void SetMentallyPowerlessNodesState(bool value)
public static void AddExp(int count)
public static void SendMessage(string msgGuid)
public static void SpeedUpGame(int factor)
public static void SlowDownGame(int factor)
public static void SpeedUpGUI(int factor)
public static void SlowDownGUI(int factor)
public static void SwitchGodMode()
public static void AddToParty(Character character)
public static void RecruitCrump()
public static void RecruitYoko()
public static void RecruitSparrow()
public static void RecruitCheerfulJack()
public static void RecruitKotya()
public static void RecruitFox()
public static void RecruitAll()
public static void MakeAllCompanionsPermanent()
public static void RunOffCrump()
public static void RunOffYoko()
public static void RunOffSparrow()
public static void RunOffCheerfulJack()
public static void RunOffKotya()
public static void RunOffFox()
public static void AddExpAll(int count)
public static void CommandMoveTo(Character companion)
public static void AddFatigue(float value)
public static void AddFatigue(Entity entity, float value)
public static void ResetCooldowns(Entity entity)
public static void GetAmmoForPrimaryWeapon()
public static void GetAmmoForSecondaryWeapon()
private static void GetAmmoForWeapon(bool secondary)
public static void MaxOut()
public static void ResetPrimaryStatsDistribution()
public static void ResetAchievements()
public static void StartRandomEncounter(RandomEncounterConfig randomEncounter)
public static void LoadLocation(Location location)
public static bool IsAchievementUnlocked(Achievement achievement)
public static bool IsDLCUnlocked(DLC dlc)
public static string CurrentIntegration()
public static void Kill(Character character)
public static void Combat_KillAllEnemies()
public static void KillAllCharacters()
public static void KillAllFactionMembersOnLocation(Faction faction)
public static void MakeCombatFreeForAll()
public static void MakeCombatFactionsFreeForAll()
public static void StopCombat()
public static void KnockOutSelf()
public static void OneHp()
public static void SwitchGameGUIVisibility()
public static void AddItem(IItem item, int count)
public static void GetTreasure(TreasureTemplate treasureTemplate)
public static void DetermTreasureItemsStatusEffects(TreasureTemplate treasureTemplate)
public static void DetermStatusEffects(StringBuilder builder, List<StatusEffectApplySettings> effects)
public static void UpgradeAllCharacterSkills()
public static void RaiseReputationEvent(string factionGuid, string eventName)
public static void SetAmmo(Ammo ammo, int count)
public static void SetOnStage(Matter matter)
public static void SetOffStage(Matter matter)
public static void CompleteQuestStep(Quest quest)
public static void SpawnCharacter(CharacterTemplate template)
public static void SetEnemyControl(bool value)
public static void AddStatusEffect(IStatusEffect statusEffect, int time, int chance)
public static void ForceAddStatusEffect(IStatusEffect statusEffect, int time)
public static void AddPerk(ConditionalStatusEffect statusEffect)
public static void ChangeRadiation(float newValue)
public static void DamageImmune()
public static void ActivateFogOfWar(float radius)
public static void DeactivateFogOfWar()
public static void ScaleGUI(int percents)
public static void IgnoreByAI()
public static void ShowAllLocations()
public static void TestTutorial(MiscDataRecord record)
public static void FillPDAWithTestInfo()
public static void JamPrimaryWeapon()
public static void EnterTravelMode()
public static void MakesAvatarMentallyPowerless()
public static void OpenWeaponUpgradeWindow()
public static void LearnAllCraftingRecipes()
public static void RefreshTradesOnLocation()
public static void MapSummonUrsula()
public static void MapSummonRegisteredCar()
public static void MapSummonVehicle(Vehicle vehicle)
public static void OpenRelicSlots()
These all throw an error "Can't resolve global object public"