Giter Club home page Giter Club logo

gwca's People

Contributors

3vcloud avatar adituv avatar alexmacocian avatar chandlerferry avatar dfarley1 avatar dubbleclick avatar franneck94 avatar greglando113 avatar haskha avatar juliuspunhal avatar laserath avatar mangelmaxime avatar mikejerred avatar pewpewkenshin avatar reduf avatar riftlurker avatar stheno avatar theexcidio avatar thx4nothing 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

Watchers

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

gwca's Issues

GoldConfirmationPatch scan fix todo

uintptr_t found = GW::Scanner::Find("\xF7\x40\x0C\x10\x00\x02\x00\x75", "xxxxxxxx", +7);
printf("[SCAN] GoldConfirmationPatch = %p\n", (void *)found);

// \xF7\x40\x0C\x10\x00\x02\x00\x75
//  0   1   2   3   4   5   6   7

GwArmory bug: Clear armor before switching to prevent double armor

When switching between certain pieces of armor you can get multiple pieces of armor at the same time. An example is spectacles:

image

(This bug existed all the way back in gwdressup)

The workaround for now is to take off the offending armor piece in-game to reset the look.

Adding an option for "No armor" to the select would also be nice for headpieces which can be hidden

Example doesn't work. "GWCA/APIMain.h" not found

The provided example in the readme does not work.
When I try to build it I get the that the file "GWCA/APIMain.h" cannot be found.
I have followed every other steps in the readme (added GWCA as a git submodule, added it as a project in VC, defined it as a dependency and added it as a reference).

PartyMgr::RespondToPartyRequest() not working

Hi,

I'm currently trying to accept a party invite using the GWCA function RespondToPartyRequest(true) from PartyMgr. However the behaviour is a bit strange:

  • RespondToPartyRequest(true) seems to do nothing at all
  • RespondToPartyRequest(false) switches to hard mode instead of declining the party request

The rest of GWCA seems to work fine, so it seems to be a problem with this particular function only. Did I miss anything? I guess calling RespondToPartyRequest(true) should be all that is required to accept an invite... Or has the packet which has to be sent in order to accept possibly been changed in one of the past updates?

Thanks in advance.

How to clone and run examples eg PacketLogger in Visual Studio 2022?

Hi 👋 I'm new to Visual Studio and C++ and am wondering how I can get the Packet Logger example project up-and-running? I currently have Visual Studio 2022 installed.

Here's what I've tried so-far:

  1. Open Examples/Examples.sln in Visual Studio
  2. "Solution Explorer" -> PacketLogger -> Build
    1. Error: the following warning is treated as an error: 'initializing': conversion from 'int' to 'size_t', signed/unsigned mismatch
    2. Error: the following warning is treated as an error: enumerator 'GW::UI::EnumPreference::CharSortOrder' in switch of enum 'GW::UI::EnumPreference' is not handled (x10 more for other enum values)
    3. cannot open file C:...\GWCA\Examples\Debug\GWCA.lib
  3. "Solution Explorer" -> GWCA -> Build
    • same errors as above except for error 2.iii.
  4. Change "Solution Explorer" -> GWCA -> Properties -> C/C++ -> "Treat Warnings As Errors" -> "No (/WX-)"
  5. "Solution Explorer" -> GWCA -> Build
    • success
  6. "Solution Explorer" -> PacketLogger -> Build
    1. LNK2001 unresolved external symbol "struct GW::Module GW::EventMgrModule" (?EventMgrModule@GW@@3UModule@1@A) PacketLogger C:...\GWCA\Examples\PacketLogger\GWCA.lib(GWCA.obj)
    2. Error LNK2001 unresolved external symbol "struct GW::Module GW::QuestModule" (?QuestModule@GW@@3UModule@1@A) PacketLogger C:...\GWCA\Examples\PacketLogger\GWCA.lib(GWCA.obj)
    3. LNK1120 2 unresolved externals PacketLogger C:...\GWCA\Examples\Debug\PacketLogger.dll

None of that worked so then I tried running cmake . in the Examples directory but it only seemed to partially succeed

$ cmake .
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.35.32216.1
-- The CXX compiler identification is MSVC 19.35.32216.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:6 (message):
  You are configuring a 64bit build, this is not supported.  Run cmake with
  `-A Win32`

-- Configuring incomplete, errors occurred!
See also "C:/.../GWCA/CMakeFiles/CMakeOutput.log".

Then I deleted CMakeCache.txt and tried cmake again with cmake -A Win32 . and it appeared to succeed.

$ cmake . -A Win32
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.35.32216.1
-- The CXX compiler identification is MSVC 19.35.32216.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/.../GWCA

Then I tried to build/run PacketLogger in Visual Studio again

  • "Solution Explorer" -> PacketLogger -> Build
    • Error LNK1104 cannot open file '....\Debug\gwca.lib' PacketLogger C:...\GWCA\Examples\PacketLogger\LINK

and wasn't sure where to go from there. I've probably way over-complicated it. Any help would be appreciated 😄 .

Interfacing with Python

Hi,

I would like to use this GW client using Python. Is it theoretically possible to interface GWCA C++ functions in a piece of Python code?

Thank you.

GW::Agents::Move(x, y) crashes the game client

Hi,

when using the function GW::Agents::Move(x, y) it just crashes the game client for me.
Initialize() returned true before and other API functions seem to work (e.g. reading the player coordinates or map id), so I guess the API startup itself is performed corectly.

However inside Toolbox the very same function call (even with the same coordinates on the same map in the same instance) works just fine and the character starts moving to the specified position when setting a corresponding hotkey for it.

On the other hand, there seems to be any kind of initialization missing: When I download GWToolbox, build it from source and slightly modify the code in GWToolbox.cpp to use GW::Agents::Move(x, y) right after enabling the HookBase hooks(see code snippet below) it also crashes the game client from inside toolbox:
https://github.com/HasKha/GWToolboxpp/blob/f325d384b5cddc2505aea6134019150f4dcf9da1/GWToolbox/GWToolbox/GWToolbox.cpp#L94-L97

Therefore I must be missing any kind of initialization Toolbox does before enabling the move hotkeys. Are there any further requirements / initializations / etc. before I can use GW::Agents::Move(x, y) in order to not crash the game client? Toolbox seems to do them after enabling the HookBase hooks and before a move hotkey is executed.

The game tries to Read Memory at address 0x14 which fails for obvious reasons.

Thans in advance.

access violation

Hi,
I'm trying to include GWCA in my project as in the example and I've added the include libraries in my setup. The executable now builds fine however when I execute the first function GW::Initialize() I receive the following error
Exception thrown at 0x00806823 in App.exe: 0xC0000005: Access violation reading location 0x00401000.

System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

And it's happening here

image

So I'm pretty much stuck at the first step.

	if (GW::Initialize()) {
		this->initialized = true;
		this->button1->Text = "Stop";
	}

Any ideas why this might be happening? I'd be happy to provide additional info to troubleshoot it if I new what is needed :)

Any help is appreciated.

PS: I'm running as administrator and with a/v disabled completely.

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.