Author Topic: Dunde's MnB Modding Companion [item, troop, party, party_template,skill editor]  (Read 5978 times)

0 Members and 1 Guest are viewing this topic.

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Tittle 's changed for I decide to change the direction of the tool to be a module system editor.

Download Link

0.1.1.0 Alpha release
  • Renamed to MnB Modding Companion as it include own editor for Ms files.
    Currently 5 MS Files supported : module_items.py (no trigger supported yet), module_troops.py (no upgrade Tree yet),
    module_parties.py and module_party_templates.py and module_skills.py.
    Other files are on the way.
  • Fully include XML Generator features, and it reads directly from header_operations.py now, so just donload new version of Module System and
    generate XML autocompletion for Notepad.

(click to show/hide)
« Last Edit: January 06, 2011, 10:00:59 PM by dunde »

Vincenzo

  • External Developer
  • *
  • Coder of code
    • View Profile
    • Flying Squirrel Entertainment
  • Faction: Neutral
  • MP nick: FSE_Vincenzo
  • M&BWBWF&SNW
Re: Modding Tool : MnB Script Autocompletion XML Generator for Notepad++
« Reply #1 on: December 10, 2010, 10:39:55 PM »
When starting under my windows vista x64 pc I get this:
(click to show/hide)

What reg key are you checking?

My notepad++ is installed under: C:\Program Files (x86)\Notepad++


Also could you make it generate the Auto completion for the header_operations.py aswell?
I have some custom operations in there.  :)
« Last Edit: December 10, 2010, 10:47:07 PM by Vincenzo »
 

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: Modding Tool : MnB Script Autocompletion XML Generator for Notepad++
« Reply #2 on: December 11, 2010, 07:19:24 AM »
I'm sorry  :oops:
My mistake.. On both of my PCs (XP), Notepad++ path 's here : HKEY_CLASSES_ROOT\CLSID\{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}.

Well, I bypass path checking now..
I rewrite header_operations,py  into inifile because theri operations heavily mixed  with comments. You can add your custom operations there.

For operations that have params :
custom_operation=<param1>,param2>

For operations that have no param :
custom_operation=0

You can either adding the lines into default sections or making copy of default sections and put the lines there.

Vincenzo

  • External Developer
  • *
  • Coder of code
    • View Profile
    • Flying Squirrel Entertainment
  • Faction: Neutral
  • MP nick: FSE_Vincenzo
  • M&BWBWF&SNW
Re: Modding Tool : MnB Script Autocompletion XML Generator for Notepad++
« Reply #3 on: December 11, 2010, 10:18:51 AM »
Thanks dunde, it works great.
 

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: Modding Tool : MnB Script Autocompletion XML Generator for Notepad++
« Reply #4 on: December 15, 2010, 07:00:53 PM »
Most Annoying thing when we use user-defined language on Notepad++ is that we must change the language of highlighting of the files after we open them. For some big files like module_scripts.py, the process will take times. So, I put a tray icon for opening MS files that directly highlighted by Notepad++ with desired user defined language.
(click to show/hide)

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Here's screen shot of alpha version :

Lumos

  • Grandmaster Knight
  • *
  • Mens sana in corpore sano
    • View Profile
  • Faction: Nord
  • M&BWBWF&SNW
That's pretty impressive for "abandoned delphi 32". And sorry for the ad I'll post (:)), but when I saw your screen I decided not to fall too far back and took a screenshot of my MABLE Item Editor:
(click to show/hide)
Whoops, the file path still isn't shown... And the boxes for new flags, meshes, etc. aren't done yet. :)
I guess mine will be liked more by people who like spreadsheets... :lol:

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Wow, wonderfull ScreenShot, Lumos.. Spreadsheet is a great idea. BTW, it's you that inspire me to build this editor, here :
Nah, I won't blame him. He's a good programmer, and I'm a lazy programmer. His program is far, far better than mine, but (one of the reasons) I'm continuing this is just because I need some concept to make an application, and what better than something that can be useful? And with this MDI idea, I'll try something I've never tried before. As I said, I need some real programming practise.
I read that about a month ago.

BTW, I found some fatal bugs of my 1st release, and fix them at 2nd release.

0.1.2.0 Alpha HOX FIX
  • HOT FIX! Fatal Bug that module_parties.py, module_party_templates and module_skills.py can't be compiled because I put ')' instead of ']'
    at the end of file.
  • FIX : Glyphs when updating list
  • FIX : sometimes stats/flags selector wrongly recognize that a flag/stat doen't need parameters.

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
(click to show/hide)

v0.1.3.0 released
- FIX : sometime troop editor opened blank
- New Looks, more files supported :
  module_sounds.py, module_music.py, module_meshes.py
- New Feature : Copy Paste between list form to speed up on creating similar troops, items etc.

Egbert

  • Master Knight
  • *
    • View Profile
  • Faction: Swadian
  • MP nick: Egbert
  • M&BWB
How do I make the auto completion show the hint for the variables of a function? I can get word completion to show function names, but not the full list of inputs needed.

Swyter

  • Master Knight
  • *
  • »Star Wars Conquest Dev Team Leader
    • View Profile
    • [my tiny homepage]
  • Faction: Swadian
  • MP nick: Sareth | Swyter
  • M&BWBWF&S



Dunde, are you turning this in a Module System Manager? :wink:

I'm also seeing you're starting to get inspired by my tools.
Personally I preferred a more specific approach for this kind of programs. You know: Jack of all trades, master of none.

The all in ones/generic apps are heavy, generally filled with unused functions, and lack of profundity of a dedicated one.

Only my personal recommendation. Keep it up.

dunde

  • Grandmaster Knight
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
How do I make the auto completion show the hint for the variables of a function? I can get word completion to show function names, but not the full list of inputs needed.

When you type :
(troop_get_slot,

after the coma, you'll get hint about variables
   usage of troop_get_slot    (troop_get_slot,<destination>,<troop_id>,<slot_no>)
but after next coma it will be dissapear :(. That's fake function variables instead because notepad++ push format to be
   function_name(variable_1, variable_2)

@Swyter :
I started this tool as xml generator of notepad ++ autocompletion, then I found that notepad++ always open MS files with it's default language, and switching it to userdefined language would take time so I decided to add menus to make notepad++ open the files using userdefined language.

« Last Edit: January 07, 2011, 04:01:35 PM by dunde »

Egbert

  • Master Knight
  • *
    • View Profile
  • Faction: Swadian
  • MP nick: Egbert
  • M&BWB
I finally got it to work. The .xml file had to have the same name as the language set in userDefineLang.xml which I had set to: <UserLang name="M&amp;B new" ext="">, so "MB new.xml" did not work, but "M&B new.xml" does.

Alan De Soison

  • Master Knight
  • *
  • Indonesian Reenactor
    • View Profile
  • Faction: Neutral
  • MP nick: Alan_de_Soison
Nice Tool... :wink:

COGlory

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
This is pretty nice.  I still prefer auto-complete in Notepad++ with Swyter's tool, but great job so far, and once it progresses some I'll be checking it out again!

This is by far no minor programming, so good job!