-
January 23rd, 2011, 13:36 #21Originally Posted by phantomwhale
Not sure why opening the About dialog is causing it to crash for you. Its just a simple MsgBox with some text, nothing more. Seems odd as it opens fine for me. Which version of NPP are you running. I'm on v5.8.6 (Unicode).
FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
January 24th, 2011, 12:04 #22Originally Posted by DrZeuss
Again, the workaround of not pressing it is fine !
[EDIT - solved my own problem here] Sorry, had a problem with comment highlighting, but realised I'd left a space between the -- and [[, and that the highlight colour for single line comments is a darker green that the block comments, a green so dark that my slight colour blindness could not really see it !
BenLast edited by phantomwhale; January 24th, 2011 at 12:10.
-
January 24th, 2011, 21:35 #23Originally Posted by phantomwhale
I'm glad the highlighting is corrected now. Happy trails.FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
January 29th, 2011, 09:01 #24
For those of you who are using my custom FGIILua lexer for Notepad++, take note that FunctionList v2.1 has been released and whilst its still a little unstable now and again, its working with Plugin based languages, including the FGIILua language the lexer uses.
What you need to do, to get it to work is as follows:
- Close NPP, if open.
- Download v2.1 of the FunctionList plugin from Sourceforge here
- Copy the v2.1 plugin files to the Plugins subfolder in the NPP Program Folder
- Now add the following Language Rule to the FunctionListRules.xml file in your users NPP app data folder (for me it was C:\Users\Zeph\AppData\Roaming\Notepad++\plugins\Co nfig) and save the file
Code:<Language name="FGIILua" imagelistpath=""> <CommList param1='"' param2='"' /> <CommList param1="'" param2="'" /> <CommList param1="--" param2="" /> <CommList param1="--\[\[" param2="\]\]" /> <Group name="FUNCTION" subgroup="" icon="0" child="0" autoexp="0" matchcase="1" fendtobbeg="" bbegtobend="\<do\>|\<if\>|\<function\>" keywords=""> <Rules regexbeg="^[-\s]*function\s+" regexfunc="[\w_:.]+" regexend="\s*\([\w_,.\s]*\)" bodybegin="" bodyend="\<end\>" sep="" /> <Rules regexbeg="^[-\s]*" regexfunc="[\w_:.]+" regexend="\s*=\s*function\s*\([\w_,\s]*\)" bodybegin="" bodyend="\<end\>" sep="" /> <Rules regexbeg="^" regexfunc="[\w_]+" regexend="\s*=" bodybegin="\{" bodyend="\}" sep="" /> </Group> </Language>
Note: Attempting to edit FunctionList language rules using the provided gui interface usually results in a NPP crash. The author is aware f the problem and is working on a fix. In the meantime I would suggest making changes to rules (if you need to that is) directyly via editing the FunctionListRules.xml file in your user app data folder.FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
January 29th, 2011, 09:22 #25
I followed the steps, but found no FunctionListRules.xml file in the user directory.
So I opened and closed NPP, and then a FunctionList.ini file appeared, but still no rules xml file.
So then I created a brand new FunctionListRules.xml file, copied in the data you provided, and tried loading up an FGII LUA script, setting my language to FGII Lua.
A quick press of ctrl+shift+alt+L bought up the function list sidebar, but it said no rules were defined.
Would play around to work out how to use the plugin, but the ever-crashing GUI makes it tricky. Do you have an example of a complete FunctionListRules.xml file I might copy, as perhaps the entry you've provided needs to sit within a larger block of XML ?
-
January 29th, 2011, 10:19 #26
I use a portable version of NPP, found the "FunctionListRules.xml" file and made the changes.
No dice as it says "No Rule Defined" when I open the sidebar.
I will continue to test.
Thanks.
--edit--
I may have found the problem. The dates on those files are 2/17/2010.
Is it supposed to be newer?Last edited by SpudmanWP; January 29th, 2011 at 10:22.
'Build it and they will come'
Universal Table Rolling Get it HERE
FG2 Help Files Get it HERE
Getting the Most Out of Notepad++ (FG2 & Lua spellcheck & Auto-Completion) Get it HERE
Printing the contents of a table Get it HERE
-
January 29th, 2011, 10:41 #27
The should be a default FunctionListRules.xml file in the programs folder/plugins/Config, use that to first create the FunctionListRules.xml file in your user app data folder. You need to then add a copy of the block I defined above into the XML along with the other language definitions.
Aside from that you given you are running a portable version, find the Plugin/Config folder NPP is using to hold the definitions for configuration.Last edited by Zeus; January 29th, 2011 at 11:07.
FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
January 29th, 2011, 11:13 #28Originally Posted by SpudmanWPFG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
January 29th, 2011, 11:17 #29FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
January 29th, 2011, 12:48 #30
Ok, I got my default rules file in place, added in FGIILua block as shown, but was still only getting the plugin working with the Lua language, not the FGIILua language (it was still saying "No Rule Defined" on the panel when FGIILua language was loaded, whereas it says "100%" for Lua).
That said, it was "kinda" working; you could change the sort from A->Z to natural ordering, and the functions would appear.
Nonetheless, I googled around and found this forum post which basically advised me to go into Settings -> Preferences..., into the Language Menu/... tab and deselect "Make Language menu compact".
This fixed it up, and now it works as advertised. A quirk of FunctionList plugin, I'm guessing ?
So, great, another improvement to my FGII coding life ! Thanks Dr Zeuss for the useful tips. Better play with these for a while, and add my global functions into the lexer settings as I go.
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks