March 21, 2019, 05:13:50 PM

Username
Password

Pages: 1 [2] 3 4 ... 10
 11 
 on: February 13, 2019, 11:07:25 PM 
Started by mattressses - Last post by olly
Very nice!

Smiley

 12 
 on: February 13, 2019, 12:56:41 PM 
Started by mattressses - Last post by devast3d
Here're several examples of what the code currently produces. All looks good so far. I think this is OK and I can stop portrait work here. Going to merge the code into DOR now.

[ Attachment: You are not allowed to view attachments ]
[ Attachment: You are not allowed to view attachments ]
[ Attachment: You are not allowed to view attachments ]

p.s. Had to switch to nearest filtration (pixel look) due to DO portrait textures are unfriendly to bilinear.

 13 
 on: February 13, 2019, 11:08:18 AM 
Started by mattressses - Last post by devast3d
A bit fixed seqreplaceui tool. Added proper vertical scrolling, otherwise you can't normally view/edit 126.seq/127.seq files (mouth animations).
[ Attachment: You are not allowed to view attachments ]

These files are of the strange structure. They got many sequences, but only few of them contain data, other only contain single 08 command.

126.seq file:
Contains 32 sequences in total. Only sequences 0, 1, 2, 3 and 17 contain data. Sequences 0 and 17 contain 05 (eyes) commands and 06 (mouth) commands. The rest contain only 06 commands.

127.seq file:
16 in total, 0-4 contain data. Only contain 06 commands.

Most of the sequnces only contain 0A command with 00-03 index, however 9 sequence also contains 0A 04 which makes me think these seqs use 127 file for the mouth animation. Gonna try this file first.

The 0A command itself is very simple:

0A XX 00 00

where XX is the mouth index. There are 5 indices in total:

00 10
01 11
02

they correspond to the column/row of the mouth inside the bits texture.

To obtain the row/column one can easily do this:

uint8 col = (state & 0xF0) >> 4;
uint8 row =  state & 0x0F;

What's bothering me is that there's no time in either 0A or 06 commands. So it's probably hardcoded somewhere.

[ Attachment: You are not allowed to view attachments ]

 14 
 on: February 12, 2019, 12:14:47 AM 
Started by mattressses - Last post by olly
Yep it looks really good - well done and was also great learning for me, thanks.

 15 
 on: February 11, 2019, 10:44:02 PM 
Started by mattressses - Last post by devast3d
Ended up using TCB splines (https://en.wikipedia.org/wiki/Kochanek%E2%80%93Bartels_spline). Modifying tension and bias gives DO-like look. Used different sets for 0304 and 0300 commands. Not exactly the same as in DO, but looks pretty good.

Going to end curve research here due to lack of time. Moving to eyes/mouth animation.

 16 
 on: February 10, 2019, 08:08:26 PM 
Started by Ogrim Helmson - Last post by olly
Uninstall Python 2.7 and install Python 2.6 to try and get that EDIT

 17 
 on: February 10, 2019, 07:03:16 PM 
Started by Ogrim Helmson - Last post by Ogrim Helmson
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
>>>

 

 18 
 on: February 10, 2019, 04:56:24 PM 
Started by mattressses - Last post by olly
Forgive my novice knowledge but I've only ever used bezier interpolation that makes the graph ease in and ease out on a smooth graph curve, for Blender animations.

 19 
 on: February 09, 2019, 11:16:43 PM 
Started by Ogrim Helmson - Last post by olly
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: You are not allowed to view attachments ]

Change the Map name to B1_01 or whatever mission you want to edit

[ Attachment: You are not allowed to view attachments ]


Run -> Run Module

[ Attachment: You are not allowed to view attachments ]

It will create an out.xml file for you to edit and then recompile back into a BTB file using xmlbtb.py

[ Attachment: You are not allowed to view attachments ]

[ Attachment: You are not allowed to view attachments ]

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

[ Attachment: You are not allowed to view attachments ]

 20 
 on: February 09, 2019, 11:06:00 PM 
Started by Ogrim Helmson - Last post by Ogrim Helmson
@ 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.




Pages: 1 [2] 3 4 ... 10