Compile error: File read failure
Post Reply
Quote
Re: Compile error: File read failure
Posted by mabaclu on Sat Jan 8th at 10:01pm 2011


Hello everybody,
I'm trying to compile a map which I found in a forum but the error "File read failure" keeps on appearing.
Here is the file rp_ppg_a2.log (spoiled):

Show spoiler

I've already fixed all problems in Map > Check for Problems but I keep getting the error. Does anyone know how to fix this error? I'll include you in the editor credits list if you solve it.

Thanks in advance.




Quote
Re: Compile error: File read failure
Posted by G4MER on Sat Jan 8th at 11:01pm 2011


Incorrect Answer
----- BEGIN hlvis -----
Command line: C:PROGRA~1VALVEH~1zhlthlvis.exe "c:programasvalve hammer editormapsrp_ppg_a2"
>> There was a problem compiling the map.
>> Check the file c:programasvalve hammer editormapsrp_ppg_a2.log for the cause.






Quote
Re: Compile error: File read failure
Posted by mabaclu on Sat Jan 8th at 11:14pm 2011


Yes, as I said that file is the spoiled one. However, there are no error messages other than that.



Quote
Re: Compile error: File read failure
Posted by Orpheus on Sun Jan 9th at 12:19am 2011


Assisted Answer
OK here is my take. Few things will prevent a map from compiling are:
You have a hole.
You need lights
In this case I think you are tryin to use textures that either don't exist or are being used incorrectly.

What you might try is to Wadinclude instead of Nowaddtextures. Its much better IMO.

Try using This tutorial.

I am honestly thinkin its your path to the textures or improper use of said texture.




The best things in life, aren't things.



Quote
Re: Compile error: File read failure
Posted by Le Chief on Sun Jan 9th at 2:12am 2011


Incorrect Answer
Your problem is related to textures.

Do you have the wad.cfg file in the same folder as your compile tools (hlscg.exe, hlbsp.exe etc etc)?






Quote
Re: Compile error: File read failure
Posted by Orpheus on Sun Jan 9th at 2:17am 2011


Incorrect Answer
I am 3 years out of date so bare with me. When I left the compile tools were 2.5.3. I thought those were the last they were gonna make. His log says 3.4.

Is he using the right tools?




The best things in life, aren't things.



Quote
Re: Compile error: File read failure
Posted by Le Chief on Sun Jan 9th at 2:22am 2011


Yep 3.4 is what I was using before I moved onto Source, there's quite a few fairly important additions/improvements that have been made to zhlt since 2.5.3.





Quote
Re: Compile error: File read failure
Posted by Orpheus on Sun Jan 9th at 2:34am 2011


Incorrect Answer
OK then I guess that rules out "wrong tools"

I still think its the textures and I am leaning toward his path. Although, Grimlock used the wrong textures once in our last map and we had issues till we discovered he did it. If I recall he used a weapon texture on a wall. Of course its been so long I could be talking out my ass. But we did have some troubles with wrong texture application.

*shrugs*
I really don't know for sure.




The best things in life, aren't things.



Quote
Re: Compile error: File read failure
Posted by mabaclu on Sun Jan 9th at 2:53pm 2011


First of all I think it's important to mention that I used a program called Textract to extract the .wad files from the .bsp compiled map. It generated sanmarino.wad and I also included halflife.wad in the compile process because it contains a light texture that is needed.

Quoting Orpheus
OK here is my take. Few things will prevent a map from compiling are:
You have a hole.
You need lights
In this case I think you are tryin to use textures that either don't exist or are being used incorrectly.

What you might try is to Wadinclude instead of Nowaddtextures. Its much better IMO.

Try using This tutorial.

I am honestly thinkin its your path to the textures or improper use of said texture.


There are no holes in the map and there are lights everywhere.
I used wadinclude as you sugested to see if it works but since the textures have got a very high size the following error came up: MAX_MAP_MIPTEX
I increased -texdata to 10000 and the error "File read failure" didn't appear but hlbsp said "There was a problem compiling the map".

Quoting aaron_da_killa
Your problem is related to textures.

Do you have the wad.cfg file in the same folder as your compile tools (hlscg.exe, hlbsp.exe etc etc)?


Yes, it is in the same folder and using "-wadconfig sanmarino" doesn't work.

Here is that part of wad.cfg:
Code
sanmarino
{
programasvalvehlservercstrikesanmarino.wad
programasvalvehlservervalvehalflife.wad
}



Quoting Orpheus
OK then I guess that rules out "wrong tools"

I still think its the textures and I am leaning toward his path. Although, Grimlock used the wrong textures once in our last map and we had issues till we discovered he did it. If I recall he used a weapon texture on a wall. Of course its been so long I could be talking out my ass. But we did have some troubles with wrong texture application.

*shrugs*
I really don't know for sure.


I deleted sanmarino.wad from the compiling process and obviously there were lots of warnings due to unexistant textures (but I think warnings don't block the compiling process, correct me if I'm wrong) and the map didn't compile either.




Quote
Re: Compile error: File read failure
Posted by Le Chief on Mon Jan 10th at 12:00am 2011


Assisted Answer
Quoting mabaclu
I deleted sanmarino.wad from the compiling process and obviously there were lots of warnings due to unexistant textures (but I think warnings don't block the compiling process, correct me if I'm wrong) and the map didn't compile either.


could you post the compile log you got when you did this? Are you compiling the map on a different drive that the mod/game is on?

But before you do anything else try adding "-texdata 8196" to bsp, csg, vis and rad. If that doesn't work try upping the number to 16392.

If you use -wadinclude or -nowadtextures and you have a wad over the default 4mb you will get this error.






Quote
Re: Compile error: File read failure
Posted by Orpheus on Mon Jan 10th at 12:03am 2011


Incorrect Answer
Why don't you just make your own wad out of the textures you know you used and scrap the rest.

I am still leaning towards a texture used incorrectly. If you ripped it, perhaps you don't know its original use.

Even if I am way off base, having your own wad would be best.




The best things in life, aren't things.



Quote
Re: Compile error: File read failure
Posted by mabaclu on Tue Jan 11th at 12:57am 2011


Solved

Amazingly, changing the map name solved my problem and hlbsp runned properly. I haven't already tested the map in-game but I'll do it soon. I just need time for the slow hlvis to run.

Thanks for helping.




Quote
Re: Compile error: File read failure
Posted by Orpheus on Tue Jan 11th at 3:07am 2011


Assisted Answer
Man.. That's gotta be a first. Changing the name.... I'm glad you solved it but I am betting money that if you changed the name back it would still work cause it wasn't a name that caused the error. smiley




The best things in life, aren't things.



Quote
Re: Compile error: File read failure
Posted by mabaclu on Tue Jan 11th at 11:21am 2011


Changed the name to rp_ppg_a3 and didn't work. Rechanged to test and it worked.



Quote
Re: Compile error: File read failure
Posted by Riven on Tue Jan 11th at 11:27am 2011


Nice! It's true about the name though. Even in Source, you need to be careful about your naming conventions in maps; it has been known to fail for compiling (in Source anyway). Seems a similar limitation is true for GoldSource too. It could be too many underscores, or an integer in the wrong spot. Something or another strikes a bad chord with the engine mechanics that's for sure.





Quote
Re: Compile error: File read failure
Posted by G4MER on Tue Jan 11th at 11:38am 2011


Oh this is old school HL map making.. Yeah names of maps have a big impact on compiles in old school HL mapping. As a matter of fact I posted about this same issue a long time back here, and I believe it was RIVEN who pointed out the name of my map was too long or something.. Glad you found the problem!





Quote
Re: Compile error: File read failure
Posted by Orpheus on Tue Jan 11th at 12:16pm 2011


I hate to be a stick in the mud here but notice anything similar? Deja_vu_2 and "rp_ppg_a3"

My map compiled fine. I wonder if its something as basic as the game thinks he's saying RPG? and its confused.

I dunno but this thread needs to be remembered cause its a first for me and no one would argue I have seen a few maps in my time. I'll definitely want to remember this.




The best things in life, aren't things.



Quote
Re: Compile error: File read failure
Posted by Le Chief on Tue Jan 11th at 12:21pm 2011


I would suspect that the issue wasn't directly due to the name but changing the name had an indirect result of resolving the issue somehow. As Orph pointed out rp_ppg_a3 is a valid name as far as I'm aware.





Quote
Re: Compile error: File read failure
Posted by Orpheus on Tue Jan 11th at 12:55pm 2011


Assisted Answer
Ok, here's old school:

Lets work under the premise that its the name. Build a room, something that will compile in about 6 seconds using the suspect name but only using the HL.wad. Does it compile?

Second, if it compiles, use the suspect wad and recompile the map using a texture from it.

Lastly, if you feel that this is an unfair test, pick one of your old more complex maps that compiled successfully and swap a few textures from the suspect wad. Changing the name and compiling before and after the wad change.

Although I do not doubt you got it working, I am very curious still and would like these tests run to reduce the "indirect result" issue. Its happened before.

Lastly, check to see if there are any wad names similar to your bsp name. It might also help to see if there are any entity names similar.

Anyway, that's old school. Don't give up till you're sure.




The best things in life, aren't things.



Quote
Re: Compile error: File read failure
Posted by mabaclu on Tue Jan 11th at 1:24pm 2011


Quoting Orpheus
I hate to be a stick in the mud here but notice anything similar? Deja_vu_2 and "rp_ppg_a3"

My map compiled fine. I wonder if its something as basic as the game thinks he's saying RPG? and its confused.

I dunno but this thread needs to be remembered cause its a first for me and no one would argue I have seen a few maps in my time. I'll definitely want to remember this.


LOL

Deja_vu_2 - compiles well
rp_ppg_a4 - fail

Try it yourself.





Post Reply


Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /home/snark3/public_html/template.php on line 272