工人与资源:苏维埃共和国 Workers & Resources: Soviet Republic

工人与资源:苏维埃共和国 Workers & Resources: Soviet Republic

Customize your game
Create new vehicles, landscapes, buildings,..
How does $MONUMENT_ENABLE_TRESPASSING works?
Tried to make my buildings trespassable for pedestrians, but seems like it doesnt work.
How to set up it correctly? Maybe I have to connect pedestrian connections with each other somehow?
< >
正在显示第 1 - 8 条,共 8 条留言
Darth Sidious 7 月 30 日 上午 11:33 
Well, still can't get it work, but I decided to release the mod no matter what.

I can polish it in future!

Btw, about future... mods. If I will ad NO_LIFESPAN flag to the building, will it stand in case of, lets say, earthquake?

Can't really join modders discord, sadly, to ask things...
最后由 Darth Sidious 编辑于; 7 月 30 日 上午 11:33
What i remember is that the pergola and that fountain that have 2 pizza pieces just "teleport" the workers to the other side (they can be used to get a tiny walk range extend). Maybe that is what the "trenspassing" is meant for, and you might take a look at this buildings .ini.
Darth Sidious 7 月 30 日 下午 10:53 
引用自 Elessar_warrior
What i remember is that the pergola and that fountain that have 2 pizza pieces just "teleport" the workers to the other side (they can be used to get a tiny walk range extend). Maybe that is what the "trenspassing" is meant for, and you might take a look at this buildings .ini.

Well, I can't find any unusual flags in its .ini file. If has the "$MONUMENT_ENABLE_TRESPASSING" flag and two pedestrian connections. My buildings too have that flag and two pedestrian connections, but people are not trying to trespass them, sadly.
T600_Mod 103 8 月 4 日 上午 7:35 
Uh, maybe make your building into a pedestrian Building?
but that might defeat the point.

I am just saying it could be hard scripted into building settings?
I made a pedestrian tunnel and tower walkway building that had pedestrian settings and that worked..

Maybe build a non collision pedestrian pathway building? to simulate what your after?
Seems like its hardcoded for several types of buildings. Ah, I'm tired of hardcoded flags, that diminishes the reason to make flags at the first place, huh.

Like... CIVIL_BUILDING flag works only with residential buildings and you can't make your shop to use self-heating. Seems like the same with trespassing flag.
最后由 Darth Sidious 编辑于; 8 月 6 日 上午 6:18
T600_Mod 103 8 月 6 日 上午 6:54 
Non Collision pedestrian pathways will fix your problem i think, but ya I know the feeling
vajeeking 27 8 月 7 日 上午 1:03 
Example

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3473494833

$TYPE_MONUMENT
$MONUMENT_ENABLE_TRESPASSING
$DISABLE_MIRROR_TYPE

---

$CONNECTION_PEDESTRIAN
8.0000 0.0000 7.1312
8.0000 0.0000 1.1312
$CONNECTION_ADVANCED_POINT 7.9 0.2 5.8
$CONNECTION_ADVANCED_POINT 7.9 0.3 5.2
$CONNECTION_ADVANCED_POINT 7.9 0.6 4.1
$CONNECTION_ADVANCED_POINT 7.9 0.8 3.6
$CONNECTION_ADVANCED_POINT 7.9 1.2 0.3
$CONNECTION_ADVANCED_POINT 3.7 1.3 0.2
$CONNECTION_ADVANCED_POINT -0.5 1.3 5.4
$CONNECTION_ADVANCED_POINT -4.8 1.3 5.3
$CONNECTION_ADVANCED_POINT -4.7 1.3 0.1


$CONNECTION_PEDESTRIAN
8.0000 0.0000 -7.1674
8.0000 0.0000 -1.1674
$CONNECTION_ADVANCED_POINT 8.1 0.2 -6.0
$CONNECTION_ADVANCED_POINT 8.0 0.3 -5.5
$CONNECTION_ADVANCED_POINT 8.1 0.5 -4.9
$CONNECTION_ADVANCED_POINT 8.1 0.6 -4.3
$CONNECTION_ADVANCED_POINT 8.1 0.8 -3.7
$CONNECTION_ADVANCED_POINT 7.9 1.2 0.3
$CONNECTION_ADVANCED_POINT 3.6 1.3 0.3
$CONNECTION_ADVANCED_POINT -0.6 1.3 5.4
$CONNECTION_ADVANCED_POINT -4.7 1.3 5.4
$CONNECTION_ADVANCED_POINT -2.6 7.7 2.8

$CONNECTION_PEDESTRIAN
-8.0000 0.0000 7.1312
-8.0000 0.0000 1.1312
$CONNECTION_ADVANCED_POINT -8.0 0.2 5.8
$CONNECTION_ADVANCED_POINT -7.9 0.3 5.2
$CONNECTION_ADVANCED_POINT -7.9 0.5 4.6
$CONNECTION_ADVANCED_POINT -7.9 0.6 4.0
$CONNECTION_ADVANCED_POINT -7.9 0.8 3.6
$CONNECTION_ADVANCED_POINT -2.8 7.7 2.9
$CONNECTION_ADVANCED_POINT -4.7 1.3 -0.0
$CONNECTION_ADVANCED_POINT -4.8 1.3 -0.1
$CONNECTION_ADVANCED_POINT -4.8 1.3 -0.2
$CONNECTION_ADVANCED_POINT -5.0 1.3 -0.3
$CONNECTION_ADVANCED_POINT -4.8 1.3 -0.1
$CONNECTION_ADVANCED_POINT -0.6 1.3 -5.8
$CONNECTION_ADVANCED_POINT 4.5 1.3 -5.7
$CONNECTION_ADVANCED_POINT 5.1 1.3 0.3
$CONNECTION_ADVANCED_POINT 5.1 1.3 0.3


$CONNECTION_PEDESTRIAN
-8.0000 0.0000 -7.1674
-8.0000 0.0000 -1.1674
$CONNECTION_ADVANCED_POINT -8.0 0.2 -5.8
$CONNECTION_ADVANCED_POINT -8.0 0.3 -5.2
$CONNECTION_ADVANCED_POINT -8.0 0.5 -4.7
$CONNECTION_ADVANCED_POINT -8.0 0.6 -4.1
$CONNECTION_ADVANCED_POINT -8.0 0.8 -3.7
$CONNECTION_ADVANCED_POINT -4.9 1.3 -0.1
$CONNECTION_ADVANCED_POINT -4.4 1.3 5.3
$CONNECTION_ADVANCED_POINT -0.5 1.3 5.4
$CONNECTION_ADVANCED_POINT 5.1 1.3 0.2

end
--------


Another example ..\SovietRepublic\media_soviet\cwc\buildings\pergola_1

--------------
$NAME_STR "Pergola"

$TYPE_PEDESTRIAN_BRIDGE

$MONUMENT_ENABLE_TRESPASSING

$CONNECTION_PEDESTRIAN_DEAD
-6.5 0 0
$CONNECTION_PEDESTRIAN_DEAD
6.5 0 0

$CONNECTION_PEDESTRIAN
-5.5 0.0000 0.0000
-4.5 0.0000 0.0000

$CONNECTION_PEDESTRIAN
5.5 0.0000 0
4.5 0.0000 0

end

-----------------
T600_Mod 103 8 月 18 日 上午 12:55 
I am not sure if you got it working but just take your pedestrian connection coords and add the extra line

Here is proof of concept on a new monument i just made https://psteamcommunity.yuanyoumao.com/app/784150/screenshots/?p=1&browsefilter=mostrecent
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50