Page 1 of 1

Mars Horizon [steam]

Posted: Fri Nov 27, 2020 12:26 am
by aSwedishMagyar
Decided to make my own topic for this since I've made mine only use the exact addresses. I'm reusing the script from [Link] which I was linked to while making my Eastshade table for finding methods by signature (which has the added bonus of compiling the method if it is not already).

My enable contains essentially everything that is needed for the scripts and I just call autoassemble() with the right string to activate the cheat. Pretty much all of them are just finding the start of the function, clearing the returned value (rax) and then returning. Haven't had any crashing problems while using it since my 'Enable' script registers all the symbols for use later on (no AOB scanning) but let me know if it crashes for you. Each script also has it's own boolean that checks whether it was successful in assembling and if it does not go through, it doesn't let the 'Disable' assemble either.

I'm also working on getting the built-in cheats working using the AddCheat() function in the Agency class. So far it does nothing but I think I can get it working with just a variable change somewhere.

Here are the options:
Image

Update 1: Added some new scripts, and fixed no payload build time. Still haven't figured out the cheat commands but I'll get to it eventually.

Re: Mars Horizon [steam]

Posted: Tue Dec 01, 2020 5:21 pm
by dapmitidp
everything works fine for me, except for the payload... it charges me for it but stays stuck on the screen to order it... am i doing something wrong?

Re: Mars Horizon [steam]

Posted: Tue Dec 01, 2020 5:31 pm
by aSwedishMagyar
No you are not. I have fixed it in my latest but I'm not uploading until I figure out the cheat adder function. You can follow the code below if you want to fix it yourself. Go to the enable script and right click and select 'change script':

Code: Select all

Change this:

noPayloadBuildTimeEnable = [[
assert(getPayloadBuildTime,55 48 8B EC 48 81 EC 80 01 00 00)
getPayloadBuildTime:
	xor rax,rax
    ret
]]
	
To this:

noPayloadBuildTimeEnable = [[
assert(getPayloadBuildTime,55 48 8B EC 48 81 EC 80 01 00 00)
getPayloadBuildTime:
	xor rax,rax
    inc rax
    ret
]]
It seems it does not like getting a value of zero returned and does not know what to do with it, so it stays on the buy screen.

Re: Mars Horizon [steam]

Posted: Tue Dec 01, 2020 9:55 pm
by dapmitidp
thanks

Re: Mars Horizon [steam]

Posted: Wed Dec 09, 2020 7:39 am
by aSwedishMagyar
Added in No Research Cost and Always Launch Success.

Re: Mars Horizon [steam]

Posted: Sun Jul 04, 2021 1:00 am
by dapmitidp
any chance of an update?

Re: Mars Horizon [steam]

Posted: Sat Jul 17, 2021 10:57 pm
by acecel
dapmitidp wrote:
Sun Jul 04, 2021 1:00 am
any chance of an update?
+1 :oops:

Re: Mars Horizon [steam]

Posted: Fri May 03, 2024 8:01 pm
by anl93
+1