Raised This Month: $95 Target: $400
 23% 

Texture Model & WAD Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development        Approver:   Hawk552 (427)
ts2do
Senior Member
Join Date: Mar 2004
Old 07-23-2007 , 22:26   Texture Model & WAD Precacher
Reply With Quote #1

FOR ALL SERVERS WITH CUSTOM MAPS
This plugin precaches the texture models (*t.mdl) of any models precached by the server; it fixes the notorious texture model error generated from maps that use models that have texture models but don't precache them in their res file. It can help server admins avoid many headaches by preventing a majority of clients from dropping from their server.

The plugin is now extended to also parse map data and precache WADs used by a map. This will avoid the crash players receive when they don't have a WAD used by the map.

After the map has loaded, the plugin automatically stops itself.
Note: This plugin cannot fix cases where the files are missing from the server. In order to fix cases where such files cannot be found, create an empty file with the same name.

This plugin is powered by the KeyValue Event Manager and needs it installed in order to run.
Attached Files
File Type: sma Get Plugin or Get Source (tmdlwadp.sma - 4514 views - 1.8 KB)
__________________

Last edited by ts2do; 08-02-2007 at 06:03.
ts2do is offline
Send a message via AIM to ts2do
dishbemarkxp
Member
Join Date: May 2007
Location: by reading this, your ba
Old 07-23-2007 , 23:22   Re: Texture Model Precacher
Reply With Quote #2

tested, works perfect, nice plugin +karma
__________________
+ KARMA IF I HELPED d:)
iLLiCENT EViNE PROZACS ARE BENEFICIAL FOR YOU
dishbemarkxp is offline
Send a message via AIM to dishbemarkxp
ts2do
Senior Member
Join Date: Mar 2004
Old 07-24-2007 , 17:39   Re: Texture Model Precacher
Reply With Quote #3

I guess it needs more work and testing though because it doesn't work completely (if at all) on a certain server.
__________________
ts2do is offline
Send a message via AIM to ts2do
ts2do
Senior Member
Join Date: Mar 2004
Old 07-24-2007 , 18:28   Re: Texture Model Precacher
Reply With Quote #4

It seems that the call to regex_substr wanted the str_id to be 1 rather than 0, otherwise it gave the original string back.

There was an error in the callback timing so I tried a few things and ended up with what I have now. It finally works too.
__________________

Last edited by ts2do; 07-24-2007 at 19:21.
ts2do is offline
Send a message via AIM to ts2do
ts2do
Senior Member
Join Date: Mar 2004
Old 07-25-2007 , 22:53   Re: Texture Model & WAD Precacher
Reply With Quote #5

Is it just me or is this massive engine patch underappreciated?
__________________
ts2do is offline
Send a message via AIM to ts2do
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-26-2007 , 11:02   Re: Texture Model & WAD Precacher
Reply With Quote #6

Personally, I still prefer to use res files. But, this does seem like a good idea
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ts2do
Senior Member
Join Date: Mar 2004
Old 07-26-2007 , 13:36   Re: Texture Model & WAD Precacher
Reply With Quote #7

Don't get me wrong...it's still important for mappers to use res files. But server admins should never change any res files. This is what that's for...server admins using maps in which their mappers that forget res entries.
__________________
ts2do is offline
Send a message via AIM to ts2do
Old 07-26-2007, 14:37
organizedKaoS
This message has been deleted by organizedKaoS.
ts2do
Senior Member
Join Date: Mar 2004
Old 07-26-2007 , 15:56   Re: Texture Model & WAD Precacher
Reply With Quote #8

Resgen is a MAPPER utility not a server admin utility...
This just makes sure you don't lose players to these engine faults

I made it stop itself after map load so it's completely removed from any processing after map load.. I hope this makes the plugin even lighter than it already was
__________________

Last edited by ts2do; 07-26-2007 at 16:14.
ts2do is offline
Send a message via AIM to ts2do
Old 07-26-2007, 18:37
organizedKaoS
This message has been deleted by organizedKaoS.
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-26-2007 , 18:41   Re: Texture Model & WAD Precacher
Reply With Quote #9

You do know that not all (maybe even most) mappers don't put res files with their maps. Resgen is both a mappers tool and a admins tool.

I am not saying that this plugin won't be usfull to the lazy server operators, I am just saying that for me, I always create my own res file when I install a new map.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ts2do
Senior Member
Join Date: Mar 2004
Old 07-27-2007 , 01:05   Re: Texture Model & WAD Precacher
Reply With Quote #10

It's not only about mappers that completely omit res files...it's also about mappers that leave out necessary files...this plugin takes the weight of having to do anything special to a map when installing it off admins
__________________
ts2do is offline
Send a message via AIM to ts2do
Old 07-27-2007, 01:22
organizedKaoS
This message has been deleted by organizedKaoS. Reason: Leaving community
Reply


Thread Tools
Display Modes

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 14:18.


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