Well, the "DoAllStuffNeededToMakeSureAllBlocksHaveTheRightComponent();" doesn't matter if is a little laggy, because it will only be called once, when a new machine is loaded. So you can just use the FindObjectOfType() thing there.
The slack team is a team chat room (kind of).
You can chat with text real-time with other team members.
You can discuss modding, share codes, and basically have a great time!
If you do want to join it, send a PM with your email to spaar.
CroCraCri Instead of doing any interating over any lists of blocks or using any FindObjectOfType-kind method, try just adding your component to the templates in AddPiece.blockTypes and MachineObjectTracker.AllPrefabs. You can use this file to get the respective indices you need. In the future, you'll also be able to access those enums in the mod loader, but not quite yet.
Your mod is great, thanks a lot! I hope you will be able to apdate it to v0.3 . Also i have a question, is it possible to create a block wich acts like differential (rear axle in car) ?
Local. The idea is that the ball joint is fixed along it's length, but still articulates in the other 2 directions so you can use it in drive mechanisms to go around corners. Look up CV (Constant Velocity) joint on wikipedia.
i put it in the mods folder and i clicked the block configuration button, then i clicked on the joint just like you said in the tutorial... it doesnt have the "Constant- Velocity joint"!