-
Modding extras by CA (unsupported)
This needs a new thread with a clearer title:
This is a zip of files that are stored in binary format, within the animation files in data/animations folder. Vercingetorix's program cannot extract them, and they have been invisible and unavailable for all this time. Until now. Jerome Grasdyke has very generously provided us with these files, which now completely unties our hands and lets us do everything with skeletons that we could ever dream of.
IMPORTANT NOTICE DISCLAIMER:
These files are unofficial, and completely unsupported by CA. Use them at your own risk. By downloading this file you accept this disclaimer.
(Signifier, I took the freedom of using your description)
Many thanks to Jerome:bow:
For more information and posts by the man himself Click Here
-
Re: Modding extras by CA (unsupported)
I've uploaded the file to the LM's webspace if you want to get them from there:
http://www.totalwar.org/patrons/lm/M..._evt_files.zip
-
Re: Modding extras by CA (unsupported)
Myrddraal, it's probably not a good idea to hotlink the TWC download mirror. I'd suggest linking the download page itself.
-
Re: Modding extras by CA (unsupported)
-
Re: Modding extras by CA (unsupported)
I'm not affiliated with TWC in any way, but I know that the general rule is that hotlinking is not good. It takes advantage of the the bandwidth of the content provider, without giving them any recognition. If linked to the download page, then the person knows that this is a TWC forum, they are the ones hosting the file, etc.
It's just like, why is it wrong to hotlink to pictures hosted by other websites? The same principle.
-
Re: Modding extras by CA (unsupported)
Or, put more simply: they don't get money from ads if people don't go to their pages, and they're the ones paying for us to be able to download.
-Simetrical
-
Re: Modding extras by CA (unsupported)
Hey Myrddraal:
Do you think the release of those files make the animations for a volley fire system possible?
-
Re: Modding extras by CA (unsupported)
Do you mean just making a firearm animation?
-
Re: Modding extras by CA (unsupported)
This won't change the current situation. You could make a new animation without this, but you could only base it on the existing skeletons.
If you wanted to make a new shooting animation, you can. As far as firing in a volley, the current archers do just that.
What the new files were injtended ( had they actually worked ) was to allow you to run new ani mations outside of the pack files, and to use completely new skeletons. This would have given you far greater control over the process, and allowed you to do things that just can't be done now.
-
Re: Modding extras by CA (unsupported)
No it's more than just firing in a volley like the archers do. If you all have ever seen a movie with muzzle loading firearms in it, you will notice that the front row fires in unison then goes to the back row. At that point the second row steps forward and fires and the process is repeated. It is a very complicated animation but it was present in all the previous Total War games where they had firearms.
-
Re: Modding extras by CA (unsupported)
Hrm...
Couldn;t that just be a continuous Looping Change in Formation?
I mean a formation could be defined in having the first or two first rows usetheir weapon and then a call to change the formation comes and you have the first row exchange position with the second and then the first row fires.
The firing delay is then not a question of every how many seconds the volley is shot, like the archers, but rather how long it takes for them to re-form, once re-formed then the firing delay comes in to effect.
The complete loop would have to be probably associated with a sorts of "Mode".
Not unlike the Phalanx, which I see more as a mode of fighting rather than a simple formation...
Its a way of looking at it I guess :charge:
-
Re: Modding extras by CA (unsupported)
with wich program ca you open the .evt files?
-
Re: Modding extras by CA (unsupported)
-
Re: Modding extras by CA (unsupported)
has anyone actualy managed to get this to work ? deleting the paks and dats in data\animations so that the descr_skeleton.txt file is used ?
I just gave it a try (deleted the files, placed the extracted animation files into the animation folder, along with the evt files). But when I launch the game it crashes back to desktop on loading (no error message). After some experimenting I noticed it crashes after reading the first animation entry from descr_skeleton.txt. If the animation file doesn't exist I get an error message, if it does exist I dont get any. I then added a second entry with an animation file that didn't exist but got no error message. So it seems it crashes right after loading in the first animation file.
Could there be a problem with Vercingetorix's extractor so that it creates (slightly) corrupted cas files ? I noticed that some units did weird things ingame after changing animation speeds with Vercingetorix's tool (especially horses). So my best - and only - guess is that there is a problem with the cas animation files.
-
Re: Modding extras by CA (unsupported)
Nope it seems there's a big part within the packs, which is never stored in the text files. So if we delete the packs, that part becomes missing and the game crashes. I think it might be an oversight on CA's part, one which they will hopefully fix in the expansion and let the game parse this descr_ file just as it parses many of the others without so much as a hitch.
-
Re: Modding extras by CA (unsupported)
hm not sure. The descr_engine_skeleton.txt file has exactly the same format as descr_skeleton.txt. And those files are NOT located in the pak files, but seperate files (including evt ones). If it works for those then why wouldn't it work for the unit animations ?
EDIT: if I use a siege engine cas animation file (the ones that are not located in the packs) for the first entry descr_skeleton.txt, and an inexisting file for the second entry, I get an error message ("file does not exist"). That means it accepts the first animation file. So I'm still guessing there is a problem with the extracted cas files.
-
Re: Modding extras by CA (unsupported)
Ok, perhaps someone could assist me with an experiment... as some of you may remember from a while back, the attempt to get the game to load in the animations database from text file direct proved a little problematical. Recently a bunch of questions we were answering for the forums jogged my memory into an alternative approach to the problem.
The idea was to extern the ability to build the anim db files instead of running direct from the text files - these can be generated by the main exe in dev mode from the data you already have (in the zip file above) and do more or less the same thing as reading direct from the text file, except that this also does some essential post-processing before spitting out the various packed data files. But when I checked the code, I was surprised to find that this was already available in the release build.
I don't have a machine to hand with a retail build on it atm, so could someone test for me wether putting -util:animdb on the command line correctly rebuilds the animation packs for you... you will need the pack with the .evt files for this.
-
Re: Modding extras by CA (unsupported)
will give this a try as soon as I am able...hopefully tonight!
-
Re: Modding extras by CA (unsupported)
Is there any chance we could get an list of what the engine is capable of "compling/converting"? It took me a few weeks to find out that vegetation can be edited/added by removing some files and starting the game. The same counts for battlefield buildings.
Perhaps we will be able to discover everything, but seeing that PC Gamer has already placed quite a few reviews of R:TW mods I think that both CA and us can profit if we are given more insight of how the game works. I noticed with Middle Earth: Total War that people bought M:TW and VI just to play the mod and I start to notice the same with N:TW2 and Sengoku Jidai and I am sure that Europa Barbarum will also increase sales.
CA made a great engine and I think it would be a loss if CA does not fully understand what hundreds of modders and artists are capable of and what they can mean to CA.
If this came off like a rant, then I blame Brad Pitt for telling on Live 8: "Let's be bold." :wink:
As to your own request, I am not able to at the moment, but I do appreciate your contribution alot!
-
Re: Modding extras by CA (unsupported)
Trying to test now!
EDIT: Jerome, you'll have to give us more tips on what to do to test this out: should the four animation pack files be deleted? Should descr_skeleton.txt be deleted? Am I supposed to see anything happen when running the game with -util:animdb enabled? Etc.
-
Re: Modding extras by CA (unsupported)
my guess is that the four anim files need to be removed, and that those are regenerated by using that parameter. Have you tried that dsyrow1 ?
-
Re: Modding extras by CA (unsupported)
Quote:
Originally Posted by [cF]Adherbal
my guess is that the four anim files need to be removed, and that those are regenerated by using that parameter. Have you tried that dsyrow1 ?
That's pretty much correct. What should happen is that the game will parse descr_skeletons.txt, load the .evt and .cas files and generate a new batch of animation pack files. Your best bet for checking wether the process has run correctly is probably just to sort your directory view by date, any files that were just created should be easy to recognise.
-
Re: Modding extras by CA (unsupported)
Okay, here's what I did: I unpacked the animation packs using Verc's XIDX program, then I extracted the EVT files into the same folder, and then removed the four animation files. When I ran the game, it complained that it couldn't find the very first file in descr_skeleton.txt. Then I realized that I extracted the animation files in their native directory, i.e. into data/animations/data/animations, so then I simply moved the entire folder structure into the same folder as where the four anim pack files used to be. Then when I ran the game, it crashed without a comment, like it used to in our previous tests. I did add the -util:animdb to the command line, but have not noticed any different behavior because of it. The game still crashed without saying anything, as before. That's why I asked if there was something else I should have done, to bring out the new -util behavior. Maybee someone else can confirm this while Jerome is still in office.
-
Re: Modding extras by CA (unsupported)
Ok here's some new interesting behavior. I decided to play the game, so I restored all folders to their original state, and when I ran the game it again said that I was missing the first animation referenced in descr_skeleton.txt. But when I removed the -util:animdb from the shortcut, the game ran fine. This tells me that the game IS reading descr_skeleton.txt and is trying to parse it, even though the four animation pack files are still present.
-
Re: Modding extras by CA (unsupported)
What the code does is this:
* if you run with -util:animdb on the command line, it parses descr_skeleton.txt and tries to build the animdb files from it, regardless of other factors;
* if you run without the command line option, it looks for the packed files, and if it finds them it does not use descr_skeletons.txt as all the information is inside the packs;
* if it fails to load the packs, it falls back on loading descr_skeletons.txt, but does not regenerate the packs -- renaming pack.dat, pack.idx, skeletons.dat and skeletons.idx inside data/animations/ should cause it to take this code path;
In order to load from descr_skeletons.txt you need to have a complete set of all the files it references in the correct places - that includes all the .evt files in the zip file that I supplied some time ago, plus the .cas files generated by Vercingetorix's unpacking tool. If it can't find any of the files, the code should warn you, providing that you have -show_err on the command line. In general there should be matched pairs of .evt and .cas files.
This process works correctly when I try it with a dev build in release mode, so in theory it should work for you, but to the best of my knowledge no modder has yet managed to get it to complete... Exactly why is not really clear at this point.
-
Re: Modding extras by CA (unsupported)
I gave it a try, and like dsyrow it crashed with no error (-show_err parameter is there).
I will try it with an unmodded RTW version later today, just to be sure the new skeletons I'm using in descr_models_battle.txt (which are not defined in descr_skeleton) dont cause the problem - although I would expect it to return some kind of error message then.
-
Re: Modding extras by CA (unsupported)
Well, if Vercingetorix' tool for modifying the animation pack files works reliably for you, there's not a huge amount of pressure on sorting this out ;) If you guys want to pursue it, I'll help of course, although we're still in the runup to the expansion pack beta over here...
-
Re: Modding extras by CA (unsupported)
well there is only one thing that caught my interest from the descr_skeleton file:
Quote:
-id:x,y,z impact delta - specifies the point of weapon impact relative to the starting position of the root node
my question is: would moving this point forward by a "meter" or so allow soldiers from the second line in a unit to attack "throught" the units of the first line ? That would be very usualy for some spear/halberd/pike formations which dont fit with the phalanx formation.
if this doesn't work then IMO the descr_skeleton file doesn't give us much more options then what we can achieve with Verci's tools.
-
Re: Modding extras by CA (unsupported)
The ability to parse descr_skeleton.txt is simply invaluable, because not only will we be able to give units the ability to hit from further back, as you said, but we can also define which frame in the attack anim actually is the attack frame, so that the defender's animation can run synchroniously, not wildly irrelevantly like it does now (you attack, the guy ducks like 10 seconds later, etc).
Jerome, the biggest problem right now is the crash without the error message. That may be the best clue as to what is going wrong here, and you knowing that we have such an error might be a hint as to where to look for a solution. Would NOT having a matching .evt for a .cas cause such a crash, or would an error pop up? I really hope you can get your hands on the same build as us, so that you can at least get this parsing ability by the time the x-pak comes out, because you devs will see some amazing wonders from us in that case. Please try to find the same build as what we're using, so you can run through your steps and verify that you get the same nameless error as we do, so that you know that the error does not lie in some wrong step of ours, and are more able to pin down the issue on your side in time for the release. Or, if it is a mistake on our side after all, this would be the very BEST case scenario, and we can enjoy the wonderful ability to parse descr_skeleton.txt right away :charge:
-
Re: Modding extras by CA (unsupported)
Jerome, here's the deal: I just tried a vanilla version of everything, unpacked the CAS files and the EVT files. Here are the entire contents of my descr_skeleton.txt:
Quote:
type strat_named_with_army
scale 0.7
anim idle_1 data/animations/SG 01 idle 01.cas
-evt:data\animations\strat_named_with_army__SG 01 idle 01.evt
And the game crashes within seconds of showing the loading screen.
EDIT: Another test. Here are the new ENTIRE contents of my descr_skeleton.txt:
Quote:
type strat_named_with_army
scale 0.7
anim idle_1 data/animations/SG 01 idle 01.cas
I removed all references even to the EVT files, just the CAS itself. Again, same results, crash immediately upon showing the loading screen; in other words, the game doesn't get far enough to tell me that there are other skeletons lacking, it crashes immediately upon finding that one valid animation entry.