ModdingIssues With Making A Tool - 2 Questions
Posted:

ModdingIssues With Making A Tool - 2 QuestionsPosted:

vivadrags
  • New Member
Status: Offline
Joined: Feb 01, 20195Year Member
Posts: 16
Reputation Power: 0
Status: Offline
Joined: Feb 01, 20195Year Member
Posts: 16
Reputation Power: 0
2 Questions

1. [FIXED] Hey so I'm just getting into this and am trying to make a BO1 tool as a test. The connection works fine but the 'no-clip' and 'godmode' aren't working at all (no crashes or anything, just aren't working). Idk if it looks sloppy first time ever doing this. Any tips or a solution to fix my problem would be greatly appreciated.

2. [NEED HELP] How do I disable cheat protection on BO1? I've tried some things like sv_cheats 0 and I forgot the others. Is it a dvar like other things or what? Just wondering how you do it for MP since I saw it on DeathRGH's tool.

This is the code for question 1 [FIXED]

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using XDevkitPlusPlus;
using XRPCLib;
using DevComponents.DotNetBar;
using XDevkit;

namespace Ariscans
{
    public partial class Ariscans : Office2007Form
    {
        XRPC Jtag = new XRPC();
       
        public Ariscans()
        {
            InitializeComponent();
            MessageBoxEx.EnableGlass = false;
        }

        private void ConnectButton_Click(object sender, EventArgs e)
        {
            try
            {
                Jtag.Connect();
                if (Jtag.activeConnection == true)
                {
                    MessageBoxEx.Show("Connection Successful", "Connected", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBoxEx.Show("Connection Failed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            catch(Exception)
            {
                MessageBoxEx.Show("XBDM Connection Failed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }

        private void AriscansTool_Load(object sender, EventArgs e)
        {

        }

        private void sendCMD(string command)
        {
            Jtag.Call(0x8230FD58, 0, command);
        }

        private void errorMessage()
        {
            errorMessage();
        }

        private void NoClipButton_Click(object sender, EventArgs e)
        {
            try
            {
                sendCMD("noclip");
            }
            catch(Exception)
            {
                errorMessage();

            }
        }

        private void GodmodeButton_Click(object sender, EventArgs e)
        {
            try
            {
                sendCMD("god");
            }
            catch (Exception)
            {
                errorMessage();

            }
        }
    }
}


Last edited by vivadrags ; edited 2 times in total
#2. Posted:
ZZ9_x_iHaXoRZz
  • Rated Awesome
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Status: Offline
Joined: Mar 11, 201113Year Member
Posts: 4,436
Reputation Power: 8964
Instead of using a console command have you thought about using GetPlayerState, this way you can even give it to clients, or are you making this an off host tool ?.
#3. Posted:
XeCrippy
  • Rated Awesome
Status: Offline
Joined: May 12, 20168Year Member
Posts: 1,909
Reputation Power: 1262
Status: Offline
Joined: May 12, 20168Year Member
Posts: 1,909
Reputation Power: 1262
Is GodModeButton what you have your actual button named or just how you saw it in what ever code you're referencing? If it's not doing anything then it seems like the button may not be linked to the code especially if it's your first time. Calling a function like that with the wrong address would usually crash from my experience, if you were in multiplayer you'd probably get an error that those commands are cheat protected or they just wouldn't work at all. If it's for zombies or campaign the code is set up right
#4. Posted:
vivadrags
  • New Member
Status: Offline
Joined: Feb 01, 20195Year Member
Posts: 16
Reputation Power: 0
Status: Offline
Joined: Feb 01, 20195Year Member
Posts: 16
Reputation Power: 0
Crippy wrote Is GodModeButton what you have your actual button named or just how you saw it in what ever code you're referencing? If it's not doing anything then it seems like the button may not be linked to the code especially if it's your first time. Calling a function like that with the wrong address would usually crash from my experience, if you were in multiplayer you'd probably get an error that those commands are cheat protected or they just wouldn't work at all. If it's for zombies or campaign the code is set up right


Fixed!
'GodModeButton' was the name of the code I was referencing and it never crashed when I clicked it.

Also how do you disabled cheat protection? Is it dvar like other things?I see that DeathRGH tool has it on BO1 but I don't know how to do it. I've read some things but never got it. So anything helps!

What I did to fix it.

        private void errorMessage()
        {
            errorMessage();
        }

CHANGED TO

        private void errorMessage()
        {
            MessageBoxEx.Show("Failed to Execute Command", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
#5. Posted:
XeCrippy
  • Winter 2018
Status: Offline
Joined: May 12, 20168Year Member
Posts: 1,909
Reputation Power: 1262
Status: Offline
Joined: May 12, 20168Year Member
Posts: 1,909
Reputation Power: 1262
I see, you didn't have any declaration for errorMessage(). Removing the cheat protection is a little more difficult, it's not done by setting dvars. Best bet would be to search online for a release of the addresses needed. I haven't really ever looked into it, you have to find the function for cheat protection in the xex and figure which parts to nop. You only need it for multiplayer though and there are probably better ways as mentioned above like GetPlayerState. You can also look into setting sv_cheats 1 through sv_sendservercommand, it works on the older ones if you're Host but not sure about bo1.
Users browsing this topic: None
Jump to:


RECENT POSTS

HOT TOPICS