HowTo: Modifiy the tcd Files

07/30/2011 20:52 5769854332#1
(edit: 4story now does a file integrity check at startup to prevent modifications of the tcd files. See page 6 for solutions.)

I. Introduction

I'm still getting pms on how to hack in 4Story by using the tcd files, so I wrote this small tutorial. I will explain how to use the monster-will-not-fight-back-effect and a sort of multikill.
You may also want to look at those threads, [Only registered and activated users can see links. Click Here To Register...] and [Only registered and activated users can see links. Click Here To Register...], which include modified files, but, sadly, no in-depth explanations (so I'm not really sure what they actually do) or even [Only registered and activated users can see links. Click Here To Register...].
Note: Remember never to hack with your main account.


II. What You Need

You need a hex editor, I prefer this one: [Only registered and activated users can see links. Click Here To Register...]
(hxxp://mh-nexus.de/en/downloads.php?product=HxD)


III. Getting Started

First, make backups of TSKill.tcd and TMon.tcd (just copy those files and save them in a different folder) located in

C:\Program Files\Gameforge4D\4Story\TCD or
C:\Program Files\Zemi Interactive\4Story\TCD

Then, open the hex editor and load TSkill.tcd. It should look like this (note: "Schießen" and "Mobiler Schuss" are German skillnames):

[Only registered and activated users can see links. Click Here To Register...]

IV. Understanding the File Structures

Obviously, information about each skill is stored in there. Let's take a deeper look.

[Only registered and activated users can see links. Click Here To Register...]

Each skill has her own section. The size and and the structure of the sections are the same for each skill. But what kind of information is stored in these sections? When I first encountered that question, I just modified some bytes, started the game, and looked at what had changed ingame. This is a time consuming process, and I think we can reduce this time by sharing our knowledge! That way, you, the reader, don't need to start from scratch when analyzing the files, and can just continue form where others left.
Well, let's continue:


[Only registered and activated users can see links. Click Here To Register...]

I located some important bytes already.
Red: The radius of the skill. Usefull for aoes. Set to 0xFF7E (I consider this the maximum, since with higher values the game crashed).
Green: Autoshoot. Set both to 01, and the specific skill will autoshoot.
Blue: not quite sure, I think this sets the target. Set to 0x0804, if you want a non-target aoe.


V. Saving and Testing

Save the file. Now, if you start the game, the skill you have modified earlier will be an aoe, with a great range and it will also autoshoot. If the game crashes at startup, then it's because you modified the wrong bytes or there was an official patch.


VI. monster-will-not-fight-back

It is the same as with TSkill.tcd. Open TMon.tcd, search for a specific monster, and edit the Bytes 0x0102 into 0x0002 (as shown in the picture). 01 = monster fights back, 00 = monster doesnt fight back.

[Only registered and activated users can see links. Click Here To Register...]

VI. End

Happy gaming...
07/30/2011 21:28 IKosoVo#2
NIce Tutorial weiter so
07/30/2011 21:42 TikTakNipTak#3
Cool Turtorial!!!!!
07/30/2011 21:58 ☼WhatIsThat☼#4
Can you explain it in german too?
07/30/2011 22:11 IKosoVo#5
Quote:
Originally Posted by ☼WhatIsThat☼ View Post
Can you explain it in german too?
Ich denke nicht das er Deutsch spricht er hatt alle meine Fragen bei PN mit Englisch Beantwortet.

Aber ein tipp

Benuze den Google Übersetzer von Englisch auf Deutsch besser als nichts.
Quote:
[Only registered and activated users can see links. Click Here To Register...]
Mfg IkosoVo :D
07/30/2011 23:47 ast1#6
Mal übersetzt von mir:

I. Einführung

Ich kriege immer noch PNs in denen ich gefragt werde, wie man in 4Story die Tcd-Dateinen hackt, also schreibe ich dieses kleine Tutorial. I erkläre mal, wie man den "Mobs-greifen-einen-nicht-an"- sowie den MultiKill-Hack benutzt. Ihr könntet auch in diese Threads [Only registered and activated users can see links. Click Here To Register...] und [Only registered and activated users can see links. Click Here To Register...] schauen, dort werden die veränderten Dateien angeboten, aber leider wird dort fast nichts erklärt also kann man sich nicht sicher sein, ob sie wirklich gehen und auch das richtige machen. ACHTUNG: Hackt auf keinen Fall mit eurem Main-Account!!!

II. Was ihr braucht

Ihr braucht einen Hex-Editor, Ich bevorzuge diesen hier [Only registered and activated users can see links. Click Here To Register...]

III. Loslegen

Mach als erstes ein Backup von TSkill.tcd und TMon.tcd (einfach in einen anderern Ordner kopieren.)
Diese Dateien befinden sich in
C:\Program Files\Gameforge4D\4Story\TCD oder
C:\Program Files\Zemi Interactive\4Story\TCD

Dann öffnet ihr den Hex-Editor und ladet TSkill.tcd
Es sollte aussehen wie das hier:

[Only registered and activated users can see links. Click Here To Register...]







IV. Dateistrukturen verstehen

Offensichtlich befinden sich hier Informationen über jeden Skill ingame. Schauen wir uns das mal genauer an.

[Only registered and activated users can see links. Click Here To Register...]

Jeder Skill hat seinen eigenen Abschnitt. Die Grösse und der Aufbau der Abschnitte sind immer die gleichen. Aber welche Informationen befinden sich denn hier gespeichert? Als ich dieser Frage zum ersten mal auf den Grund zu gehen versuchte, habe ich einfach ein paar Werte verändert, das Game gestartet und geschaut, was sich verändert hatte. Das nimmt viel Zeit in Anspruch und ich denke, wir können den Zeitaufwand verringern, indem wir unser Wissen teilen! Auf diesen Weg müsst ihr, die Leser, nicht bei 0 beginnen sondern könnt dort weiterfahren wo andere aufgehört haben.
Ok, fahren wir weiter:

[Only registered and activated users can see links. Click Here To Register...]

Ich habe ein paar wichtige Bytes herausgefunden.

Rot: Der Radius des Skills. Nützlich für AOEs. Setze es auf 0xFF7E (Ich denke, das ist das Maximum, weil das Spiel sonst abstürzt.)
Grün: AutoHit. Setze beides auf 01 und der entsprechende Skill wird zum AutoHit.
Blau: Nicht ganz sicher, ich glaube das legt das Ziel fest. Setzt es auf 0x0804 wenn ihr eine AOE wollt bei der ihr das Ziel nicht auswählen müsst.

V. Speichern und Testen

Speichert die Datei. Wenn ihr das Spiel jetzt startet, wird der Skill, den ihr verändert habt eine AOE mit einem grossen Radius sein, die sich ausserdem verhält wie ein AutoHit-Skill. Wenn das Spiel beim Starten crasht, dann habt ihr die falschen Bytes modifiziert oder es hat einen Patch gegeben.

VI. Monster-greifen-nicht-an

Das Gleiche wie bei TSkill.tcd. Öffnet TMon.tcd, sucht ein Monster raus und ändere das Byte 0x0102 zu 0x0002 (wie im Bild). 01 = Monster schlagen zurück, 00 = Monster schlagen nicht zurück.

[Only registered and activated users can see links. Click Here To Register...]

VI. Ende

Viel Spass beim Zocken!

//Übersetzung by ast1
//Originaltext (Englisch) by 5769854332
//Für die Richtigkeit der Übersetzung gebe ich keine Garantie.
07/31/2011 00:20 IKosoVo#7
Quote:
//Übersetzung by ast1
//Originaltext (Englisch) by 5769854332
//Für die Richtigkeit der Übersetzung gebe ich keine Garantie.
Super Übersezt :D
hast ein Thanks verdinnt :D
07/31/2011 01:17 ast1#8
Quote:
Originally Posted by IKosoVo View Post
Super Übersezt :D
hast ein Thanks verdinnt :D
Wenn ihr wollt und weitere Übersetzungen unterstützen möchtet, dann könnt ihr mir auch bei meiner Guard-Bewerbung (Signatur) ein Thanks geben.. (Will aber nicht darum betteln ^^)

@Topic find ich auch gutes Guide denn ich wollte schon wissen wie man die editieren muss und nicht nur die Dateien runterladen. Allerdings wird das dadurch wohl noch eher gefixt aba egal weil auf DE ist sowieso shit wenns hacker gibt...
07/31/2011 12:55 Elite4story#9
Hello and thank you for this guide.Even though i did step by step what you wrote it doesn `t give me access to change the values.What should i do?Also, will the changed files for EG work for my server too?

Thanks
07/31/2011 13:16 Overload777#10
kann amn damit auch den freeze reichweiter erhöhen? udn wenn ja wie? (habs hcson so ausprobiert geht abe rnet so super^^
07/31/2011 14:00 5769854332#11
@ast1: danke für die Mühe. Hätte es selbst nicht besser hingekriegt.

@Elite4story: 4Story must be closed when editing the files. Or maybe your AV blocked the hex editor?

Quote:
Also, will the changed files for EG work for my server too?
I'm not sure. I guess, as a general rule, german tcd files only work on the german server, EG tcd files only work on the EG server etc.

Quote:
kann amn damit auch den freeze reichweiter erhöhen?
Ich denke, man kann die Reichweite von jedem Skill erhöhen.

note: Originally, I planned to show you another modification concerning the TItems file. But it is more complicated, so I'll add this later.
#################################################

edit: added TItem.tcd modification

TItem.tcd

We will use the fact, that items are partially controlled serverside.

I. Analysis of the file

I loaded the file in my hex editor.

[Only registered and activated users can see links. Click Here To Register...]

As you can see, each item is enclosed by a number, which identifies it. You can backtrace these numbers in TItemAttribute.tcd.
Lets see...

The item Soldateneinrüstung (plate) is enclosed by 0x9611.
The item Soldateneisenhandschuhe (gloves) is enclosed by 0x9811.

II. Exploit

What happens, if you exchange those numbers, so that the plate is enclosed by 0x9811 and the gloves are enclosed by 0x9611 ?
To summarize it, you can wear the plate in the gloves slot and vice versa. This can be usefull in some cases.

For example, you could increase your overall defence.
By exchanging the values of Staff (0x1605) and Wand (0x4E04), you should be able to use the combi Staff+Magic Shield.

The client will not display those items correctly, so your inventory will look quite confusing.

End
That's all. Thx for reading.
07/31/2011 16:47 andresrash#12
Ich wollte sparen, wenn Sie tcd für in-store Artikel preislich weniger als das Original ändern können.

und eine andere Sache, wenn Sie ändern können, so dass der Farbstoff aparensca Artikel in der Filiale.

vergeben für das Schreiben, ist diese Übersetzung via google.
07/31/2011 16:53 schwanzi#13
nice weiter so :D
07/31/2011 17:00 5769854332#14
@andresrash: You used Google translator? :) Anyway, I doubt that this is possible. You'd probably need to modify TClient.exe for cashshop hacks.
08/01/2011 02:06 affon2#15
Richtig nice man!