Author Topic: how to edit ibx?  (Read 5120 times)

0 Members and 1 Guest are viewing this topic.

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
The game automatically creates the IBX file. Just run a mission once, and the IBX file will be made. Why would you need an additional program to do this?

The file will be in the FS folder, so you can add them to your VP's already...
Freelance Modeler | Amateur Artist

 
Yes I know the FS2 makes them, but would be faster just to run it through a program and then generate the vp.
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
A seperate program would be a pain in the arse to make and keep updated.

A dev command line prompt that simply ran through all the models, generated the IBXs and then exited (Like the export SEXPs and Export scripting command lines) might be nice though. No idea how simple it would be to do though. If it's trivial it might be worth someone more familiar with the model code making it. But it's not worth someone spending more than a few minutes to make really.

Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Ahhh that sounds like a better idea.

  • Heres how my folder is setup and if I want to fix a bug, or update something...

    scooby
         -data
         -modeldata
              -hud
              -cache
              -maps
              -models

  • Simply run vpview, select everything and extract to default directory (which is scooby\modeldata)
  • I have a simple batch file that moves everything to appropriate sub folder

    movetoLocation.bat

    cd modeldata
    move *.ibx cache
    move *.dds maps
    move *.ani hud
    move *.pof models
    move *.tbm tables

  • After that if I just want to edit the tbm file

    EditTable.bat

    cd modeldata\tables
    for %%A in (*.tbm) do notepad %%A

  • If I want to add/replace anything simple add/replace them :)  This is were the ibx creater would be used
  • Delete the old vp (or rename it) [i think vpmake gets confused if the vp file already exists and doesn't replace rather it adds to it]
  • once everythings done simply run vpmake
    use d:\freespace2\scooby\modeldata  (replace with whatever your setup is)
  • Vola! a VP containing just the modal data, no need to use vpmage  :)
  • When everythings done

    cleanup.bat

    cd modeldata
    cd cache
    del *.ibx
    cd ..
    cd hud
    del *.ani
    cd ..
    cd maps
    del *.dds
    cd ..
    cd models
    del *.pof
    cd ..
    cd tables
    del *.tbm




BTW: the {code}{/code} is broken. It breaks the hierachy stack depth i.e. {li}{code}my code{/code}{/li} turns into: my code{/li}
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline taylor

  • Super SCP/Linux Guru
  • 212
    • http://www.icculus.org/~taylor
A dev command line prompt that simply ran through all the models, generated the IBXs and then exited (Like the export SEXPs and Export scripting command lines) might be nice though. No idea how simple it would be to do though. If it's trivial it might be worth someone more familiar with the model code making it. But it's not worth someone spending more than a few minutes to make really.
It already exists, though it may not be obvious.  Using the -pofspew cmdline option will load all POFs, dump info on them, and then exit.  As a process of this, all models which don't already have an IBX available will have one generated.

So it's quite easy to generate IBX files, and you don't even need to have that POF listed in a tbl or anything.  It simply looks for all .pof files than it can find and tries to load them.  All you have to do is (if you wanted to do this on a regular basis) create a "ibxgen" mod, which you would have data/models, and data/cache under.  Put POFs in the appropriate place, then run the game with -pofspew and -mod ibxgen.  It will generate all of your IBX files for you and dump them in ibxgen/data/cache.  Assuming that you would always keep IBX files for all other POFs available, then ibxgen/data/cache should only have IBX files for the models which you had in ibxgen/data/models.  Then you just have to pack them in a VP.

That's what I do anyway.  :)

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Can't believe I forgot about pofspew :) I blame it being early on a Sunday morning :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]