Several maps have interior shapes with disabled collisions.

perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Several maps have interior shapes with disabled collisions.

Post by perrinoia »

I was just playing Hungry Hippos, and when I flew to the enemy base, I fell right through the roof into a room full of indoor turrets.

It was the iblock on the top/front of the base, that I did not collide with.

Likewise, there was another map a few days ago where I was able to walk through a few walls. I don't remember what it was.

In the mission editor, when you select an interiorshape and press f2, there is a checkbox on the right that says Disables Collisions. If you check off this box and then press the apply button, you will be able to move through that interiorshape.

However, when I save the map, this property is not saved in the file, and if I reload the map, I collide with the object again.

I'm not sure how or why these objects are not collide-able on a dedicated server, but I think it needs to be fixed.

If you can figure out how and tell me, I've got some ideas for maps that could use it.
Image
Real
Posts: 62
Joined: Mon May 12, 2014 2:45 pm

Re: Several maps have interior shapes with disabled collisio

Post by Real »

Does it have anything to do with focusserver() and focusclient()? I mean it probably shouldn't matter on a ded server.. but just a shot in the dark. if I don't call those sometimes my interiorobjects bug out.
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Several maps have interior shapes with disabled collisio

Post by perrinoia »

Interesting theory.

I've never paid much attention to those commands.

Not really sure what effect they might have.
Image
User avatar
Fixious
Posts: 475
Joined: Sat Nov 09, 2013 12:42 am

Re: Several maps have interior shapes with disabled collisio

Post by Fixious »

focusClient()
USED IN: Editor.cs, NewMission.cs, registerVolume.cs, Server.cs, Trees.cs
RETURN: True.
Used to make all the function calls on the Client side. Also uses the Client manager when adding or removing an object.

focusServer()
USED IN: Editor.cs, NewMission.cs, RegisterVolume.cs, Server.cs, Trees.cs
RETURN: True if succeed or False if failed.
Used to make all the function calls on the Server side. Also uses the Server manager when adding or removing an object.

http://www.ephemeron.org/~bigby/script2/network.html

:idk:
AnniDv6
Posts: 1032
Joined: Mon Dec 12, 2011 3:25 pm

Re: Several maps have interior shapes with disabled collisio

Post by AnniDv6 »

I've been meaning to fix these actually. They are all maps submitted from other people on these forums so I'm not sure what they were doing in the editor or if any of it was supposed to be intentional, but it's a simple fix.

Edit: I'm guessing that the shapes that are having this issue are copies of the original shape.
Last edited by AnniDv6 on Mon Jun 02, 2014 10:58 pm, edited 1 time in total.
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Several maps have interior shapes with disabled collisio

Post by perrinoia »

Fixious wrote:focusClient()
USED IN: Editor.cs, NewMission.cs, registerVolume.cs, Server.cs, Trees.cs
RETURN: True.
Used to make all the function calls on the Client side. Also uses the Client manager when adding or removing an object.

focusServer()
USED IN: Editor.cs, NewMission.cs, RegisterVolume.cs, Server.cs, Trees.cs
RETURN: True if succeed or False if failed.
Used to make all the function calls on the Server side. Also uses the Server manager when adding or removing an object.

http://www.ephemeron.org/~bigby/script2/network.html

:idk:
That is very interesting, but I'm not convinced that is the problem, considering there is no scripted collision event when a player collides with interior shape.
Image
User avatar
S_hift
Posts: 1963
Joined: Fri Dec 23, 2011 1:42 pm

Re: Several maps have interior shapes with disabled collisio

Post by S_hift »

you can delete that map if necessary I'm not really a big fan of it even though I made it. go figure, i made it a map and its broken lol
Image <--Click here to subscribe to S_hift's youtube
Click here for full access to all my tribes downloads
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Several maps have interior shapes with disabled collisio

Post by perrinoia »

Pro mission editor tip:
Use cut instead of copy, and paste twice to create two of the same thing.

As Devil implied, copy tends to cause bugs, such as lighting, texture, and collision faults.

Also (unrelated), press o to pop up the snap form. Use the snap features to ensure objects are positioned and rotated in non-random ways. Great for mirroring the enemy base, too.
Image
User avatar
virus
Posts: 474
Joined: Wed May 22, 2013 10:27 pm
Contact:

Re: Several maps have interior shapes with disabled collisio

Post by virus »

Was not aware of the snap feature.
[NHOP]Virus
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: Several maps have interior shapes with disabled collisio

Post by perrinoia »

I could tell.
Image
Post Reply