DICE PACKS BUNDLE
Page 99 of 109 First ... 4989979899100101 ... Last
  1. #981
    Quote Originally Posted by Moon Wizard View Post
    @psicodelix,

    Is there any way that we can get RW to output files using tab characters and scripts in the XML like the CoreRPG ruleset?

    Here are the XML writer settings from FGU that output in similar format:
    Code:
            public static XmlWriterSettings GetDefaultWriterSettings()
            {
                return new XmlWriterSettings
                {
                    CheckCharacters = false,
                    ConformanceLevel = ConformanceLevel.Document,
                    Encoding = System.Text.Encoding.UTF8,
                    Indent = true,
                    IndentChars = "\t",
                    NewLineChars = "\r\n",
                    NewLineHandling = NewLineHandling.Replace,
                };
            }
    Thanks,
    JPG
    yes, I think I can do it, I will try to include it in the next update.
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  2. #982

    Join Date
    Nov 2017
    Location
    North Carolina, USA
    Posts
    266
    Is there an example of someone working with Effects and token icons? I am not interested in scripting effects into the CS, the effects I use in the ruleset are very basic (prone, fumble, etc), but I would like the token to show an icon when the effect is drug onto it. (The effect shows on the CT just fine.)

  3. #983
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    I believe I know well understand how to use "Custom Anchoring" in FW. I've been using it for 3 days now and all is forming up as I expect (I leave the "placeholders" on the WYSIWYG charsheet which each have "advanced templates" and "custom anchoring" and "inherit size/pos" setup)

    So, while I have not run into anthing not taken care of by "Custom Anchoring", what is "Advanced Anchoring" there for? Not sure how that comes into play. Again, just curiousity at this point.

  4. #984
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    Quote Originally Posted by greybeardgunner70 View Post
    Is there an example of someone working with Effects and token icons? I am not interested in scripting effects into the CS, the effects I use in the ruleset are very basic (prone, fumble, etc), but I would like the token to show an icon when the effect is drug onto it. (The effect shows on the CT just fine.)
    What ruleset are you basing on? CoreRPG or 5E or ?

  5. #985

    Join Date
    Nov 2017
    Location
    North Carolina, USA
    Posts
    266
    Corerpg.

  6. #986

  7. #987

    Join Date
    Nov 2017
    Location
    North Carolina, USA
    Posts
    266
    Quote Originally Posted by damned View Post
    There are no RSW examples for this. You will need to look into some existing extensions.
    OK thanks.

  8. #988
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    Quote Originally Posted by Moon Wizard View Post
    @psicodelix,

    Is there any way that we can get RW to output files using tab characters and scripts in the XML like the CoreRPG ruleset?

    Here are the XML writer settings from FGU that output in similar format:
    Code:
            public static XmlWriterSettings GetDefaultWriterSettings()
            {
                return new XmlWriterSettings
                {
                    CheckCharacters = false,
                    ConformanceLevel = ConformanceLevel.Document,
                    Encoding = System.Text.Encoding.UTF8,
                    Indent = true,
                    IndentChars = "\t",
                    NewLineChars = "\r\n",
                    NewLineHandling = NewLineHandling.Replace,
                };
            }
    Thanks,
    JPG
    Is this in reference to scripts typed into the LUA Code Editor in RW for a control for example? I just did the first of those and without any special workarounds the output xml was:
    Code:
            <field>name</field>
            <script>function setValue(sTitle)
    	if widgetTitle then
    		if prefix then
    			sTitle = Interface.getString(prefix[1]) .. " - " .. sTitle;
    		end
    		
    		widgetTitle.setText(sTitle);
    		updatePosition();
    	end
    end
    </script>
            <readonly />
    After I inserted an extra carriage return ont he first line and some 3 tabs before each lua line I got:
    Code:
            <field>name</field>
            <script>
    			function setValue(sTitle)
    				if widgetTitle then
    					if prefix then
    						sTitle = Interface.getString(prefix[1]) .. " - " .. sTitle;
    					end
    					
    					widgetTitle.setText(sTitle);
    					updatePosition();
    				end
    			end
    </script>
            <readonly />
    It would ROCK (but as it is it works, so low priority) if the tabs/etc you did for your other XML generation was applied to the lua code someone types in the editor:
    Code:
            <field>name</field>
            <script>
    			function setValue(sTitle)
    				if widgetTitle then
    					if prefix then
    						sTitle = Interface.getString(prefix[1]) .. " - " .. sTitle;
    					end
    					
    					widgetTitle.setText(sTitle);
    					updatePosition();
    				end
    			end
    		</script>
            <readonly />
    Without the extra explicit tabs and without having to insert a blank line.

    AGAIN, this might be exactly what Moon is referring to, I just don't yet know the jargon to tell

    EDIT: Looking at the code windows the tab expansion is excessive, but that's not my point - as long as it lines up with the rest of the generated XML it would be nicer but not a big deal

  9. #989
    The issue I ran into with this is that the code collapsing in some text editors, such as Sublime Text, use the indent level as the guide for collapsing. Due to the lack of indents in the code, the scripts would cause the collapsing to not work, which made it difficult to help people using RSW.

    Regards,
    JPG

  10. #990

    Join Date
    Nov 2017
    Location
    North Carolina, USA
    Posts
    266
    Changes I make to "Project Properties" aren't being reflected in FGU. For example, I have tried to add copyright info to Description and Comments, and neither show up in the chat. Nor do changes to the version number. What am I missing? Do I need to generate a new ruleset file, rather than updating the current one?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in