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,093 views 238 replies
Reply #76 Top

josh, the file registration was for the convertdata issues to do with the latest convertdatas that came with 1.18+/1.04+, and I did have the email on file and sent it. I think it will work for you, but the code for finding the files and writing the manifests did not change, so I do not know why you would have this problem.

harpo

 

Reply #77 Top

I cant quite seem to make the Diplomacy version work. I am trying to convert the new release of Distant Stars into an editable format, but it isnt working, i get the following message:

 

convertdata not found for the expansion chosen. looked for

convertdata?diplomacy.5.exe here, and did not find it. please copy it into this

location

 

I did download your new converter, and i have the ConvertData_Diplomacy.85 copied into the GameInfo folder, so why doesnt it work?

Reply #78 Top

does the folder that contains the mod's folder have the 'diplomacy v0.85' at the end of the name?, if not then that is the problem.

and the convertdata's are looked for in the SAME folder as the textbin gui, not the mods folders, as do all of my utilities that need the convertdatas.

harpo

 

Reply #79 Top

I am uploading a diplomacy 0.9 compatible which is the same as the previous version, but with the 'ConvertData_Diplomacy.exe' from the 0.90 added with the name of 'ConvertData_Diplomacy.9.exe'. I will have it on filefront when uploaded

harpo

 

Reply #80 Top

i dont understand your question, i have the mod in the folders in this order:

Mods-Diplomacy v0.85 > DS Diplomacy Alpha 0.5 > GameInfo

I was trying to run the application on the GameInfo folder... is that the wrong folder to run it on?

Reply #81 Top

rivia, the textbin WILL work on the ENTIRE mod if you select it, ie Mods-diplomacy v0.85/DS diplomacy alpha 0.5.

you do not need to select a folder inside the mod to convert as the utility knows what file types the convertdata's can handle and looks through the subfolders and converts all the files that can be converted. it can even convert all the mods in a mods folder, it just takes a bit more time to do so.

harpo

 

Reply #82 Top

I just want to be able to up the capital ship limit and increase the number of strikecraft. Looking at all this that I have to go through, I think I'd rather just edit the starting fleet population, considering I have no idea what this even means in the first place.

Reply #83 Top

magnasonic,

to increase the strikecraft you NEED to edit the capitalship and frigateRACEcarrier.entity's.

to increase the number of capships beyond the 16 max you have to edit the 'RESEARCHSUBJECT_MAXCAPITALSHIPSrace#.entity' files especially #7.

to alter these you need the game files in text form so that you CAN alter them and understand what is being changed

harpo

 

Reply #85 Top

I have just uploaded the latest updated textbin gui the textbin gui had an issue when selecting a folder inside the mod folders and looking for the wrong convertdata. extra checking and testing has been done to prove it to work as it should

 the filefront link

the dropbox link

harpo

 

Reply #86 Top

I think I just fell in love, I've been looking a for a while to find a way to convert the Diplomacy data and now I can. Once I figured out the way to get the program to use the proper data it was easy.

I had to look around on here for how to do it because I originally thought the error message saying that it couldn't find proper convertdata here and to copy it into this location meant the folder I was trying to convert not the folder the program was contained in.

But it's all good now, thank you for the program.

Reply #87 Top

I keep trying to create a reference folder, but the textbinnner keeps giving me the same message: "convertdata not found for the expansion chosen. looked for convertdata?entrenchment0.exe here, and did not find it. please copy it into this location."

Now, I have put all the ConvertData_Entrenchment#.exe in the entrenchment part of the reference, but it still doesn't want to run it. Am I doing something wrong?

Reply #88 Top

the convertdata's should be in the SAME folder as the textbin gui, but you do not have the version number for the sins/expansion in the folder name for your reference files eg sins 1.181, entrenchment 1.041, diplomacy 0.95.

hope this helps

harpo

 

Reply #90 Top

Firstly I"d like to say thank you harpo for creating a great utility. This tool really makes life alot easier. I have been using this recently alot with the diplomacy betas.

Now that Dip 1.0 has been released, I was hoping to continue modding Diplomacy, but the convertdata for it dosn't seem capable of converting the Player entity files. And they are really crucial to what I was doing.

Do you now of anything that can be done?  Or will we have to wait until the Dev's release a convertdata that will do the player entity files.

Reply #91 Top

superzero0, from MY testing the convertdata_diplomacy.exe DOES convert all the diplomacy files from the 1.0 release.the testing was with a COPY of the convertdata_diplomacy.exe renamed to convertdata_diplomacy1.exe in the SAME folder as my text bin gui and other utilities, and the path to my 1.00 diplomacy reference files is
"F:\sins\reference\Diplomacy 1.00" note the SPACE and the diplomacy version number are underlined RED text.

if you want to pm me with an email that can recieve a 61kb rar of the ENTIRE diplomacy 1.00 gameinfo folder, I will email it to you.

harpo

+1 Loading…
Reply #92 Top

Thank you very much, that worked. I had it set up exactly as you have except for the space & I had re-named the convertdata with a 1.0 instead of just 1. I don't know how that makes the difference though. For the last beta I just re-named the diplomacy folder to Diplomacy0 and the convertdata to ConvertData_Diplomacy0 and it worked. I thought you just had to have them both re-named with the same name. It also seems strange that it will convert all the other files other than the player entity files by just having the same names.

Any way thanks again.

Reply #93 Top

Thank you very much for this utility Harpo. I had to change the name of the Entrenchment 1.041.EXE to make it work for v1.05 of Entrenchment, but when I did the utility correctly changed my files so I was finally able to finish my starbase mod.:D  Without your utility it would have taken me much time waiting for the developers to refresh their Reference Data folder before I could have completed my mod. +1 karma for you!:thumbsup:

Teun-A-Roonius

Reply #94 Top

teunaroonius, the ONLY change that I have made from the 1.181-d95 contained version is adding the latest convertdata's with the version number at the end, AND editing the targetsinsver.txt with the latest versions. I do not re-use the convertdata's as I had found the old convertdata's would only convert correctly the exact version they were for, and that they would fail to convert the files from other versions. I would suggest reternin te convertdata_entrenhment that you re-name back to the 1.041 and copying the convertdata_entrenchment.exe from the sins folder and adding the current sins version number before the .exe (eg convertdata_entrenchment1.11.exe) in future.

harpo

 

Reply #95 Top

Is anyone else having an issue when converting the AbilitySpawnSquad with 1.05? I assume this is because of the new paramater to spawn multiple squads per level, which is sadly the main reason I converted the new Gameinfo files in the first place. :(

Reply #96 Top

here it is

TXT
entityType "Ability"
buffInstantActionType "CreateSquad"
instantActionTriggerType "AlwaysPerform"
squadType "SquadPhaseBomber"
numSquads
    Level:0 1.000000
    Level:1 2.000000
    Level:2 3.000000
expiryTime
    Level:0 120.000000
    Level:1 120.000000
    Level:2 120.000000
spawnSquadSoundID "EFFECT_DEPLOYCOMBATTURRET"
needsToFaceTarget FALSE
canCollideWithTarget TRUE
moveThruTarget FALSE
isUltimateAbility FALSE
maxNumLevels 3
levelSourceType "Intrinsic"
minExperienceLevelRequired
    Level:0 0.000000
    Level:1 2.000000
    Level:2 4.000000
aiUseTime "OnlyInCombat"
aiUseTargetCondition "Any"
isAutoCastAvailable TRUE
isAutoCastOnByDefault TRUE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget TRUE
onlyAutoCastWhenDamageTakenExceedsPerc 0.000000
useCostType "AntiMatter"
antiMatterCost
    Level:0 50.000000
    Level:1 50.000000
    Level:2 50.000000
cooldownTime
    Level:0 35.000000
    Level:1 35.000000
    Level:2 35.000000
orderAcknowledgementType "ONGENERALORDERISSUED"
researchPrerequisites
    NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_SPAWNSQUAD_NAME"
descStringID "IDS_ABILITY_SPAWNSQUAD_DESCRIPTION"
hudIcon "HUDICON_ABILITY_SPAWNSQUAD"
smallHudIcon "HUDICON_ABILITY_SPAWNSQUAD"
infoCardIcon ""

hope this helps

harpo

+1 Loading…
Reply #97 Top

Quoting harpo99999, reply 96

hope this helps

harpo

Indeed it does. Thanks Harpo.

Reply #98 Top

So far, heres what i got:

 

1: Downloaded the one with Diplomacy pack from MediaFire.

2. Copied GAmeinfo from Install folder into "C:\Documents and Settings\Administrator\Local Settings\Application Data\Ironclad Games\Sins of a Solar Empire\Mods-v1.19\GameInfo"

3. Unpack zip file into there. And went to install folder to copy the 3 "ConvertData" files for vanilla, entrenchment and diplo


4. Launched the .exe file

5. Found the folder, press "Convert Folder NOW"

6. Keep getting "convertdata not found for the expansion chose. looked for convertdata?originalsins0.exe and did not find it. Pls copy it here"

7. If i just press Convert The Folder NOW. i get runtime error 5. Invalid procedure call or argument.

 

Im on windows XP x64 with some of the best equipment in town, runs the game without a hitch with everything turned up.

 

What am i doing wrong? Why cant i convert the f iles? the conversion is set to txt

Reply #99 Top

have you double-clicked ( in the textbin gui) into the folder that contains the files/folders that you want to convert?

the latest version is the 1.19 modding utilities(I am using the sins version numbering and including all the expansions convertdata in all the versions released to date with all the needed support files and all of my released sins modding utilities in the latest versions)

hope this helps

harpo

Reply #100 Top

Every time i run the EXE i get "run-Time error '-2147024770 (8007007e)':

Automation error  The specified module could not be found.

 

EDIT: i use Entrenchment 1.05