Title: BTB Editor Post by: Ogrim Helmson on February 09, 2019, 04:53:10 PM For the Highking,
hey guys at first a special thanks for you. in the past these forum has often helpe me and a big sorry for my bad english. here my problem: i would like to start the normal campaign with two more units at first i added the new units with the "wh2edit" in plyr_alg.arm file in the 1parm folder and in the file B101mrc.arm choosen in the 1pbat folder (iam not sure if the second must to) after that i download the btb editor but i doesn´t now how to create the start point and in which "chunk" or "subchunk" list i have to got to write down the "unique unit id" so i hope you understood me Title: Re: BTB Editor Post by: olly on February 09, 2019, 05:55:47 PM Hi
check out my guide to adding new units http://forum.dark-omen.org/campaigns/how-to-create-new-mods-and-campaigns-t1251.0.html;msg12685#msg12685 (http://forum.dark-omen.org/campaigns/how-to-create-new-mods-and-campaigns-t1251.0.html;msg12685#msg12685) Title: Re: BTB Editor Post by: Ghabry on February 09, 2019, 07:15:14 PM Don't add new units to the files in 1pbat.
The game expects a fixed size for this file and it will crash or not work. Same applies for savegames. Title: Re: BTB Editor Post by: Ogrim Helmson on February 09, 2019, 11:06:00 PM @ olly : how can i use this converter? i downloaded the "programm "which have two files btbxml.py and xmlbtb.py and i can only open these files with the editor and on that point i doesnt now what have i to do.
Title: Re: BTB Editor Post by: olly on February 09, 2019, 11:16:43 PM Copy btbxml.py and xmlbtb.py into a 1pbat\B1_01 and install Python 2.6 and then right click on btbxml.py and Edit with IDLE
[attachment=1] Change the Map name to B1_01 or whatever mission you want to edit [attachment=2] Run -> Run Module [attachment=3] It will create an out.xml file for you to edit and then recompile back into a BTB file using xmlbtb.py [attachment=5] [attachment=4] Also examine the Dark Omen 2 mod template B6_01 which is a copy of B1_01 but I have added more starting units http://forum.dark-omen.org/help-section/read-me-ultimate-dark-omen-xpvistawin7win81win10-game-fixes-t111.0.html (http://forum.dark-omen.org/help-section/read-me-ultimate-dark-omen-xpvistawin7win81win10-game-fixes-t111.0.html) [attachment=6] Title: Re: BTB Editor Post by: Ogrim Helmson on February 10, 2019, 07:03:16 PM i doint had the button edit with idle but why? ... i doint now yet i can use it but i have the next problem
when i recompile the file there seen me this Traceback (most recent call last): File "E:\Games\Dark Omen\GameData\1pbat\B1_01\xmlbtb.py", line 74, in <module> tree = ET.parse("out.xml") File "C:\Python27\lib\xml\etree\ElementTree.py", line 1176, in parse tree.parse(source, parser) File "C:\Python27\lib\xml\etree\ElementTree.py", line 653, in parse parser.feed(data) File "C:\Python27\lib\xml\etree\ElementTree.py", line 1623, in feed self._raiseerror(v) File "C:\Python27\lib\xml\etree\ElementTree.py", line 1487, in _raiseerror raise err ParseError: junk after document element: line 882, column 7 >>> Title: Re: BTB Editor Post by: olly on February 10, 2019, 08:08:26 PM Uninstall Python 2.7 and install Python 2.6 to try and get that EDIT
|