Host_Error: PF_precache_model_I: Bad string
Post Reply
Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by mrfranswa on Thu Jun 17th at 2:14am 2004


Ok, this is an odd, and deadly error. Basically, the map will compile fine. When you attempt to run the map, everything seems great, however before it loads, it crashes back to the main screen. When you press the console button, all it says is this:

Host_Error: PF_precache_model_I: Bad string"

Now, I am guessing it's an entity problem, (dur), but being more specific is starting to be a little more difficult. This is what good o'l Tommy says:

Host_Error: Bad String

This rare error only happens in game/server mode when sprites, models, sounds, or text strings (but not all strings!) are initialized and precached. If the string/name for the sprite, model, sound, or miscellaneous text string either starts with a non-printable ASCII character, or is 0 length (ie: starts with a non-printable null ASCII character), then the error will occur.
Solution: search thru entities like env_glow, env_sprite, ambient_generic, env_shooter, etc. - anything the engine has to precache a file for the bad name.

This is a svencoop map which uses a ton of custom sounds, and models. Now, the odd thing is that it says it's a naming problem. However, when I do entity check, and even ripent the bsp, I can't find any problems with any of the characters!

Somebody, please shed some light on my problem, or offer to lend me a hand! I already have two people trying to find the problem. The faster it is solved, the faster my map can be completed.

If I get any more information, or find a fix for it, I'll put it up.





Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by 7dk2h4md720ih on Thu Jun 17th at 2:20am 2004


Take all your models and copy them into a blank box. Compile and see if the error appears. Start deleting models until you find the dodgy one/ones. Then you can go about sorting them out.




Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by 7dk2h4md720ih on Thu Jun 17th at 2:23am 2004


? quote:


Host_Error: PF_precache_model_I: Model 'models/mapmodels/sherman.mdl' failed to precache because the item count is over the 512 limit.
Reduce the number of brush models and/or regular models in the map to correct this






Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by mrfranswa on Thu Jun 17th at 3:26am 2004


It isn't that specific, so I dont know if I hit that limit or not. I'll let you know as soon as I get it. I will try that method right now. I shall not sleep untill I fix this!

RE2 IS COUNTING ON ME!





Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by mrfranswa on Thu Jun 17th at 3:27am 2004


I almost forgot, mine is a BAD STRING, so it can't be a limit.



Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by mrfranswa on Thu Jun 17th at 4:07am 2004


I FOUND IT!

What an odd error. It came from me spawning a monster_generic with a squadmaker. I did the, "put everything in a big box, and delete" method. At first I thought i'd take forever, since I had well over 600 entities in the map. However, after about 5 min, (only took about a tenth of a second to compile wihtout a light), I found the source.

Thanx for your idea, it saved the day!





Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by 7dk2h4md720ih on Thu Jun 17th at 4:14am 2004


Change your post to an answer and correct it so it goes into the database bud. Glad you got it fixed, you can go to sleep now.




Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by Gwil on Wed Jun 23rd at 12:47am 2004


Sorted. [addsig]



Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by laqclcj on Sat Aug 2nd at 6:24am 2008


Can the CS model not show regularly very much?




Quote
Re: Host_Error: PF_precache_model_I: Bad string
Posted by Le Chief on Sun Aug 3rd at 5:59am 2008


? quoting Laqclcj
Can the CS model not show regularly very much?


Spam Bot. image







Post Reply