2 registered members (vicknick, AndrewAMD),
1,292
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Location of _sphere.mdl, _cube.mdl and _shadow.dds
#435953
01/16/14 13:51
01/16/14 13:51
|
Joined: Aug 2002
Posts: 3,258 Mainz
oliver2s
OP
Expert
|
OP
Expert
Joined: Aug 2002
Posts: 3,258
Mainz
|
Where can I found these default files?
#define SPHERE_MDL "_sphere.mdl"
#define CUBE_MDL "_cube.mdl"
#define SHADOW_DDS "_shadow.dds"
I ask this because if I call "add_new()" these files aren't found anymore. So I want add the path or resource they're located in again.
|
|
|
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds
[Re: oliver2s]
#435956
01/16/14 14:44
01/16/14 14:44
|
Joined: Mar 2010
Posts: 57 Germany, Niedersachsen
LemmyTheSlayer
Junior Member
|
Junior Member
Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
|
i think they are hardcoded as char[] in the acknex.dll and loaded at startup with add_buffer. that's why they disappear when calling add_new (see http://conitec.net/beta/aadd_buffer.htm) so unless you know the exact location of these buffers in the acknex.dll, you will have difficulties using them.
SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE
|
|
|
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds
[Re: LemmyTheSlayer]
#435957
01/16/14 14:54
01/16/14 14:54
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Well, loadup acknex.dll in ollydbg, search for one the strings. Add a memory/hardware breakpoint on access and call your ent_create or whatever. After the execution it will break after or in the call, now read the pointer to the buffer (remind the reversed order of parameters in asm) and there are your bytes. If I'll find a lil time I could check this for you too
Last edited by Ch40zzC0d3r; 01/16/14 14:55.
|
|
|
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds
[Re: Ch40zzC0d3r]
#435967
01/16/14 16:11
01/16/14 16:11
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
The strings don't appear in the binary...
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds
[Re: oliver2s]
#435972
01/16/14 16:43
01/16/14 16:43
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
@JustSid sure they do, they are just not signed or flagged as official strings in olly/ida, do a simple binary search for ascii Sorry, I wont have much time today, probably tomorrow..
Last edited by Ch40zzC0d3r; 01/16/14 16:44.
|
|
|
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds
[Re: LemmyTheSlayer]
#435973
01/16/14 16:45
01/16/14 16:45
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Can you give me the offset? I can't find it for the life of me, and from the dissassembly of ent_create() it looks a lot like it only takes ASCII strings, not Unicode (and yeah, "strings acknex.dll | grep cube.mdl" doesn't show anything) I have one instance of shadow.dds, and it looks like this (note: No cube.mdl to be found): http://cl.widerwille.com/TOlT
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds
[Re: WretchedSid]
#435974
01/16/14 16:51
01/16/14 16:51
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
Location for shadow and cube: Offset: 101F052A - 101EA000 = 652A
Last edited by Ch40zzC0d3r; 01/16/14 16:53.
|
|
|
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds
[Re: Ch40zzC0d3r]
#435975
01/16/14 16:59
01/16/14 16:59
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Ouh... Well, that explains why it doesn't show up in the strings section, and has this weird non-printable character in it... There is a WRS embedded in the acknex.dll which includes these files.
Which also answers Olivers question.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|