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

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

Customize your game
Create new vehicles, landscapes, buildings,..
1942ertan 9 月 13 日 上午 10:27
About new building construction
Hello friends, after gaining over 10 years of modding experience in Cities Skylines, I'm now trying to create building mods for W&R. I drew the building and imported it into the editor. However, even though I selected the construction phase and materials, when I enter the game, the construction materials are 0. What could be causing this? What could I be doing wrong? Could you help me? Thanks.
< >
正在显示第 1 - 11 条,共 11 条留言
Lex713 168 9 月 13 日 上午 10:33 
If you can see and plop the building but construction is 0 and it won't progress, then go to your building folder and delete building.bbox and then reload the save
1942ertan 9 月 13 日 下午 10:33 
I deleted the building.bbox, entered the game, and reloaded the building in the editor. Even though the stages were specified, the result was 0. I entered the game and added the building, and again the materials were 0. How can I solve this?
Novu 287 9 月 14 日 上午 12:03 
The bbox is generated when the game first starts but won't be recognized until you restart the game.

Step 1: start game

Step 2: generate the bbox

Step 3: restart game

After that it should be buildable unless there is an error in your code.
1942ertan 9 月 14 日 上午 12:40 
Thanks, but will these suggestions explain why the new building is 0 in the game even though the construction materials are defined?
Novu 287 9 月 14 日 上午 1:06 
If you are using code that looks like this

$COST_WORK SOVIET_CONSTRUCTION_BRICKS_LAYING 1.0

$COST_WORK_BUILDING_NODE <name>

$COST_RESOURCE_AUTO wall_brick 1.0

That node is initiated through the bbox. If the bbox isn't recognized then there will be nothing to build off of and thus no materials recognized either.

If the bbox is alright then error would be with the code.
1942ertan 9 月 14 日 上午 1:16 
related code, building contains two model.

$NAME_STR "My building 1"

$TYPE_LIVING

$STORAGE RESOURCE_TRANSPORT_PASSANGER 164

$QUALITY_OF_LIVING 0.80

-------

$COST_WORK SOVIET_CONSTRUCTION_GROUNDWORKS 0.0

$COST_WORK_BUILDING_NODE Mesh2_Group2_Model
$COST_WORK_BUILDING_NODE Mesh1_Group1_Model
$COST_WORK_VEHICLE_STATION_ACCORDING_NODE Mesh2_Group2_Model
$COST_WORK_VEHICLE_STATION_ACCORDING_NODE Mesh1_Group1_Model
$COST_RESOURCE_AUTO ground 1.00


$COST_WORK SOVIET_CONSTRUCTION_BRICKS_LAYING 1.0

$COST_WORK_BUILDING_NODE Mesh2_Group2_Model
$COST_WORK_BUILDING_NODE Mesh1_Group1_Model
$COST_WORK_VEHICLE_STATION 9.5000 0.0000 9.0000 8.0000 0.0000 9.0000
$COST_RESOURCE_AUTO wall_brick 1.00

-------

$CONNECTION_ROAD
1.0000 0.0000 8.6144
1.0000 0.0000 -3.3856

$CONNECTION_PEDESTRIAN
-9.9906 0.0000 5.1000
-3.9906 0.0000 5.1000

$CONNECTION_PEDESTRIAN
10.4698 0.0000 0.0000
4.4698 0.0000 0.0000


end
最后由 1942ertan 编辑于; 9 月 14 日 上午 1:17
Novu 287 9 月 14 日 上午 3:16 
If a building has two models then the models have to be saved as a single .nmf
The meshes can be separate but it has to saved as a single .nmf

The rest of the code should work as far I can tell.

The problem would be with the bbox then. Could try deleting the bbox and the building.fire.

Restart the game, generate a new bbox, close the game and restart it again. Then try to build it and see if that works.

Other weird phantom errors I can think of is <space> might be <tab> and that can break the script. I once had a <tab> in place of a <space> and it took forever to debug that. Couldn't see just by looking at it.
1942ertan 9 月 14 日 上午 3:42 
There are two blocks of buildings (though I also tried single-block ones), and I saved them as a single .nmf.
I deleted and reinstalled the .bbox and .fire versions.
I even tried a Steam workshop building, which works fine.
Even though I add building materials, when I enter the game, the result is 0.
Could you walk me through the process from the beginning?
I've been creating game mods for 20 years. I've also been an expert on Cities Sklines for 10 years.
But I can't figure out this game. For example, if I build a truck, where should I edit it?
Novu 287 9 月 14 日 上午 4:21 
Are you talking about editing the mesh or editing scripts. Buildings and Vehicles follow different script processes. Sorry I am not very good at explaining things but you can look through these guides.

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

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

If you upload your mod to the workshop I can download and debug it.
Novu 287 9 月 19 日 上午 3:59 
Did you ever get your mod working?
1942ertan 9 月 24 日 上午 9:11 
hello, no,
frankly I have no time last week, I hope this weekend I will start again.
< >
正在显示第 1 - 11 条,共 11 条留言
每页显示数: 1530 50