Raised This Month: $ Target: $400
 0% 

How to get list of texture names


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-05-2009 , 19:29   How to get list of texture names
Reply With Quote #1

How can I get all texture names of the map and what classes (metal/wood/snow/sand/water...) they are?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Old 01-05-2009, 20:00
SchlumPF*
This message has been deleted by SchlumPF*. Reason: nvm
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-05-2009 , 20:20   Re: How to get list of texture names
Reply With Quote #2

It's possible to get the texture name ( http://forums.alliedmods.net/showthr...656#post737656 ) but I don't know how to get a complete list, probably with a software. I know that there some maps ( texture name + class ) listed in materials.txt file but It will not help really.. (client)
Arkshine is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-05-2009 , 22:06   Re: How to get list of texture names
Reply With Quote #3

All used texture names are in *.bsp what we can read and also there we can find *.wad files...

Reading *.bsp we can get what wad files are used, but I didn't found a way how to hook texture names...

Reading *.wad files... There are texture names there also, but I don't know how to hook them...
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-06-2009 , 03:22   Re: How to get list of texture names
Reply With Quote #4

If the solutions seems too complicated maybe you're asking yourself the wrong question.

What's the particular reason you need this?
__________________

Community / No support through PM
danielkza is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-06-2009 , 08:58   Re: How to get list of texture names
Reply With Quote #5

Automatic maps/*_detail.txt file creation.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-06-2009 , 11:06   Re: How to get list of texture names
Reply With Quote #6

Quote:
Originally Posted by MPNumB View Post
Automatic maps/*_detail.txt file creation.
Well there isn't any simpler way to do this. You'll probably have to parse the BSP on your on. It should not be simple, but nor difficult, since HLSDK has everything you need for that task.
__________________

Community / No support through PM
danielkza is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 01-07-2009 , 19:36   Re: How to get list of texture names
Reply With Quote #7

Quote:
Originally Posted by arkshine View Post
It's possible to get the texture name ( http://forums.alliedmods.net/showthr...656#post737656 ) but I don't know how to get a complete list, probably with a software. I know that there some maps ( texture name + class ) listed in materials.txt file but It will not help really.. (client)
Ok...

but:

PHP Code:
new iCvarStr[65];
get_cvar_string("test"iCvarStr64);
new 
iReturn dllfunc(DLLFunc_PM_FindTextureTypes_Texture); 
So 'iReturn' is allways 67 'C'. I'm confused...

// edit...

Ok, found out: first this dllfunc works only for textures in materials.txt list. Second if texture isn't there it returns 'C'. Third - if map was compiled using -nowad function (or whatever that function is - function that formats .wad file in .bsp), server crashes.

So is there anyother way ?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 01-07-2009 at 20:00.
MPNumB is offline
Send a message via Skype™ to MPNumB
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 09:14.


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