Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (vicknick, AndrewAMD), 1,292 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
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 Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Where can I found these default files?

Code:
#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 Offline
Junior Member
LemmyTheSlayer  Offline
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
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

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 laugh

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 Offline
Expert
WretchedSid  Offline
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: WretchedSid] #435968
01/16/14 16:24
01/16/14 16:24
Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
LemmyTheSlayer Offline
Junior Member
LemmyTheSlayer  Offline
Junior Member

Joined: Mar 2010
Posts: 57
Germany, Niedersachsen


SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE
Re: Location of _sphere.mdl, _cube.mdl and _shadow.dds [Re: LemmyTheSlayer] #435971
01/16/14 16:29
01/16/14 16:29
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
So how can I add the buffers again?

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
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

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 tongue
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 Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: LemmyTheSlayer

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
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

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 Offline
Expert
WretchedSid  Offline
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
Page 1 of 3 1 2 3

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1