Workers & Resources: Soviet Republic

Workers & Resources: Soviet Republic

Customize your game
Create new vehicles, landscapes, buildings,..
Trying to create my first mod - stumbled upon a problem.
Made a simple residential building, set up some building phases in the building editor.

In the building editor it shows the correct resources/money needed for construction, but in-game it shows correct resources icons but the costs are exactly 0, thus making it unconstructable to test it.


Once it worked and then it broke, I tried to remake it over and over again, but it doesnt work.
What could be the problem?
< >
Showing 1-13 of 13 comments
part of building.ini file:
$COST_WORK SOVIET_CONSTRUCTION_GROUNDWORKS 0.0 $COST_WORK_BUILDING_NODE FOUNDATION $COST_WORK_VEHICLE_STATION_ACCORDING_NODE FOUNDATION $COST_RESOURCE_AUTO ground 1.00 $COST_WORK SOVIET_CONSTRUCTION_BOARDS_LAYING 1.0 $COST_WORK_BUILDING_NODE WALLS $COST_WORK_VEHICLE_STATION -3.3214 0.0000 -15.6170 -2.3572 0.0000 -16.7660 $COST_RESOURCE_AUTO wall_wood 1.00 $COST_WORK SOVIET_CONSTRUCTION_ROOFTOP_BUILDING 1.0 $COST_WORK_BUILDING_NODE ROOFS $COST_WORK_VEHICLE_STATION -3.3214 0.0000 -15.6170 -2.3572 0.0000 -16.7660 $COST_RESOURCE_AUTO roof_woodbrick 1.00 $COST_WORK SOVIET_CONSTRUCTION_INTERIOR_WORKS 1.0 $COST_WORK_BUILDING_NODE FENCE $COST_RESOURCE_AUTO wall_wood 1.00
Novu 285 11 Jul @ 3:01am 
$COST_WORK_BUILDING_NODE <name>

Name has to match the mesh you are trying to build off of. Make sure there are no typos.

The work station part is missing from the last set of instructions.

$COST_WORK_VEHICLE_STATION_ACCORDING_NODE FENCE
> Name has to match the mesh you are trying to build off of. Make sure there are no typos.

Yep, tried to assign it both via Building Editor and by hand. It matches the mesh.

> The work station part is missing from the last set of instructions.

Wait, does it has to exist? Like, can't I make the last phase to be buildable only without vehicles, by people?


Upd. Welp, still doesnt work.
Last edited by Darth Sidious; 11 Jul @ 3:12am
I mean, it shows the resources costs in Building Editor and in game it shows correct resource types, but no costs in game.

Ah, I'm desperate... I had like big plans on this mod, found some cool info and blueprints but...
Last edited by Darth Sidious; 11 Jul @ 6:27am
Maybe you can try to check if the renderconfig.ini recognizes the nmf file of the building itself.
Originally posted by Whitek3t:
Maybe you can try to check if the renderconfig.ini recognizes the nmf file of the building itself.
Well, it says:
$TYPE_WORKSHOP MODEL custom.nmf MATERIAL custom.mtl MATERIALEMISSIVE custom_e.mtl

And I have a custom.nmf file in that folder. I can freely load it with ModelViewer without any issues.

And it even loads in the BuildingEditor. Just not in the game itself.
Last edited by Darth Sidious; 11 Jul @ 7:26am
reason 11 Jul @ 8:29am 
Have you tried deleting the building.bbox file? The config looks fine if the mesh names are correct.
Originally posted by reason:
Have you tried deleting the building.bbox file? The config looks fine if the mesh names are correct.


Omg it works. IT WORKS! But how? What is a building.bbox file? Did I missed something when I read guides? It works, Its alive!!

Thank you, thank you very much! I can't find English words to describe my gratitude.
Now it just doesnt want to show its building process step by step, it just builds out of nowhere, but thats ok, I can live with that :P
reason 11 Jul @ 9:36am 
Originally posted by Darth Sidious:
Originally posted by reason:
Have you tried deleting the building.bbox file? The config looks fine if the mesh names are correct.


Omg it works. IT WORKS! But how? What is a building.bbox file? Did I missed something when I read guides? It works, Its alive!!

Thank you, thank you very much! I can't find English words to describe my gratitude.
You are welcome. These bbox files are used to store the boundary boxes of models in binary form, they are automatically generated by the game if missing, it's done to avoid calculating model sizes every time the game is launched.

Vehicle bboxes just store 6 coordinates to define the boundary box, while building bboxes store the number of mesh nodes, names, indices and the sets of coordinates for each node. If you change anything related to the model, you should delete these files and let the game create them anew.

The fact that the building visualization is still wrong probably means that something is off with how the model is divided into nodes, but I don't know much about working with 3D models so maybe someone else would help you with that.
Originally posted by reason:

The fact that the building visualization is still wrong probably means that something is off with how the model is divided into nodes, but I don't know much about working with 3D models so maybe someone else would help you with that.

Well, reloaded the game again and now it works. Everything shows step by step except the first step - foundation.

I thought it will be shown after groundworks completion, seems like not and I can't make foundations appear after groundworks completion. The building just floats above unbuilt foundations until the last step and poof, foundations appear at the end of the whole construction.

But at least it works, and I can finally make all other buildings, yay!
Last edited by Darth Sidious; 11 Jul @ 9:50am
reason 11 Jul @ 10:32am 
Originally posted by Darth Sidious:
I thought it will be shown after groundworks completion, seems like not and I can't make foundations appear after groundworks completion. The building just floats above unbuilt foundations until the last step and poof, foundations appear at the end of the whole construction.
I believe groundworks in game is somewhat special stage of construction, it doesn't require people to complete and can only create the dirt heaps, not building parts. You can merge the foundation with the walls or add a separate construction stage for building it (I'm not sure which option makes more sense in terms of construction material usage).
This is why I dislike making building mods. While buildings are easier to model, vehicles are way easier to script.

The first thing to do when you have issues with your buildings is to delete the bbox file. The game will regenerate them just fine.
< >
Showing 1-13 of 13 comments
Per page: 1530 50