View Full Version : How to cross a river
Siberion
02-11-2008, 00:17
I'm a beginning modder and I want to replay a historical battle, namely the Battle at the Sabis of Julius Caesar, it's for a school project.
I'm fiddling around with the battle editor, but an essential part of the battle is that troops cross the river, multiple times and across the whole length of it.
Now I know this can be done, because it's done in the historical battle at the river Trebia, Roman troops cross the river there.
I've found the spot where that's done and when I use that map I can cross the river too, but just on two places and only those places.
Height doesn't seem to matter, when I raise ground somewhere else, they don't want to cross and when I lower the ground on the two places, they STILL want to cross there, only they drown in the process.
So my conclusion is that such things are defined somewhere else, outside of the normal editor, my question is -where- and how I can change that to my liking.
Thanks in advance
Siberion
02-11-2008, 02:09
Actually, the only thing I need is that troops can move through water.
Normally you get a cross when you try to move them there and pathfinding avoids water.
I want that GONE. I want them to treat water like normal ground. I don't care if it screws up the rest of the game.
There must be someone who knows how to do that? :help:
Horseman
02-11-2008, 13:43
Have you got BI? If so, could you use that as the basis for the battle and give all the types of units used in the battle the attribute that allows them to swim accross rivers (I'm not sure what its called but you can look it up in descr_units)
Ibn-Khaldun
02-11-2008, 15:38
Have you got BI? If so, could you use that as the basis for the battle and give all the types of units used in the battle the attribute that allows them to swim accross rivers (I'm not sure what its called but you can look it up in descr_units)
Its called can_swim
Red Spot
02-11-2008, 15:40
one foot at the time ... :wink:
maybe this can be of some use;
http://www.twcenter.net/forums/showthread.php?t=55785
G
Siberion
02-12-2008, 15:18
maybe this can be of some use;
http://www.twcenter.net/forums/showthread.php?t=55785
Unfortunately, that guide says nothing about inserting rivercrossings.
What swimming concerned, it seems to work remarkebly well, with units just charging through the river (cause I don't want them to swim) if the water's shallow enough.
Just two problems left, mostly because of inexperience:
I need units from RTW not from RTW-BI so I need swimming to work in the RWT editor or to import RTW units into the one of BI. Or could I model everything in RTW editor, change some things hardcore style and then play it in BI?
Second, I still don't know really where to add the can_swim command, I couldn't even find the descr_units file :sweatdrop:
So I need some handles here, every help is very appreciated :clown:
Horseman
02-12-2008, 18:33
AFAIK you'd have to play it in BI, if you look in the tutorials sub forum you should find a tutorial for using RTW units in BI (its not too complicated)
Sorry my bad the file is actually called export_descr_unit and is found in the data folder (obviously BI/data for BI)
If you look throught the file you can find a unit that has can_swim and you'll see how it works
Makanyane
02-12-2008, 20:28
You can play RTW through the BI.exe so you don't need to move units around
see https://forums.totalwar.org/vb/showpost.php?p=1219905&postcount=1219905
for how to set that up.
Then follow instructions above about adding can_swim to RTW units.
Only other things you might need are BI animations moved to RTW folder (not sure on that one) and adjustments to UI interface to get the logo for swimming.
It would be better and easier if you set up your game in mod-folder and make all the changes in that.
Siberion
02-12-2008, 22:12
Thanks for the help people, I'm positive I can solve this now :2thumbsup:
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.