Compilation Error

Compilation Error

Re: Compilation Error Posted by Necromancer on Wed Nov 5th 2008 at 12:09am
Necromancer
392 posts
Posted 2008-11-05 12:09am
392 posts 1499 snarkmarks Registered: May 5th 2008
I am currently creating a map and it was working fine yesterday. Then today I added a fairly small room (two floors) with some triggers and game_texts.

The game_texts and triggers for them were all working fine yesterday until I added this new room. (These particular game_texts and triggers are in a different part of the map)

Now when I compile the map it says:
Line 599 is incomplete
and then it crashes.

Can anyone help solve this problem without deleting the room?
Thanks.
Re: Compilation Error Posted by haymaker on Wed Nov 5th 2008 at 1:09am
haymaker
439 posts
Posted 2008-11-05 1:09am
haymaker
member
439 posts 921 snarkmarks Registered: Apr 1st 2007 Location: CAN
Crashes in-game or in Hammer?

You can open a .vmf file with any text editor, I have notepad++ installed, will give you line numbers. Look for an open set of brackets , meaning for every "{" there has to be a "}".

Notepad++ can be set up to look for open-ended bracket phrasing. When you find the error, make sure that the brackets resolve themselves up to the "root" line, ie hard left on the margin.

http://notepad-plus.sourceforge.net/uk/site.htm
Re: Compilation Error Posted by Necromancer on Wed Nov 5th 2008 at 1:29am
Necromancer
392 posts
Posted 2008-11-05 1:29am
392 posts 1499 snarkmarks Registered: May 5th 2008
It crashes during compilation within Hammer. I have never gotten a Line incomplete error before and I never use any kind of coding for any of my levels. Therefore there will be no place where a { or } has been used because I don't use code.

Any ideas?
Re: Compilation Error Posted by haymaker on Wed Nov 5th 2008 at 2:20am
haymaker
439 posts
Posted 2008-11-05 2:20am
haymaker
member
439 posts 921 snarkmarks Registered: Apr 1st 2007 Location: CAN
I think you misunderstood me, you can open ANY vmf and examine the hammer-generated code, with a text editor. Therein you will likely find your incomplete line.
Re: Compilation Error Posted by Necromancer on Wed Nov 5th 2008 at 10:33pm
Necromancer
392 posts
Posted 2008-11-05 10:33pm
392 posts 1499 snarkmarks Registered: May 5th 2008
You said to use a text editor to open the vmf file but I have never seen a vmf file before. The closest thing that I have seen is an rmf. Are you sure its vmf?

I have tried opening the rmf with notepad but there weren't any { } anywhere.

Here is a small sample of what it looks like:
Do you know what I could do next to try to fix the error?
There are a LOT of spaces bewteen everything but you can see that on this forum page.
Thanks.

ÍÌ @RMF
CMapWorld ÜÜÜÐ
CMapSolid œM  OUT_PAVE1 €? €¿ €? €?  Ä ÀD €B `D ÀD €B `D Ä €B Ä Ä €B Ä ÀD €B `D ÀD €B `D Ä €BOUT_PAVE1 €? €¿ €? €?  Ä Ä `D Ä `D ÀD Ä ÀD Ä Ä `D Ä `D ÀD OUT_PAVE1 €? €¿ €? €?  Ä ÀD €B Ä Ä €B Ä Ä Ä ÀD Ä ÀD €B Ä Ä €B Ä Ä OUT_PAVE1 €? €¿ €? €?  `D ÀD `D Ä `D Ä €B `D ÀD €B `D ÀD `D Ä `D Ä €BOUT_PAVE1 €? €¿ €? €?  `D ÀD €B Ä ÀD €B Ä ÀD `D ÀD `D ÀD €B Ä ÀD €B Ä ÀD OUT_PAVE1 €? €¿ €? €?  `D Ä Ä Ä Ä Ä €B `D Ä €B `D Ä Ä Ä Ä Ä €B
CMapSolid ö¯  -1OUT_RK3 €? €¿ €? €?  0Ä Ä D pD Ä D pD Ä D 0Ä Ä D 0Ä Ä D pD Ä D pD Ä D-1OUT_RK3
Re: Compilation Error Posted by haymaker on Thu Nov 6th 2008 at 1:21am
haymaker
439 posts
Posted 2008-11-06 1:21am
haymaker
member
439 posts 921 snarkmarks Registered: Apr 1st 2007 Location: CAN
Shit what an idiot I am, I totally missed that this was for HL1, my apologies. Ignore my previous advice :( that pertains to Source.

When that does happen in Source, it's because the file has an entity of soem sort that Hammer failed to complete its info on. Does HL1 Hammer have the cordon tool? I would use that to isolate sections of the map until you locate the general area of the error, then home in on it. Good luck
Re: Compilation Error Posted by Le Chief on Thu Nov 6th 2008 at 3:40am
Le Chief
2605 posts
Posted 2008-11-06 3:40am
Le Chief
member
2605 posts 937 snarkmarks Registered: Jul 28th 2006 Location: Sydney, Australia
This is a link that every Goldsource mapper should have in the favorites or saved somewhere for reference.
Tommy said:
Line 5197 is incomplete (did you place a " inside an entity string?)
This means that you have placed an invalid character (",'%, etc) in an enitity property/name. This can also mean that you have untextured faces in your map(areas with a white appearance as a texture.)

Fix any "invalid texture" errors that show up in the "Check for problems" app.
Give that a go and see what happens. I'd also like to mention that if you ever need to go through a map file in a text editor like haymaker suggested, than you can save the map as a ".map" file.
Aaron's Stuff