226
Utilities and 3rd Party Applications / Re: Proposal: a standard format for mods in a diff/patch Mod Starter Pack
« on: August 17, 2014, 08:38:43 am »
So... I think I may have a solution with how to apply older mods to newer versions of the game.
http://cyberelk.net/tim/patchutils/man/rn01re02.html
http://en.wikipedia.org/wiki/Quilt_%28software%29
Basicaly, merge patch files.
Vs trying to apply a 34_11 mod to 40_08 as a patch of changes that we based on 34_11 vs 40_08...
One could take a diff patch of 34_11 to 40_08,
call this 34-11To40-08.patch
And a 34_11 to Accelerated,
call this 34_11ToAccelerated.patch
Then, using the tool combinediff (I guess any conflicts would have to be addressed on the patch file level)
something like combinediff 34-11To40-08.patch 34_11ToAccelerated.patch > 34_11To40_08_Accelerated.patch
and apply this patch to a 34_11 version of the game to achieve a v40_08 mod of the game, then do a diff comparison from 40_08 to this mod of v40_08
In light of what that script is doing, I recommend this one now
I was reading on what it does, and it rewrites the replacement operations. I'm gonna push a better script in the next day or two if I don't learn a better way to write a script.
http://cyberelk.net/tim/patchutils/man/rn01re02.html
http://en.wikipedia.org/wiki/Quilt_%28software%29
Basicaly, merge patch files.
Vs trying to apply a 34_11 mod to 40_08 as a patch of changes that we based on 34_11 vs 40_08...
One could take a diff patch of 34_11 to 40_08,
call this 34-11To40-08.patch
And a 34_11 to Accelerated,
call this 34_11ToAccelerated.patch
Then, using the tool combinediff (I guess any conflicts would have to be addressed on the patch file level)
something like combinediff 34-11To40-08.patch 34_11ToAccelerated.patch > 34_11To40_08_Accelerated.patch
and apply this patch to a 34_11 version of the game to achieve a v40_08 mod of the game, then do a diff comparison from 40_08 to this mod of v40_08
In light of what that script is doing, I recommend this one now
Code: [Select]
$files = @(get-childitem -include *.txt -recurse -path $path -filter $filter)
Write-Host "files loaded";
foreach ($file in $files) {
$out1Pass = "$file" + ".1pass"
$outFile = "$file" + "2"
Get-Content $file | Foreach-object {
$_ -replace "`t","" `
-replace '\]\[',"]`r`n["
} | Set-Content $outFile
}
I was reading on what it does, and it rewrites the replacement operations. I'm gonna push a better script in the next day or two if I don't learn a better way to write a script.

