Jump to content

Module References by Absolute Index


Recommended Posts

I noticed that many of the wheel modules now use an index to link back to the base wheel, e.g. baseModuleIndex = 0, i.e. they look for a ModuleWheelBase at position 0 in the part's modules.  In my experience, this is extremely error prone when you involve mods, since modules are added, removed, duplicated, etc very frequently (this comes from actual experience with ModuleSurfaceFX which uses the same paradigm).

Engine modules can be found easily and reliably because they have the engineID field which is used as a unique identifier.  Would it be at all possible to change the wheel modules to use something like this?  I know that it would save myself and many other modders a lot of headache

(reposting here from the 1.1 prerelease board at @NathanKell's suggestion)

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...