Page 7 of 18

Re: Farm Together

Posted: Fri Oct 26, 2018 9:47 am
by fantomas
PvtCuddles wrote:
Fri Oct 26, 2018 7:56 am
doubled clicked the script and it says Updated : 42 not 45

could that be the problem?
It does not matter if the script says update 42 or whatever - It is only meaning that that script has been updated/made from that game version - sometimes helpful for table maker's ulterior debugging purpose. But it does not mean it does/will not work in the near game updates. ;)

Now what you can to do it is to take a look on the concerned script and try to compare it with the code in your current game version. :)

PvtCuddles wrote:
Fri Oct 26, 2018 7:56 am
also were do i find the mono features
When you open the game process in the cheat engine, if that game is supporting mono features, you'll see a new tab called Mono appear.
Spoiler
Before
Image

After
Image

Re: Farm Together

Posted: Fri Oct 26, 2018 10:06 am
by chrnolove
fantomas wrote:
Thu Oct 25, 2018 6:26 pm
chrnolove wrote:
Thu Oct 18, 2018 1:45 pm
Thanks for the CT, any chance you can change max farmhand or speed of character? :)
To speed up a little bit your character, you can use this lua script from @cosminuk2011 cheat table of the 'pc building simulator' game

Ctrl+Alt+L
then copy/past this lua script

Code: Select all

lastSpeed=1;

function checkKeys(timer)
if (isKeyPressed(VK_SHIFT)) then if lastspeed ~= 3 then speedhack_setSpeed(3) lastSpeed=3 end
else if lastspeed ~= 1 then speedhack_setSpeed(1) lastSpeed=1 end
end

end

t=createTimer(nil)
timer_setInterval(t, 100)
timer_onTimer(t, checkKeys)
timer_setEnabled(t, true)
Use Shift key to speed up your character
Thanks, it works perfectly :).
Any chance of changing max farmhand? currently the game only support maximum of 15.

Re: Farm Together

Posted: Fri Oct 26, 2018 11:36 am
by fantomas
chrnolove wrote:
Fri Oct 26, 2018 10:06 am
Any chance of changing max farmhand? currently the game only support maximum of 15.
Sorry if I'm looking a little bit like a noob but I do not see what these farmhands really are - Could you post a screenshot of them? Sorry again :oops:

EDIT:

Do we talk about these ones???

Image

Re: Farm Together

Posted: Fri Oct 26, 2018 12:56 pm
by PvtCuddles
Soooo my CE wasnt updated LMFAO that was the problem

Re: Farm Together

Posted: Sun Oct 28, 2018 8:27 am
by welpwelp
Hello, is there anyway to unlock animals, plants etc. all at once?

Re: Farm Together

Posted: Mon Oct 29, 2018 1:14 am
by fantomas
welpwelp wrote:
Sun Oct 28, 2018 8:27 am
Hello, is there anyway to unlock animals, plants etc. all at once?
This script unlocks special items

Code: Select all

[ENABLE]
//RequiredDLC  offset 0x30
Logic.Farm:FarmData:IsUnlocked+3d:
 db EB 2A
//jmp Logic.Farm:FarmData:IsUnlocked+69

//IsEventItem   offset 0x34
Logic.Mode:FarmManager:IsLockedEvent+24:
 db 90 90

//IsEventReward   offset 0x35
Logic.Mode:FarmManager:IsLockedEvent+109:
 db 90 90
 
[DISABLE]
Logic.Farm:FarmData:IsUnlocked+3d:
 db 74 2A
//je Logic.Farm:FarmData:IsUnlocked+69

Logic.Mode:FarmManager:IsLockedEvent+24:
 db 85 C0
//test eax,eax

Logic.Mode:FarmManager:IsLockedEvent+109:
 db 85 C0
//test eax,eax
These both scripts allow to crop any item w/o level requirement (shop+item)

Code: Select all

[ENABLE]
////Shop XP requirement
alloc(newmem,2048,Logic.Farm:FarmData:IsUnlocked+aa) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [rsi+0000009C],0
originalcode:
mov ecx,[rsi+0000009C]

exit:
jmp returnhere

Logic.Farm:FarmData:IsUnlocked+aa:
jmp newmem
nop
returnhere:
 
[DISABLE]
dealloc(newmem)
Logic.Farm:FarmData:IsUnlocked+aa:
mov ecx,[rsi+0000009C]
//Alt: db 8B 8E 9C 00 00 00

Code: Select all

[ENABLE]
//Item XP requirement
alloc(newmem,2048,Logic.Farm:FarmData:IsUnlocked+148) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [r15+18],0
originalcode:
mov ecx,[r15+18]
cmp eax,ecx

exit:
jmp returnhere

Logic.Farm:FarmData:IsUnlocked+148:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(newmem)
Logic.Farm:FarmData:IsUnlocked+148:
mov ecx,[r15+18]
cmp eax,ecx
//Alt: db 41 8B 4F 18 3B C1
This script allows to crop any season :P

Code: Select all

[ENABLE]
aobscan(cropAnySeason,85 C0 0F 85 6D 00 00 00 C7)  //Logic.Farm:FarmData:CanBuy+186
alloc(newmem,$100,cropAnySeason)

registersymbol(cropAnySeason)

newmem:
cropAnySeason+1:
  db C9

[DISABLE]
cropAnySeason+1:
  db C0

unregistersymbol(cropAnySeason)
dealloc(newmem)
Or if you want to bother with level requirement, then this script will allow to have fast (and max) level up.

Code: Select all

[ENABLE]
//Max Level Up
Logic.Farm:Experience:Earn+5e+1:
  db 4F
//89 4F 1C
//mov [rdi+1C],ecx

//==============================================//

//Fast Level Up
alloc(newmem,2048,Logic.Farm:Experience:Earn+15)
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov esi,EE
originalcode:
add eax,esi
mov [rdi+18],eax

exit:
jmp returnhere

Logic.Farm:Experience:Earn+15:
jmp newmem
returnhere:

[DISABLE]
Logic.Farm:Experience:Earn+5e+1:
  db 47
//89 47 1C
//mov [rdi+1C],eax

//==============================================//

dealloc(newmem)
Logic.Farm:Experience:Earn+15:
add eax,esi
mov [rdi+18],eax
//Alt: db 03 C6 89 47 18
Enjoy! 8-)

Re: Farm Together

Posted: Mon Oct 29, 2018 8:35 am
by chrnolove
fantomas wrote:
Fri Oct 26, 2018 11:36 am
chrnolove wrote:
Fri Oct 26, 2018 10:06 am
Any chance of changing max farmhand? currently the game only support maximum of 15.
Sorry if I'm looking a little bit like a noob but I do not see what these farmhands really are - Could you post a screenshot of them? Sorry again :oops:

EDIT:

Do we talk about these ones???
@fantomas I am talking about this one
Image

Currently the game only support maximum of 15 :)

Re: Farm Together

Posted: Mon Oct 29, 2018 1:45 pm
by fantomas
@chrnolove

Ah ok, I get it :D - It is just an item count limit. Here, no limit :)

Unlimited Item Count

Code: Select all

///  IT SEEMS THIS CODE BREAKS YOUR SAVE FILE - BE CAREFUL!!! - USE AOBSCAN SCRIPT INSTEAD ///

[ENABLE]
Logic.Farm:FarmData:CanBuy+92:
 db 7D
//7D 0D
//jnl Logic.Farm:FarmData:CanBuy+a1
 
[DISABLE]
Logic.Farm:FarmData:CanBuy+92:
 db 7C
//7C 0D
//jl Logic.Farm:FarmData:CanBuy+a1
EDIT:

Ok, I do not know why Mono does not work on this memory region (it also has been reported it breaks your save file!!!) but here the same script using aobscan

Code: Select all

[ENABLE]
aobscan(noItemCountLimit,7C 0D C7 06 * * * * 33) // Logic.Farm:FarmData:CanBuy+92
alloc(newmem,$100,noItemCountLimit)
registersymbol(noItemCountLimit)

newmem:
noItemCountLimit:
  db 7D

[DISABLE]
noItemCountLimit:
  db 7C

unregistersymbol(noItemCountLimit)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: 1BEB3CE2

1BEB3CB7: 48 83 EC 20                    -  sub rsp,20
1BEB3CBB: 49 BB 20 4D EB 1B 00 00 00 00  -  mov r11,Logic.Farm:FarmData:CheckItemCount
1BEB3CC5: 41 FF D3                       -  call r11
1BEB3CC8: 48 83 C4 20                    -  add rsp,20
1BEB3CCC: 89 45 CC                       -  mov [rbp-34],eax
1BEB3CCF: 48 63 45 CC                    -  movsxd  rax,dword ptr [rbp-34]
1BEB3CD3: 48 63 C0                       -  movsxd  rax,eax
1BEB3CD6: 41 8B 8F A8 00 00 00           -  mov ecx,[r15+000000A8]
1BEB3CDD: 8B C9                          -  mov ecx,ecx
1BEB3CDF: 48 3B C1                       -  cmp rax,rcx
// ---------- INJECTING HERE ----------
1BEB3CE2: 7C 0D                          -  jl Logic.Farm:FarmData:CanBuy+a1
1BEB3CE4: C7 06 1B 00 00 00              -  mov [rsi],0000001B
// ---------- DONE INJECTING  ----------
1BEB3CEA: 33 C0                          -  xor eax,eax
1BEB3CEC: E9 65 01 00 00                 -  jmp Logic.Farm:FarmData:CanBuy+206
1BEB3CF1: 49 8B CF                       -  mov rcx,r15
1BEB3CF4: 48 83 EC 20                    -  sub rsp,20
1BEB3CF8: 49 8B 07                       -  mov rax,[r15]
1BEB3CFB: 90                             -  nop 
1BEB3CFC: 90                             -  nop 
1BEB3CFD: 90                             -  nop 
1BEB3CFE: FF 90 80 00 00 00              -  call qword ptr [rax+00000080]
1BEB3D04: 48 83 C4 20                    -  add rsp,20
}

Re: Farm Together

Posted: Mon Oct 29, 2018 2:09 pm
by phiebe
fantomas wrote:
Mon Oct 29, 2018 1:14 am
welpwelp wrote:
Sun Oct 28, 2018 8:27 am
Hello, is there anyway to unlock animals, plants etc. all at once?
This script unlocks special items

Code: Select all

[ENABLE]
//RequiredDLC  offset 0x30
Logic.Farm:FarmData:IsUnlocked+3d:
 db EB 2A
//jmp Logic.Farm:FarmData:IsUnlocked+69

//IsEventItem   offset 0x34
Logic.Mode:FarmManager:IsLockedEvent+24:
 db 90 90

//IsEventReward   offset 0x35
Logic.Mode:FarmManager:IsLockedEvent+109:
 db 90 90
 
[DISABLE]
Logic.Farm:FarmData:IsUnlocked+3d:
 db 74 2A
//je Logic.Farm:FarmData:IsUnlocked+69

Logic.Mode:FarmManager:IsLockedEvent+24:
 db 85 C0
//test eax,eax

Logic.Mode:FarmManager:IsLockedEvent+109:
 db 85 C0
//test eax,eax
These both scripts allow to crop any item w/o level requirement (shop+item)

Code: Select all

[ENABLE]
////Shop XP requirement
alloc(newmem,2048,Logic.Farm:FarmData:IsUnlocked+aa) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [rsi+0000009C],0
originalcode:
mov ecx,[rsi+0000009C]

exit:
jmp returnhere

Logic.Farm:FarmData:IsUnlocked+aa:
jmp newmem
nop
returnhere:
 
[DISABLE]
dealloc(newmem)
Logic.Farm:FarmData:IsUnlocked+aa:
mov ecx,[rsi+0000009C]
//Alt: db 8B 8E 9C 00 00 00

Code: Select all

[ENABLE]
//Item XP requirement
alloc(newmem,2048,Logic.Farm:FarmData:IsUnlocked+148) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [r15+18],0
originalcode:
mov ecx,[r15+18]
cmp eax,ecx

exit:
jmp returnhere

Logic.Farm:FarmData:IsUnlocked+148:
jmp newmem
nop
returnhere:

[DISABLE]
dealloc(newmem)
Logic.Farm:FarmData:IsUnlocked+148:
mov ecx,[r15+18]
cmp eax,ecx
//Alt: db 41 8B 4F 18 3B C1
This script allows to crop any season :P

Code: Select all

[ENABLE]
aobscan(cropAnySeason,85 C0 0F 85 6D 00 00 00 C7)  //Logic.Farm:FarmData:CanBuy+186
alloc(newmem,$100,cropAnySeason)

registersymbol(cropAnySeason)

newmem:
cropAnySeason+1:
  db C9

[DISABLE]
cropAnySeason+1:
  db C0

unregistersymbol(cropAnySeason)
dealloc(newmem)
Or if you want to bother with level requirement, then this script will allow to have fast (and max) level up.

Code: Select all

[ENABLE]
//Max Level Up
Logic.Farm:Experience:Earn+5e+1:
  db 4F
//89 4F 1C
//mov [rdi+1C],ecx

//==============================================//

//Fast Level Up
alloc(newmem,2048,Logic.Farm:Experience:Earn+15)
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov esi,EE
originalcode:
add eax,esi
mov [rdi+18],eax

exit:
jmp returnhere

Logic.Farm:Experience:Earn+15:
jmp newmem
returnhere:

[DISABLE]
Logic.Farm:Experience:Earn+5e+1:
  db 47
//89 47 1C
//mov [rdi+1C],eax

//==============================================//

dealloc(newmem)
Logic.Farm:Experience:Earn+15:
add eax,esi
mov [rdi+18],eax
//Alt: db 03 C6 89 47 18
Enjoy! 8-)
i try to copy this code in lua tables,, but can't execute... i'm i wrong with the syntax ?

Re: Farm Together

Posted: Mon Oct 29, 2018 2:32 pm
by fantomas
Ctrl+Alt+A then copy/past the script you want - Then File -> Assign to current cheat table. ;)

The scripts use Mono features so be sure Mono is activated (CE Mono tab)

Re: Farm Together

Posted: Mon Oct 29, 2018 2:39 pm
by phiebe
@fantomas

thanks for your answer..

bdw,, i try to use the fast house building with the video method... until know,, i still can't fast building my house...
i'm play the latest version of the game...

Re: Farm Together

Posted: Mon Oct 29, 2018 4:05 pm
by fantomas
phiebe wrote:
Mon Oct 29, 2018 2:39 pm
bdw,, i try to use the fast house building with the video method... until know,, i still can't fast building my house...
i'm play the latest version of the game...
:( As I said previously, all scripts work fine here (20181026 steam version), I even made some 'proof of the concept' videos to show how it works... and unfortunately, it is all what I can provide... I'm really sorry.

Re: Farm Together

Posted: Tue Oct 30, 2018 1:50 am
by chrnolove
fantomas wrote:
Mon Oct 29, 2018 1:45 pm
@chrnolove

Ah ok, I get it :D - It is just an item count limit. Here, no limit :)

Unlimited Item Count

Code: Select all

[ENABLE]
Logic.Farm:FarmData:CanBuy+92:
 db 7D
//7D 0D
//jnl Logic.Farm:FarmData:CanBuy+a1
 
[DISABLE]
Logic.Farm:FarmData:CanBuy+92:
 db 7C
//7C 0D
//jl Logic.Farm:FarmData:CanBuy+a1
EDIT:

Ok, I do not know why Mono does not work on this memory region but here the same script using aobscan

Code: Select all

[ENABLE]
aobscan(noItemCountLimit,7C 0D C7 06 * * * * 33) // Logic.Farm:FarmData:CanBuy+92
alloc(newmem,$100,noItemCountLimit)
registersymbol(noItemCountLimit)

newmem:
noItemCountLimit:
  db 7D

[DISABLE]
noItemCountLimit:
  db 7C

unregistersymbol(noItemCountLimit)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: 1BEB3CE2

1BEB3CB7: 48 83 EC 20                    -  sub rsp,20
1BEB3CBB: 49 BB 20 4D EB 1B 00 00 00 00  -  mov r11,Logic.Farm:FarmData:CheckItemCount
1BEB3CC5: 41 FF D3                       -  call r11
1BEB3CC8: 48 83 C4 20                    -  add rsp,20
1BEB3CCC: 89 45 CC                       -  mov [rbp-34],eax
1BEB3CCF: 48 63 45 CC                    -  movsxd  rax,dword ptr [rbp-34]
1BEB3CD3: 48 63 C0                       -  movsxd  rax,eax
1BEB3CD6: 41 8B 8F A8 00 00 00           -  mov ecx,[r15+000000A8]
1BEB3CDD: 8B C9                          -  mov ecx,ecx
1BEB3CDF: 48 3B C1                       -  cmp rax,rcx
// ---------- INJECTING HERE ----------
1BEB3CE2: 7C 0D                          -  jl Logic.Farm:FarmData:CanBuy+a1
1BEB3CE4: C7 06 1B 00 00 00              -  mov [rsi],0000001B
// ---------- DONE INJECTING  ----------
1BEB3CEA: 33 C0                          -  xor eax,eax
1BEB3CEC: E9 65 01 00 00                 -  jmp Logic.Farm:FarmData:CanBuy+206
1BEB3CF1: 49 8B CF                       -  mov rcx,r15
1BEB3CF4: 48 83 EC 20                    -  sub rsp,20
1BEB3CF8: 49 8B 07                       -  mov rax,[r15]
1BEB3CFB: 90                             -  nop 
1BEB3CFC: 90                             -  nop 
1BEB3CFD: 90                             -  nop 
1BEB3CFE: FF 90 80 00 00 00              -  call qword ptr [rax+00000080]
1BEB3D04: 48 83 C4 20                    -  add rsp,20
}
Thanks so much, works perfectly with the aobscan, the first script will break your save, so be careful :)

Re: Farm Together

Posted: Tue Oct 30, 2018 7:30 am
by fantomas
chrnolove wrote:
Tue Oct 30, 2018 1:50 am
the first script will break your save, so be careful :)
Thank you for your feedback - I also saw this yesterday for the first time but didn't get it could be the cause. :?

Re: Farm Together

Posted: Wed Oct 31, 2018 12:31 pm
by fantomas
If you use 'Unlock Special Items' script, posted previously, on the Main 'Customize' Panel (when you launch the game), it will also unlock some special items (farmer, emotes, tractor and pet). Here a script to be used in addition to unlock some other special items:

Unlock Special Items (Main Customize Panel)

Code: Select all

[ENABLE]
//RequiredDLC  offset 0x30
Logic.Mode:FarmManager:IsUnlocked+68:
  db EB
//EB 0A
//jmp Logic.Mode:FarmManager:IsUnlocked+74
 
[DISABLE]
Logic.Mode:FarmManager:IsUnlocked+68:
  db 75
//75 0A
//jne Logic.Mode:FarmManager:IsUnlocked+74
As previously, these items have level requirement - Here the scripts which will put level requirement at 0.

NoRequiredItemLevel (Customize Farmer & Emotes)

Code: Select all

[ENABLE]
alloc(newmem,2048,Logic.Mode:FarmManager:IsUnlocked+128) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [r13+44],0
originalcode:
movsxd  rcx,dword ptr [r13+44]
movsxd  rcx,ecx

exit:
jmp returnhere

Logic.Mode:FarmManager:IsUnlocked+128:
jmp newmem
nop
nop
returnhere:
 
[DISABLE]
dealloc(newmem)
Logic.Mode:FarmManager:IsUnlocked+128:
movsxd  rcx,dword ptr [r13+44]
movsxd  rcx,ecx
//Alt: db 49 63 4D 44 48 63 C9
NoRequiredItemLevel (Customize Tractor)

Code: Select all

[ENABLE]
alloc(newmem,2048,Logic.Mode:FarmManager:IsUnlocked+1cd) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [rbx+44],0
originalcode:
movsxd  rcx,dword ptr [rbx+44]
movsxd  rcx,ecx

exit:
jmp returnhere

Logic.Mode:FarmManager:IsUnlocked+1cd:
jmp newmem
nop
nop
returnhere:
 
[DISABLE]
dealloc(newmem)
Logic.Mode:FarmManager:IsUnlocked+1cd:
movsxd  rcx,dword ptr [rbx+44]
movsxd  rcx,ecx
//Alt: db 48 63 4B 44 48 63 C9
NoRequiredItemLevel (Customize Pets)

Code: Select all

[ENABLE]
alloc(newmem,2048,Logic.Mode:FarmManager:IsUnlocked+28a) 
label(returnhere)
label(originalcode)
label(exit)

newmem:
mov [rcx+44],0
originalcode:
movsxd  rcx,dword ptr [rcx+44]
movsxd  rcx,ecx

exit:
jmp returnhere

Logic.Mode:FarmManager:IsUnlocked+28a:
jmp newmem
nop
nop
returnhere:
 
[DISABLE]
dealloc(newmem)
Logic.Mode:FarmManager:IsUnlocked+28a:
movsxd  rcx,dword ptr [rcx+44]
movsxd  rcx,ecx
//Alt: db 48 63 49 44 48 63 C9
I do not know if you'll find this helpful but I find it pretty funny. ;)