Please or Register to create posts and topics.

Instance problem

Do you guys have problems with instaces?

I can't get them to work right. The thing is when I put instanced vmf somewhere in the map when it compiles it appears on a different position. I pretty sure it keeps the position from the instanced file.

for example if the a cube is in instanced file at 0 0 0 position, it will be at 0 0 0 when the map is compile no mater where I put it...

I used instances a lot in l4d2 SDK and I think i'm setting it right.

does anyone else have this problem or am I doing something wrong...?

Hmm, no your not, happens for me too on a quicky test map.
Theres actually a whole load of small bugs going on (engine update) may be best to not use instances for now?

Maybe it's the alien swarm SDK problem. I'll try it with alien swarm. If it is, I'll check some of their mapping community if they found a solution.

I'll post here if I find something.

Hmmm it works well in alien swarm... I don't understand why it wouldn't work with portal. It doesn't have any relations with the game, it's processed during compiling, and it's the same for both games...

really strange..

portal2 is weird tbh.
Open the actual vmf's of the instances, copy, paste in map, succes.

heh, but instances provide much better organization... oh well, hope they fix it when they release the SDK

Compiling with instances won't correctly translate entities it doesn't know about to the correct location. This is because the FGD is used to know what the key is for, e.g. an entity's origin.

To fix this:

  1. Ensure Hammer knows about the entities you're using (i.e. they are in the FGD
  2. Ensure that portal2.fgd and halflife.fgd are located in the same location as vbsp (...steamsteamappscommonalien swarmbin)

Hey thanks for answering.

I' will try that. Does it work for you?

I tried all sorts of things, even compiling with alien swarm fgd (which worked with alien swarm) but it didn't contain prop_weighted_cube and that was probably the problem.

I actually stopped mapping because of this issue. I wanted to wait for official SDK. But if this works I'm back to mapping, so this is really helpful.

I'll post if it works

thanks again

Works perfectly! :D