Page 1 of 1

Trouble Creating project and compiling examples

Posted: 15 Mar 2019, 19:54
by jswigartPlayful
I'm trying to follow the Unity guide here https://www.noesisengine.com/docs/Gui.C ... orial.html and https://www.noesisengine.com/docs/Gui.C ... unity.html and getting frustrated at not being able to get one of the samples working

I'm on the latest Blend for Visual Studio 2017. I create a new project/solution along side my unity assets folder as suggested in the guide. I'm simply trying to get the blend project compiling and working by itself first, before getting it working in Unity One thing slightly different from the start with the guide and what I'm seeing is that the project option looks slightly different.
blend_create.PNG
Seems close enough, so I usethat. I add the files from the Inventory example into the blend project, using the show all files, include in project as described in the BlendTutorial, like so.
blend_project.PNG
I feel like there are some assembly references missing, but I don't see any references to adding them in these guides.

One of the errors was regarding NoesisGUIExtensions, which I seem to have gotten around so far by including a source file mentioned in this thread

viewtopic.php?f=3&t=1041&p=5848&hilit=N ... ions#p5848

But I have a ton of other errors that seem like they are probably related to missing references or something. What are the unstated dependencies of getting these examples working in blend?
errors.PNG
The first points me to this line
<local:AnimatedNumber Number="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" AnimationDuration="0:0:0.3" Margin="0,1"/>
but I can see the Number property in the AnimatedNumber.xaml.cs, so that doesn't make much sense.

Re: Trouble Creating project and compiling examples

Posted: 15 Mar 2019, 22:19
by jswigartPlayful
Ok this is confusing, the tutorials repo has what I thought were basically all the same demos that the Unity package comes with, but not quite. There are significant and breaking differences between the xamls in each of these cases. I was wondering why I could open the sample solutions from the tutorials repo and run them in Blend, while I could not get the ones that come with unity to run, even though my project files were basically the same.

The unity MainWindow.xaml for the QuestLog for example uses this
<i:Interaction.Triggers>
<i:EventTrigger EventName="Loaded">
<ei:ControlStoryboardAction Storyboard="{StaticResource Intro}"/>
</i:EventTrigger>
...
While the one that actually works in Blend, from the tutorials repo, uses this
<UserControl.Triggers>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard Storyboard="{StaticResource Intro}"/>
</EventTrigger>
</UserControl.Triggers>
I don't understand why there is a discrepancy with this. Is it not possible to have a xaml/noesis project that works in unity and in blend? Are the samples that come with unity outdated? I'm basically interested in using Noesis in a unity based game, however I would like to be able to use blend to author the content, which as far as I can tell from the documentation and stuff, seems like an totally expected thing to do. The discrepancy between the samples doesn't lend much confidence in that though.

What's going on here?

Re: Trouble Creating project and compiling examples

Posted: 16 Mar 2019, 08:04
by jsantos
Sorry about this confusion. Our github repository was not properly updated to the latest 2.2 released yesterday. Samples contained inside the Unity package are the good ones, but unfortunately those samples do not contain Blend project, because we need to write outside the '/Asset' folder. We are working to improve this, the same way we are doing with the documentation, that is written outside the project as a post-installation step.

So, we fixed the following samples at github:
One important detail that should be updated in the documentation is that NoesisGUIExtension.cs is now provided as a NuGet package.

Sorry again for this mess with our Github repositories. We are working on it.

Thanks!

Re: Trouble Creating project and compiling examples

Posted: 16 Mar 2019, 17:14
by jswigart
Thanks for the response. I also filed an issue with the actionbar tutorial yesterday
https://github.com/Noesis/Tutorials/issues/14

Re: Trouble Creating project and compiling examples

Posted: 18 Mar 2019, 19:57
by jsantos
Thanks for that also. We will fix it ASAP.