Jump to content


Photo

Cascat-Based File Tweaker


  • Please log in to reply
43 replies to this topic

#1 Frankelstner

Frankelstner

    Member

  • Members
  • PipPip
  • 308 posts

Posted 27 September 2012 - 02:27 PM

Update: A patch released around November or December adds RSA signatures to the archives. When having modified content, it is not possible to join a game on a PB protected server anymore. As a side effect, it's not possible to play with modified files on unprotected or unranked servers either. Even the singleplayer gives back the same error message when modified files are detected. Due to that, there's no point in adjusting the tool to work with the new archives (that's the easy part), it's impossible fake the signatures and thus the game cannot be modded anymore unless you modify the exe.



The tweaker is up again. Make sure to read the instructions at the bottom of the post too. http://www.gamefront...bf3 tweaker.exe

I have not written most my statement in Mordor. It's being edited by mods all over the place. These are not my words. But the words here are.

Due to the heavy focus on the client in bf3 compared to bf2, modifying weapon damage among other things actually increases the damage dealt in multiplayer games (compared to bf2 where it does exactly nothing at all; make sure you understand this, modifying damage on your client is NOT meant to have any effect in online play in any game with decent netcode). bf3 (like bc2) also does not check for modified content making it possible to join ranked games with pb enabled. I have decided to reupload the tool as it is simply a mod tool after all (a very limited one to be honest). As far as I understand there are even people out there using injectors to play around with their graphics which is exactly how hacks work. I wouldn't touch one when playing online. The worst thing I can see happening when using modified files is a kick the moment you join a game (that is how it was handled in bf2). On the other hand as far as I know injectors might get you banned instantly, though I am fairly ignorant when it comes to hacks. I'd like to add, I had modified some files for bc2 three months ago and played a bit online. The account is still not banned so I would not trust others when they speak of bans for modified content.

The intent of this tool was to allow people to play around with settings in singleplayer and enjoy the engine (also so the folks at symthic can do controlled tests; as well as filmmakers and machinima). I am not going to deprive the community of this option. Anything else is not intended and I am not willing to take blame for it. Clientside netcode is simply not acceptable when bf2 did everything right. Also, the option to do these mods has been there all along, although without GUI. Here's a cascat of mine from 2011 (I think m16 ammo count or something like that; can't be bothered, it's not even worth trying it as the Update folder most likely overwrites the setting by now anyway): http://www.gamefront...3744/cascat_rar It has been on denkirson all along though I never even thought of testing it online; it was only after I realized that bc2 does not check for modified content either that I even dreamed of testing mods online in bf3.

This program is based heavily on my Python script here: http://www.bfeditor....opic=15531&st=0 The only difference is that the script discards the offset of the bytes for each entry instantly (unless you uncomment the line with the @) whereas this tool keeps track of the absolute offset for every field allowing users to change things directly.

I suspect the game will add a check for valid content very soon™ which is something I welcome. Some servers with attentive admins already check for the existence of modded cas archives and may issue a kick. This being said, of course you are not meant to play with modified content on ranked servers.


Here is the tool: http://www.gamefront.com/files/22334866/bf3+tweaker.exe Might post it again some time. I honestly posted this first and then made tests second. The only thing I had tested before releasing was playing around with the zoom levels. That was possible in bc2 too so I didn't give it much thought. I wouldn't have expected the game to go that far with clientside hitreg. It's not even the client telling the server that he has hit someone with a certain projectile. It's the client telling the server that he has dealt any amount of damage to any player. The DICE way of suppressing mod tools. Make it so that the tool can be abused as a cheating device.


Requires .NET 4.5.
Instructions:
1) Either create a new cat or open the existing cas.cat. Note that the cat in the Update folder overwrites most of the original entries so it is highly recommended to look there first. Also note that DLC uses sbtoc archives and is affected only peripherally (it might be not affected at all).
2) Modify any value written in bold.
3) Save and activate the cat.

The tool will not write into the original assets (the cas archives) but instead create new cas archives in the range 50-99. It will make a copy of the original file to be tweaked in the new cas archive and apply changes there. The game uses a cat file containing the file hash, offset, size and archive number for each entry. I just tell the cat that the asset to look for (via hash) is not in archive 1-10 but instead in archive 50 so the cat file has to be overwritten to make any changes. However, the tool will make a backup of the cat. Also, the information contained is purely redundant as the cas archives themself have all the information to create a cat file from scratch (the tool is capable of that too if you delete all cats).

To unmod the game just select the appropriate "Restore Cat". You can add a new cat in case you don't want to lose all changes when reverting to the unmodded game. Also, if you directly change cas.cat, change a few things so a new cas archive is created and then restore the cat, that cas archive has just become useless. If you keep doing that you might end up with lots of cas archives that are not used anymore so you will probably want to manually delete them. I recommend making a new cat instead of tweaking cas.cat. Basically you alter the new cat when making tweaks and when you press "Activate" the new cat will be copied to cas.cat.

DLC expansions use sb and toc files instead of cas and cat so changes are not guaranteed to work there. And yes, the game does not do checks for modified content. Just like in bc2 you can do stuff like 4x zoom iron sights, though it was probably more useful in bc2 with the scope taking up a slot on its own. On the other hand it might come in handy for snipers.

Edited by Frankelstner, 06 February 2013 - 09:02 PM.


#2 defunkt

defunkt

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 28 September 2012 - 11:08 PM

It's a shame you deleted the download. The only thing worse than letting everybody have access to this (which would force DICE to arrive at some resolution sharpish) would be letting only a few people have it who can then craft an advantage for themselves most people can't get and which DICE won't necessarily stop in a hurry. While I hope an eventual resolution would see us able to use modified data files on unranked games right now by allowing this out there but keeping it underground you're making the game worse not better.

#3 Frankelstner

Frankelstner

    Member

  • Members
  • PipPip
  • 308 posts

Posted 28 September 2012 - 11:38 PM

It's a shame you deleted the download. The only thing worse than letting everybody have access to this (which would force DICE to arrive at some resolution sharpish) would be letting only a few people have it who can then craft an advantage for themselves most people can't get and which DICE won't necessarily stop in a hurry. While I hope an eventual resolution would see us able to use modified data files on unranked games right now by allowing this out there but keeping it underground you're making the game worse not better.


I am aware of that. The modified cascat I have posted should be proof enough of what is possible. Also I have posted everything to mod bc2 too (4x zoom iron sights, three months ago: http://imgur.com/dJUtJ http://imgur.com/Nev7Y) but there hasn't been any action from DICE. At the moment it seems more viable to me to have 50 madmen instead of 500. This being said I will make it public again in three days.

Ah and please don't hate on me too, no matter what I do 50% of the community will hate me. All I want is a simple "Excellent work!".

Edited by Frankelstner, 28 September 2012 - 11:42 PM.


#4 defunkt

defunkt

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 29 September 2012 - 12:06 AM

Well of course it's 'Excellent Work', quite the achievement, I've never wanted to mod any game more than I'd love to mod this one (I could write a list two pages long of tweaks I'd like to make private games more tense and tactical). But maybe it should've been kept secret and used just to distribute data files that achieve certain requested changes as you have now for colour correction. At the same time some instruction for server-ops on how to use PB MD5 checks to decide they don't want those changes on their server would've been appropriate. That would be a pretty manageable situation with only up-sides.

#5 Skuggan

Skuggan

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 29 September 2012 - 07:19 AM

Metro and other maps looks really nice now, the way they should be visible. Stupid Fading tint is bullcrap and dull. Is it possible you can upload the IRNV scope fix? or i will wait till you release tool since IRNV is so fudged up atm in Vanilla maps. Great Job btw !

#6 bf3xd

bf3xd

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 29 September 2012 - 09:15 AM

can you re-upload this program?

is very hard to open file cas

#7 Frankelstner

Frankelstner

    Member

  • Members
  • PipPip
  • 308 posts

Posted 29 September 2012 - 12:39 PM

Well of course it's 'Excellent Work', quite the achievement, I've never wanted to mod any game more than I'd love to mod this one (I could write a list two pages long of tweaks I'd like to make private games more tense and tactical). But maybe it should've been kept secret and used just to distribute data files that achieve certain requested changes as you have now for colour correction. At the same time some instruction for server-ops on how to use PB MD5 checks to decide they don't want those changes on their server would've been appropriate. That would be a pretty manageable situation with only up-sides.


Look, I have barely made any tests before releasing the tool. Think back to bf2. Changing things on your client have no effect. The server handles projectile damage, materials, deviation, recoil, whether you are zoomed in or not. I had not thought of testing it because according to my idea of the game it would not have any effect. It would've been wasted time.

#8 IvanTehFennec

IvanTehFennec

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 29 September 2012 - 08:20 PM

Okay, so, how do I use this to change Blue Valley to a night map?

#9 Frankelstner

Frankelstner

    Member

  • Members
  • PipPip
  • 308 posts

Posted 29 September 2012 - 08:26 PM

Okay, so, how do I use this to change Blue Valley to a night map?


If by blue valley you mean the armored kill map Valley, then change the floats from offset 507042112 to 507042136 in Update\Xpack3\Data\Win32\Levels\XP3_Valley\XP3_Valley.sb to something reasonable.

#10 IvanTehFennec

IvanTehFennec

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 29 September 2012 - 08:39 PM

If by blue valley you mean the armored kill map Valley, then change the floats from offset 507042112 to 507042136 in Update\Xpack3\Data\Win32\Levels\XP3_Valley\XP3_Valley.sb to something reasonable.


Okay, can you teach me what that even means @_@ I'm a complete noob when it comes to this. Should I even bother?

#11 Frankelstner

Frankelstner

    Member

  • Members
  • PipPip
  • 308 posts

Posted 29 September 2012 - 08:41 PM

Should I even bother?


Nope.

Also as most of the discussion is about removing the blue, here are some absolute offsets for the DLC 1 and 3 lighting (yup, Python scripts plus manual editing). If you don't know what they mean it is probably better not to touch them.



#12 IvanTehFennec

IvanTehFennec

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 29 September 2012 - 08:42 PM

Nope.


Okay, well, I've seen a few people put out the cat and cas files for removing blue tint on the vanilla* maps. Can't that be done with .sb's as well?

Edited by IvanTehFennec, 29 September 2012 - 08:47 PM.


#13 Frankelstner

Frankelstner

    Member

  • Members
  • PipPip
  • 308 posts

Posted 29 September 2012 - 08:47 PM

Okay, well, I've seen a few people put out the cat and cas files for removing blue tint on the xpack maps. Can't that be done with .sb's as well?


Cascat and sbtoc are completely different archives. The tool is only for cascat archives as stated in the title. Anyone modding DLC maps has used the offsets I have given you (note that tehfusion has figured out the offsets on his own though). The pastes only make things more convenient.

Edited by Frankelstner, 29 September 2012 - 08:48 PM.


#14 IvanTehFennec

IvanTehFennec

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 29 September 2012 - 08:49 PM

Cascat and sbtoc are completely different archives. The tool is only for cascat archives as stated in the title. Anyone modding DLC maps has used the offsets I have given you (note that tehfusion has figured out the offsets on his own though). The pastes only make things more convenient.


I mean can you put out modded sbtoc's that remove blue tint?

#15 Frankelstner

Frankelstner

    Member

  • Members
  • PipPip
  • 308 posts

Posted 29 September 2012 - 08:56 PM

I mean can you put out modded sbtoc's that remove blue tint?


Not that I am aware of. They would be way too large. Cascat are excellent archives for modding. Every file exists only once (the DLC on the other hand for example have stored the weapon stats in the individual maps so the weapons are stored four times). Additionally new archives can be added just by telling the cat that there is another archive number. And that's the brilliant part, you see? The original assets are not modified at all and all changes are stored in a rather tiny file.

Every toc file has exactly one sb file with the same name. A cat file on the other hand has an arbitary number of cas files. I am not sure how to get around this issue.

Edited by Frankelstner, 29 September 2012 - 08:56 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users