Gizmo confusion
2 Attachment(s)
Ok, I'm trying to work with gizmos for the skills in the Doctor Who system.
I've got the form to pop up but it's very odd. :( (frmAoE) The Skills tab is as I expect it,with clicking on the edit buttonopening the frmAoE. On the form, I'm not sure why the '????' instead of the "Add Specialty" (I've attached the system code on the next post) Any thoughts? |
1 Attachment(s)
Instead of posting the code, I attached the latest files so you can see what's going on. :(
|
The data files could not be loaded due to the following errors:
File: tab_traits.dat (line 49) - Portal - Duplicate record encountered ('abGood') File: tab_traits.dat (line 84) - Portal - Duplicate record encountered ('abBad') File: tab_traits.dat (line 118) - Template - Duplicate record encountered ('abSelect') File: tab_traits.dat (line 192) - Template - Duplicate record encountered ('abPick') File: tab_traits.dat (line 313) - Layout - Duplicate record encountered ('abilities') File: tab_traits.dat (line 344) - Tab Panel - Duplicate record encountered ('abilities') |
Sorry, cancel that error message - I needed to delete your last posting of the doctor who files before adding in the new set. I'm guessing you renamed one of your tab files, so when simply adding one set to the other, I end up with both the old and new copies of that tab's file, so I get duplicates.
|
Arrrrrgh! I swear it didn't do that to me when I reloaded it right before I zipped it up :(
I'll have to redo it tonight after work :( |
Please take another look at the files you've posted. On the skills tab, every item there is named "testing", which doesn't match your screenshot, and none of them have edit buttons.
|
Note how all my gizmo examples had a helper pick?
That's because of a change that needs to be made to tables within a gizmo. normally, you can leave the addpick="" part of a table_dynamic blank, because it defaults to addpick="actor". But in a gizmo, there is no default available, so you must have an addpick="". So, I always add a helper pick, and set the addpick="" to that helper pick. Without an addpick, the additem text will always be ?????? The helper pick doesn't need to be complex - you can use the Simple compset that's defined in miscellaneous.str for that pick, because it doesn't need to have any behaviors of its own - it just needs to be present. |
Mathias,
Thanks for the help. :) I looked into the 4e files and saw what you mean about the helper. http://i15.photobucket.com/albums/a3...ps785fd1c8.jpg I've got this Skill Tab working to this point. The edit button is visible, and the mouseover text reads "Add Expertise" as I expect. When I click on the edit button, I get this as frmAoE. http://i15.photobucket.com/albums/a3...ps01b01ea6.jpg If I go ahead and click on the ????? to add an item, I get this chooser: http://i15.photobucket.com/albums/a3...ps37b0f1c9.jpg But, once I make a selection, I get this but it adds it to the form. Quote:
Code:
<entity Also, how to I forward the SkillGen.xxxx tag into the aoeAoEExpr field for use as the candidate expression? TC |
prtAoE needs an addpick="", set to your helper item.
|
For what it's worth, I find this thread immensely helpful.:)
|
Thanks Mathias! That got the Add Expertise message instead of ????? displaying.
Some progress made, but a new issue. I've added the following eval script to the Skill component. Code:
<!-- set the appropriate candidate expression --> Code:
<!-- Script used to set up AoE selection Quote:
Thoughts? |
Hmm... Ok, I think I need the procedure to have "container.childxxxx" instead of gizmo, right?
I tried that and get no series of error messages, but after a specialty is chosen I get an error message about the aoeAoEExpr being empty. Should I default it to "component.SkillAoE" and then string the "& SkillGen.xxx" from the skill component? Quote:
|
The skill component is the thing that has the gizmo, right? So you're looking to travel from the pick, to the gizmo that it contains, to the helper pick there.
If the skills themselves are on the hero, then container.child[] is the same as hero.child[]. That's not what you want, if the skills are what's on the hero. Does absolutely every skill have the <child> element added to it yet? Or are you only testing it on one or two skills for now? If you are testing it on only one or two skills for now, I'll bet it's not every skill that's reporting the error - it's every skill but those. doneif (isgizmo = 0) will let you make sure there's a gizmo to travel to, before you try to travel to it. |
Thanks! That worked. :)
Now, one thing I can't figure out is how to do a "--Custom--" AoE to choose from for any skill that will allow the user to specify their own AoE. Can I do one that uses the SkillGen.zLast tag instead of the normal skills? This is the typical AoE: Quote:
|
Where did you pick up that zLast thing? That's very specific to the way Cortex handles its skills - you're handling them in an entirely different way.
Customization is simply a matter of adding a user-entered text field, and then adding a script that replaces the name with that. You can use a tag to designate which skill(s) are your custom skills, and have your pick template handle them differently than non-custom ones. |
I had gotten that from your Cortex walkthrough when I thought the skill tab was going to have to be set up that way.
I took your advice and by adding a couple of User tags and putting a script in the Domain component have the custom entry working. I greatly appreciate the help! My next big step is the Gadget gizmo. I think I have what I need down, but I may have a few more questions. :) |
Ok, I'm running into issues for the Gadget gizmos. :(
in the Game system, a gadget is an item the character has. This gadget has a Story point Value, and can contain several traits. I have the gadgets entity and components Code:
<!-- An entity for the Gadget --> Code:
<?xml version="1.0" encoding="ISO-8859-1"?> Code:
<thing |
1 Attachment(s)
When I click the Add Gadget, it opens up the form to choose Gadgets like I would expect. However, when it adds, it opens up another form with Add Gadget but nothing to choose from. :( And if I cancel that form, the gadget is not added to the hero.
Am I missing something more? |
Can I see the code for frmGadget? That's the form you open up when you add a 51st Century Blaster.
You can probably look at this yourself before posting things. By the abDelete and abRestrict items on your gadget, I'm guessing you want those to be ways that the user can modify the gadget - in this case, since they're always bootstrapped, they're always an option the user can fiddle with. Check what component they have. Check the list expression on the table on frmGadget - make sure that table will display them. |
Thanks, that was it. :) I had the wrong component set.
Now, how can I get the title to show? :( Every time I try Titlebar or HeaderTitle, I get an error. Form_gadget.dat Code:
<?xml version="1.0" encoding="ISO-8859-1"?> For TitleBar, I don't get anything.... Thoughts? TC |
TCArknight, here's the wiki page about dynamic tables: http://hlkitwiki.wolflair.com/index....Element_(Data)
The answer you're looking for is in the section labeled "headerpick" |
Just ran into this problem myself. Add this attribute:
headerpick="some_thing" to the dynamic_table element. [Sorry. Posted this before I refreshed the thread]. |
I appreciate the help! That's now working.
I don't have the code in front of me as I'm at work, but I'm running into an issue for displaying the gadget output. I have a foreach loop stepping through each gadget on the hero. I'm able to output the name field with no issue. However, when I try to use another foreach loop to step through the children on the gadget, I get an error message. Is there a trick to using nested foreach loops in this kind of case? Or would it be better to count the number of children and then do a simple for loop using gizmo.child to step through each on and get the name values of the children traits? |
I'll need to see the code, and you'll need to right-click and copy the error message, so that you can paste it here. What you've described is too vague to figure out what's going on.
|
Ok, thanks. :) I'll post it this evening when I get off work...
|
I get this error:
Quote:
Code:
<procedure id="sbgadgets" scripttype="synthesize"><![CDATA[ |
Code:
|
I still get an error:
Quote:
|
I need to see line 17, please - that's the line it says this error is on.
|
Ok, I cleaned the procedure up a bit, and this error is on a new line.
Quote:
Code:
<procedure id="sbgadgets" scripttype="synthesize"><![CDATA[ Code:
notify eachthing.idstring Quote:
|
Oh right - this is the statblock, so there's no need to look at the bootstraps as things - they're picks by now, so find them as picks.
foreach pick in eachpick.gizmo where "component.Ability" |
That did it, thanks. :)
How would I go about creating an option in the Configure Hero to use to toggle display of the gizmos? |
Quote:
Code:
<source Code:
<source Code:
<usesource source="qinLegends"/> Hope that helps. |
TCArknight, I've been trying to crib your work on skill specialties as per this post, but I'm hitting a brick wall. I don't suppose you have any hardwon wisdom you could share?
|
All times are GMT -8. The time now is 08:08 AM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.