Jabka666 / scpcb-ue-my

SCP - Containment Breach Ultimate Edition
26 stars 10 forks source link

Eletrical Center's lever didn't work in custom map #93

Closed ZiYueCommentary closed 1 year ago

ZiYueCommentary commented 1 year ago

Report by Portal Gael#9812

Jabka666 commented 1 year ago

Did you check if event is existing?

ZiYueCommentary commented 1 year ago

Did you check if event is existing?

exist (at least in map creator)

ZiYueCommentary commented 1 year ago

I know why this happened, but I can hardly fix this:

Now we're in room2c_ec, the event is room2c_ec, which means the lever should can work properly.

image

When we cross the 7th stair step, room becomes room2c_ez, instead of room2c_ec.

image

... and room2c_ez is beside the room2c_ec.

image

So when we reach the 2nd floor of the electrical center, the room will still is room2c_ec, and room2c_ec does not have any event.

Map generated from map seed won't meet this bug, because room2c_ec will always place on the edge of the map.

image

This is the custom map for testing, remember to change the extension to .cbmap2.

SITE-2.txt

Jabka666 commented 1 year ago

I think this is impossible to fix, because random generation doesn't have this issue. Custom map easily can break room determining. Try to add Y-Axis in the code determining a new PlayerRoom

Jabka666 commented 1 year ago

break

Yes, that helps