Page 1 of 1

Finding countdown values in Stellaris

Posted: Sun Apr 20, 2025 4:20 am
by DonPalet
Hi,

I'm trying to find countdowns for ship building in stellaris for instant build.
I tried finding all types, but it doesn't seem to drop below 3000 searches. I also tried float and double and did not find anything. I tried counting both increased value and decreased value.

I wish I could attach the image, but it shows the number of days till it is completed, and the value counts down.

Re: Finding countdown values in Stellaris

Posted: Tue Apr 29, 2025 12:36 pm
by eggs
DonPalet wrote:
Sun Apr 20, 2025 4:20 am
Hi,

I'm trying to find countdowns for ship building in stellaris for instant build.
I tried finding all types, but it doesn't seem to drop below 3000 searches. I also tried float and double and did not find anything. I tried counting both increased value and decreased value.

I wish I could attach the image, but it shows the number of days till it is completed, and the value counts down.
i didnt do anything with stellaris but looking at the table in viewtopic.php?f=4&t=9635
you can conclude:
1. it's a 8-byte (4/8 byte integer) cowntdown. (he is not using xmm registers to do value comparisons)
2. the structure is
0x0:countdownnumber
0x8:countdownmax (the comparison is made using those offsets)
3. it's a reverse-countdown
the number increases instead of decreasing (in his script he compares the countdown against countdown + 0x8 instead of against 0)

So if you want to scan for a number you need to calculate buildtime - current cowntdown to get a rough value.
I can not tell wether the value is in seconds or milliseconds (my guess is the former)

good luck!