Blueprint Editor

Everything about mods can be found here.

Moderator: Morax

Blueprint Editor

Postby Ze_PilOt » 23 Jul 2012, 18:44

I've made a little tool to ease my work editing blueprints.

It's very simple and unappealing, but it's a huge time saver when editing these kind of files.
It parse any "units" directory for all blueprints, make some filtering categories (on top), then you can edit the values in a simple editor.

As it can be useful for any coder, I will release it on open source as soon as I'm done polishing the corners.

bpeditor.jpg
bpeditor.jpg (83.82 KiB) Viewed 6833 times
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Blueprint Editor

Postby pip » 23 Jul 2012, 19:02

It looks very interesting and handy! Is it generic enough to be able to support additional factions (for instance Nomads), or is it too much work to add this kind of support?
pip
Supreme Commander
 
Posts: 1826
Joined: 04 Oct 2011, 15:33
Has liked: 191 times
Been liked: 86 times
FAF User Name: pip

Re: Blueprint Editor

Postby Ze_PilOt » 23 Jul 2012, 19:40

It can support any faction, but the faction filter won't work. But it's easy to add.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Blueprint Editor

Postby pip » 23 Jul 2012, 21:57

Ze_PilOt wrote:It can support any faction, but the faction filter won't work. But it's easy to add.


Wonderful!
pip
Supreme Commander
 
Posts: 1826
Joined: 04 Oct 2011, 15:33
Has liked: 191 times
Been liked: 86 times
FAF User Name: pip

Re: Blueprint Editor

Postby Krapougnak » 24 Jul 2012, 15:18

Thumbs up ! I'm eagerly waiting for the release. 8-)
User avatar
Krapougnak
Contributor
 
Posts: 340
Joined: 12 Jul 2012, 11:03
Has liked: 193 times
Been liked: 24 times
FAF User Name: Krapougnak

Re: Blueprint Editor

Postby Ze_PilOt » 25 Jul 2012, 14:28

* TEST IT AT YOUR OWN RISK *

By default, autosave is on : Each change is immediately saved in the bp file.
Use a versionning system (mercurial, svn,...) to avoid any risk !

windows binaries :
http://www.faforever.com/faf/scbe.zip

Source code :
https://bitbucket.org/thepilot/forged-a ... editor/src

Here is a screenshot demonstrating all the filter options :

bpeditor2.jpg
bpeditor2.jpg (41.77 KiB) Viewed 6752 times


You can report any bug here, or better, here :
https://bitbucket.org/thepilot/forged-a ... tatus=open

KNOWN BUGS :
After editing a BP, if you change the filtering options, the value is reverted. This is only a GUI bug : Your file will be correctly updated.


LUA parser is done by Raging_Squirrel.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Blueprint Editor

Postby Ze_PilOt » 27 Aug 2012, 14:38

New version online (binaries updated).

- Fixed an issue where blueprint were not correctly updated in the interface after a modification
- New math operators available :
Ie. If you type :
*10
/10
+10
-10
in a field having a number, it will do the math operation on that number.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Blueprint Editor

Postby Myxir » 27 Aug 2012, 15:27

just had a look at it, this editor is truely awesome

nice work!!
Unhappy with balance http://i.imgur.com/q5G2BlM.png
User avatar
Myxir
Evaluator
 
Posts: 791
Joined: 09 Apr 2012, 14:01
Has liked: 94 times
Been liked: 306 times
FAF User Name: Washy (irc)

Re: Blueprint Editor

Postby uberge3k » 01 Sep 2012, 19:45

This doesn't seem to work for me; I successfully point it to my units directory, and I see a window with a progress bar showing the units being processed, but then nothing ever appears in the windows. When I close the program, I get a warning that an error occured; here's the logfile:

(pastebin is down :()
Code: Select all
Traceback (most recent call last):
  File "bluePrintEditor.py", line 330, in <module>
  File "PyQt4\uic\__init__.pyc", line 200, in loadUiType
  File "PyQt4\uic\Compiler\compiler.pyc", line 119, in compileUi
  File "PyQt4\uic\uiparser.pyc", line 921, in parse
  File "xml\etree\ElementTree.pyc", line 1183, in parse
  File "xml\etree\ElementTree.pyc", line 647, in parse
IOError: [Errno 2] No such file or directory: 'mainwindow.ui'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 418, in parseBps
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 418, in parseBps
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 645, in filterChanged
  File "bluePrintEditor.py", line 603, in filterWithText
KeyError: 'description'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 639, in filterChanged
  File "bluePrintEditor.py", line 586, in applyFilter
KeyError: 'categories'
Traceback (most recent call last):
  File "bluePrintEditor.py", line 418, in parseBps
KeyError: 'description'
Ze_PilOt wrote:If you want something to happen, do it yourself.
User avatar
uberge3k
Supreme Commander
 
Posts: 1034
Joined: 04 Sep 2011, 13:46
Has liked: 2 times
Been liked: 48 times
FAF User Name: TAG_UBER

Re: Blueprint Editor

Postby noobymcnoobcake » 05 Sep 2012, 17:37

Myxir wrote:just had a look at it, this editor is truely awesome

nice work!!

agreed
User avatar
noobymcnoobcake
Evaluator
 
Posts: 672
Joined: 17 Sep 2011, 16:34
Has liked: 16 times
Been liked: 5 times

Next

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest