Skip to content

Funzione non funzionante: il2cpp.get_image("Assembly-CSharp")) (Function not working: ...) #2

@Icezman001

Description

@Icezman001

Traduci con google traduttore

Quando avvio Rust con rustclient.exe (nessun anticheat avviato) e in esecuzione su un server con anticheat disattivato.
Ottengo il modulo di base per GameAssembly.dll ma non ottengo alcun risultato da "if (const auto assembly_csharp = il2cpp.get_image ("Assembly-CSharp"))".
images_iterator è NULL
Restituisce false ed esce dal programma.

Sarebbe possibile verificare perché non fornisce un risultato valido?


When I start Rust with rustclient.exe (no anticheat started) and running on a server with anticheat turned off. I get the base module for GameAssembly.dll but I do not get any results from "if (const auto assembly_csharp = il2cpp.get_image("Assembly-CSharp"))".
imagres_iterator is NULL.
It returns false and exits the program.

Would it be possible to check why it's not providing a valid result?

#include "Main.hpp"

int main(int argc, char* argv[])
{
	std::cout << "Hello!" << "\n";
	auto il2cpp = il2cpp::types::il2cpp_t{ "Rust" };

	if (const auto assembly_csharp = il2cpp.get_image("Assembly-CSharp"))
	{
		std::printf("[il2cpp-external] assembly_csharp => 0x%p\n", assembly_csharp->get().get_instance());

		if (const auto base_networkable = assembly_csharp->get().get_class("BaseNetworkable"))
		{
			std::printf("[il2cpp-external] base_networkable => 0x%p\n", base_networkable->get().get_instance());

			const auto client_entities = il2cpp.read<std::uintptr_t>(base_networkable->get().get_static_field("clientEntities"));

			std::printf("[il2cpp-external] client_entities => 0x%p\n", client_entities);
		}
	}
	std::cout << "BYE!" << "\n";
	system("pause");
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions