Some help reverse engennering a piece of code?
Moderator: ScummVM Team
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am
Doesn't matter. Not getting anywhere on the return value of that function. I even wrapped the dll with the original dll as the wrapper so i could inspect the return values without a debugger. It still differs from the original in one way (a certain type of call can crash it).
Before i go i must apologize to Qbix, i see what you mean now. But i don't think that figures, wrapping the old dll gives very large figures for being a simple max output to send on flushconsole (at least using in as return).
Before i go i must apologize to Qbix, i see what you mean now. But i don't think that figures, wrapping the old dll gives very large figures for being a simple max output to send on flushconsole (at least using in as return).
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am
Well i eventually did something primitive with this, found the main error (the booleans introduced in python were wrecking havoc with the caller of the python interpreter, needed to convert those calls to int at the border of the python api):
http://planet-vampire.com/forum/index.php?topic=5438.0
(just used getProcAdress on a valve dll and low-effort python extension to hook the output of the python to the ingame console.
It worked.
But now i'd like to do something better (for instance, mouselistener for dialogs using the (hidden) valve api), but i don't know even how to start.
1rst problem: the other dlls appear to be obfuscated, and i'm not a reverser. I have no idea how to reconstruct a purposefully broken export table like likely the valve "protection" did to those poor dlls.
2nd problem: I doubt that the getProcAdress method would work for c++ object oriented system. In fact i have no idea how to hook into something like that (how to find the object instance i want, how to create a new instance of any argument object, how to find and use the definitions of those objects, etc).
I guess this project will stay on hold forever unless i get some help. Hell at least i got bloodlines running on python 2.7, it's something.
http://planet-vampire.com/forum/index.php?topic=5438.0
(just used getProcAdress on a valve dll and low-effort python extension to hook the output of the python to the ingame console.
It worked.
But now i'd like to do something better (for instance, mouselistener for dialogs using the (hidden) valve api), but i don't know even how to start.
1rst problem: the other dlls appear to be obfuscated, and i'm not a reverser. I have no idea how to reconstruct a purposefully broken export table like likely the valve "protection" did to those poor dlls.
2nd problem: I doubt that the getProcAdress method would work for c++ object oriented system. In fact i have no idea how to hook into something like that (how to find the object instance i want, how to create a new instance of any argument object, how to find and use the definitions of those objects, etc).
I guess this project will stay on hold forever unless i get some help. Hell at least i got bloodlines running on python 2.7, it's something.
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am
You don't say dude? Did the post above look like a long code monologue to you?Longcat wrote:fingolfin
ScummVM Co-Lead
Joined: 21 Sep 2005
Posts: 1401
Location: Germany
I don't think this forum is entirely the right place for your monologue, and for loooong code excerpts. Please consider getting a blog, and posting there.
Tue Mar 08, 2011 10:15 am
It is in fact, a release announcement, though a almost useless one because it is "only" python 2.7 for the game.
Are you especially annoyed at me asking for support on a place where lots of reverse engineers congregate, on the "Junkyard" forum, among many other posts talking about their pet projects?
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am
I disagree with your interpretation of what the moderators wanted. He wanted me to stop posting long quotes of code, i stopped posting long quotes of code.
I don't see any harm or contradiction.
What's the problem of asking code questions? No one is required to answer. And i admit i was aggressive on my last post above, i've been getting a little, uh, aggressive on forums that curtail harmless discussion.
I don't see any harm or contradiction.
What's the problem of asking code questions? No one is required to answer. And i admit i was aggressive on my last post above, i've been getting a little, uh, aggressive on forums that curtail harmless discussion.
Out of curiosity, how many helpful answers have you gotten so far? Because I can't seem to find any. Plus, this is a forum related to adventure games, not rpg's. There must be hundreds of forums more appropriate than this one for your project. At least, that's how I interpret Fingolfins post, but I can't speak for him of course.
So no, there is no harm done, but I really can't see what you are getting out of this other than spamming the forums.
So no, there is no harm done, but I really can't see what you are getting out of this other than spamming the forums.
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am
- DrMcCoy
- ScummVM Developer
- Posts: 595
- Joined: Sat Dec 17, 2005 1:33 pm
- Location: Braunschweig, Germany
- Contact:
As a ScummVM developer, I do have moderational powers here.
And I agree, you should get a blog. A single forum thread is completely ill-fit for your RE progress descriptions, as interesting they may be. And no, that does not mean you're getting a whole subforum here .
Of course, you may announce your blog's creation here, if you wish. And I for one would add it to my RSS reader.
And I agree, you should get a blog. A single forum thread is completely ill-fit for your RE progress descriptions, as interesting they may be. And no, that does not mean you're getting a whole subforum here .
Of course, you may announce your blog's creation here, if you wish. And I for one would add it to my RSS reader.
-
- Got a warning
- Posts: 173
- Joined: Thu Feb 25, 2010 7:44 am