Ask about cheats/tables for single player games here
-
Pekar
- Novice Cheater
- Posts: 22
- Joined: Mon Feb 01, 2021 6:20 pm
- Reputation: 40
Post
by Pekar »
zingfreelancer wrote: ↑Wed Jan 03, 2024 8:12 pm
Anyone tried finding trader arrival countdown timer? I tried searching for it using different methods without any luck. Any suggestions?
Code: Select all
// Eremite.Services.TradeService
public bool IsMainTraderInTheVillage()
{
if (State.visit != null)
{
return State.visit.arrivalTime > State.lastDeparture;
}
return false;
}
-
zingfreelancer
- What is cheating?
- Posts: 3
- Joined: Sat Dec 10, 2022 11:43 pm
- Reputation: 0
Post
by zingfreelancer »
Pekar wrote: ↑Wed Jan 03, 2024 9:10 pm
zingfreelancer wrote: ↑Wed Jan 03, 2024 8:12 pm
Anyone tried finding trader arrival countdown timer? I tried searching for it using different methods without any luck. Any suggestions?
Code: Select all
// Eremite.Services.TradeService
public bool IsMainTraderInTheVillage()
{
if (State.visit != null)
{
return State.visit.arrivalTime > State.lastDeparture;
}
return false;
}
Thank you, I suppose this is specifically for modding a cheat with BepInEx? I was looking for a way to manipulate it with cheat engine.
EDIT:
Was curious and did some poking around, I think what controls trader arrival is travelProgress
Code: Select all
private void UpdateTravelProgress()
{
if (this.State.visit == null || (double) this.State.visit.travelProgress >= 1.0)
return;
this.State.visit.travelProgress += Time.deltaTime * (1f / this.State.visit.travelRawDuration) * Serviceable.EffectsService.GetTraderIntervalRate();
this.State.visit.travelProgress = Mathf.Clamp01(this.State.visit.travelProgress);
}
I did a crude pointer scan and found the travel progress pointer for trading post, but it seems to be a bit unstable yet.
-
Csimbi
- RCE Fanatics
- Posts: 933
- Joined: Sat Apr 29, 2017 9:04 pm
- Reputation: 1321
Post
by Csimbi »