harpo99999

{utility release} GUI for convertdata to automate the conversion of files in folders between BIN & TXT

{utility release} GUI for convertdata to automate the conversion of files in folders between BIN & TXT

harpos TXT BINner *v1.19.12* as at 15/3/2010

I have started coding on another little program for automated conversion of files between txt & bin formats using the actual convertdata*.exe's and the correct convertdata for the files based on the pathname eg for entrenchment mods/reference files the path should contain "entrenchment" ditto for the next expansions, and for vanilla sins it SHOULD NOT contain any of the expansions names also it will work on all drives in the computer BUT does need the sins installation in the location pointed to by the registy.

it will also be able to make TXTed reference files as easily as converting an entire mod to/from bin

to make your own reference set you first COPY the program files sins folder to another location in the computer like for example 'my documents', then delete FROM THE COPY the appdata,font & sdplugins folders and the dll and exe files in the root of the copy then run the txt binner doing the entrenchment folder first then any other expansions you have and finally the vanilla sins and for each folder note which files have FAILED conversion

a more detailed overview of the program

psudo code outline

get the conversion type

get the location to convert

determine which convertdata to use based on the location (all three expansions will be supported)

scan the location to create a list of all files

for each file in the list use the convertdata to convert each file if it is NOT the type wanted, then test to see if it was converted correctly, if not list it in the failed conversion list, if it was  then list it in the success list

end psudo code outline

note additional minor feature if you have a location you want to use as a sins reference files location and want it to be accessably with a single button then create a sinsref.txt in the same folder as the txt binner.exe and have as the first line of the file as the path to your sins reference location eg 'f:\sins reference'  note the LACK of trailing backslash the program does not want it

the new versions of the mod updater and TXT BIN GUI use the correct version of the convertdata to do the actual convesion to text/bin eg updateing mods from entrenchment 1.01 to 1.03 the mod updater converts to text with convertdata_entrenchment1.01.exe and updates the entities, then converts back to bin with convertdata_entrenchment 1.03.exe.

I suggest not using the old version files the current is 1.1

the latest version is included in the utility pack that an be downloaded from my mod updater thread

 

harpo

my new txt bin converter GUI

584,302 views 238 replies
Reply #151 Top

I have just uploaded the new version of the textbin (now version 1.3) file date 28/2/2010 now has the ability to work with folders that do NOT have the version number, and also to use the latest convertdata on the un-versioned folders

filefront link

harpo

 

Reply #152 Top

Now even easier to use for people who can't even make the simplest things operate. Thanks!!!

Reply #153 Top

I used this for diplo and entrench files and works perfect.I wanted to convert vanilla to work on research and such but it wont work.Not sure what the deal is?

Reply #154 Top

mindseye, I had used it to convert  my personal reference files to txt which I  have already uploaded in this thread

harpo

Reply #155 Top

just had an idea for an alteration to the txt bin gui.

the idea is for the program to look at each files's path to use the correct convertdata on it eg if  a person copies the entire sins folder WITH expansions to another drive and then wants to convert the entire folder as is to text without dragging the diplomacy and entrenchment folders out of the sins folder (as the current version needs as it assumes all files in the location are to be converted with the SAME convertdata which will get runtime errors from the convertdata's)

the idea would check the path of each file and use the correct convertdata based upon the path

eg sins of a solar empire/gameinfo would use the convertdata_originalsins.exe, whereas
the sins of a solar empire/entrenchment/gameinfo would use the convertdata_entrenchment.exe and
the sins of a solar empire/diplomacy/gameinfo would use the convertdata_diplomacy.exe.

the cost part of it would be that the program will be slower due to the significantly greater processing withing the gui, but would almost eliminate fail to convert errors from the convertdata's.

would this alteration help users?

harpo

Reply #156 Top

:thumbsup:  Awesome thanks man

Reply #157 Top

ok mindseye

here is the link to it on filefront and filefactory

it works as described including a test run from a usb stick with ONLY the gui's exe on it and converted a copy of the entire sins 1.19/entrenchment 1.05/diplomacy 1.01 on my q9550 oc to 3.8ghz in only 6 minutes (361 seconds) without any errors

harpo

pulled due to a bug with fallback to current convertdata's.

new version soon(tm)

harpo

 

Reply #158 Top

I found a 'little' bug involving the fallback to the current convertdata with versioned folder in the latest release so  am pulling it and hope to have a newer AND even more potent textbiner released soon that will be able to convert an ENTIRE mods- folder whether of not you have the correct convertdata version (no problem in the modding utilities pack, but could be a problem for the textbin as i am going to have it on it's own in it's rar (no added convertdata's)

harpo

 

Reply #159 Top

I have had an idea to add the type of file conversion so that the user can select all file types, or just entity,mesh,particle and/or brushes as they want along with the fallback to current (in the sins program folder) convertdata's, and I am trying to keep the utilities as simple as I can while being as powerful as possible.

harpo

 

Reply #160 Top

ok modders

here is the latest version

the NEW features are

1 prefers the versioned convertdata's but falls back to the current convertdata's in your sins folder

2 the user can CHOOSE which of the convertable file types to convert ie mesh, particle, brush & entity

3 it will also switch between the convertdata's depending upon the folder names in the path of the file (this would be of most benefit for those that just copy their entire sins folder to a different path and want to covert all the files so that they have a current reference file set without moving  the diplomacy and entrenchment folders out of the sins folder as the previous versions required)

 

the gui with essential ocx rar on fileplanet

the complete textbin gui with all released convertdata's on filefront

harpo

Reply #161 Top

Tried to convert a Mods Gameinfo/entity files to binary

it's only 2MB and around 1200 files 

converter was running for 1 hour and still didn't finish :S

 

Reply #162 Top

I really can't get this thing to work.

Here is what I tried last time:

1. I made  folders:

c:/Entrenchment 1.05/Gameinfo

2.

I put one TXT entity file in it (I picked it from latest entrenchment 1.05 reference files) 

3.

I Start the GUI, 

set conversion to bin

set conversion type to entity

brows the folder ( I made at step 1.) doubleclick on it

click on convert this folder

click on convert the folder NOW

4.

And then i get hourglass until eternity :(

 

Looking at Task Manager I can see sinstextbinner.exe using 50% CPU.

 

Am I doing something wrong?

Reply #163 Top

xwhyzed,

which version did you download?

was it the filefront or the filefactory one?

do you have sins installedon the computer used for this test?

is there or was there a executable called convertdata_entrenchment.exe in the task manager, and how much of the cpu was it using?

which file did you use in the test?

the steps you took ARE what i would suggest, and I am trying to repeat your steps on both xp32 bit and win7 64 bit.

on the 7 64bit 1 was not able to duplicate your problem with the file being CAPITALSHIP_PHASEBATTLESHIP.entity.

on the xp32 bit i used CAPITALSHIP_PHASESEIGE.entity and it also converted properly

, both computers used the convertdata_entrenchment1.05.exe, then tried re-naming the convertdata_entrenchment1.05,exe to FORCE the sins convertdata-entenchment.exe and the converting still worked perfectly on both test machines.

harpo

Reply #164 Top

Sorry for the late answer i upgraded my computer

now trying with Win 7 64 bit

 

 

Reply #165 Top

Clean windows 7 install

then installed Sins Trinity

 

Tried both versions that i downloaded from the links you posted in Reply #160

repeated the test (this time with "CapitalShip_PhaseScout.mesh")

and i have the same problem

 

application just hangs after i click on 'convert the folder NOW' button

convertdata_entrenchment.exe is not starting

 

Also tried it with converter version 1.3 (28/2/2010)

It gives me an error stating that he can't find "convertdata?entranchment1.05.exe" in the programs folder

however it is there.

Reply #166 Top

xwhyzed, the latest textbin is in the latest modding utilites in the mod updater thread in the 1.191 rar and can also use the convertdatas in the sins game folder

and I actualy test in win7 home premium 64 bit, but am planing to move to ultimate 64bit  on my next box

harpo

 

Reply #167 Top

Tnx

I tried it and it does the same :( 

The only thing I could think of that the problem might be with the language versions of Windows since mine is Hungarian.

However when I switched back to my Xp 32bit (Hungarian) just to test all of the versions and the 1.3 version seems to be working fine. I used the same file paths as with Win 7 for the tests.

 

Guess I'll just switch back to Xp when i have to convert something.

 

 

 

Reply #168 Top

damn i couldn't leave it at that and went back trying under Windows 7

I'm using Windows 7 Ultimate 64bit

all versions work if i start them in Xp Sp3 compatibility mode :grin:

 

I was stupid not to try this the first place :S

 

 

Reply #169 Top

xwhyzed, all I can say is that on my win7 64 test box, I have all of my utilities in a desktop folder with a shortcut to the actual utility on the desktop and they run just fine without any compatibility settings, admittedly I am using an english language version. as to the path to the convertdatas the versioned path is the current directory, and the unversioned is the installed sins location from the registry.

harpo

 

Reply #170 Top

I didnt have a problem converting the normal SINS gameinfo files when i tried but when i later tried to do the same with the gameinfo files from a mod it didnt work at all.
Me beeing rather ignorant when it comes to these things, anyone able to explain what i need to do to get it to work? Is there something i need to do different when it comes to the files from a mod? /shrugs.

 

Reply #171 Top

malanthor,

which mod was it that you are trying to convert?

was the mod in its correct mod folder or was it in a different location?

harpo

 

Reply #172 Top

malanthor,

which mod was it that you are trying to convert?

was the mod in its correct mod folder or was it in a different location?

harpo


Reply #173 Top

Requiem. sorry for the delay i was taking a shower and eating, meh.

Damm double posting, i must be getting senile. :D

Reply #174 Top

Star Wars:Requiem and no it was not in its normal folder i moved it like i did with the regular sins files.

Reply #175 Top

malanthor,

did you have a folder with the name of 'entrenchment'  in the path to where you wanted to convert the mod?

the text bin gui looks at the path to the folders being converted to work out which convertdata to use eg if you want to convert a mod for diplomacy to/from text and it is NOT in the normal mod folder for diplomacy then a folder in the path MUST have diplomacy in one of the folders to the mod (d:\texting\diplomacy\requiem) the program looks for diplomacy or entrenchment so that it will use the convertdata from diplomacy or entrenchment or vanilla sins

psudocode outline follows

check path to file to be converted for diplomacy, if yes use convertdata_diplomacy
check path to file to be converted for entrenchment, if yes use convertdata_entrenchment
if path does not contain diplomacy or entrenchment then use convertdata_originalsins

if the path has a version number in the same folder name as the expansion type folder then use the convertdata_*##.###.exe

 

end psudocode outline

hope this helps solve the issue

harpo