Giter Site home page Giter Site logo

mclib's Introduction

mclib

C++ library for connecting to Minecraft servers.

Features

  • Full protocol for Minecraft 1.10 through 1.12.2
  • Premium and offline mode
  • Yggdrasil API
  • Logging in with passwords or tokens
  • Reading and using token from launcher
  • Encryption
  • Compression
  • Log in to Forge servers
  • World data
  • Entity data
  • Basic inventory use
  • NBT data
  • Block entity data
  • Block collisions
  • Basic player controller for moving around

Building

Dependencies:

  • C++14 compiler (g++/clang/msvc 2017)
  • openssl
  • libcurl

Ubuntu:
sudo apt-get install clang libssl-dev libcurl4-openssl-dev
make

Windows:
unzip lib.zip
Open mclib.sln with Visual Studio 2017 and build

Examples

  • terracotta : OpenGL client
  • client : Basic example client for connecting to a server
  • mcbot : Bot with pathfinding and melee attacking
  • avalanche : Server stress test tool
  • mcqt : Chat client made with qt

mclib's People

Contributors

bencstokes avatar plushmonkey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mclib's Issues

Help with getting text from book using nbt data

I was wondering if it was possible to get this text Image . I currently have the code

mc::nbt::TagCompound bookRoot = m_Client->GetInventoryManager()->GetPlayerInventory()->GetCursorItem().GetNBT().GetRoot();
mc::nbt::TagList* pagesList = bookRoot.GetTag<mc::nbt::TagList>(L"pages");
std::vector<mc::nbt::TagPtr> pages = pagesList->GetList();
mc::nbt::TagPtr page = pages[0];

and was wondering if you could point me into the right direction so that I can get all the data listed in this link

Incompatibility with newer versions of libopenssl

As an Arch Linux user I encountered a problem when attempting to build the library caused by the fact you were allocating the cipher contexts on the stack in Encryption.cpp which is no longer allowed in libopenssl apparently. This can be fixed by simply making these pointers, creating them with EVP_CIPHER_CTX_new() in the constructor and freeing them with EVP_CIPHER_CTX_free() in the destructor and not taking their address wherever they are used.

[Help Please] Re-Opening my old post

I'm not sure if you get notifications when someone comments on a closed post, so I'm creating this one. Apologies if you got a notification and I'm just becoming an annoyance by creating this one. Could you please re-open my last post? I did what you said but am still having issues. Check the post for more info.

Thanks!

please help

Error: net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from McLib (mclib)

---- Minecraft Crash Report ----

WARNING: coremods are present:
MicdoodlePlugin (MicdoodleCore-1.12.2.jar)
MalisisSwitchesPlugin (malisisswitches-1.12.2-5.1.0.jar)
BlockbusterCore (blockbuster-2.2.2-1.12.2.jar)
ForgelinPlugin (Forgelin-1.8.4.jar)
OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)
MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar)
McLib core mod (mclib-2.3.7-1.12.2.jar)
FMLModule (mdxlib-3.0.0.26.jar)
Contact their authors BEFORE contacting forge

// My bad.

Time: 4/8/22 5:04 PM
Description: There was a severe problem during mod loading that has caused the game to fail

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from McLib (mclib)
Caused by: java.lang.NoSuchMethodError: mchorse.mclib.config.ConfigBuilder.build()Lmchorse/mclib/config/Config;
at mchorse.aperture.Aperture.onConfigRegister(Aperture.java:182)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_327_Aperture_onConfigRegister_RegisterConfigEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
at mchorse.mclib.config.ConfigManager.register(ConfigManager.java:114)
at mchorse.mclib.CommonProxy.init(CommonProxy.java:30)
at mchorse.mclib.ClientProxy.init(ClientProxy.java:37)
at mchorse.mclib.McLib.init(McLib.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
at com.google.common.eventbus.EventBus.post(EventBus.java:217)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
at com.google.common.eventbus.EventBus.post(EventBus.java:217)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:749)
at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:336)
at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:535)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
at net.minecraft.client.main.Main.main(SourceFile:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- System Details --
Details:
Minecraft Version: 1.12.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 697660512 bytes (665 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.42 Powered by Forge 14.23.5.2855 93 mods loaded, 91 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

| State | ID                                  | Version               | Source                                               | Signature                                |
|:----- |:----------------------------------- |:--------------------- |:---------------------------------------------------- |:---------------------------------------- |
| LCHI  | minecraft                           | 1.12.2                | minecraft.jar                                        | None                                     |
| LCHI  | mcp                                 | 9.42                  | minecraft.jar                                        | None                                     |
| LCHI  | FML                                 | 8.0.99.99             | forge-1.12.2-14.23.5.2855.jar                        | e3c3d50c7c986df74c645c0ac54639741c90a557 |
| LCHI  | forge                               | 14.23.5.2855          | forge-1.12.2-14.23.5.2855.jar                        | e3c3d50c7c986df74c645c0ac54639741c90a557 |
| LCHI  | micdoodlecore                       |                       | minecraft.jar                                        | None                                     |
| LCHI  | openmodscore                        | 0.12.2                | minecraft.jar                                        | None                                     |
| LCHI  | buildcraftlib                       | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCHI  | buildcraftcore                      | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCHI  | buildcraftfactory                   | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCHI  | buildcrafttransport                 | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCHI  | buildcraftsilicon                   | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCHI  | additionalpipes                     | 6.0.0.8               | additionalpipes-6.0.0.8.jar                          | None                                     |
| LCHI  | mdxlib                              | 3.0.0.26              | mdxlib-3.0.0.26.jar                                  | None                                     |
| LCHI  | redstoneflux                        | 2.1.1                 | RedstoneFlux-1_12_2.jar                              | None                                     |
| LCHI  | avp                                 | 6.0.0.43              | aliensvspredator-6.0.0.43.jar                        | None                                     |
| LCHE  | mclib                               | 2.3.7                 | mclib-2.3.7-1.12.2.jar                               | None                                     |
| LCH   | aperture                            | 1.5.2                 | aperture-1.5.2-1.12.2.jar                            | None                                     |
| LCH   | appliedenergistics2                 | rv6-stable-7          | appliedenergistics2-rv6-stable-7.jar                 | dfa4d3ac143316c6f32aa1a1beda1e34d42132e5 |
| LCH   | xijun                               | 1.9                   | Bacteria-Mod-1.12.2.jar                              | None                                     |
| LCH   | forgelin                            | 1.8.4                 | Forgelin-1.8.4.jar                                   | None                                     |
| LCH   | bcextrapipes                        | 1                     | bc-extra-pipes-1.12.2-1.jar                          | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCH   | jei                                 | 4.16.1.301            | jei_1.12.2-4.16.1.301.jar                            | None                                     |
| LCH   | bcoreprocessing                     | 1                     | bc-ore-processing-7.99.24.4-1.jar                    | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCH   | betterbuilderswands                 | 0.13.2                | Better-Builders-Wands-Mod-1.12.2.jar                 | None                                     |
| LCH   | betterportals                       | 0.3.7.7               | betterportals-0.3.7.7.jar                            | None                                     |
| LCH   | metamorph                           | 1.2.10                | metamorph-1.2.10-1.12.2.jar                          | None                                     |
| LCH   | blockbuster                         | 2.2.2                 | blockbuster-2.2.2-1.12.2.jar                         | None                                     |
| LCH   | codechickenlib                      | 3.2.3.358             | CodeChickenLib-1.12.2-3.2.3.358-universal.jar        | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
| LCH   | brandonscore                        | 2.4.12                | Brandons-Core-1.12.2.jar                             | None                                     |
| LCH   | buildcraftbuilders                  | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCH   | buildcraftcompat                    | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCH   | buildcraftenergy                    | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCH   | buildcraftrobotics                  | 7.99.24.8             | buildcraft-all-7.99.24.8.jar                         | None                                     |
| LCH   | cofhcore                            | 4.6.6                 | CoFHCore-1.12.2.jar                                  | None                                     |
| LCH   | cofhworld                           | 1.4.0                 | CoFHWorld-1.12.2-1.4.0.1-universal.jar               | None                                     |
| LCH   | cyberware                           | 0.2.11.29             | cyberware-1.12.2-0.2.11.29.jar                       | None                                     |
| LCH   | dimdoors                            | 3.0.9+287             | Dimensional-Doors-Mod-1.12.2.jar                     | None                                     |
| LCH   | thermalfoundation                   | 2.6.3                 | Thermal-Foundation-Mod-1.12.2.jar                    | 8a6abf2cb9e141b866580d369ba6548732eff25f |
| LCH   | draconicevolution                   | 2.3.22                | Draconic-Evolution-Mod-1.12.2.jar                    | None                                     |
| LCH   | energyconverters                    | 1.3.7.30              | energyconverters_1.12.2-1.3.7.30.jar                 | None                                     |
| LCH   | ageofabyssalcraft                   | 0.7                   | Engender+Mod-1.12.2-0.7-pre1.jar                     | None                                     |
| LCH   | ageofchaos                          | 0.7                   | Engender+Mod-1.12.2-0.7-pre1.jar                     | None                                     |
| LCH   | ageofminecraft                      | 0.7                   | Engender+Mod-1.12.2-0.7-pre1.jar                     | None                                     |
| LCH   | golems                              | 7.1.9                 | Extra-Golems-Mod-1.12.2.jar                          | None                                     |
| LCH   | mantle                              | 1.12-1.3.3.55         | Mantle-1.12-1.3.3.55.jar                             | None                                     |
| LCH   | tconstruct                          | 1.12.2-2.13.0.179     | TConstruct-1.12.2-2.13.0.179.jar                     | None                                     |
| LCH   | extrautils2                         | 1.0                   | extrautils2-1.12-1.9.9.jar                           | None                                     |
| LCH   | flansmod                            | 5.10.0                | Flans-Mod-1.12.2.jar                                 | None                                     |
| LCH   | mechapartspack                      | 5.7.2                 | Flans-Mecha-Parts-Pack-1.12.2.jar                    | None                                     |
| LCH   | simplepartspack                     | 5.7.2                 | Flans-Simple-Parts-Pack-1.12.2.jar                   | None                                     |
| LCH   | titanpack                           | 5.7.2                 | Flans-Titan-Pack-1.12.2.jar                          | None                                     |
| LCH   | galacticraftcore                    | 4.0.2.280             | GalacticraftCore-1.12.2-4.0.2.280.jar                | None                                     |
| LCH   | galacticraftplanets                 | 4.0.2.280             | Galacticraft-Planets-1.12.2-4.0.2.280.jar            | None                                     |
| LCH   | gemsplusplus                        | 1.12.2-Beta-7.0.0     | gemsplusplus-1.12.2-Beta-7.0.0.jar                   | None                                     |
| LCH   | ichunutil                           | 7.2.2                 | iChunUtil-1_12_2.jar                                 | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |
| LCH   | generallaymansaestheticspyingscreen | 7.0.0                 | GeneralLaymansAestheticSpyingScreen-1.12.2-7.0.0.jar | None                                     |
| LCH   | glacidus                            | 1.2.1                 | Glacidus-1.12.2-v1.2.1.jar                           | None                                     |
| LCH   | globe                               | 0.0.1                 | Globe-1.12.2-0.0.1.jar                               | None                                     |
| LCH   | overlord                            | 2.4.14                | Overlord-1.12.2-2.4.14.jar                           | None                                     |
| LCH   | guideapi                            | 1.12-2.1.8-63         | Guide-API-1.12-2.1.8-63.jar                          | None                                     |
| LCH   | tesla                               | 1.0.63                | Tesla-1.12.2-1.0.63.jar                              | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCH   | teslacorelib                        | 1.0.18                | tesla-core-lib-1.12.2-1.0.18.jar                     | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCH   | industrialforegoing                 | 1.12.2-1.12.2         | Industrial-Foregoing-Mod-1.12.2.jar                  | None                                     |
| LCH   | inventorypets                       | 2.0.12                | inventorypets-1.12-2.0.12.jar                        | None                                     |
| LCH   | ironfurnaces                        | 1.3.5                 | Iron-Furnaces-Mod-1.12.2.jar                         | None                                     |
| LCH   | ironchest                           | 1.12.2-7.0.67.844     | ironchest-1.12.2-7.0.72.847.jar                      | None                                     |
| LCH   | ism                                 | 2.6.1 MC-1.12.2       | ism-2.6.1 MC-1.12.2.jar                              | None                                     |
| LCH   | malisiscore                         | 1.12.2-6.5.1-SNAPSHOT | malisiscore-1.12.2-6.5.1.jar                         | None                                     |
| LCH   | malisisblocks                       | 1.12.2-6.1.0          | malisisblocks-1.12.2-6.1.0.jar                       | None                                     |
| LCH   | malisisdoors                        | 1.12.2-7.3.0          | malisisdoors-1.12.2-7.3.0.jar                        | None                                     |
| LCH   | malisisswitches                     | 1.12.2-5.1.0          | malisisswitches-1.12.2-5.1.0.jar                     | None                                     |
| LCH   | masterweapons                       | 1.5.1                 | Master+Weapons+-+1.5.1.jar                           | None                                     |
| LCH   | mechsoldiers                        | 1.1.6                 | MechSoldiers-1.12.2-1.1.6.jar                        | None                                     |
| LCH   | mininggoggles                       | @VERSION@             | Mining+Goggles-0.0.3.0.jar                           | None                                     |
| LCH   | mjrlegendslib                       | 1.12.2-1.2.0          | MJRLegendsLib-1.12.2-1.2.0.jar                       | b02331787272ec3515ebe63ecdeea0d746653468 |
| LCH   | mob_grinding_utils                  | 0.3.13                | Mob-Grinding-Utils-Mod-1.12.2.jar                    | None                                     |
| LCH   | modernweaponspack                   | 5.8.2                 | Modern+Warfare-Content+Pack-1.12.2-5.8.2.jar         | None                                     |
| LCH   | mutantbeasts                        | 1.12.2-0.7.2          | Mutant-Beasts-Mod-1.12.2.jar                         | 25e0dcff5b5a7325d7c28898af41ff8b0ba41b77 |
| LCH   | openmods                            | 0.12.2                | OpenModsLib-1.12.2-0.12.2.jar                        | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
| LCH   | openblocks                          | 1.8.1                 | OpenBlocks-1.12.2-1.8.1.jar                          | d2a9a8e8440196e26a268d1f3ddc01b2e9c572a5 |
| LCH   | orespawn                            | 3.3.1                 | OreSpawn-1.12-3.3.1.179.jar                          | d476d1b22b218a10d845928d1665d45fce301b27 |
| LCH   | portalgun                           | 7.1.0                 | Portal-Gun-Mod-1.12.2.jar                            | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |
| LCH   | portalblocks                        | 2.1                   | portalblocks-1.12.2-v2.1.jar                         | None                                     |
| LCH   | prefab                              | 1.3.1.3               | prefab-1.3.1.3.jar                                   | None                                     |
| LCH   | rabbit-gui                          | 1.12.2.2              | rabbit-gui-1.12.2.2.jar                              | None                                     |
| LCH   | roboticraft                         | 0.10.7                | Roboticraft-0.10.7.jar                               | None                                     |
| LCH   | sdrones                             | 1.3.1                 | sdrones-1.3.1.jar                                    | None                                     |
| LCH   | srparasites                         | 1.9.4                 | SRParasites-1.12.2v1.9.4.jar                         | None                                     |
| LCH   | thermalexpansion                    | 5.5.7                 | ThermalExpansion-1.12.2-5.5.7.1-universal.jar        | None                                     |
| LCH   | thermaldynamics                     | 2.5.6                 | ThermalDynamics-1.12.2-2.5.6.1-universal.jar         | None                                     |
| LCH   | teslacorelib_registries             | 1.0.18                | tesla-core-lib-1.12.2-1.0.18.jar                     | None                                     |
| UD    | blockbuster_core                    | 2.2.2                 | minecraft.jar                                        | None                                     |
| UD    | mclib_core                          | 2.3.7                 | minecraft.jar                                        | None                                     |

Loaded coremods (and transformers): 

MicdoodlePlugin (MicdoodleCore-1.12.2.jar)
micdoodle8.mods.miccore.MicdoodleTransformer
MalisisSwitchesPlugin (malisisswitches-1.12.2-5.1.0.jar)

BlockbusterCore (blockbuster-2.2.2-1.12.2.jar)
mchorse.blockbuster.core.BBCoreClassTransformer
ForgelinPlugin (Forgelin-1.8.4.jar)

OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar)
openmods.core.OpenModsClassTransformer
MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar)

McLib core mod (mclib-2.3.7-1.12.2.jar)
mchorse.mclib.core.McLibCMClassTransformer
FMLModule (mdxlib-3.0.0.26.jar)
com.asx.mdx.AccessTransformer
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 471.41' Renderer: 'NVIDIA GeForce GTX 970/PCIe/SSE2'
OpenModsLib class transformers: [llama_null_fix:FINISHED],[horse_base_null_fix:FINISHED],[pre_world_render_hook:FINISHED],[player_render_hook:FINISHED],[horse_null_fix:FINISHED]
AE2 Version: stable rv6-stable-7 for Forge 14.23.5.2768
Pulsar/tconstruct loaded Pulses:
- TinkerCommons (Enabled/Forced)
- TinkerWorld (Enabled/Not Forced)
- TinkerTools (Enabled/Not Forced)
- TinkerHarvestTools (Enabled/Forced)
- TinkerMeleeWeapons (Enabled/Forced)
- TinkerRangedWeapons (Enabled/Forced)
- TinkerModifiers (Enabled/Forced)
- TinkerSmeltery (Enabled/Not Forced)
- TinkerGadgets (Enabled/Not Forced)
- TinkerOredict (Enabled/Forced)
- TinkerIntegration (Enabled/Forced)
- TinkerFluids (Enabled/Forced)
- TinkerMaterials (Enabled/Forced)
- TinkerModelRegister (Enabled/Forced)

[Help Please] Building client doesn't work

I'm using Windows 10. I downloaded the zipped file and unzipped it. I opened it in Visual Studio and went to client -> Source Files -> main.cpp and tried to run it. There were a lot of errors:
https://gyazo.com/e7a41da5adb622ea80e8ecac4bd28d23

What am I doing wrong? Please note: I took a class in basics of C++ but other than that I have no experience in it. I'd like to learn how to create my own bots in C++ (along with testing yours) but there are no tutorials for this kind of thing so I'm trying to learn it myself. In other words, please be patient with me. :P

Thanks!

can it compile to 64bit dll?

Hello there,
thank you for creating such cool tool, I retargeted the project to compile for 64bit arch and I also self-compiled all the dependencies. Although the compilation succeeded and also can it connect to servers, but when I delete the pointers I created, weird errors happened.
I also retargeted to Windows 10.x API as VS2017 suggested.

delete this->dispatcher;
delete this->mc_client;
 	ntdll.dll!RtlReportCriticalFailure�()	Unknown
 	ntdll.dll!RtlpHeapHandleError�()	Unknown
 	ntdll.dll!RtlpHpHeapHandleError�()	Unknown
 	ntdll.dll!RtlpLogHeapFailure�()	Unknown
 	ntdll.dll!RtlFreeHeap()	Unknown
 	ucrtbase.dll!00007ffcab75d92b()	Unknown
 	mclib.dll!mc::core::Client::`vector deleting destructor'(unsigned int)	C++
>	Craft.dll!MCClient::Stop() Line 34	C++
 	[External Code]	

Google said it might be a heap corruption.
Should I switch back to 32-bit or it was caused by my code?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.