source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

Func_instance support

Open atrblizzard opened this issue 13 years ago • 9 comments

Support for instancing is implemented in Hammer in both 2009 and 2013 branches, yet VBSP doesn't collapse them and complains about the entity, which normally gets removed after compiling it in newer versions of the engine.

Can't init func_instance Attempted to create unknown entity type func_instance!

Implementing this would benefit in terms of designing the maps in mind with instances as L4D2, Alien Swarm and Portal 2 handles it.

atrblizzard avatar Jul 03 '13 20:07 atrblizzard

i haven't test out myself, but is this could be a problem because of a missing manifest file ? also the gameinfo.txt from ASW define the folder where the instances are stored. try to add that in your gameinfo.txt just after the GameData

InstancePath "tilegen/instances/" 

ghost avatar Jul 03 '13 20:07 ghost

That won't help because VBSP doesn't handle the instance collapsing since it's not being implemented. It doesn't know what to do with the func_instance entity.

atrblizzard avatar Jul 03 '13 20:07 atrblizzard

there is no support for the instance map into the source code, there is no func_instance neither the server side nor on the client side. So forget about that, or use ASW engine branch.

ghost avatar Jul 04 '13 14:07 ghost

AFAIK instances are a vbsp feature, not implemented in game/engine code.

EDIT: I stand somewhat corrected, the io proxy is a game entity but that can be added from ASW anyway, we just need the collapsing support in vbsp I believe.

benpye avatar Jul 04 '13 18:07 benpye

We aren't currently planning to pull in features from other forks of the Source engine.

JoeLudwig avatar Jul 05 '13 00:07 JoeLudwig

According to the Valve Developer page, func_instance was added in L4D2. Correct me if I'm wrong, but wasn't the L4D2 branch merged with main (i.e., Source MP/Portal 2) years back? If so, why is func_instance not supported?

saul avatar Jul 05 '13 03:07 saul

You say that as though Portal 2 and Source MP are the same branch.

yaakov-h avatar Jul 05 '13 03:07 yaakov-h

Would it be possible to get the Alien Swarm vbsp code at least then so that it could be done as a community effort?

benpye avatar Jul 05 '13 13:07 benpye

Man, I really hoped to get correctly working instancing in hammer (HL2,ep1,ep2 and 2013) It's a shame that it's implemented for like 50%.

Oh well, atleast we still have Vmf instance inserter, a neat tool made by a friend of mine to get instances to work in all source engine branches.

https://github.com/Metapyziks/VMFInstanceInserter

marnamai avatar Jul 18 '13 22:07 marnamai