Hello! I'm a Spacebuild newbie and when I parent my ship with the workshop's multi-parenting tool it crash. Well, it DOES work, I can sit on the seat and control the ship pretty well, but when I go out It teleport me nowhere OR I just crash. When I parent all my ship but just weld the seat, the seat fly as I move. So is there any way to parent a seat in Spacebuild or set another "get out" point for a seat? Sorry for my english. I have found an Expression 2 code that is said to fix the glitch but there is an error on the lane 69: [CODE]# Author: Steeveeo
# Updated: February 7, 2011 @ 12:08 AM PST (-8 GMT)
# Use and Purpose:
# Place this chip on the main prop of your ship and say
# '!parent' in chat. This will do all the work for you
# to have a properly working and non-laggy parented ship.
# Note that this does auto-weight props, so if your gyropod
# is setup for a different weight, you may have to adjust.
#
# To share this chip, just say 'share mode' in chat before placing.
#
# Note: Do NOT save your ship after this, it will not work as
# expected. Instead, use this before flying each time your ship
# is placed.
# Fair Use and Legality:
# This chip is provided as is and is designed to work only
# as instructed. This is provided under Creative Commons and
# may be modified and/or shared with anyone as long as proper
# credit is given to the original author (Steeveeo). Failure to
# give credit by plagiarising or removing this header is subject
# to administrative punishment.
@name E2 Tool - Auto Parenter
@inputs
@outputs
@persist Parts:array Parent:entity Step
@trigger
runOnChat(1)
#Startup
if(first())
{
#Check if constrained
if(!entity():isConstrained() & owner():lastSaid():lower() != "share mode")
{
print("Please place this on a contraption to begin")
selfDestruct()
}
elseif(entity():isConstrained())
{
print("Caching structure parts, say '!parent' to begin.")
Parent = entity():isConstrainedTo()
Parts = entity():getConstraints()
}
}
#Begin parenting
if(chatClk(owner()) & owner():lastSaid():lower() == "!parent")
{
print("Initializing AutoParent, DO NOT TOUCH YOUR SHIP UNTIL THIS IS COMPLETE!")
Step = 0
timer("Freeze",100)
}
#Freeze all props
if(clk("Freeze"))
{
#From here on out, these are expensive processes, so we need to do this in chunks
Index = 1+(10*Step)
End = 0
while(Index <= 10+(10*Step))
{
if(Index != Parts:count()+1)
{
Parts[Index,entity]:freeze()
Index++
}
else
{
#Call the Unconstrainer
Step = 0
timer("Unconstrain",100)
print("Freezing finished, optimizing constraints.")
print("Unconstraining all props.")
End = 1
break
}
}
#Check if we did not hit the end, start next step
if(!End)
{
Step++
timer("Freeze",100)
}
}
#Unconstrain everything
if(clk("Unconstrain"))
{
Index = 1+(10*Step)
End = 0
while(Index <= 10+(10*Step))
{
if(Index != Parts:count()+1)
{
Parts[Index,entity]:unConstrain()
Index++
}
else
{
#Call the Rewelder
Step = 0
timer("Reweld",100)
print("Unconstrain finished, welding to parent.")
End = 1
break
}
}
#Check if we did not hit the end, start next step
if(!End)
{
Step++
timer("Unconstrain",100)
}
}
#ReWeld everything to Parent
if(clk("Reweld"))
{
Index = 1+(10*Step)
End = 0
while(Index <= 10+(10*Step))
{
if(Index != Parts:count()+1)
{
if(Parts[Index,entity] != Parent)
{
Parts[Index,entity]:weld(Parent)
}
Index++
}
else
{
#Call the Weighter
Step = 0
timer("Weights",100)
print("Rewelding finished, beginning dynamic weighting.")
End = 1
break
}
}
#Check if we did not hit the end, start next step
if(!End)
{
Step++
timer("Reweld",100)
}
}
#Weight everything dynamically
if(clk("Weights"))
{
Index = 1+(10*Step)
End = 0
while(Index <= 10+(10*Step))
{
if(Index != Parts:count()+1)
{
Part = Parts[Index,entity]
if(Part == Parent)
{
Part:setMass(50000)
}
elseif(Part:type() == "prop_physics" | Part:type() == "prop_physics_multiplayer")
{
Part:setMass(200)
}
else
{
Type = Part:type():lower()
if(Type:find("resource") | Type:find("storage") | Type:find("gen") | Type:find("regulator") | Type:find("gyropod"))
{
Part:setMass(50)
}
else
{
Part:setMass(1)
}
}
Index++
}
else
{
#Call the Parenter
Step = 0
timer("Parent",100)
print("Weighting finished, parenting ship.")
End = 1
break
}
}
#Check if we did not hit the end, start next step
if(!End)
{
Step++
timer("Weights",100)
}
}
#Parenting time
if(clk("Parent"))
{
Index = 1+(10*Step)
End = 0
while(Index <= 10+(10*Step))
{
if(Index != Parts:count()+1)
{
if(Parts[Index,entity] != Parent & !Parts[Index,entity]:isVehicle())
{
Parts[Index,entity]:parentTo(Parent)
}
Index++
}
else
{
#End it
print("Parenting complete, you may now fly this ship.")
End = 1
break
}
}
#Check if we did not hit the end, start next step
if(!End)
{
Step++
timer("Parent",100)
}
else
{
selfDestruct()
}
}
[/CODE]
lane 69: Parts[Index,entity]:freeze()
and it said: no such function entity:freeze(void)
so if it can be resolved I could test it.
For the E2, you might have more luck posting this on the [URL="http://www.wiremod.com/forum/"]wiremod forum[/URL]. That's all I know sorry.
Sorry, you need to Log In to post a reply to this thread.