View previous topic :: View next topic |
Author |
Message |
DeccaUK How do I cheat?
Reputation: 0
Joined: 14 Oct 2025 Posts: 4 Location: England
|
Posted: Tue Oct 14, 2025 2:56 pm Post subject: Newby struggling with simple things |
|
|
Try to create a script for Defense Grid The Awakening to lock the resource.
First try was to set a fixed value of 500:
Original code:
movss [edx+10],xmm0
Add the following:
mov [edx+10],float(500.0)
Error "This instruction can't be compiled"
I don't understand why not. I got this exact mod from a You Tube video!
Description: |
|
Filesize: |
13.68 KB |
Viewed: |
181 Time(s) |

|
_________________
I don't know as much as I would like |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25804 Location: The netherlands
|
Posted: Tue Oct 14, 2025 3:48 pm Post subject: |
|
|
it's more like a C typecast than a pascal typecast, so do
Code: |
mov [edx+10],(float)500
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
DeccaUK How do I cheat?
Reputation: 0
Joined: 14 Oct 2025 Posts: 4 Location: England
|
Posted: Tue Oct 14, 2025 4:41 pm Post subject: |
|
|
Dark Byte wrote: | it's more like a C typecast than a pascal typecast, so do
Code: |
mov [edx+10],(float)500
|
|
Gives the same error. I've seen that sort of code in other scripts so the syntax looks ok. I'm doing something wrong...
_________________
I don't know as much as I would like |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25804 Location: The netherlands
|
Posted: Tue Oct 14, 2025 4:53 pm Post subject: |
|
|
got a screenshot of that error?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
DeccaUK How do I cheat?
Reputation: 0
Joined: 14 Oct 2025 Posts: 4 Location: England
|
Posted: Wed Oct 15, 2025 1:10 am Post subject: |
|
|
Dark Byte wrote: | got a screenshot of that error? |
Sure
Description: |
|
Filesize: |
223.94 KB |
Viewed: |
114 Time(s) |

|
_________________
I don't know as much as I would like |
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25804 Location: The netherlands
|
Posted: Wed Oct 15, 2025 3:29 am Post subject: |
|
|
it's not
it's
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
DeccaUK How do I cheat?
Reputation: 0
Joined: 14 Oct 2025 Posts: 4 Location: England
|
Posted: Wed Oct 15, 2025 4:21 am Post subject: |
|
|
Dark Byte wrote: | it's not
it's
|
That's it - thank you!
I'm an old school software developer, and just assumed every parameter is always in brackets.
... and I've been fiddling with this for hours - doh...
On a side issue, why are these screen captures displayed here so LARGE?
_________________
I don't know as much as I would like |
|
Back to top |
|
 |
|