Recent changes RSS feed

 

RBFConv

RBFConv is an unofficial third party command line tool used to convert RBF files to text and back to allow editing of important game data or "attributes". It was created by Corsix and first released on February 27th, 2009. As of July 7th, 2009 it remains the only RBF editing tool available. RBFConv and associated libraries are open source and available on Google Code (see Recommended Links). The source code is available for use under the liberal MIT license.

Using RBFConv

RBFConv is a command line application. If you run it by double clicking the executable you will simply get a black window pop up and it will do nothing. You will need to run the application from the command prompt or use shortcuts or a batch file.

RBFConv usage:

rbfconv -i infile [-L | -o outfile] [-q | -v] [-p ”.” | -p ” ”] [-u ucsfile] [-U threshold] [-s] [-R | -c]

Example:

X:\tools\rbfconv -i X:\dow2attrib\attributes.rbf -o X:\dow2attrib\MYattributes.txt -v -p ” ” -u X:\dow2\DOW2.ucs -U 100 -s -R

Valid Command Line Parameters:

-i

The input file. Either a .rbf or a .txt. The output should be the opposite file type. If ”-” is used instead then it uses stdin as input text file or input list file (see below).

-o

The ouput file. Either a .rbf or a .txt. The output should be the opposite file type. If not given then it uses the input name with .txt swapped for .rbf (and vice versa).

-L

Infile is a file containing a list of input files (one per line).

-q

Quiet output to console. Opposite of verbose mode.

-v

Verbose output to console. Opposite of quiet mode.

-p

Path separator to use (defaults to vertical bar “|”). An empty space can be used to create cleaner looking files.

-u

UCS file to use to comment number values. Utilizes -U (see below) to lookup integer values and add a string comment. Only used when reading RBF files.

-U

Integers above which to interpret as UCS references (defaults to 100). Only used when reading RBF files.

Command line parameters are case sensitive. There is a distinct difference between ”-u” and ”-U”.

-s

Disable sorting of values (use order from RBF file). Only used when reading RBF files.

-c

Disable caching of data (faster, but makes larger file). Only used when writing RBF files.

-R

Write in Relic style (takes longer, also forces -c). Only used when writing RBF files.

If you do not run RBFConv from the command prompt you may miss errors. Any text files with syntax error will be output as 0kb RBF files that will crash the game if used.

Example Text Output

fast_move.txt (1.3.2)

-- Made by Corsix Crude RBF Convertor
{
| move_type_bag: {
| | chance_to_leapfrog_to_cover: 0f;
| | chance_to_leapfrog_to_open_ground: 0f;
| | chance_to_soft_select_cover: 0f;
| | leapfrog_cover_search_radius: 5f;
| | max_elements_leapfrogging_simultaneously: 4;
| | no_leapfrog_within_radius_of_target: 8f;
| | pace_to_leapfrog: "veryfast";
| | percent_to_pull_toward_cover_on_soft_selection: 0.7f;
| | secs_between_leapfrogs_max: 2.5f;
| | secs_between_leapfrogs_min: 1.5f;
| | secs_to_delay_leapfrog_start_max: 2f;
| | secs_to_delay_leapfrog_start_min: 1f;
| | secs_to_hold_at_move_start_max: 0.75f;
| | secs_to_hold_at_move_start_min: 0.125f;
| | secs_to_hold_on_cover_spot_max: 4f;
| | secs_to_hold_on_cover_spot_min: 2f;
| | secs_to_leapfrog_after_attack: 3f;
| | speed_cap_to_catchup: 7f;
| | use_leapfrog_move_only_while_attacked: false;
| | time_to_blend_from_virtual_to_real_leader: 1f;
| | safety_multiplier_for_pathfinding_weights: 0f;
| | speed_multiplier_for_pathfinding_weights: 1f;
| | actions_performed_on_move: {
| | };
| | actions_performed_on_set: {
| | };
| };
};

Recommended Links

 
dow2/tools/rbfconv.txt · Last modified: 2009/07/13 19:41 by clonesa