Advertisement
Civilization Fanatics' Center  

Go Back   Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization > Civ5 - Utility Programs

Reply
 
Thread Tools
Old Oct 12, 2010, 02:19 PM   #1
CommanderZ
Warlord
 
CommanderZ's Avatar
 
Join Date: Nov 2007
Location: Prague, Czech. Rep.
Posts: 182
[ModBuddy Extension] Better LUA Editor (Faster + IntelliSense)

About Better LUA Editor

The default LUA editor present in ModBuddy is crappy as hell. The time has come time to replace the weakest link!

This extension offers LUA editor which is both faster and more feature rich. It even offers full IntelliSense (code suggestions) support! Just hit CTRL + SPACE!

This extension is slightly modified NPLLanguageService (all the credit goes to the original author).

Installation

The installation is a little different this time (NPLLanguageService is not open-source, so I had to improvise).

1) Install either Vanilla Assets Browser or this fix (follow the installation instructions in the Vanilla Assets Browser thread)
2) Close ModBuddy
3) Go to <ModBuddy directory>/Extensions/Application
4) Delete (or move somewhere outside this directory) file LuaLanguage.dll
5) Download the attached archive and extract into this directory
6) Done

Note that any update to ModBuddy can break this.

Screenshot

Attached Thumbnails
Click image for larger version

Name:	npl.png
Views:	1877
Size:	18.7 KB
ID:	268423  
Attached Files
File Type: rar NPLLanguageService_ModBuddy.rar (153.6 KB, 1093 views)
__________________
My ModBuddy Extensions: Subversion for ModBuddy :: Vanilla Asset Viewer :: Better LUA Editor :: ModMerger (WIP)

Last edited by CommanderZ; Oct 17, 2010 at 02:32 PM.
CommanderZ is offline   Reply With Quote
Old Oct 12, 2010, 02:54 PM   #2
JeBuS27
Heretic
 
JeBuS27's Avatar
 
Join Date: Sep 2005
Posts: 321
Awesome. I hoped it was that simple, but not knowing much about extensions, really wasn't sure.
__________________
Addendum:
This is simply my opinion, and should not be taken as an attack or lible against any person. Use of basic reasoning skills and logic is recommended when reading my posts. No emotional inflection should be read into my posts, nor should any attitude, positive or negative, be inferred from my posts.
JeBuS27 is offline   Reply With Quote
Old Oct 12, 2010, 03:41 PM   #3
jwallstone
Chieftain
 
Join Date: Oct 2010
Posts: 59
Cool. Will try.
jwallstone is offline   Reply With Quote
Old Oct 13, 2010, 06:14 AM   #4
JeBuS27
Heretic
 
JeBuS27's Avatar
 
Join Date: Sep 2005
Posts: 321
I tried installing this today, and it didn't work for me. I extracted to Extensions/Application as directed. I receive this error when I open a project with ModBuddy:
Quote:
The 'ParaEngine.NPLLanguageService.NPLLanguageServiceP ackage, NPLLanguageService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=41ff0186ca09b5f1' package did not load correctly.
The project loads, but when a lua file is opened, it crashes ModBuddy.

Edit:
I then went and installed the Vanilla Asset Browser, to see if that worked, and after installing it, both extensions work fine. Does the NPL extension rely on something that Vanilla does?
__________________
Addendum:
This is simply my opinion, and should not be taken as an attack or lible against any person. Use of basic reasoning skills and logic is recommended when reading my posts. No emotional inflection should be read into my posts, nor should any attitude, positive or negative, be inferred from my posts.

Last edited by JeBuS27; Oct 13, 2010 at 06:26 AM.
JeBuS27 is offline   Reply With Quote
Old Oct 13, 2010, 06:30 AM   #5
CommanderZ
Warlord
 
CommanderZ's Avatar
 
Join Date: Nov 2007
Location: Prague, Czech. Rep.
Posts: 182
Hmm.

Try this:
Open the "extension.vsixmanifest" file in the <ModBuddy dir>/extensions/Application, locate the <Content> section and remove the line with LuaLanguage.dll and add a new VSPackage line with path NPLLanguageService/1.0/NPLLanguageService.pkgdef.

I'm at work right now, I will look into this more when I am at home.

BTW, do you have any version of real stand-alone Visual Studio (so ModBuddy doesn't count) installed?
__________________
My ModBuddy Extensions: Subversion for ModBuddy :: Vanilla Asset Viewer :: Better LUA Editor :: ModMerger (WIP)
CommanderZ is offline   Reply With Quote
Old Oct 13, 2010, 06:32 AM   #6
JeBuS27
Heretic
 
JeBuS27's Avatar
 
Join Date: Sep 2005
Posts: 321
Yeah, I have VS 2010 Ultimate installed currently. But, as my edit said, it works now that I've installed VAB.
__________________
Addendum:
This is simply my opinion, and should not be taken as an attack or lible against any person. Use of basic reasoning skills and logic is recommended when reading my posts. No emotional inflection should be read into my posts, nor should any attitude, positive or negative, be inferred from my posts.
JeBuS27 is offline   Reply With Quote
Old Oct 13, 2010, 07:04 AM   #7
CommanderZ
Warlord
 
CommanderZ's Avatar
 
Join Date: Nov 2007
Location: Prague, Czech. Rep.
Posts: 182
Quote:
I then went and installed the Vanilla Asset Browser, to see if that worked, and after installing it, both extensions work fine. Does the NPL extension rely on something that Vanilla does?
It shouldn't. I will investigate this later.
__________________
My ModBuddy Extensions: Subversion for ModBuddy :: Vanilla Asset Viewer :: Better LUA Editor :: ModMerger (WIP)
CommanderZ is offline   Reply With Quote
Old Oct 16, 2010, 01:11 AM   #8
Valkrionn
The Hamster King
 
Valkrionn's Avatar
 
Join Date: May 2008
Location: Crestview FL
Posts: 14,450
I'd just like to say that I'm seeing the same thing JeBuS27 is; Without the Asset Browser, this isn't working.

Even after registering it as an Isolated Shell, this does not work; It is only after the assets browser is fully installed that it works correctly.
__________________
Valkrionn is offline   Reply With Quote
Old Oct 16, 2010, 01:39 AM   #9
Perkus
Prince
 
Join Date: Oct 2010
Location: Ontario, Canada
Posts: 316
Hi, I tried to use this alternate LUA extension, because the slow typing is driving me nuts. I got the same error & crash as JeBuS27 did. I have Microsoft Visual C# 2010 Express - ENU installed.

I tried your suggested fix of editing the extension.vsixmanifest. It no longer gives me the error message, but it still crashes the same way soon after I open a .lua file. It doesn't let me edit the file, in fact it doesn't even display it.

Any other ideas? I'll check back later, hopefully I won't need to also install this Vanilla Asset Browser.

Last edited by Perkus; Oct 16, 2010 at 01:49 AM. Reason: typo
Perkus is offline   Reply With Quote
Old Oct 16, 2010, 02:51 AM   #10
CommanderZ
Warlord
 
CommanderZ's Avatar
 
Join Date: Nov 2007
Location: Prague, Czech. Rep.
Posts: 182
Unhappy

I'm looking into this now. Could any of you (who has the problem) please answer these questions?

1) Do you have NPLLanguageService installed for regular VS?
2) Do you have any other ModBuddy extensions installed?
3) Is the NPLLanguageService listed in the Extension manager (Tools->Extension manager)
4) Does "NPLLanguageServiceToolbar" appear in View->Toolbars
5) Does attached registry file fix the problem?

And for those, for whom the installation of VAB fixed the issue, does the error start happening again once you uninstall the VAB (Tools->Extension manager)? Does it happen when VAB is disabled in Extension manager?

If the error keeps happening, please post the log file.

Thank you for helping me fix this.
Attached Files
File Type: rar npl.rar (370 Bytes, 29 views)
__________________
My ModBuddy Extensions: Subversion for ModBuddy :: Vanilla Asset Viewer :: Better LUA Editor :: ModMerger (WIP)
CommanderZ is offline   Reply With Quote
Old Oct 16, 2010, 04:07 PM   #11
Perkus
Prince
 
Join Date: Oct 2010
Location: Ontario, Canada
Posts: 316
Hi, CommanderZ. Ok, I gave it another shot...

I noted that I also have 4 other version of MS VS installed apparently, not sure where they all came from. Version 8, 9.0, and a blank one. In addition to 10.0. I don't imagine it matters.

To answer your queries:

1) No. Barely ever used it, nothing funky in it. Pretty much vanilla install back in May.
2) No. Vanilla ModBuddy install until this.
3) Yes. Looks correctly installed, appears under Tools, has logo, etc.
4) Yes. Toolbar is there, and appear and seems to work.
5) No, it didn't. I checked the registry, the new entries are there. But it crashes just the same, as soon as I try to open any .lua file.

Before changing the registry, I also tried deleting the line <MefComponent>LuaLanguage.dll</MefComponent> from the extension.vsixmanifest file without adding in the NPLLanguageService.pkgdef line. That didn't help either.

Thanks for digging into this for us...
Perkus is offline   Reply With Quote
Old Oct 17, 2010, 05:05 AM   #12
CommanderZ
Warlord
 
CommanderZ's Avatar
 
Join Date: Nov 2007
Location: Prague, Czech. Rep.
Posts: 182
Ok, I have a suspicion on what causes it. Please install the attached extension, it should fix your problem. And don't worry, it has exactly zero executive code, it just registers several small resources NPL might need (which might be otherwise accidentally provided by VAB).
Attached Files
File Type: rar NPLCompatibilityFix.rar (4.5 KB, 174 views)
__________________
My ModBuddy Extensions: Subversion for ModBuddy :: Vanilla Asset Viewer :: Better LUA Editor :: ModMerger (WIP)
CommanderZ is offline   Reply With Quote
Old Oct 17, 2010, 01:24 PM   #13
Perkus
Prince
 
Join Date: Oct 2010
Location: Ontario, Canada
Posts: 316
Woot, I finally got it to work! And it seems much faster than the old editor. Not without a fair degree of extra trouble, however...

When I first double-clicked the NPLCompatibilityFix.vsix you provided I got this error message from the Visual Studio Extension Installer: "This extension is not installable on any currently installed products."

I thought maybe registering ModBuddy would be necessary, so I followed the directions you posted here: http://forums.civfanatics.com/showthread.php?t=387554. But it didn't work, I didn't see any messages about anything being registered. And I still got the same error running that.vsix file.

Fortunately, I went back and read the rest of that thread. The post from ArgentumStudios,
Quote:
When I did it, I had to actually double click on the .exe sitting next to the pkgdef file, running it through Steam or any of the shortcuts didn't read it for some reason.
is the key. I did the same, got the "registered" message, exited ModBuddy, ran the .vsix file again, now it worked (listing ModBuddy), so I did that update, and now the editor is no longer crashing!

So anyhow, thanks for all this. I would suggest you update the instructions in this thread to mention you will need to register and add the vsix file up there. And you should also update the other thread to mention you probably have to execute ModBuddy.exe from the Steam directory itself in order for the registration to work... So that others don't have to digest the full content of these thread to get it working.
Perkus is offline   Reply With Quote
Old Oct 17, 2010, 02:34 PM   #14
CommanderZ
Warlord
 
CommanderZ's Avatar
 
Join Date: Nov 2007
Location: Prague, Czech. Rep.
Posts: 182
Ok, I have updated all the instructions.

Thanks for your cooperation.
__________________
My ModBuddy Extensions: Subversion for ModBuddy :: Vanilla Asset Viewer :: Better LUA Editor :: ModMerger (WIP)
CommanderZ is offline   Reply With Quote
Old Oct 20, 2010, 01:47 PM   #15
Perkus
Prince
 
Join Date: Oct 2010
Location: Ontario, Canada
Posts: 316
So I've been using this, but I'm having a weird, annoying problem. I'm wondering if it's related to this new .LUA editor? For some reason, my Page Down key doesn't work when I'm editing a .LUA file. Page Up works just fine, and Page Down works as soon as I switch to .xml or .txt. I only noticed this happening shortly after I'd had a ModBuddy crash during the editing of my Mod's ModInfo. I can't be sure if it did or did not work before that point, because I wasn't doing that much editing. I suspect that it did work, and it's only been since the crash that it's broken.

Any ideas on how to fix it? If I go to the Extension Manager in ModBuddy, and select NPLLanguageService, for some reason the "Disable" and Uninstall" buttons are both greyed out and unusable. I tried first disabling then re-enabling the NPLCompatibilityFix. That did not fix the PageDown key. However, I get an error warning when ModBuddy tried to restart after disabling/enabling the fix. Something about "package did not load correctly". It doesn't seem to break anything, though.

Last edited by Perkus; Oct 20, 2010 at 02:08 PM. Reason: typo
Perkus is offline   Reply With Quote
Old Oct 20, 2010, 02:09 PM   #16
SamBC
Emperor
 
Join Date: Feb 2010
Location: Lancaster
Posts: 1,046
Quote:
Originally Posted by Perkus View Post
So I've been using this, but I'm having a weird, annoying problem. I'm wondering if it's related to this new .LUA editor? For some reason, my Page Down key doesn't work when I'm editing a .LUA file. Page Up works just fine, and Page Down works as soon as I switch to .xml or .txt. I only noticed happening this shortly after I'd had a ModBuddy crash during the editing of my Mod's ModInfo. I can't be sure if it did or did not work before that point, because I wasn't doing that much editing. I suspect that it did work, and it's only been since the crash that it's broken.

Any ideas on how to fix it? If I go to the Extension Manager in ModBuddy, and select NPLLanguageService, for some reason the "Disable" and Uninstall" buttons are both greyed out and unusable. I tried first disabling then re-enabling the NPLCompatibilityFix. That did not fix the PageDown key. However, I get an error warning when ModBuddy tried to restart after disabling/enabling the fix. Something about "package did not load correctly". It doesn't seem to break anything, though.
I've had the same PageDown problem, and to my knowledge my ModBuddy hasn't crashed. Never noticed it with the default Lua editor, or in other editors, and only since adding the NPL editor.
SamBC is offline   Reply With Quote
Old Oct 20, 2010, 02:16 PM   #17
JeBuS27
Heretic
 
JeBuS27's Avatar
 
Join Date: Sep 2005
Posts: 321
Yesterday I had an issue where several keys refused to work until I restarted ModBuddy. I believe they were all the keys on the right half of the keyboard.
__________________
Addendum:
This is simply my opinion, and should not be taken as an attack or lible against any person. Use of basic reasoning skills and logic is recommended when reading my posts. No emotional inflection should be read into my posts, nor should any attitude, positive or negative, be inferred from my posts.
JeBuS27 is offline   Reply With Quote
Old Oct 20, 2010, 02:59 PM   #18
Perkus
Prince
 
Join Date: Oct 2010
Location: Ontario, Canada
Posts: 316
Well at least I know I'm not alone in this. In my case it's not intermittent, it's always that way, and exiting ModBuddy doesn't help. I did a bunch of googling with no luck. I tried to figure out if I might have somehow mapped the PgDn key to do something else, but there's literally a zillion possible key bindings in Tools->Options->Keyboard, it's a pain to search though.
Perkus is offline   Reply With Quote
Old Oct 21, 2010, 02:45 AM   #19
CommanderZ
Warlord
 
CommanderZ's Avatar
 
Join Date: Nov 2007
Location: Prague, Czech. Rep.
Posts: 182
I will try to look into this. I can't promise anything though.

Disabling: Did you try to delete the NPLLanguageService forlder from <ModBuddy>/Extensions/Application?
__________________
My ModBuddy Extensions: Subversion for ModBuddy :: Vanilla Asset Viewer :: Better LUA Editor :: ModMerger (WIP)
CommanderZ is offline   Reply With Quote
Old Nov 28, 2010, 06:58 AM   #20
alpaca
King of Ungulates
 
alpaca's Avatar
 
Join Date: Aug 2006
Posts: 2,164
Bump.

Are you still around CommanderZ?
alpaca is offline   Reply With Quote
Reply

Bookmarks

Tags
extension, lua, modbuddy

Go Back Civilization Fanatics' Forums > CIVILIZATION V > Civ5 - Creation & Customization > Civ5 - Utility Programs > [ModBuddy Extension] Better LUA Editor (Faster + IntelliSense)

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 12:16 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
This site is copyright Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR