Page 1 of 2 12 LastLast
Results 1 to 50 of 92

RBFConv

  1. #1
    The 22nd Hyperspace Core Corsix's Avatar
    Join Date
    Sep 2004
    Location
    Oxford

    RBFConv

    Download link: Latest version via. Google Code
    Unzip somewhere and run rbfconv.exe from ze command prompt. [Note: Do not unzip to the same folder as SgaReader2.exe, as their Rainman2.dll files are not compatible]

    Converts an RBF file into a text file, or converts a text file into an RBF file.

    Code:
    E:\CPP\2K5\ModStudio2>rbfconv.exe
    ** Corsix's Crude RBF Convertor **
    Expected an input filename. Command format is:
    rbfconv.exe -i infile [-o outfile] [-q | -v] [-p "." | -p " "] [-u ucsfile]
      -i; file to read from, either a .rbf file or a .txt file
      -o; file to write to, either a .rbf file or a .txt file
          if not given, then output is written to the console
      -q; quiet output to console
      -v; verbose output to console
      Options for writing text files:
      -p; path seperator to use (defaults to vertical bar)
      -u; UCS file to use to comment number values
    
    E:\CPP\2K5\ModStudio2>rbfconv.exe -i sm_scout_marine.rbf -u DOW2.ucs -o scouts.txt -v
    ** Corsix's Crude RBF Convertor **
    Done
    
    E:\CPP\2K5\ModStudio2>rbfconv.exe -i scouts.txt -o sm_scout_marine.rbf -v
    ** Corsix's Crude RBF Convertor **
    RBF stats:
      47 tables
      127 keys
      173 data items via 169 indicies
      48 strings over 1553 bytes
      277 bytes saved by caching
    Done

    sample text file

    Last edited by Corsix; 28th Feb 09 at 7:47 AM.

  2. #2
    I friggin LOVE u Corsix u beast <3 thank you

  3. #3
    ZeroGDarius
    Guest
    OMG your the awsome finally some more robust unit moddifications

  4. #4
    Certifiably insane Kresjah's Avatar
    Join Date
    Nov 2004
    Location
    ModTools\DataGeneric
    Seems you beat us to it, oh you we believed were not going to make tools.

    Guess this means that we'll slow down development on our tool. Whilst I'd prefer the format our tool would work with, this is absolutely better than spending a bunch of time on my tool when I can go mod the game now.
    Das Bavarian Franch Reich
    13 kilograms og Belgian hair
    19 incidents of prolapsus from France
    66 liters of unaware pancreas-hatted English priests
    1/2 soothing-voiced Norwegian baboon

  5. General Discussions Senior Member Modding Senior Member Dawn of War Senior Member  #5
    Why shout... Octopus Rex's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Sweeeeeeet.
    "Life is not full of successes, it is full of failures from which we learn" - Tony Benn
    Octopus Blog (14.02.10)DOW2 GridKeys
    DOW1 Modding Tutorial ListDOW2 Tactical Primer

  6. #6
    Corsix..I..marry me.

  7. #7

  8. #8
    <insert Mad Spark laughter here!> Thanks again, Corsix! or should that be ?

  9. #9
    akab
    Guest
    Ethernal Glory to Corsix

    Thank's from all of us

    free !!!

  10. #10
    Deathtrooper
    Guest


    Let the modding begin whoohoo! Great job!
    Last edited by Deathtrooper; 27th Feb 09 at 2:33 PM.

  11. #11
    guiyunzi
    Guest

  12. #12
    Chaosmonkey1979
    Guest

    YOU ARE A GENIUS

    YOU ARE THE BEST !!!
    PS - Congrats on the Oxford place. You really are getting around a lot aren't you - and deservedly so. Give me a buzz when you get there and I can tell you all about the place. But now I'm going to go and edit my heart out!

  13. #13
    Deathtrooper
    Guest
    Where and what exactly is this DOW2.ucs!!

    NVM guys I got it!
    Last edited by Deathtrooper; 27th Feb 09 at 2:45 PM.

  14. #14
    BarbaricGoose
    Guest
    When I try to convert sm_scout_marine.rbf to a .txt file, I get this message:
    Code:
    .\ucs.cpp:45 - Unable to load UCS file "DOW2.ucs"
    .\file.cpp.540 - Unable to open 'DOW2.ucs"
    But I do get a .txt document labeled "Scouts.txt" with nothing in it.

    Excuse me if there's a readme or something in the file, I can't see it, because I can't open rbfconv.exe. I'm doing this through the command-shell. It opens, then closes a split second after popping up. I've no anti-virus or spyware programs running, and I turned off DEP. I seem to be SoL when it comes to running anything mod-related other than modstudios or SGA reader.

    Edit: NVM the ucs thing.. Figured it out.

    Also! I was able to do something, ahhhhh!
    Last edited by BarbaricGoose; 27th Feb 09 at 3:03 PM.

  15. #15
    Member Chaos Godstone's Avatar
    Join Date
    Feb 2009
    Location
    Queensbury, West Yorkshire, England, Holy Terra.
    C:\Program Files\Steam\SteamApps\common\dawn of war 2\GameAssets\Locale\English\DOW2.ucs

    I would think the file ending is something like universal command string, but don't quote me on that, however, it is openable by Microsoft Word, Wordpad and of course Notepad. It contains the localized strings for the game.
    For example:

    1 %1X%.%2Y%

    280 enable

    300 Error

    1081 Dawn of War II

    1250 You lost.

    1251 You won.

    920150 Flank the Orks

    920151 Send Tarkus and the Heavy Bolter Specialist along the waypoints to flank the Orks guarding the ruins. Keep your other troops under cover.

    etc,etc

    -Corsix
    As another as pointed out, we indeed are not worthy, or at least some of us...
    ...Praise the day Thudmeizer releases Dawn of Skirmish DOW II.
    Last edited by Chaos Godstone; 27th Feb 09 at 2:59 PM.

  16. #16
    The 22nd Hyperspace Core Corsix's Avatar
    Join Date
    Sep 2004
    Location
    Oxford
    Quote Originally Posted by BarbaricGoose
    I can't see it, because I can't open rbfconv.exe. I'm doing this through the command-shell. It opens, then closes a split second after popping up.
    Then you're not doing it through the command line, as it won't pop up if you're doing it through the command line.

    Quote Originally Posted by BarbaricGoose
    When I try to convert sm_scout_marine.rbf to a .txt file, I get this message:
    Code:
    .\ucs.cpp:45 - Unable to load UCS file "DOW2.ucs"
    .\file.cpp.540 - Unable to open 'DOW2.ucs"
    But I do get a .txt document labeled "Scouts.txt" with nothing in it.
    That would be because it opens the input and output files, and then goes to open the UCS file you told it to open (protip: the -u argument is optional, you don't have to tell it to load a UCS file), can't find it, so it stops.

  17. #17
    akab
    Guest
    Ok... is quite simple.

    the dow2.ucs file is located in "GameAssets\Locale\English" folder
    you can copy and put in the folderwhere you run rbfconv

  18. #18
    Member Netrogor's Avatar
    Join Date
    Feb 2009
    Location
    Michigan
    Great tool Corsix. This will give DOW2 modding one hell of a stimulus. Thanks. ^^
    Quote Originally Posted by Bertrand Russel
    Many people would sooner die than think; in fact, they do so.

  19. #19
    Chaosmonkey1979
    Guest
    Can't get it to work - eg. used sga reader to extract tarkus' file.
    Then ran the following in a batch file

    rbfconv.exe -i sm_tactical_marine_tarkus.rbf -u DOW2.ucs -o sm_tactical_marine_tarkus.txt -v
    ren sm_tactical_marine_tarkus.rbf sm_tactical_marine_tarkus_old.rbf
    rbfconv.exe -i sm_tactical_marine_tarkus.txt -u DOW2.ucs -o sm_tactical_marine_tarkus.rbf -v

    Now you should expect the old file and the new to be about the same size - but no there is a difference of 1k in a 14k file and the output when placed back in its origanal place causes a crash. What did I miss?

  20. #20
    Now that I'd edited some rbf files, can I just stick them in a mod folder, or do I have to put them back in an SGA file?

  21. #21
    The 22nd Hyperspace Core Corsix's Avatar
    Join Date
    Sep 2004
    Location
    Oxford
    Quote Originally Posted by Chaosmonkey1979
    Now you should expect the old file and the new to be about the same size - but no there is a difference of 1k in a 14k file
    The difference (in bytes) between Relic's file and the output of rbfconv should be equal to the "xyz bytes saved by caching" line (only visible when the -v flag is used).

  22. #22
    Chaosmonkey1979
    Guest
    Ahh, thanks - that explains it.
    Last edited by Chaosmonkey1979; 27th Feb 09 at 5:14 PM.

  23. #23
    I FREAKING LOVE CORSIX! Thanks guys!!
    I guess day 1 DLC was too casual for EA, so let's start doing 8-month-early DLC! - Shuma
    Eagerly awaiting DoW3 with mod tools. You hear me Relic?!


  24. #24
    Rubulisk
    Guest
    Alright this is going to sound dumb but I ran into the same problem that barbaricGoose did but being completely ignorant about stuff like this I am not sure what I did wrong.

    If this has already been answered I am sorry but I didn't understand the format in which it was answered.

  25. #25
    Member jaylo138's Avatar
    Join Date
    Feb 2009
    Location
    I'm an Englishman!
    You are a gentleman Corsix! I've just made a 4 man dev squad in the campaign with the 3 marines having a heavy bolter, missile launcher & plasma cannon.


  26. #26
    Lol jaylo, that's one overpowered squad you got there xD

  27. #27
    TheEndlessGrey
    Guest
    To make using this a little easier, I've written a quick windows form application that will call rbfconv.exe with the appropriate arguments, based on the files you select from a standard open file dialog window. Download link is at the bottom of this post, and it should be placed in the same directory as rbfconv.exe (as should any files you want to convert). I'll be making it more flexible tonight and over the weekend, particularly in terms of file paths, but here it is for now.

    So as to not confuse things in this thread, new thread for the GUI helper here.

    Update 1:
    Toggle option for using DOW2.ucs
    Toggle option to automatically open rbf->txt results in notepad
    Toggle option to automatically open rbf->txt results in console

    Update 2:
    When "use console" option is enabled, txt->rbf verbose output is now supported
    UCS option now functions with console output of rbf->txt conversions (previously only worked with text files)
    Options file saves settings between sessions

    And I think that wraps up the last of the basic features, and corrects most of the things I overlooked initially. There are several intermediate steps before the next feature I'm planning will be ready, so that's probably it for today.
    Last edited by TheEndlessGrey; 28th Feb 09 at 4:27 AM.

  28. #28
    Rubulisk
    Guest
    Maybe I am missing something here but I just did a search for .rbf files on my computer and it doesn't find any.
    I also can not find any scout_marine files at all(except relating to the original DoW which is still currently installed).

    Am I supposed to be creating all these files or what?

  29. #29
    Member jaylo138's Avatar
    Join Date
    Feb 2009
    Location
    I'm an Englishman!
    Quote Originally Posted by Xaero
    Lol jaylo, that's one overpowered squad you got there xD

    They're the most basic missile launcher & plasma cannon so it should'nt be too overpowered

  30. #30
    TheEndlessGrey
    Guest
    Quote Originally Posted by Rubulisk
    Maybe I am missing something here but I just did a search for .rbf files on my computer and it doesn't find any.
    I also can not find any scout_marine files at all(except relating to the original DoW which is still currently installed).

    Am I supposed to be creating all these files or what?
    http://forums.relicnews.com/showthread.php?t=215443

    Download another of Corsix's tools, use it to extract the .rbf's

  31. #31
    Chaosmonkey1979
    Guest
    When I push convert I get this error

    Errror


  32. #32
    Deathtrooper
    Guest
    You get that error because u are not running the program in the same directory that has DOW2.ucs! Just make a folder with both in it and the edit away!

    This makes it so much easier to edit things! Great work TheEndlessGrey

  33. #33
    TheEndlessGrey
    Guest
    Quote Originally Posted by Chaosmonkey1979
    When I push convert I get this error
    Yeah sorry about that, I use the ucs option so I included that by default for my first version of the program. I've added some options so it won't always use the -u DOW2.ucs argument anymore. Also, you can now get .rbf output to open in the console window and/or in notepad automatically. Link will be updated in my previous post as soon as I upload the new version.

  34. #34
    Member Thoragoros's Avatar
    Join Date
    Aug 2006
    Location
    Listening to the souls of the fallen.
    Corsix to the rescue! Time to begin the modding!
    Go ahead, be gourmet, I DARE YOU!
    http://livingthegourmet.blogspot.com/
    Some do, some don't. Which are you? Pick a side.

  35. #35
    Chaosmonkey1979
    Guest
    No I already had my dow2.ucs in the same directory and I still get this error. PS - using windows XP

  36. #36
    TheEndlessGrey
    Guest
    You probably need the .NET 3.5 framework, from Microsoft here.

  37. #37
    Works wonderfully, don't know if anyone else is getting this little quirk as well but I'll throw it out there, after editing squads using it, on the wargear screen it messes a little with the use by names, everyone can still use items fine, might just be something to do with adding extra men.

    Anyhow works beautifully well done and props Corsix

  38. #38
    Deathtrooper
    Guest
    Link is dead!

    By any chance did anyone get to download version 2 of TheEndlessGreys program?

    @Chaos Put the file u want to convert in the same directory too! Sorry about that!

  39. #39
    TheEndlessGrey
    Guest
    My link is dead? I just tried it and it worked, but I was having trouble with the host earlier so maybe they're having issues tonight.

  40. #40
    hrm I've been having bit of an issue with it. after rbfconv.exe finishes (no editing just converting to txt and the converting back to rbf) DOW2 loads the first campaign...and freezes

  41. #41
    Chaosmonkey1979
    Guest
    Problem was only having .net framework 2.0 installed. Working nicely now Incidentally just for fun this is the batch file I had made to automate things.

    Crude - but working batch file


  42. #42
    Deathtrooper
    Guest
    Yeah the links working again! It worked b4, but mediafire gave me an error when trying to download it!

  43. #43
    A little more specifics for the error
    Code:
    E:\Workspace\wargearmod\rbfconv>rbfconv.exe -i sm_bolt_pistol_pistol_of_terra.rbf -o sm_bolt_pistol_pistol_of_terra.txt -u DOW2.ucs -v
    ** Corsix's Crude RBF Convertor **
    Done
    
    E:\Workspace\wargearmod\rbfconv>rbfconv.exe -i sm_bolt_pistol_pistol_of_terra.txt -o sm_bolt_pistol_pistol_of_terra.rbf -u DOW2.ucs -v
    ** Corsix's Crude RBF Convertor **
    RBF stats:
      53 tables
      161 keys
      186 data items via 199 indicies
      24 strings over 497 bytes
      257 bytes saved by caching
    Done
    doing this on Data\simulation\attrib\weapons\weapon\campaign\playable\race_marine\sm_bolt_pistol_pistol_of_terra.rbf
    (not in place, copied to the directory and copied back after converted)

    When loaded into DOW2, Started New Campaign, freezes right where David Thule would start his speech (after the movie after the loading screen)

  44. #44
    The 22nd Hyperspace Core Corsix's Avatar
    Join Date
    Sep 2004
    Location
    Oxford
    Updated tool, adds new command line options:
    -L (treat infile as a file containing a list of input files, one per line)
    -U (Tweak behaviour of -u by setting the threshold above which integers are treated as UCS references, default is 100)
    -s (Disable sorting of tables when writing txt files - use the order of fields from the rbf file)
    -c (Disable caching when writing rbf files - faster to do, but generates larger files)

    Also, when -o is not given, it writes to the the input file but with .txt swapped for .rbf (and vice versa) rather than writing to the console.

  45. #45
    Interesting new update there Corsix... Am I to assume that -L function allows a file that reads like a list of locations of files for a batch type conversion from anywhere you want? Or still only from the same directory?

  46. #46
    The 22nd Hyperspace Core Corsix's Avatar
    Join Date
    Sep 2004
    Location
    Oxford
    As with normal infiles, the files in a list file can either be paths relative to the current directory, or absolute (complete / full) paths.

  47. #47
    DCB
    Guest
    Hrmm....getting the following error with the new version:

    E:\Dawn of War II\-=MODS=-\Corsix's RBFConv>rbfconv -i tuning_info.txt
    ** Corsix's Crude RBF Convertor **
    Converting text to RBF...
    Fatal exception:
    .\rbf_attrib.cpp:508 - Cannot setTable into a non-existant table

    E:\Dawn of War II\-=MODS=-\Corsix's RBFConv>rbfconv -i sm_tactical_marine_tarkus
    .txt
    ** Corsix's Crude RBF Convertor **
    Converting text to RBF...
    Fatal exception:
    .\rbf_attrib.cpp:508 - Cannot setTable into a non-existant table

  48. #48
    The 22nd Hyperspace Core Corsix's Avatar
    Join Date
    Sep 2004
    Location
    Oxford
    whoops, forgot about that change, gimme a min

  49. #49
    I've got a question. I've been editing the gameattrib.sga and putting the new modded files in GameAssets\Data. Now I'm messing with the gamedefault.sga and was wondering if the files for that also go into the GameAssets\Data folder?

  50. #50
    guiyunzi
    Guest
    me too, get the fatal error:
    ** Corsix's Crude RBF Convertor **
    Converting text to RBF...
    Fatal exception:
    .\rbf_attrib.cpp:508 - Cannot setTable into a non-existant table

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •