Compile error: File read failure

Compile error: File read failure

Re: Compile error: File read failure Posted by mabaclu on Sat Jan 8th 2011 at 10:01pm
mabaclu
9 posts
Posted 2011-01-08 10:01pm
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 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):

[spoiler]hlcsg v3.4 Final (Feb 25 2006)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (amckern@yahoo.com)
----- BEGIN hlcsg -----
Command line: C:\PROGRA~1\VALVEH~1\zhlt\hlcsg.exe "c:\programas\valve hammer editor\maps\rp_ppg_a2"-nowadtextures
Entering c:\programas\valve hammer editor\maps\rp_ppg_a2.map

Current hlcsg Settings
Name | Setting | Default
---------------------|-----------|-------------------------
threads [ 2 ] [ Varies ]
verbose [ off ] [ off ]
log [ on ] [ on ]
developer [ 0 ] [ 0 ]
chart [ off ] [ off ]
estimate [ off ] [ off ]
max texture memory [ 4194304 ] [ 4194304 ]
max lighting memory [ 6291456 ] [ 6291456 ]
priority [ Normal ] [ Normal ]

noclip [ off ] [ off ]
null texture stripping[ on ] [ on ]
clipnode economy mode [ on ] [ on ]
clip hull type [ legacy ] [ legacy ]
onlyents [ off ] [ off ]
wadtextures [ off ] [ on ]
skyclip [ on ] [ on ]
hullfile [ None ] [ None ]
nullfile [ None ] [ None ]
min surface area [ 0.500 ] [ 0.500 ]
brush union threshold [ 0.000 ] [ 0.000 ]

Using mapfile wad configuration
Wadinclude list :
[zhlt.wad]

49 brushes (totalling 294 sides) discarded from clipping hulls
CreateBrush:
(4.63 seconds)
SetModelCenters:
(0.02 seconds)
CSGBrush:
(5.61 seconds)

Using Wadfile: \programas\valve\hlserver\cstrike\sanmarino.wad
- Contains 286 used textures, 99.65 percent of map (311 textures in wad)
Using Wadfile: \programas\valve\hlserver\valve\halflife.wad
- Contains 1 used texture, 0.35 percent of map (3116 textures in wad)

added 25 additional animating textures.
Error: File read failure

----- END hlcsg -----

hlvis v3.4 Final (Feb 25 2006)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (amckern@yahoo.com)
----- BEGIN hlvis -----
Command line: C:\PROGRA~1\VALVEH~1\zhlt\hlvis.exe "c:\programas\valve hammer editor\maps\rp_ppg_a2"
There was a problem compiling the map.
Check the file c:\programas\valve hammer editor\maps\rp_ppg_a2.log for the cause.
----- END hlvis -----

hlrad v3.4 Final (Feb 25 2006)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (amckern@yahoo.com)
----- BEGIN hlrad -----
Command line: C:\PROGRA~1\VALVEH~1\zhlt\hlrad.exe "c:\programas\valve hammer editor\maps\rp_ppg_a2"
There was a problem compiling the map.
Check the file c:\programas\valve hammer editor\maps\rp_ppg_a2.log for the cause.
----- END hlrad -----

[/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.
Re: Compile error: File read failure Posted by G4MER on Sat Jan 8th 2011 at 11:01pm
G4MER
2460 posts
Posted 2011-01-08 11:01pm
G4MER
floaty snark rage
member
2460 posts 360 snarkmarks Registered: Sep 6th 2003 Location: USA
----- 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.
Re: Compile error: File read failure Posted by mabaclu on Sat Jan 8th 2011 at 11:14pm
mabaclu
9 posts
Posted 2011-01-08 11:14pm
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 2011
Yes, as I said that file is the spoiled one. However, there are no error messages other than that.
Re: Compile error: File read failure Posted by Orpheus on Sun Jan 9th 2011 at 12:19am
Orpheus
13860 posts
Posted 2011-01-09 12:19am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
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.
Re: Compile error: File read failure Posted by Le Chief on Sun Jan 9th 2011 at 2:12am
Le Chief
2605 posts
Posted 2011-01-09 2:12am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
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)?
Aaron's Stuff
Re: Compile error: File read failure Posted by Orpheus on Sun Jan 9th 2011 at 2:17am
Orpheus
13860 posts
Posted 2011-01-09 2:17am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
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.
Re: Compile error: File read failure Posted by Le Chief on Sun Jan 9th 2011 at 2:22am
Le Chief
2605 posts
Posted 2011-01-09 2:22am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
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.
Aaron's Stuff
Re: Compile error: File read failure Posted by Orpheus on Sun Jan 9th 2011 at 2:34am
Orpheus
13860 posts
Posted 2011-01-09 2:34am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
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.
Re: Compile error: File read failure Posted by mabaclu on Sun Jan 9th 2011 at 2:53pm
mabaclu
9 posts
Posted 2011-01-09 2:53pm
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 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.
Orpheus said:
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".
aaron_da_killa said:
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:
sanmarino
{
  \programas\valve\hlserver\cstrike\sanmarino.wad
  \programas\valve\hlserver\valve\halflife.wad
}
Orpheus said:
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.
Re: Compile error: File read failure Posted by Le Chief on Mon Jan 10th 2011 at 12:00am
Le Chief
2605 posts
Posted 2011-01-10 12:00am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
mabaclu said:
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.
Aaron's Stuff
Re: Compile error: File read failure Posted by Orpheus on Mon Jan 10th 2011 at 12:03am
Orpheus
13860 posts
Posted 2011-01-10 12:03am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
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.
Re: Compile error: File read failure Posted by mabaclu on Tue Jan 11th 2011 at 12:57am
mabaclu
9 posts
Posted 2011-01-11 12:57am
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 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.
Re: Compile error: File read failure Posted by Orpheus on Tue Jan 11th 2011 at 3:07am
Orpheus
13860 posts
Posted 2011-01-11 3:07am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
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. ;)

The best things in life, aren't things.
Re: Compile error: File read failure Posted by mabaclu on Tue Jan 11th 2011 at 11:21am
mabaclu
9 posts
Posted 2011-01-11 11:21am
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 2011
Changed the name to rp_ppg_a3 and didn't work. Rechanged to test and it worked.
Re: Compile error: File read failure Posted by Riven on Tue Jan 11th 2011 at 11:27am
Riven
1640 posts
Posted 2011-01-11 11:27am
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
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.
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202
Re: Compile error: File read failure Posted by G4MER on Tue Jan 11th 2011 at 11:38am
G4MER
2460 posts
Posted 2011-01-11 11:38am
G4MER
floaty snark rage
member
2460 posts 360 snarkmarks Registered: Sep 6th 2003 Location: USA
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!
Re: Compile error: File read failure Posted by Orpheus on Tue Jan 11th 2011 at 12:16pm
Orpheus
13860 posts
Posted 2011-01-11 12:16pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
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.
Re: Compile error: File read failure Posted by Le Chief on Tue Jan 11th 2011 at 12:21pm
Le Chief
2605 posts
Posted 2011-01-11 12:21pm
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
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.
Aaron's Stuff
Re: Compile error: File read failure Posted by Orpheus on Tue Jan 11th 2011 at 12:55pm
Orpheus
13860 posts
Posted 2011-01-11 12:55pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
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.
Re: Compile error: File read failure Posted by mabaclu on Tue Jan 11th 2011 at 1:24pm
mabaclu
9 posts
Posted 2011-01-11 1:24pm
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 2011
Orpheus said:
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.
Re: Compile error: File read failure Posted by mabaclu on Tue Jan 11th 2011 at 1:29pm
mabaclu
9 posts
Posted 2011-01-11 1:29pm
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 2011
Orpheus said:
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?
No!
Re: Compile error: File read failure Posted by Orpheus on Tue Jan 11th 2011 at 5:57pm
Orpheus
13860 posts
Posted 2011-01-11 5:57pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Well you got me. Without actually trying it myself I am at a loss.

The best things in life, aren't things.
Re: Compile error: File read failure Posted by Le Chief on Wed Jan 12th 2011 at 12:20am
Le Chief
2605 posts
Posted 2011-01-12 12:20am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
mabaclu are you able to try the name rp_qpg_a4 out of curiosity?

I don't see how rp_ppg_a4 is an invalid name. Maybe one of the files the compiling process generates is linked to the name rp_ppg_a4 and the error is inside that? :uncertain:

Bizarre in any case.
Aaron's Stuff
Re: Compile error: File read failure Posted by Orpheus on Wed Jan 12th 2011 at 12:40am
Orpheus
13860 posts
Posted 2011-01-12 12:40am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
When I finally get hammer up and running again I'm gonna try this out and see. I dunno about you guys but just fixing the issue was never enough. I needed to now how and why it did it to begin with.

I don't doubt its name related at this point cause I cannot disprove it. But the compile log pointed to textures.

I am still thinking that since he ripped it, he's not sure which went to what.

Anywho's, he can now compile so its end of story. (at least for him.)

The best things in life, aren't things.
Re: Compile error: File read failure Posted by mabaclu on Wed Jan 12th 2011 at 1:15am
mabaclu
9 posts
Posted 2011-01-12 1:15am
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 2011
aaron_da_killa said:
mabaclu are you able to try the name rp_qpg_a4 out of curiosity?
Interesting, it works...
I think the other names don't compile because of the following the caracter/letter or whatever you call it in english "~" is in the map name in the logs. For example, in the logs I see RP_PPG~3 instead of rp_ppg_a3
Re: Compile error: File read failure Posted by Riven on Wed Jan 12th 2011 at 2:14am
Riven
1640 posts
Posted 2011-01-12 2:14am
Riven
Wuch ya look'n at?
super admin
1640 posts 1266 snarkmarks Registered: May 2nd 2005 Occupation: Architect Location: Austin, Texas, USA
Also too, as I think was pointed out earlier... -There could have been a corrupted file or line written when the map was named that. Not deleting it before recompiling under the same name again would produce the error possibly. In other words, the naming convention is not itself the issue, but an incomplete file or part of a file under the same name won't re-write otherwise.

Maybe a clean-out of old compiles and/or other files referencing the old nonworking name could restore itself once re-compiling afterwards.

Not that I feel this is much of a concern now, since the error for all intents and purposes is fixed, but my enthusiasm to help investigate this issue seems to curtail my restraint from participating, as the GoldSource engine is not my field of experience but likewise, there are more similarities I find each time I follow a new Half-Life editing question. I certainly appreciate your willingness to investigate independently in part for us too! :sherlock:
Blog: www.playingarchitecture.net
LinkedIn: Eric Lancon
Twitter:@Riven202
Re: Compile error: File read failure Posted by mabaclu on Wed Jan 12th 2011 at 2:29pm
mabaclu
9 posts
Posted 2011-01-12 2:29pm
mabaclu
member
9 posts 1 snarkmarks Registered: Jan 8th 2011
Riven said:
Also too, as I think was pointed out earlier... -There could have been a corrupted file or line written when the map was named that. Not deleting it before recompiling under the same name again would produce the error possibly. In other words, the naming convention is not itself the issue, but an incomplete file or part of a file under the same name won't re-write otherwise.

Maybe a clean-out of old compiles and/or other files referencing the old nonworking name could restore itself once re-compiling afterwards.

Not that I feel this is much of a concern now, since the error for all intents and purposes is fixed, but my enthusiasm to help investigate this issue seems to curtail my restraint from participating, as the GoldSource engine is not my field of experience but likewise, there are more similarities I find each time I follow a new Half-Life editing question. I certainly appreciate your willingness to investigate independently in part for us too! :sherlock:
I was changing the numeration in the map name in each compile but when I deleted all the maps in my /maps folder it compiled well. I'm completely crazy now as I have no idea why it is compiling atm. The maps I deleted had diferent numbers...