[Help] Writing to bad adress?

08/05/2025 22:49 moalny#1
Code:
	
        engine::actor* local_player_ptr = this->local_player();
	engine::vehicleActor* vehicle_ptr = this->vehicle();

	logger::log_pointer("LocalPlayerPtr: ", local_player_ptr);
	logger::log_pointer("VehiclePtr: ", vehicle_ptr);


	if (!local_player_ptr || local_player_ptr == 0x0 || local_player_ptr == nullptr)
	{
		saved_original_values = false;
		global::options.show_menu = true;
		global::options.camera_distance = false;
		global::options.movement_speed = false;
		global::options.attack_speed = false;
		global::options.casting_speed = false;
		global::options.animation_speed = false;
		global::options.initial_setup_player = false;
		this->remove_animation_speed_patch();
		return;
	}
	if (global::options.attack_speed) {
		local_player_ptr->attack_speed = (int32_t)(global::options.attack_speed_multiplier * 250000);
	}
I'm trying to update a cheat for black desert but whenever I switch server the game crashes. I suspect it's because I'm writing to local_player when I shouldn't but I can't figure out how I'm supposed to find out when not to.

I'm relatively new to programming so any help would be useful

I managed to work around it by checked whether I was in a loadingscreen, however I still have the same issue when my mount gets too far away from the player
08/06/2025 14:58 Ultimeit#2
Quote:
Originally Posted by moalny View Post
Code:
	
        engine::actor* local_player_ptr = this->local_player();
	engine::vehicleActor* vehicle_ptr = this->vehicle();

	logger::log_pointer("LocalPlayerPtr: ", local_player_ptr);
	logger::log_pointer("VehiclePtr: ", vehicle_ptr);


	if (!local_player_ptr || local_player_ptr == 0x0 || local_player_ptr == nullptr)
	{
		saved_original_values = false;
		global::options.show_menu = true;
		global::options.camera_distance = false;
		global::options.movement_speed = false;
		global::options.attack_speed = false;
		global::options.casting_speed = false;
		global::options.animation_speed = false;
		global::options.initial_setup_player = false;
		this->remove_animation_speed_patch();
		return;
	}
	if (global::options.attack_speed) {
		local_player_ptr->attack_speed = (int32_t)(global::options.attack_speed_multiplier * 250000);
	}
I'm trying to update a cheat for black desert but whenever I switch server the game crashes. I suspect it's because I'm writing to local_player when I shouldn't but I can't figure out how I'm supposed to find out when not to.

I'm relatively new to programming so any help would be useful
Actually I'd say it shouldn't crash, as long as you are using the correct pointer for local player and not doing anything weird in remove_animation_speed_patch.

Quote:
Originally Posted by moalny View Post
I managed to work around it by checked whether I was in a loadingscreen, however I still have the same issue when my mount gets too far away from the player
I doubt this has anything to do with local player either, so probably your mount code could use some extra checks if it has a valid pointer or not
08/07/2025 00:01 moalny#3
Quote:
Originally Posted by Ultimeit View Post
I doubt this has anything to do with local player either, so probably your mount code could use some extra checks if it has a valid pointer or not
Alright man I'll look into it more. Thanks for reply :handsdown:
08/20/2025 00:51 moalny#4
Quote:
Originally Posted by Ultimeit View Post
Actually I'd say it shouldn't crash, as long as you are using the correct pointer for local player and not doing anything weird in remove_animation_speed_patch.
Hi my friend, you seem knowledgeable in bdo cheating. I'm just wondering if it's possible to turn off the check when you teleport through object etc. It doesnt register correctly in the game
08/20/2025 21:14 Ultimeit#5
Quote:
Originally Posted by moalny View Post
Hi my friend, you seem knowledgeable in bdo cheating. I'm just wondering if it's possible to turn off the check when you teleport through object etc. It doesnt register correctly in the game
It's serversided, there are ways to get around it, but generally the easiest one is to... Simply keep trying. Bind teleportation on some key and just hold it while spamming A/D movement keys and It'll eventually let you get through it.
08/21/2025 01:18 moalny#6
Quote:
Originally Posted by Ultimeit View Post
It's serversided, there are ways to get around it, but generally the easiest one is to... Simply keep trying. Bind teleportation on some key and just hold it while spamming A/D movement keys and It'll eventually let you get through it.
Okay thank you for help