Jump to content

How to make a procedural mod?


MasterBurte

Recommended Posts

Hi,

I have an idea for a mod. Moddeling is not the problem for me, I can use some products from autodesk. But I have no expierience with programming.

I want to make a set of cubic rooms and connectors.

I want to make an UI like the B9 wings have. You can change length in 1 meter steps and wide in 2 meter steps. Select differnt doors and interior layouts. The doors can be opened and closed from inside the ship, so the mod should be ready for advanced IVA solutions.

If someone can make good interior stations, that fit into the rooms, you are able to make very costume room layouts. Finally this should enable you to make space stations with floors and rooms (not the ISS style). I want to use this for an extreme big shuttle with a lot of inside volume.

 

So I ask for someone, who can explain me, how to make this procedural. I could make all possible models, that could be choosen with a UI. But maybe this is very ressource consuming.

If some of you are interessested in working with me on this mod, contact me. :)

Link to comment
Share on other sites

I'm trying to do something similar (the procedural part that is) and am looking at the Tweakscale code. It looks like Scale.cs has the size change stuff using part.transform.Getchild(0).localScale though I haven't been able to get it to work yet. The node position and size code also appears to be there. I did find the meshes using part.GetComponentsInChildren<MeshFilter> and changing the veritex array does work though I'd rather not have to modify the mesh its self. If your just getting into plugins the most frustrating part is the lack of documentation on where things are hidden - best thing I've found is looking at others code. Good luck with this!

Link to comment
Share on other sites

I think Mihara has already solved the coding problem for you:

http://forum.kerbalspaceprogram.com/index.php?/topic/79715-0242-jsipartutilities-a-mishmash-of-clever-things-to-do-with-parts/ 

This allows you to switch components on and off, so you could put all of the different versions of a part into one .mu and use the plugin to enable and disable them by right click in the vab.   Mihara's documentation is very good : https://github.com/Mihara/PartUtilities/wiki.  Though... the last couple of posts indicate there may be some issues?  I would download the http://forum.kerbalspaceprogram.com/index.php?/topic/85645-102-exploration-rover-system-by-aset-090515/ rover, both because it's awesome, and it will show you A, if the part utilities plugin is working right, and B, if so how to configure it.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...