[REQ] Against The Storm

Ask about cheats/tables for single player games here
Pekar
Novice Cheater
Novice Cheater
Posts: 17
Joined: Mon Feb 01, 2021 6:20 pm
Reputation: 33

Re: [REQ] Against The Storm

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?
What is cheating?
Posts: 3
Joined: Sat Dec 10, 2022 11:43 pm
Reputation: 0

Re: [REQ] Against The Storm

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.
Image

User avatar
Csimbi
RCE Fanatics
RCE Fanatics
Posts: 887
Joined: Sat Apr 29, 2017 9:04 pm
Reputation: 1222

Re: [REQ] Against The Storm

Post by Csimbi »

Added my table here.

Post Reply

Who is online

Users browsing this forum: Google Adsense [Bot], Shikardo, ToonTownTipz