Page 9 of 18

Re: Farm Together

Posted: Tue Nov 13, 2018 3:47 am
by fantomas
Yasuoka wrote:
Tue Nov 13, 2018 3:34 am
EDIT: Oh, yes ! Sorry. CT Update45.
I just checked and it works fine with Update7 Hotfix - Just one or two offsets changed (money, tickets, bla bla) but I already have an updated version. But it shouldn't change something. Sorry but I'm out of ideas. Try to restart the game then retry the CT scripts. :(

@all

NoWaitingTimeElapsing (Farmhand)

Code: Select all

[ENABLE]
Logic.Farm.Buildings:Building:Tick+3a9:
  db 01 F0
//add eax,esi
 
[DISABLE]
Logic.Farm.Buildings:Building:Tick+3a9:
  db 2B C6
//sub eax,esi

{
// ORIGINAL CODE - INJECTION POINT: 1A746639

1A74660E: 77 26                          -  ja Logic.Farm.Buildings:Building:Tick+3a6
1A746610: C7 47 6C 00 00 00 00           -  mov [rdi+6C],00000000
1A746617: 48 8B CF                       -  mov rcx,rdi
1A74661A: BA 01 00 00 00                 -  mov edx,00000001
1A74661F: 48 83 EC 20                    -  sub rsp,20
1A746623: 49 BB 98 66 74 1A 00 00 00 00  -  mov r11,000000001A746698
1A74662D: 41 FF D3                       -  call r11
1A746630: 48 83 C4 20                    -  add rsp,20
1A746634: EB 08                          -  jmp Logic.Farm.Buildings:Building:Tick+3ae
1A746636: 8B 47 6C                       -  mov eax,[rdi+6C]  //current4bytesValue
// ---------- INJECTING HERE ----------
1A746639: 2B C6                          -  sub eax,esi      //the value is decreasing
1A74663B: 89 47 6C                       -  mov [rdi+6C],eax //current4bytesValue [ 14400 (4h00m) => 0 ]
// ---------- DONE INJECTING  ----------
1A74663E: 48 8D 65 C8                    -  lea rsp,[rbp-38]
1A746642: 41 5F                          -  pop r15
1A746644: 41 5E                          -  pop r14
1A746646: 41 5D                          -  pop r13
1A746648: 41 5C                          -  pop r12
1A74664A: 5F                             -  pop rdi
1A74664B: 5E                             -  pop rsi
1A74664C: 5B                             -  pop rbx
1A74664D: C9                             -  leave
1A74664E: C3                             -  ret
}

Re: Farm Together

Posted: Tue Nov 13, 2018 4:40 am
by Yasuoka
Could it be that the configuration of my CE is involved? Because I managed to run the CT45, but then nothing .. I do not know what I could have done different this time.

[Link]

Re: Farm Together

Posted: Tue Nov 13, 2018 5:09 am
by fantomas
Really do not know :(

The scripts have been made on mono features and if for one or any reason you're not able to toggle a script, many chance that mono is not enabled (check CE Mono tab).

Another scenario - if your CE has been closed (crash or else) while a script has been activated, and you open your CT again to reactivate that same script, you will not be able to do it because the game (memory) kept the previous parameter. The only thing to do is to restart the game, as I said before.

Re: Farm Together

Posted: Tue Nov 13, 2018 11:34 pm
by Yasuoka
fantomas wrote:
Tue Nov 13, 2018 5:09 am
Really do not know :(

The scripts have been made on mono features and if for one or any reason you're not able to toggle a script, many chance that mono is not enabled (check CE Mono tab).

Another scenario - if your CE has been closed (crash or else) while a script has been activated, and you open your CT again to reactivate that same script, you will not be able to do it because the game (memory) kept the previous parameter. The only thing to do is to restart the game, as I said before.
Hello. :) I was able to run the CT Farm Data Base Addresses. Thank you for your help, Fantomas. I appreciate. On the other hand, I can not run the CT "NoWaitingTime (Ponds Contents)".

EDIT: Oh, and do you plan to do a CT for the duration of the animals, too?

Re: Farm Together

Posted: Wed Nov 14, 2018 1:09 am
by fantomas
Yasuoka wrote:
Tue Nov 13, 2018 11:34 pm
On the other hand, I can not run the CT "NoWaitingTime (Ponds Contents)".
Try in first to create a pond, add fish in then activate the script. Works fine here though.
Yasuoka wrote:
Tue Nov 13, 2018 11:34 pm
EDIT: Oh, and do you plan to do a CT for the duration of the animals, too?
I do not know what it is that duration. :P But I'll take a look.

Re: Farm Together

Posted: Wed Nov 14, 2018 1:50 am
by fantomas
Fast Animal Harvest

Code: Select all

[ENABLE]
alloc(newmem,2048,Logic.Farm.Contents:AnimalFieldContents:get_State+b) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [rax+50],1
originalcode:
movsxd  rax,dword ptr [rax+50]
add rsp,08

exit:
jmp returnhere

Logic.Farm.Contents:AnimalFieldContents:get_State+b:
jmp newmem
nop
nop
nop
returnhere:

[DISABLE]
dealloc(newmem)
Logic.Farm.Contents:AnimalFieldContents:get_State+b:
movsxd  rax,dword ptr [rax+50]
add rsp,08
//Alt: db 48 63 40 50 48 83 C4 08

Re: Farm Together

Posted: Wed Nov 14, 2018 3:26 am
by Yasuoka
[NoWaitingTime (Ponds Contents)] I managed to activate it in the CT, but it does not work. That's what I do not understand.

Re: Farm Together

Posted: Wed Nov 14, 2018 7:37 am
by fantomas
fantomas wrote:
Wed Nov 14, 2018 1:50 am
Fast Animal Harvest

Code: Select all

[ENABLE]
alloc(newmem,2048,Logic.Farm.Contents:AnimalFieldContents:get_State+b) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [rax+50],1
originalcode:
movsxd  rax,dword ptr [rax+50]
add rsp,08

exit:
jmp returnhere

Logic.Farm.Contents:AnimalFieldContents:get_State+b:
jmp newmem
nop
nop
nop
returnhere:

[DISABLE]
dealloc(newmem)
Logic.Farm.Contents:AnimalFieldContents:get_State+b:
movsxd  rax,dword ptr [rax+50]
add rsp,08
//Alt: db 48 63 40 50 48 83 C4 08
Do not know why it is no longer working (maybe I copied the false code :P ) but this one works well.

Code: Select all

[ENABLE]
alloc(newmem,2048,HudSelectedItem:updateAnimal+475)
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [rsi+50],1
originalcode:
movsxd  r15,dword ptr [rsi+50]
cmp r15d,01

exit:
jmp returnhere

HudSelectedItem:updateAnimal+475:
jmp newmem
nop
nop
nop
returnhere:

[DISABLE]
dealloc(newmem)
HudSelectedItem:updateAnimal+475:
movsxd  r15,dword ptr [rsi+50]
cmp r15d,01
//Alt: db 4C 63 7E 50 41 83 FF 01

Re: Farm Together

Posted: Fri Nov 16, 2018 2:22 pm
by 66Nemesis66
can give me a finished script with Fast Animal Harvest I do not know so well with it and I do not know where I have to insert it in the script I would be extremely grateful for it

Best Regards
66Nemesis66

Re: Farm Together

Posted: Fri Nov 16, 2018 4:12 pm
by fantomas
66Nemesis66 wrote:
Fri Nov 16, 2018 2:22 pm
can give me a finished script with Fast Animal Harvest I do not know so well with it and I do not know where I have to insert it in the script I would be extremely grateful for it

Best Regards
66Nemesis66
Hi :)

I know it may seem painful to read the previous posts but it really serves Image

viewtopic.php?f=4&t=6116&start=90#p66345

But yeah, I'll post a new update soon. ;)

Re: Farm Together

Posted: Fri Nov 16, 2018 6:28 pm
by fantomas
CT fixed to support Update 8

Added a lot of new scripts (may or may not be useful)

Image

Re: Farm Together

Posted: Sun Nov 18, 2018 9:48 am
by chrnolove
Thanks for the update, works great on my side :)

Re: Farm Together

Posted: Mon Dec 03, 2018 4:50 pm
by fantomas
CT fixed to support Update 10

EDIT [ December 6, 2018 ]

CT update 10 still works fine on game update 11 - Just have to edit 'Fast Tree Harvest' script like that:

Code: Select all

//Game: Farm Together
//Version: Update 11 [ November 30, 2018 ]

define(address,Logic.Farm.Contents:FarmTree:get_State+b)
define(bytes,48 63 40 40 48 83 C4 08)

[ENABLE]
assert(address,bytes)
alloc(newmem,$1000,Logic.Farm.Contents:FarmTree:get_State+b)

label(code)
label(return)

newmem:
  mov [rax+40],0

code:
  movsxd  rax,dword ptr [rax+40]
  add rsp,08
  jmp return

address:
  jmp newmem
  nop
  nop
  nop
return:

[DISABLE]
address:
  db bytes
  // movsxd  rax,dword ptr [rax+40]
  // add rsp,08

dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: Logic.Farm.Contents:FarmTree:get_State+b

28AAEFF1: 00 00                          -  add [rax],al
28AAEFF3: 00 01                          -  add [rcx],al
28AAEFF5: 04 01                          -  add al,01
28AAEFF7: 00 04 42                       -  add [rdx+rax*2],al
28AAEFFA: 00 00                          -  add [rax],al
28AAEFFC: 00 00                          -  add [rax],al
28AAEFFE: 00 00                          -  add [rax],al
28AAF000: 48 83 EC 08                    -  sub rsp,08
28AAF004: 48 89 0C 24                    -  mov [rsp],rcx
28AAF008: 48 8B C1                       -  mov rax,rcx
// ---------- INJECTING HERE ----------
28AAF00B: 48 63 40 40                    -  movsxd  rax,dword ptr [rax+40]
28AAF00F: 48 83 C4 08                    -  add rsp,08
// ---------- DONE INJECTING  ----------
28AAF013: C3                             -  ret
28AAF014: 00 00                          -  add [rax],al
28AAF016: 00 00                          -  add [rax],al
28AAF018: 00 00                          -  add [rax],al
28AAF01A: 00 00                          -  add [rax],al
28AAF01C: 14 00                          -  adc al,00
28AAF01E: 00 00                          -  add [rax],al
28AAF020: 24 00                          -  and al,00
28AAF022: 00 00                          -  add [rax],al
28AAF024: 01 04 01                       -  add [rcx+rax],eax
}
EDIT [ December 7, 2018 ]

It seems that this one does not work in Update 12 but that one from CT update 10 works perfectly! :shock:

I must admit that I do not understand - Yesterday, I tried that script in Update 11 and it didn't work and today it works well :cry:

At least, I can confirm that CT update 10 works well on the latest game update 12. :sleep:

Re: Farm Together

Posted: Sat Dec 08, 2018 8:21 pm
by DiPolik
Hello :) Is it possible to add this one to the shop?
[Link]

Re: Farm Together

Posted: Sat Dec 08, 2018 9:34 pm
by fantomas
DiPolik wrote:
Sat Dec 08, 2018 8:21 pm
Hello :) Is it possible to add this one to the shop?
[Link]
Unlock Sardine???

Did you try 'Unlock Special Items' script???