Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,337
|
Hi all!
I'm working on a dataset and in this dataset there are pieces of gear to represent the limbs, body and head of a robot. Code:
<thing id="robArm" name="Robot Arm" description="Arm of the robot" compset="Robot"> <!-- Tag indicates what part this belongs to --> <tag group="RobotBody" tag="Arm"/> <tag group="ItemModCatAllowed" tag="RobotArm"/> <child entity="ItemMods"></child> </thing> Code:
<thing id="modLaserArm" name="Laser Emitter" description="You can cut objects or make ranged attacks using a laser." compset="RobotMod"> <fieldval field="modNamePrefix" value="Laser"/> <tag group="ItemModCat" tag="RobotArm"/> <bootstrap thing="wpLaserGun"></bootstrap> </thing> I tried adding Helper.Shadow to the wpLaserGun bootstrap, but it didn't help. Code:
<thing id="modLaserArm" name="Laser Emitter" description="You can cut objects or make ranged attacks using a laser." compset="RobotMod"> <fieldval field="modNamePrefix" value="Laser"/> <tag group="ItemModCat" tag="RobotArm"/> <bootstrap thing="wpLaserGun"> <autotag group="Helper" tag="Shadow"/> </bootstrap> </thing> Code:
<component id="Robot" name="Robot Body Part" autocompset="no"> <identity group="RobotPart"/> <identity group="RobotHasPart"/> <shadow target="hero">Helper.Shadow</shadow> </component> Code:
<component id="RobotMod" name="Robot Modification" autocompset="no"> <identity group="RobotMod"/> <shadow target="hero">Helper.Shadow</shadow> </component> Quote:
Quote:
Working on - |
||
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,243
|
You've also double-checked that a <shadow> element is within one of the components in the Weapon compset? Your posted code doesn't seem to include anything related to the weapon itself.
Also, to clarify how Shadow works - it will not remove the laser gun from inside the gizmo of the robot arm - it is still in that container, but its shadow will appear on the hero container as well, which lets you display it in various tables that are looking for picks that are in the hero container. |
#2 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,337
|
Thank you sir!
I’ll check that in the morning. I don’t believe any of the weapon components had the shadow entry, so I bet that’s it. I understand that it’s not actually on the hero, but would childfound[] register a shadowed entry? Working on - |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,243
|
Yes, all the usual ways of locating a pick in the hero container will work on a shadowed pick.
|
#4 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,337
|
That is exactly what was missing, thank you! I added the shadow entry for the BaseWeapon, and it worked.
And good to hear about the pick-finding too. Working on - |
#5 |
|
|