-
December 2nd, 2016, 16:38 #41
- Join Date
- Jul 2011
- Posts
- 39
Sorry, that's relevant data.
<windowclass name="TutorialWindow">
<frame>campaignlistwithtabs</frame>
<sheetdata>
<banner_campaign>
<script>
function onInit()
Debug.console("self", self)
end
</script>
<icon>TutorialTitle</icon>
</banner_campaign>
<close_campaignlist />
</sheetdata>
</windowclass>
-
December 2nd, 2016, 17:10 #42
- Join Date
- Jul 2011
- Posts
- 39
Disregard.
Situation resolved.
Ruleset has changed, no longer includes "
<template name="banner_campaign">
<genericcontrol>
<bounds>16,22,30,177</bounds>
</genericcontrol>
</template>
"
-
January 26th, 2017, 17:38 #43
Hey folks. I've encountered what I *think* is an error in the tutorial.
In step 6 in the first tutorial, a new snippet of code in the TutorialWindow.xml calls for a <banner_campaign>. Here is the code.
<banner_campaign>
<icon>TutorialTitle</icon>
</banner_campaign>
Ruleset Warning: Could not find template (banner_campaign) in windowclass (TutorialWindow)
Am I doing something wrong?Last edited by bigbluepaw; January 27th, 2017 at 03:11. Reason: shortened post, tried again
-
January 27th, 2017, 03:20 #44
Hi BigBluePaw - Ive not tried this tutorial.
That error message means it cant find the template banner_campaign.
If you look at the post above it appears that this template has been deprecated.
This was the banner style graphics that came down from top left hand corner of the window...
This will require some updating of the tutorial to work with the newer layouts.
What is it you are trying to achieve?
-
January 27th, 2017, 03:31 #45
Solution.
Wh00t. I resolved it on my own. A hint at how to solve it is in the second tutorial. Here is the quick fix.
1.) Create ExtTutorial_Templates.xml in the XML directory.
2.) Add the following code to it. This is the entire thing.
Code:<?xml version="1.0" encoding="iso-8859-1"?> <!-- This is our MVP for the Extension Tutorial --> <root release="3.0" version="3"> <!-- This creates the banner_campaign template --> <template name="banner_campaign"> <genericcontrol> <bounds>16,22,30,177</bounds> </genericcontrol> </template> </root>
Code:<includefile source="xml/ExtTutorial_Templates.xml" />
Code:<includefile source="xml/TutorialWindow.xml" />
While frustrating, this was a valuable experience. Thanks!
-
January 27th, 2017, 03:49 #46
Redundant post. Ignore.
-
January 27th, 2017, 03:51 #47
Well done bigbluepaw - what are you trying to make?
-
January 27th, 2017, 03:55 #48
Just trying to get familiar with the functionality right now. But my motivation is to create a tool for navigation, travel, exploration and tracking. It will also build out travel days taking foraging, searching, sneaking, random encounters, hazards and more. It will actually be very similar to the Combat Tracker, only with different functionality. It is my attempt to make the Out of the Abyss travel sections far more interesting and engaging.
-
January 27th, 2017, 04:07 #49
Well this is strange. I don't get any errors in the console, but when the window comes up, the image for the header is teeny-tiny instead of being fullsized. Furthermore, it is not in the middle of the header. It is offset to the left and below, almost in the middle of the window.
It looks like it uses the <icon> tag, but I don't see where the placement is controlled.
Code:<banner_campaign> <script> function onInit() Debug.console("self", self) ExtTutorial.setIconByRuleset(self) end </script> <icon>TutorialTitle</icon> </banner_campaign>
-
January 27th, 2017, 05:58 #50
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks