Page 3 of 4

Re: [REQ]GAS STATION SIMULATOR

Posted: Wed Sep 22, 2021 1:11 am
by Allen1013
Sadly couldn't get any of it to turn on. Steam version.

Re: [REQ]GAS STATION SIMULATOR

Posted: Wed Sep 22, 2021 6:15 am
by rambo99jose
I need someone with 2 hired workers to test this unlimited stamina script. It will freeze stamina but allow regen if they go on a break. I only have one worker so cant test both but should theoretically work with 2 as well.

game version: Version: v1.0.1.37785

Instead of modifying the stamina directly I checked if the game was adding negative number and if so then zero it out so it wont sub anything (frozen stamina). To get this I found out what did write to value and hooked there.
Unl Worker Stamina Script (prevent sub)

Code: Select all

{ Game   : GSS2-Win64-Shipping.exe
  Version: v1.0.1.37785
  Date   : 2021-09-22
  Author : rambo99jose
}

[ENABLE]

aobscanmodule(INJECT_wStam,GSS2-Win64-Shipping.exe,41 03 88 58 06 00 00) // should be unique
alloc(newmem_wStam,$1000,INJECT_wStam)

label(code)
label(return)

newmem_wStam:
  //[rcx+000000E0] = how much stam to add/sub
  //[r8+0000065C]= max stam (600)
  //[r8+00000658]= current stam

  //check if adding negative stam, and zero it
  //this will allow stam regen but no sub
  cmp ecx,0
  jge code

  mov ecx,0

code:
  add ecx,[r8+00000658]
  jmp return

INJECT_wStam:
  jmp newmem_wStam
  nop 2
return:
registersymbol(INJECT_wStam)

[DISABLE]

INJECT_wStam:
  db 41 03 88 58 06 00 00

unregistersymbol(INJECT_wStam)
dealloc(newmem_wStam)

{
// ORIGINAL CODE - INJECTION POINT: GSS2-Win64-Shipping.exe+B03D75

GSS2-Win64-Shipping.exe+B03D50: 40 55                    - push rbp
GSS2-Win64-Shipping.exe+B03D52: 53                       - push rbx
GSS2-Win64-Shipping.exe+B03D53: 41 57                    - push r15
GSS2-Win64-Shipping.exe+B03D55: 48 8B EC                 - mov rbp,rsp
GSS2-Win64-Shipping.exe+B03D58: 48 83 EC 70              - sub rsp,70
GSS2-Win64-Shipping.exe+B03D5C: 48 8B D9                 - mov rbx,rcx
GSS2-Win64-Shipping.exe+B03D5F: 45 33 FF                 - xor r15d,r15d
GSS2-Win64-Shipping.exe+B03D62: F3 0F 2C 89 E0 00 00 00  - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B03D6A: 4C 8B 43 38              - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B03D6E: 41 8B 80 5C 06 00 00     - mov eax,[r8+0000065C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B03D75: 41 03 88 58 06 00 00     - add ecx,[r8+00000658]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B03D7C: 3B C8                    - cmp ecx,eax
GSS2-Win64-Shipping.exe+B03D7E: 7F 08                    - jg GSS2-Win64-Shipping.exe+B03D88
GSS2-Win64-Shipping.exe+B03D80: 85 C9                    - test ecx,ecx
GSS2-Win64-Shipping.exe+B03D82: 8B C1                    - mov eax,ecx
GSS2-Win64-Shipping.exe+B03D84: 41 0F 48 C7              - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B03D88: 41 89 80 58 06 00 00     - mov [r8+00000658],eax
GSS2-Win64-Shipping.exe+B03D8F: 48 8B 4B 38              - mov rcx,[rbx+38]
GSS2-Win64-Shipping.exe+B03D93: 8B 81 20 06 00 00        - mov eax,[rcx+00000620]
GSS2-Win64-Shipping.exe+B03D99: 85 C0                    - test eax,eax
GSS2-Win64-Shipping.exe+B03D9B: 7E 0C                    - jle GSS2-Win64-Shipping.exe+B03DA9
}

Re: [REQ]GAS STATION SIMULATOR

Posted: Thu Sep 23, 2021 12:49 am
by zray33
it works

Re: [REQ]GAS STATION SIMULATOR

Posted: Thu Sep 23, 2021 12:59 am
by rambo99jose
zray33 wrote:
Thu Sep 23, 2021 12:49 am
it works
ok cool. I wont be playing the game anymore so if anyone wants to include it in their table feel free.

Re: [REQ]GAS STATION SIMULATOR

Posted: Mon Sep 27, 2021 1:08 pm
by chelynsplay
Any working table? especially Stamina freeze?

Re: [REQ]GAS STATION SIMULATOR

Posted: Mon Sep 27, 2021 8:45 pm
by Atom
chelynsplay wrote:
Mon Sep 27, 2021 1:08 pm
Any working table? especially Stamina freeze?
Updated stamina is straight forward:

Code: Select all

{ Game   : GSS2-Win64-Shipping.exe
  Version: v1.0.1.37938
  Date   : 2021-09-27
  Author : rambo99jose, Atom
}

[ENABLE]

aobscanmodule(INJECT_wStam,GSS2-Win64-Shipping.exe,41 03 88 ?? ?? ?? ?? 3b c8 7f 08) // should be unique
alloc(newmem_wStam,$1000,INJECT_wStam)

label(code)
label(return)

newmem_wStam:
  //[rcx+000000E0] = how much stam to add/sub
  //[r8+00000???] = max stam (600)
  //[r8+00000668] = current stam

  //check if adding negative stam, and zero it
  //this will allow stam regen but no sub
  cmp ecx,0
  jge code

  mov ecx,0

code:
  add ecx,[r8+00000668]
  jmp return

INJECT_wStam:
  jmp newmem_wStam
  nop 2
return:
registersymbol(INJECT_wStam)

[DISABLE]

INJECT_wStam:
  db 41 03 88 68 06 00 00

unregistersymbol(INJECT_wStam)
dealloc(newmem_wStam)

{
////////////////////////////////////
// 1.0.1.37938

GSS2-Win64-Shipping.exe+B048EF - 45 33 FF              - xor r15d,r15d
GSS2-Win64-Shipping.exe+B048F2 - F3 0F2C 89 E0000000   - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B048FA - 4C 8B 43 38           - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B048FE - 41 8B 80 6C060000     - mov eax,[r8+0000066C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B04905 - 41 03 88 68060000     - add ecx,[r8+00000668]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B0490C - 3B C8                 - cmp ecx,eax
GSS2-Win64-Shipping.exe+B0490E - 7F 08                 - jg GSS2-Win64-Shipping.exe+B04918
GSS2-Win64-Shipping.exe+B04910 - 85 C9                 - test ecx,ecx
GSS2-Win64-Shipping.exe+B04912 - 8B C1                 - mov eax,ecx
GSS2-Win64-Shipping.exe+B04914 - 41 0F48 C7            - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B04918 - 41 89 80 68060000     - mov [r8+00000668],eax


////////////////////////////////////
// ORIGINAL CODE - INJECTION POINT: GSS2-Win64-Shipping.exe+B03D75

GSS2-Win64-Shipping.exe+B03D50: 40 55                    - push rbp
GSS2-Win64-Shipping.exe+B03D52: 53                       - push rbx
GSS2-Win64-Shipping.exe+B03D53: 41 57                    - push r15
GSS2-Win64-Shipping.exe+B03D55: 48 8B EC                 - mov rbp,rsp
GSS2-Win64-Shipping.exe+B03D58: 48 83 EC 70              - sub rsp,70
GSS2-Win64-Shipping.exe+B03D5C: 48 8B D9                 - mov rbx,rcx
GSS2-Win64-Shipping.exe+B03D5F: 45 33 FF                 - xor r15d,r15d
GSS2-Win64-Shipping.exe+B03D62: F3 0F 2C 89 E0 00 00 00  - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B03D6A: 4C 8B 43 38              - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B03D6E: 41 8B 80 5C 06 00 00     - mov eax,[r8+0000065C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B03D75: 41 03 88 58 06 00 00     - add ecx,[r8+00000658]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B03D7C: 3B C8                    - cmp ecx,eax
GSS2-Win64-Shipping.exe+B03D7E: 7F 08                    - jg GSS2-Win64-Shipping.exe+B03D88
GSS2-Win64-Shipping.exe+B03D80: 85 C9                    - test ecx,ecx
GSS2-Win64-Shipping.exe+B03D82: 8B C1                    - mov eax,ecx
GSS2-Win64-Shipping.exe+B03D84: 41 0F 48 C7              - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B03D88: 41 89 80 58 06 00 00     - mov [r8+00000658],eax
GSS2-Win64-Shipping.exe+B03D8F: 48 8B 4B 38              - mov rcx,[rbx+38]
GSS2-Win64-Shipping.exe+B03D93: 8B 81 20 06 00 00        - mov eax,[rcx+00000620]
GSS2-Win64-Shipping.exe+B03D99: 85 C0                    - test eax,eax
GSS2-Win64-Shipping.exe+B03D9B: 7E 0C                    - jle GSS2-Win64-Shipping.exe+B03DA9

}

Re: [REQ]GAS STATION SIMULATOR

Posted: Mon Sep 27, 2021 9:38 pm
by chelynsplay
Atom wrote:
Mon Sep 27, 2021 8:45 pm
chelynsplay wrote:
Mon Sep 27, 2021 1:08 pm
Any working table? especially Stamina freeze?
Updated stamina is straight forward:

Code: Select all

{ Game   : GSS2-Win64-Shipping.exe
  Version: v1.0.1.37938
  Date   : 2021-09-27
  Author : rambo99jose, Atom
}

[ENABLE]

aobscanmodule(INJECT_wStam,GSS2-Win64-Shipping.exe,41 03 88 ?? ?? ?? ?? 3b c8 7f 08) // should be unique
alloc(newmem_wStam,$1000,INJECT_wStam)

label(code)
label(return)

newmem_wStam:
  //[rcx+000000E0] = how much stam to add/sub
  //[r8+00000???] = max stam (600)
  //[r8+00000668] = current stam

  //check if adding negative stam, and zero it
  //this will allow stam regen but no sub
  cmp ecx,0
  jge code

  mov ecx,0

code:
  add ecx,[r8+00000668]
  jmp return

INJECT_wStam:
  jmp newmem_wStam
  nop 2
return:
registersymbol(INJECT_wStam)

[DISABLE]

INJECT_wStam:
  db 41 03 88 68 06 00 00

unregistersymbol(INJECT_wStam)
dealloc(newmem_wStam)

{
////////////////////////////////////
// 1.0.1.37938

GSS2-Win64-Shipping.exe+B048EF - 45 33 FF              - xor r15d,r15d
GSS2-Win64-Shipping.exe+B048F2 - F3 0F2C 89 E0000000   - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B048FA - 4C 8B 43 38           - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B048FE - 41 8B 80 6C060000     - mov eax,[r8+0000066C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B04905 - 41 03 88 68060000     - add ecx,[r8+00000668]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B0490C - 3B C8                 - cmp ecx,eax
GSS2-Win64-Shipping.exe+B0490E - 7F 08                 - jg GSS2-Win64-Shipping.exe+B04918
GSS2-Win64-Shipping.exe+B04910 - 85 C9                 - test ecx,ecx
GSS2-Win64-Shipping.exe+B04912 - 8B C1                 - mov eax,ecx
GSS2-Win64-Shipping.exe+B04914 - 41 0F48 C7            - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B04918 - 41 89 80 68060000     - mov [r8+00000668],eax


////////////////////////////////////
// ORIGINAL CODE - INJECTION POINT: GSS2-Win64-Shipping.exe+B03D75

GSS2-Win64-Shipping.exe+B03D50: 40 55                    - push rbp
GSS2-Win64-Shipping.exe+B03D52: 53                       - push rbx
GSS2-Win64-Shipping.exe+B03D53: 41 57                    - push r15
GSS2-Win64-Shipping.exe+B03D55: 48 8B EC                 - mov rbp,rsp
GSS2-Win64-Shipping.exe+B03D58: 48 83 EC 70              - sub rsp,70
GSS2-Win64-Shipping.exe+B03D5C: 48 8B D9                 - mov rbx,rcx
GSS2-Win64-Shipping.exe+B03D5F: 45 33 FF                 - xor r15d,r15d
GSS2-Win64-Shipping.exe+B03D62: F3 0F 2C 89 E0 00 00 00  - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B03D6A: 4C 8B 43 38              - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B03D6E: 41 8B 80 5C 06 00 00     - mov eax,[r8+0000065C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B03D75: 41 03 88 58 06 00 00     - add ecx,[r8+00000658]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B03D7C: 3B C8                    - cmp ecx,eax
GSS2-Win64-Shipping.exe+B03D7E: 7F 08                    - jg GSS2-Win64-Shipping.exe+B03D88
GSS2-Win64-Shipping.exe+B03D80: 85 C9                    - test ecx,ecx
GSS2-Win64-Shipping.exe+B03D82: 8B C1                    - mov eax,ecx
GSS2-Win64-Shipping.exe+B03D84: 41 0F 48 C7              - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B03D88: 41 89 80 58 06 00 00     - mov [r8+00000658],eax
GSS2-Win64-Shipping.exe+B03D8F: 48 8B 4B 38              - mov rcx,[rbx+38]
GSS2-Win64-Shipping.exe+B03D93: 8B 81 20 06 00 00        - mov eax,[rcx+00000620]
GSS2-Win64-Shipping.exe+B03D99: 85 C0                    - test eax,eax
GSS2-Win64-Shipping.exe+B03D9B: 7E 0C                    - jle GSS2-Win64-Shipping.exe+B03DA9

}
Thank you, It's working. finally I can freeze Stamina.

Re: [REQ]GAS STATION SIMULATOR

Posted: Sat Oct 09, 2021 5:45 pm
by a15mni
There's a new update yesterday and rendered the infinite stamina useless(not sure other scripts)...Anybody can help?

Re: [REQ]GAS STATION SIMULATOR

Posted: Tue Oct 12, 2021 10:10 pm
by Atom
a15mni wrote:
Sat Oct 09, 2021 5:45 pm
There's a new update yesterday and rendered the infinite stamina useless(not sure other scripts)...Anybody can help?
Updated, however now this is a very basic freeze. Not sure if this can handle all states. No regen like with the previous version.

Code: Select all

{ Game   : GSS2-Win64-Shipping.exe
  Version: v1.0.1.38259
  Date   : 2021-10-13
  Author : rambo99jose, Atom
}

[ENABLE]

aobscanmodule(INJECT_wStam,GSS2-Win64-Shipping.exe,32 c0 c3 f3 0f 11 89 ?? ?? ?? ?? b0 01 c3) // should be unique

INJECT_wStam+3:
  nop 8
return:
registersymbol(INJECT_wStam)

[DISABLE]

INJECT_wStam+3:
  db f3 0f 11 89 68 06 00 00

unregistersymbol(INJECT_wStam)


{
// 1.0.1.38259

GSS2-Win64-Shipping.exe+AF4090 - 0F57 C0               - xorps xmm0,xmm0
GSS2-Win64-Shipping.exe+AF4093 - 0F2F C8               - comiss xmm1,xmm0
GSS2-Win64-Shipping.exe+AF4096 - 73 0D                 - jae GSS2-Win64-Shipping.exe+AF40A5
GSS2-Win64-Shipping.exe+AF4098 - C7 81 68060000 00000000 - mov [rcx+00000668],00000000
GSS2-Win64-Shipping.exe+AF40A2 - 32 C0                 - xor al,al
GSS2-Win64-Shipping.exe+AF40A4 - C3                    - ret
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+AF40A5 - F3 0F11 89 68060000   - movss [rcx+00000668],xmm1
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+AF40AD - B0 01                 - mov al,01
GSS2-Win64-Shipping.exe+AF40AF - C3                    - ret
GSS2-Win64-Shipping.exe+AF40B0 - 48 8B C4              - mov rax,rsp
GSS2-Win64-Shipping.exe+AF40B3 - 48 89 58 10           - mov [rax+10],rbx
GSS2-Win64-Shipping.exe+AF40B7 - 55                    - push rbp
GSS2-Win64-Shipping.exe+AF40B8 - 56                    - push rsi



////////////////////////////////////
// 1.0.1.37938

GSS2-Win64-Shipping.exe+B048EF - 45 33 FF              - xor r15d,r15d
GSS2-Win64-Shipping.exe+B048F2 - F3 0F2C 89 E0000000   - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B048FA - 4C 8B 43 38           - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B048FE - 41 8B 80 6C060000     - mov eax,[r8+0000066C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B04905 - 41 03 88 68060000     - add ecx,[r8+00000668]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B0490C - 3B C8                 - cmp ecx,eax
GSS2-Win64-Shipping.exe+B0490E - 7F 08                 - jg GSS2-Win64-Shipping.exe+B04918
GSS2-Win64-Shipping.exe+B04910 - 85 C9                 - test ecx,ecx
GSS2-Win64-Shipping.exe+B04912 - 8B C1                 - mov eax,ecx
GSS2-Win64-Shipping.exe+B04914 - 41 0F48 C7            - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B04918 - 41 89 80 68060000     - mov [r8+00000668],eax


////////////////////////////////////
// ORIGINAL CODE - INJECTION POINT: GSS2-Win64-Shipping.exe+B03D75

GSS2-Win64-Shipping.exe+B03D50: 40 55                    - push rbp
GSS2-Win64-Shipping.exe+B03D52: 53                       - push rbx
GSS2-Win64-Shipping.exe+B03D53: 41 57                    - push r15
GSS2-Win64-Shipping.exe+B03D55: 48 8B EC                 - mov rbp,rsp
GSS2-Win64-Shipping.exe+B03D58: 48 83 EC 70              - sub rsp,70
GSS2-Win64-Shipping.exe+B03D5C: 48 8B D9                 - mov rbx,rcx
GSS2-Win64-Shipping.exe+B03D5F: 45 33 FF                 - xor r15d,r15d
GSS2-Win64-Shipping.exe+B03D62: F3 0F 2C 89 E0 00 00 00  - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B03D6A: 4C 8B 43 38              - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B03D6E: 41 8B 80 5C 06 00 00     - mov eax,[r8+0000065C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B03D75: 41 03 88 58 06 00 00     - add ecx,[r8+00000658]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B03D7C: 3B C8                    - cmp ecx,eax
GSS2-Win64-Shipping.exe+B03D7E: 7F 08                    - jg GSS2-Win64-Shipping.exe+B03D88
GSS2-Win64-Shipping.exe+B03D80: 85 C9                    - test ecx,ecx
GSS2-Win64-Shipping.exe+B03D82: 8B C1                    - mov eax,ecx
GSS2-Win64-Shipping.exe+B03D84: 41 0F 48 C7              - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B03D88: 41 89 80 58 06 00 00     - mov [r8+00000658],eax
GSS2-Win64-Shipping.exe+B03D8F: 48 8B 4B 38              - mov rcx,[rbx+38]
GSS2-Win64-Shipping.exe+B03D93: 8B 81 20 06 00 00        - mov eax,[rcx+00000620]
GSS2-Win64-Shipping.exe+B03D99: 85 C0                    - test eax,eax
GSS2-Win64-Shipping.exe+B03D9B: 7E 0C                    - jle GSS2-Win64-Shipping.exe+B03DA9

}

Re: [REQ]GAS STATION SIMULATOR

Posted: Thu Oct 14, 2021 7:38 am
by a15mni
Atom wrote:
Tue Oct 12, 2021 10:10 pm
a15mni wrote:
Sat Oct 09, 2021 5:45 pm
There's a new update yesterday and rendered the infinite stamina useless(not sure other scripts)...Anybody can help?
Updated, however now this is a very basic freeze. Not sure if this can handle all states. No regen like with the previous version.

Code: Select all

{ Game   : GSS2-Win64-Shipping.exe
  Version: v1.0.1.38259
  Date   : 2021-10-13
  Author : rambo99jose, Atom
}

[ENABLE]

aobscanmodule(INJECT_wStam,GSS2-Win64-Shipping.exe,32 c0 c3 f3 0f 11 89 ?? ?? ?? ?? b0 01 c3) // should be unique

INJECT_wStam+3:
  nop 8
return:
registersymbol(INJECT_wStam)

[DISABLE]

INJECT_wStam+3:
  db f3 0f 11 89 68 06 00 00

unregistersymbol(INJECT_wStam)


{
// 1.0.1.38259

GSS2-Win64-Shipping.exe+AF4090 - 0F57 C0               - xorps xmm0,xmm0
GSS2-Win64-Shipping.exe+AF4093 - 0F2F C8               - comiss xmm1,xmm0
GSS2-Win64-Shipping.exe+AF4096 - 73 0D                 - jae GSS2-Win64-Shipping.exe+AF40A5
GSS2-Win64-Shipping.exe+AF4098 - C7 81 68060000 00000000 - mov [rcx+00000668],00000000
GSS2-Win64-Shipping.exe+AF40A2 - 32 C0                 - xor al,al
GSS2-Win64-Shipping.exe+AF40A4 - C3                    - ret
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+AF40A5 - F3 0F11 89 68060000   - movss [rcx+00000668],xmm1
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+AF40AD - B0 01                 - mov al,01
GSS2-Win64-Shipping.exe+AF40AF - C3                    - ret
GSS2-Win64-Shipping.exe+AF40B0 - 48 8B C4              - mov rax,rsp
GSS2-Win64-Shipping.exe+AF40B3 - 48 89 58 10           - mov [rax+10],rbx
GSS2-Win64-Shipping.exe+AF40B7 - 55                    - push rbp
GSS2-Win64-Shipping.exe+AF40B8 - 56                    - push rsi



////////////////////////////////////
// 1.0.1.37938

GSS2-Win64-Shipping.exe+B048EF - 45 33 FF              - xor r15d,r15d
GSS2-Win64-Shipping.exe+B048F2 - F3 0F2C 89 E0000000   - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B048FA - 4C 8B 43 38           - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B048FE - 41 8B 80 6C060000     - mov eax,[r8+0000066C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B04905 - 41 03 88 68060000     - add ecx,[r8+00000668]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B0490C - 3B C8                 - cmp ecx,eax
GSS2-Win64-Shipping.exe+B0490E - 7F 08                 - jg GSS2-Win64-Shipping.exe+B04918
GSS2-Win64-Shipping.exe+B04910 - 85 C9                 - test ecx,ecx
GSS2-Win64-Shipping.exe+B04912 - 8B C1                 - mov eax,ecx
GSS2-Win64-Shipping.exe+B04914 - 41 0F48 C7            - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B04918 - 41 89 80 68060000     - mov [r8+00000668],eax


////////////////////////////////////
// ORIGINAL CODE - INJECTION POINT: GSS2-Win64-Shipping.exe+B03D75

GSS2-Win64-Shipping.exe+B03D50: 40 55                    - push rbp
GSS2-Win64-Shipping.exe+B03D52: 53                       - push rbx
GSS2-Win64-Shipping.exe+B03D53: 41 57                    - push r15
GSS2-Win64-Shipping.exe+B03D55: 48 8B EC                 - mov rbp,rsp
GSS2-Win64-Shipping.exe+B03D58: 48 83 EC 70              - sub rsp,70
GSS2-Win64-Shipping.exe+B03D5C: 48 8B D9                 - mov rbx,rcx
GSS2-Win64-Shipping.exe+B03D5F: 45 33 FF                 - xor r15d,r15d
GSS2-Win64-Shipping.exe+B03D62: F3 0F 2C 89 E0 00 00 00  - cvttss2si ecx,[rcx+000000E0]
GSS2-Win64-Shipping.exe+B03D6A: 4C 8B 43 38              - mov r8,[rbx+38]
GSS2-Win64-Shipping.exe+B03D6E: 41 8B 80 5C 06 00 00     - mov eax,[r8+0000065C]
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+B03D75: 41 03 88 58 06 00 00     - add ecx,[r8+00000658]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+B03D7C: 3B C8                    - cmp ecx,eax
GSS2-Win64-Shipping.exe+B03D7E: 7F 08                    - jg GSS2-Win64-Shipping.exe+B03D88
GSS2-Win64-Shipping.exe+B03D80: 85 C9                    - test ecx,ecx
GSS2-Win64-Shipping.exe+B03D82: 8B C1                    - mov eax,ecx
GSS2-Win64-Shipping.exe+B03D84: 41 0F 48 C7              - cmovs eax,r15d
GSS2-Win64-Shipping.exe+B03D88: 41 89 80 58 06 00 00     - mov [r8+00000658],eax
GSS2-Win64-Shipping.exe+B03D8F: 48 8B 4B 38              - mov rcx,[rbx+38]
GSS2-Win64-Shipping.exe+B03D93: 8B 81 20 06 00 00        - mov eax,[rcx+00000620]
GSS2-Win64-Shipping.exe+B03D99: 85 C0                    - test eax,eax
GSS2-Win64-Shipping.exe+B03D9B: 7E 0C                    - jle GSS2-Win64-Shipping.exe+B03DA9

}
thank you so much for this

Re: [REQ]GAS STATION SIMULATOR

Posted: Fri Oct 15, 2021 4:30 am
by rambo99jose
1.0.1.38259 Unlimited Worker Stamina

Code: Select all

{ Game   : GSS2-Win64-Shipping.exe
  Version: 1.0.1.38259
  Date   : 2021-10-15
  Author : rambo99jose
}

[ENABLE]

aobscanmodule(INJECT_unlStam,GSS2-Win64-Shipping.exe,F3 0F 58 89 68 06 00 00) // should be unique
alloc(newmem_unlStam,$1000,INJECT_unlStam)

label(code)
label(return)
label(done)

newmem_unlStam:

  push rax
  cvtss2si rax, xmm1 //convert to int
  cmp rax,0  //check if xmm1 has positive stamina (regen)
  jg done  //if pos then its regening, we allow it

  //else we zero it to prevent stamina decrease
  mov rax,0
  movq xmm1,rax

done:  //clean up
  pop rax

code:
  addss xmm1,[rcx+00000668]
  jmp return

INJECT_unlStam:
  jmp newmem_unlStam
  nop 3
return:
registersymbol(INJECT_unlStam)

[DISABLE]

INJECT_unlStam:
  db F3 0F 58 89 68 06 00 00

unregistersymbol(INJECT_unlStam)
dealloc(newmem_unlStam)

{
// ORIGINAL CODE - INJECTION POINT: GSS2-Win64-Shipping.exe+AF4070

GSS2-Win64-Shipping.exe+AF404E: C3                             - ret 
GSS2-Win64-Shipping.exe+AF404F: CC                             - int 3 
GSS2-Win64-Shipping.exe+AF4050: 48 83 EC 28                    - sub rsp,28
GSS2-Win64-Shipping.exe+AF4054: 48 81 C1 E8 05 00 00           - add rcx,000005E8
GSS2-Win64-Shipping.exe+AF405B: C6 44 24 30 00                 - mov byte ptr [rsp+30],00
GSS2-Win64-Shipping.exe+AF4060: 48 8D 54 24 30                 - lea rdx,[rsp+30]
GSS2-Win64-Shipping.exe+AF4065: E8 76 C1 B2 FF                 - call GSS2-Win64-Shipping.exe+6201E0
GSS2-Win64-Shipping.exe+AF406A: 48 83 C4 28                    - add rsp,28
GSS2-Win64-Shipping.exe+AF406E: C3                             - ret 
GSS2-Win64-Shipping.exe+AF406F: CC                             - int 3 
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+AF4070: F3 0F 58 89 68 06 00 00        - addss xmm1,[rcx+00000668]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+AF4078: F3 0F 10 81 6C 06 00 00        - movss xmm0,[rcx+0000066C]
GSS2-Win64-Shipping.exe+AF4080: 0F 2F C8                       - comiss xmm1,xmm0
GSS2-Win64-Shipping.exe+AF4083: 76 0B                          - jna GSS2-Win64-Shipping.exe+AF4090
GSS2-Win64-Shipping.exe+AF4085: F3 0F 11 81 68 06 00 00        - movss [rcx+00000668],xmm0
GSS2-Win64-Shipping.exe+AF408D: B0 01                          - mov al,01
GSS2-Win64-Shipping.exe+AF408F: C3                             - ret 
GSS2-Win64-Shipping.exe+AF4090: 0F 57 C0                       - xorps xmm0,xmm0
GSS2-Win64-Shipping.exe+AF4093: 0F 2F C8                       - comiss xmm1,xmm0
GSS2-Win64-Shipping.exe+AF4096: 73 0D                          - jae GSS2-Win64-Shipping.exe+AF40A5
GSS2-Win64-Shipping.exe+AF4098: C7 81 68 06 00 00 00 00 00 00  - mov [rcx+00000668],00000000
}
There was slight change to game code. They now use XMM registers for storing stamina change, but logic is the same (add current stamina to change).
xmm1= stamina change per tick
[rcx+00000668] = current stamina

Re: [REQ]GAS STATION SIMULATOR

Posted: Sun Mar 06, 2022 3:15 am
by sportled
anyone found the vallues for the new car wash dlc? that croc feeding is getting on my nerves hahahhahaa... too much!

is there a way to hack painting or making it instant? its a pain in the ass imo and paint fades way to soon. should last atleast a year in game before needing a new lick.. barely made it 30 days and my station looks like its been neglected for years XD

Re: [REQ]GAS STATION SIMULATOR

Posted: Fri Mar 11, 2022 4:24 pm
by macslayerz
rambo99jose wrote:
Fri Oct 15, 2021 4:30 am
1.0.1.38259 Unlimited Worker Stamina

Code: Select all

{ Game   : GSS2-Win64-Shipping.exe
  Version: 1.0.1.38259
  Date   : 2021-10-15
  Author : rambo99jose
}

[ENABLE]

aobscanmodule(INJECT_unlStam,GSS2-Win64-Shipping.exe,F3 0F 58 89 68 06 00 00) // should be unique
alloc(newmem_unlStam,$1000,INJECT_unlStam)

label(code)
label(return)
label(done)

newmem_unlStam:

  push rax
  cvtss2si rax, xmm1 //convert to int
  cmp rax,0  //check if xmm1 has positive stamina (regen)
  jg done  //if pos then its regening, we allow it

  //else we zero it to prevent stamina decrease
  mov rax,0
  movq xmm1,rax

done:  //clean up
  pop rax

code:
  addss xmm1,[rcx+00000668]
  jmp return

INJECT_unlStam:
  jmp newmem_unlStam
  nop 3
return:
registersymbol(INJECT_unlStam)

[DISABLE]

INJECT_unlStam:
  db F3 0F 58 89 68 06 00 00

unregistersymbol(INJECT_unlStam)
dealloc(newmem_unlStam)

{
// ORIGINAL CODE - INJECTION POINT: GSS2-Win64-Shipping.exe+AF4070

GSS2-Win64-Shipping.exe+AF404E: C3                             - ret 
GSS2-Win64-Shipping.exe+AF404F: CC                             - int 3 
GSS2-Win64-Shipping.exe+AF4050: 48 83 EC 28                    - sub rsp,28
GSS2-Win64-Shipping.exe+AF4054: 48 81 C1 E8 05 00 00           - add rcx,000005E8
GSS2-Win64-Shipping.exe+AF405B: C6 44 24 30 00                 - mov byte ptr [rsp+30],00
GSS2-Win64-Shipping.exe+AF4060: 48 8D 54 24 30                 - lea rdx,[rsp+30]
GSS2-Win64-Shipping.exe+AF4065: E8 76 C1 B2 FF                 - call GSS2-Win64-Shipping.exe+6201E0
GSS2-Win64-Shipping.exe+AF406A: 48 83 C4 28                    - add rsp,28
GSS2-Win64-Shipping.exe+AF406E: C3                             - ret 
GSS2-Win64-Shipping.exe+AF406F: CC                             - int 3 
// ---------- INJECTING HERE ----------
GSS2-Win64-Shipping.exe+AF4070: F3 0F 58 89 68 06 00 00        - addss xmm1,[rcx+00000668]
// ---------- DONE INJECTING  ----------
GSS2-Win64-Shipping.exe+AF4078: F3 0F 10 81 6C 06 00 00        - movss xmm0,[rcx+0000066C]
GSS2-Win64-Shipping.exe+AF4080: 0F 2F C8                       - comiss xmm1,xmm0
GSS2-Win64-Shipping.exe+AF4083: 76 0B                          - jna GSS2-Win64-Shipping.exe+AF4090
GSS2-Win64-Shipping.exe+AF4085: F3 0F 11 81 68 06 00 00        - movss [rcx+00000668],xmm0
GSS2-Win64-Shipping.exe+AF408D: B0 01                          - mov al,01
GSS2-Win64-Shipping.exe+AF408F: C3                             - ret 
GSS2-Win64-Shipping.exe+AF4090: 0F 57 C0                       - xorps xmm0,xmm0
GSS2-Win64-Shipping.exe+AF4093: 0F 2F C8                       - comiss xmm1,xmm0
GSS2-Win64-Shipping.exe+AF4096: 73 0D                          - jae GSS2-Win64-Shipping.exe+AF40A5
GSS2-Win64-Shipping.exe+AF4098: C7 81 68 06 00 00 00 00 00 00  - mov [rcx+00000668],00000000
}
There was slight change to game code. They now use XMM registers for storing stamina change, but logic is the same (add current stamina to change).
xmm1= stamina change per tick
[rcx+00000668] = current stamina
how do we implement these codes and what table do we use?
can you please put them in a table so its organized?

Re: [REQ]GAS STATION SIMULATOR

Posted: Sun Mar 13, 2022 6:38 am
by macslayerz
Pyro411 wrote:
Mon Sep 20, 2021 11:20 pm
I just thought of another one...

Sand pile removed with a single load from the dozer.
Or maybe so sand build up

Re: [REQ]GAS STATION SIMULATOR

Posted: Wed Oct 19, 2022 2:59 am
by Batweiser
Any chance to update to last version? (1.0.2.54619) Thanks.