Hi,
I just noticed the latest revision and there might be two problems.
1. Linux offsets are not always one greater than Windows offsets. You can see an example here: http://forums.eventscripts.com/viewtopic.php?f=25&t=46254&start=6
The offset on Windows for CBaseClient::SetName() is 17, but on Linux it's 57 (at least in CS:S).
2. You should stick with one representation of pointers. For FindVirtualFunction() you used int, but for the rest you are using unsigned long (e.g. http://code.google.com/p/source-python/source/browse/src/core/modules/binutils/binutils_scanner.cpp#297 or http://code.google.com/p/source-python/source/browse/src/thirdparty/dyncall/include/dyncall_config.h?spec=svnb2ee4d7d859ef8e4236356117815c4cba729fabc&r=b2ee4d7d859ef8e4236356117815c4cba729fabc#43). You are going to crash if you try to call a function retrieved by FindVirtualFunction()!
Ayuto
Binutils.FindVirtualFunction()
Since I'm somewhat more advanced C++ programmer (been doing it for ~4 years, not a professional yet tho) and my father is one of the world's finest programmers so I can ask him for help at anything, I would love to help a little with this project. Problem is, I've got barely any knowledge of source engine — How much exactly do I need to know of the source stuff, and where could I learn it if I wanted to help, or is it even possible for someone who doens't know much about source engine to help? :P
Well, we already have 3 very good C++ programmers, but they have just been fairly busy lately. I mostly have been adding stuff to try to help me get into C++ and actually start learning it. And, the things I have added is functionality that I know people have been waiting for to be added to the plugin. That is not to say that if you posted something, we wouldn't look into it and see about adding it.
Satoon
Satoon
- L'In20Cible
- Project Leader
- Posts: 1533
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
- L'In20Cible
- Project Leader
- Posts: 1533
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Who is online
Users browsing this forum: No registered users and 40 guests