May 20, 2018, 10:55:24 AM

Username
Password

Pages: [1]   Go Down
Print
Author Topic: BTB and CTL files  (Read 2272 times)
0 Members and 1 Guest are viewing this topic.
cuthalion
Campaign Creator
*
Offline Offline

Posts: 370


View Profile
« on: April 29, 2015, 09:02:11 AM »

Hi,
could someone remind me how I edit BTB and CTL files?
I found btb-xml tool in downloads and some information about it in Wiki.
But I have not found information on editing ctl so far. I have something from 3 years ago but I believe it is out of date:
there were a lot of findings in Chaos Dwarves and Ghabry was going to update a lot of functions...
Anyway I do not remember how I use to- and from- ctl conversion properly...
Logged
olly
Global Spokesperson
*
Offline Offline

Posts: 1862



View Profile
« Reply #1 on: April 29, 2015, 05:43:13 PM »

How to create New Mods and Campaigns  ->

http://forum.dark-omen.org/campaigns/how-to-create-new-mods-and-campaigns-t1251.0.html;msg12683#msg12683

Smiley

I paste them in to my Skaven Mods folder Mission 1

C:\Program Files (x86)\DarkOmen\Mods\Skaven\GAMEDATA\1pbat\B1_01

To run the Python script ctldis.py you will need to copy your B101.CTL and rename it as b101_orig.ctl and also create a new text file called b101.txt

Then you can right click on ctldis.py and Edit with IDLE and when the 2 Python pages appear change MODE to 1 and to run the conversion select  Run -> Run Module 

# CTL Assembler/Disassembler
# First Release: 2009-12-07 (by Rob)
# Last Update: 2012-05-05

from array import array

base_name = "b101"

original_file_name   = base_name+"_orig.ctl"
disassembled_file_name = base_name+".txt"
assembled_file_name  = base_name+".ctl"

MODE = 1 # 0 == assemble, 1 == disassemble

« Last Edit: April 29, 2015, 05:58:03 PM by olly » Logged

and back in Nuln, the ageing Graf Berhardt smiled his secret smile of pride whenever he heard the latest tales of his eldest son's ever growing chain of glorious victories -(sothr manual)
Ghabry
Developer
*
Offline Offline

Posts: 1009



View Profile
« Reply #2 on: April 29, 2015, 09:05:38 PM »

concerning CTL there wasn't much happening the last years.
Because I lost interest, too. I'm only lurking around here.
Logged

cuthalion
Campaign Creator
*
Offline Offline

Posts: 370


View Profile
« Reply #3 on: May 13, 2015, 03:57:36 PM »

An update in script btbxml.py

It places counters at Chunk6000 subrecords - nodes that position troops and are used as coordinates at battle map.
It makes btb-ctl editing easier: A lot of places in CTL where these subrecords are addressed by sequence number, and in previous version one had to manually count from 0 up to 100 to find required subrecord every time.
Could someone place it in downloads?

* btbxml.py (3.6 KB - downloaded 80 times.)



* btbxml.py (3.6 KB - downloaded 80 times.)
Logged
Pages: [1]   Go Up
Print
Jump to: