Results 1 to 3 of 3
  1. #1
    ShadoGuidR's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0

    Avoid Changing Addresses in Trainers?

    Right, so I made a trainer for Euro Truck Simulator 2.
    Problem is, after restarting the game, the trainer no longer worked. I assume this has something to do with the addresses, which I found using Cheat Engine. Is there any way to work around this? I want to give it to a couple of friends, and I can't exactly have it working on their PCs without bypassing this issue.

    Made in Visual Studio 2013, btw and it was working (even after building the .exe) until I restarted the game.

    Here you go
    [spoiler]Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim ammount As String = TextBox1.Text
    Try
    WriteInteger("eurotrucks2", &H3759880, ammount)
    Catch ex As Exception
    End Try
    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Dim ammount As String = TextBox2.Text
    Try
    WriteInteger("eurotrucks2", &H605B678, ammount)
    Catch ex As Exception
    End Try
    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    Dim ammount As String = TextBox3.Text
    Try
    WriteInteger("eurotrucks2", &H605CC44, ammount)
    Catch ex As Exception
    End Try
    End Sub
    End Class
    [/spoiler]

    Thanks,
    Shado(w)

    (welp, spoilers don't work. Also, don't know why I gave you the code since it's useless)
    Last edited by ShadoGuidR; 06-25-2016 at 07:13 PM. Reason: well... Bracketed it

  2. #2
    Ameer's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    MPGH
    Posts
    14,656
    Reputation
    2240
    Thanks
    6,253
    Posting in the Programming Section will give you more / better answers.
    You can use spoiler and code codes when you're member level 1 (10 posts). Read my HOW2MPGH guide for more info
    Code:
    Public Class Form1
    
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim ammount As String = TextBox1.Text
    Try
    WriteInteger("eurotrucks2", &H3759880, ammount)
    Catch ex As Exception
    End Try
    End Sub
    
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Dim ammount As String = TextBox2.Text
    Try
    WriteInteger("eurotrucks2", &H605B678, ammount)
    Catch ex As Exception
    End Try
    End Sub
    
    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    Dim ammount As String = TextBox3.Text
    Try
    WriteInteger("eurotrucks2", &H605CC44, ammount)
    Catch ex As Exception
    End Try
    End Sub
    End Class

    As for your topic, I guess you need to find the static pointer / address.

  3. #3
    ShadoGuidR's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Ameer View Post
    Posting in the //removed for quote\\ will give you more / better answers.
    You can use spoiler and code codes when you're member level 1 (10 posts). Read my //removed for quote\\ guide for more info
    Code:
    Public Class Form1
    
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim ammount As String = TextBox1.Text
    Try
    WriteInteger("eurotrucks2", &H3759880, ammount)
    Catch ex As Exception
    End Try
    End Sub
    
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Dim ammount As String = TextBox2.Text
    Try
    WriteInteger("eurotrucks2", &H605B678, ammount)
    Catch ex As Exception
    End Try
    End Sub
    
    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    Dim ammount As String = TextBox3.Text
    Try
    WriteInteger("eurotrucks2", &H605CC44, ammount)
    Catch ex As Exception
    End Try
    End Sub
    End Class

    As for your topic, I guess you need to find the static pointer / address.
    Thanks. Yeah, I had just given up so I threw it in the first place I could associate my issue with.

    I have the static pointer (prntscr dot com / blboz3 [please remove if this also isn't allowed]) but I have two offsets, which is where I am completely thrown off.

    Here:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim ammount As String = TextBox1.Text
    Try
    WriteDMAInteger("eurotrucks2", &HD38CB8, Offsets:={&H2C}, Value:=TextBox1.Text, Level:=1, nsize:=4)




    Catch ex As Exception

    End Try
    End Sub


    _______________________

    I'm going to throw it in the programming section as well.

    Thanks, Shado(w).

Similar Threads

  1. [Help Request] CE Address (Or trainer) to change weapon kills reported in your combat record?
    By Prime75 in forum Call of Duty Black Ops 2 Help
    Replies: 2
    Last Post: 02-25-2013, 01:21 PM
  2. Change Addresses [How To]
    By Sethanon in forum General Game Hacking
    Replies: 3
    Last Post: 06-29-2008, 01:36 AM
  3. change address?
    By Scottsmith in forum WarRock - International Hacks
    Replies: 15
    Last Post: 07-21-2007, 04:48 PM
  4. With the weapone change address
    By TheRedEye in forum WarRock - International Hacks
    Replies: 20
    Last Post: 05-20-2007, 11:45 AM
  5. (Request) A tutorial on how to extract addresses from trainers
    By englishpom in forum WarRock - International Hacks
    Replies: 9
    Last Post: 05-19-2007, 11:14 PM