.option Creator

Releasing the source files for your mod or map? Post em' here. (Applies to both SWBF1 & SWBF2)

Moderator: Moderators

User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

.option Creator

Post by ANDEWEGET »

Im learning some basic programming right now and needed something which isnt too complex and only uses textfiles, so I decided to write a small program which lets you create .tga.option files for multiple .tga's. You can load them all into the program, then choose the parameters you want to use and let the program do the rest. Not really that usefull unless you create a lot of new textures or want to, for example, have only 1 Mip map level on all your map's textures.

Image

Even though it might not be of much use, I still want to make it right and for that Id need some questions answered:
The documentation says that -8bit is only for the PS2, I remember someone saying it works for PC, too. Does anybody know if it does? If -8bit works, does -32bit work, too?
Do parameters like -bordercolor or -borderalpha get used at all? Is it worth including them?
Do -format and -forceformat make any difference ingame?

Comments?

EDIT: This might fit better into SWBF2 Modding...or does it?


EDIT2:
Version 0.99 changes:
  • It now does .msh.option, too(needs a bit more work though).
  • Fixed bug when selecting a file which path contains spaces
Download:
http://www.gamefront.com/files/20413626 ... r_v0_99.7z
32bit: https://sites.google.com/site/andescp/m ... ects=0&d=1

It doesnt seem to have too many bugs/errors(just 1 reported ;)), so Ill add this to my release thread and will update that thread with updates after 1.0 or so.
Last edited by ANDEWEGET on Tue Feb 07, 2012 9:25 am, edited 1 time in total.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: .option Creator

Post by DarthD.U.C.K. »

that looks really cool!
as far as i know the 8bits etc. values have no effect on the pc. does the "?" button open something like a documentation?
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: .option Creator

Post by ANDEWEGET »

Thanks for the info and yes the ? button opens a window with short descriptions of each command.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: .option Creator

Post by THEWULFMAN »

DarthD.U.C.K. wrote:that looks really cool!
as far as i know the 8bits etc. values have no effect on the pc. does the "?" button open something like a documentation?

I have tried out 8bit and 32bit, and the only difference I saw was the texture with a 32bit line, was more pixelly, and it looked crappy.


Anyway, this looks really helpfull, and a time saver. :)
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: .option Creator

Post by acryptozoo »

ooooo.... pretty cool
Lephenix

Re: .option Creator

Post by Lephenix »

You are begining, another skill to add to your others :P .
[Padawan]Helkaan
Sith
Sith
Posts: 1444
Joined: Mon Aug 16, 2010 3:01 pm
Projects :: Dunno. Maybe making something
Games I'm Playing :: Some.

Re: .option Creator

Post by [Padawan]Helkaan »

I can't believe this was written by a beginner programmer :P :thumbs:
What language did you use for making it?
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: .option Creator

Post by ANDEWEGET »

Im using Python, its very easy to understand and mostly straight forward, although its not as fast as C++ or similar. Thanks for the nice comments BTW!
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: .option Creator

Post by Cerfon Rournes »

Great concept ANDE! Can't wait for the release. :shock:
User avatar
naru1305
Major General
Major General
Posts: 657
Joined: Fri Jan 07, 2011 4:57 pm
Games I'm Playing :: SWBF2
Location: Germany
Contact:

Re: .option Creator

Post by naru1305 »

Cerfon Rournes wrote:Great concept ANDE! Can't wait for the release. :shock:
i agree!
realy nice, this will be helpful for me. thx so much :bowdown:
and you are a beginner? i´ve started with programming too, but imo it is quite difficult(C++), so i must say: you are a realy awesome modder.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: .option Creator

Post by ANDEWEGET »

So, did some more work on this:
Changes include:
  • Added scrollbars
  • Added changeable output directory(stored locally, 'recovered' on every start)
  • Added support for multiple file selection in the Add Files window
  • Added output dir change command and output dir reset(to .exe's folder) in the Config menu
  • Deleted the Help button from the main window, it still exists in the Help menu
  • Added an info label at the bottom
  • Did some changes to fonts/button size
:D Ive decided to not include these -bordercolor commands for now. -8bit will stay for now, it doesnt crash anything, that means it isnt bad, even though it might not do anything.
Image
Anything you(yes, you) want to see in this program? Post it!

Ill maybe build an (hopefully)externally usable .exe later, anyone wants to test? Id need
XP, 32bit
XP, 64bit
Vista, 32bit
Vista, 64bit
Win7, 32bit
(Win7, 64bit; my system)
testers(multiple testers for every system is good).
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: .option Creator

Post by skelltor »

I only see .tga options does it do .msh.options?
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: .option Creator

Post by ANDEWEGET »

No, it doesnt do .msh.option right now. If this works out well I might make one for .msh, too. I have to test, if I can get it to work in only one .exe or if I have to either create two .exe's or rewrite the complete code in another sctructure.
User avatar
commander501stappo
Jedi
Jedi
Posts: 1016
Joined: Tue Sep 28, 2010 8:13 am
Games I'm Playing :: Skyrim BF4 KSP CIV V
xbox live or psn: DarthAppo
Location: In a galaxy very, very close by...

Re: .option Creator

Post by commander501stappo »

ANDEWEGET wrote:XP, 32bit
Count me in :)
User avatar
naru1305
Major General
Major General
Posts: 657
Joined: Fri Jan 07, 2011 4:57 pm
Games I'm Playing :: SWBF2
Location: Germany
Contact:

Re: .option Creator

Post by naru1305 »

ANDEWEGET wrote:anyone wants to test? Id need
XP, 32bit
Vista, 32bit
can i please test it?
Lephenix

Re: .option Creator

Post by Lephenix »

On your screen , it is written Choose Mip Level , isn't it Choose Map Level :P ? It looks good :thumbs: .
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: .option Creator

Post by THEWULFMAN »

Lephenix wrote:On your screen , it is written Choose Mip Level , isn't it Choose Map Level :P ? It looks good :thumbs: .

Actually no, not necessarily.
Mipmap
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: .option Creator

Post by ANDEWEGET »

For everyone who'd like to test:
RAR
ZIP
If you experience a missing .dll or any sort of .dll error, run vcredist_x86.exe which is included in the archive. If you still experience .dll errors, please post them with a screenshot of the error.
If you run into any problems which arent .dll errors, look into the .log file(it should be named something with log, cant remember if its something.log or log in the name itself) and post the error here. Please post your OS, too.
Last edited by ANDEWEGET on Wed May 25, 2011 10:10 am, edited 1 time in total.
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: .option Creator

Post by Cerfon Rournes »

I'm having some Winzip extract errors, could you post this in a compressed .zip folder?
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: .option Creator

Post by ANDEWEGET »

Uploaded a .zip and a .rar archive, those should work now:
RAR
ZIP
Post Reply