Raised This Month: $ Target: $400
 0% 

How to get an inlined models full path?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-20-2009 , 09:37   How to get an inlined models full path?
Reply With Quote #1

Since L4D Crash Course Valve started using inlined model paths for their maps.

So instead of (example) "/models/props/trashcan.mdl" its "*34".


Does anyone know how to retrieve the full path model again?

m_ModelName only returns the inlined name.


Its a problem because the inlined definitions differ from map to map and i need a model precached for another map.
AtomicStryker is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 01-05-2010 , 14:52   Re: How to get an inlined models full path?
Reply With Quote #2

Quite flattened, even Bailopan doesn't know the answer o_O
AtomicStryker is offline
API
Veteran Member
Join Date: May 2006
Old 01-05-2010 , 22:41   Re: How to get an inlined models full path?
Reply With Quote #3

Do those numbers refer to a text file with their full paths? Ifso, you could parse the file and match "inline" names.
__________________
API is offline
Send a message via AIM to API
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 01-06-2010 , 05:13   Re: How to get an inlined models full path?
Reply With Quote #4

Well, in the .bsp file there is something about "stringtable_dictionary.dctmaps" but i cant find that file in the folder or VPKs
AtomicStryker is offline
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 01-06-2010 , 07:59   Re: How to get an inlined models full path?
Reply With Quote #5

I can't test anything on L4D right now, but
left4dead\reslists\*.dict
Maybe that can assist you?
Seems to be a file with nothing but null terminated strings.
AltPluzF4 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 01-06-2010 , 09:54   Re: How to get an inlined models full path?
Reply With Quote #6

That seems to be a dictionary file with lots of strings such as models in it - but the inlined model number doesn't seem to translate to lines.

"model" "*155"

might be

(line 1725) "left4dead\materials\particle\rain.vmt"

But i couldn't tell for certain
AtomicStryker is offline
TESLA-X4
Senior Member
Join Date: Dec 2008
Location: $Recycle.Bin
Old 01-06-2010 , 12:26   Re: How to get an inlined models full path?
Reply With Quote #7

Model names with *<number> are brush models.
TESLA-X4 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 01-06-2010 , 13:46   Re: How to get an inlined models full path?
Reply With Quote #8

What file ending do those have?
AtomicStryker is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 01-06-2010 , 14:36   Re: How to get an inlined models full path?
Reply With Quote #9

Quote:
Originally Posted by AtomicStryker View Post
"model" "*155"

might be

(line 1725) "left4dead\materials\particle\rain.vmt"
Thats not a model.

Quote:
Originally Posted by AtomicStryker View Post
Quote:
Originally Posted by TESLA-X4 View Post
Model names with *<number> are brush models.
What file ending do those have?
They arent files, theyre brushes.

Try running this code and see if the dump contains anything useful.

PHP Code:
decl String:strName[64], String:strData[256]
new 
tableidx FindStringTable("modelprecache")
new 
count GetStringTableNumStrings(tableidx)
new 
Handle:file OpenFile("addons/modelprecache.txt","w")

for(new 
0counti++) {
    
ReadStringTable(tableidx,i,strName,sizeof(strName))
    
GetStringTableData(tableidx,i,strData,sizeof(strData))
    
WriteFileLine(file,"%2d: \"%s\" = \"%s\"\n",i,strName,strData)
}

CloseHandle(file
__________________
plop
p3tsin is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 01-07-2010 , 06:56   Re: How to get an inlined models full path?
Reply With Quote #10

I get THIS.

Are the lines fitting to my "*155" model? Because whatever that seems to be defined to looks like code rubble

Code:
"*155" = "O€šO€šO"
AtomicStryker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode