View Full Version : CA's Modding FAQ
PSYCHO V
10-24-2005, 16:25
CA is doing a Modding FAQ. So for all those questions that Jerome and others haven't got around to answering yet, post them here.
How do you change/edit the roman factions into another faction in 1.3?
I would like to know about the destroy building command, secondly, I would like to know if they have any easy way to sort through the names of the current generals via scripting. Once the game starts its pretty impossible to figure out what the current faction leaders name is,(This is for useing counters and trasnferring them across as traits) I have a work around but its ugly as hell, so i would like to know about name sorting.
Can console_command event be used to (re-)spawn factions?
If so, can you give us the syntax?
wlesmana
10-24-2005, 17:11
How do you mod gate houses' arrows and boiling oil?
Dol Guldur
10-24-2005, 17:34
Could a list be provided of the exact areas and/or specifics (where feasible) of the hardcoded elements in BI? This would save modders wasting time on impossible pursuits.
SigniferOne
10-24-2005, 18:08
Question1:
Is it now possible to use descr_skeleton.txt, and does the game parse it?
--------
Question 2:
Can any scripting functions take counters as parameters, instead of requiring explicitly defined numbers? For example, is it possible to do a script where you do a for() loop, replicated by the game's while command, which browses through each tile on the campaign map, and if it finds a general of one's faction there, to place another general in that spot? Speaking in pseudo-code, this would work like:
define counter x
define counter y
for (x from 0 to map's known width) {
for (y from 0 to map's known height) {
if (character X is at tile x,y) // possible to do using CharacterNearTile
spawn_army at x, y
...
end
}
}
There the x and y are not specifically defined, but are whatever the counter values may be at that time.
Right now it might seem that all commands require explicit specification of the location, so that if we wanted to replicate the code above using RTW's scripting code, we'd have to explicitly unravel those two for() loops (i.e. the two "while" loops) and explicitly say,
if (General X is present at 1,1)
spawn_army at 1,1
if (General X is present at 1,2)
spawn_army at 1,2
which, considering the size of maps in the game (with both dimensions spanning hundreds of pixels), means that there theoretically will be 10,000 such if loops in order for the script to be able to find General X and place a new army wherever General X might be on the map. And if you have more than one general...
Now granted, optimization is possible and we can use a binary search instead of a linear search (using hidden virtues to divide the map into quadrants, and then search only in that quadrant:
if General X has trait xLocationUnder 50
and General X has trait yLocationOver50
and has trait yLocationUnder100)
search x from 0 to 50
search y from 50 to 100
Still, however, this optimization improves only the actual performance of the script, and still requires a whole lot of coding from the scripter, compared to how easy it could be if counters can be variables.
I have tried this use of counters as variables for two commands: "reposition_character", and "console_command move" command, and for both of them, if I use an expression such as "x, 120" to specify a location, the engine will place the character at 0, 120, regardless of the value x currently holds.
PROMETHEUS
10-24-2005, 19:17
could we have a blanck version of files just to be filled in of units , factions buildings etc?
Simetrical
10-24-2005, 19:33
Could a list be provided of the exact areas and/or specifics (where feasible) of the hardcoded elements in BI? This would save modders wasting time on impossible pursuits.This is asking a heck of a lot. More specific questions would probably be more productive.
Centurion Cato
10-24-2005, 19:36
There was talk of CA releasing a Campaign Editor, any progress on this?
PSYCHO V
10-25-2005, 02:46
This is asking a heck of a lot. More specific questions would probably be more productive.
Yes, please. Try and ask specific questions rather than generalities akin to "how do you mod RTW?". Your more likely to get an answer to specifics.
Myrddraal
10-25-2005, 03:17
stickied
can we edit the seasons easily in BI 1.41 patch ? if the BI have four seasons seletion without any active tool , that would be great !!!!!!!!!!
what's more there are some events like
{dominant_religion} A Powerful Faith
{huns_hording} A Storm from the East!
{new_barbarian_horde} A People in Flight
can i stop them happen ?
SomeNick
10-25-2005, 04:21
How do you save Single Player Campaign Battle Replays please ?...~:cheers:
Or do I have to wait for a mod...even though this should be a feature of the game anyway...:duel: or possibly> ~:handball:
Dromikaites
10-25-2005, 08:17
A way to improve the behavior of AI in battle is to use scripts active during battle time.
The problem is this scripting doesn't work in campaigns because there is no known way we can "read" the army stacks that enter a battle during campaigns (except for the battles we can script at the very beginning of a campaign, when we know the stacks' composition). Being able to read the army stacks is also useful for many other modding purposes.
So my questions for CA regarding scripting are:
1. Is there any hidden command or condition that can be used to read an army stack (or the troops inside a city/fort)?
2. Will such command or condition become available with the next update/patch?
A second group of questions are about the maps. I've discovered by accident that the map_trade_routes.tga is actually used by the game engine. Here's how I've discovered it: I made a very simple map, with only the sea and a plain field, leaving the original map_trade_routes.tga in the directory. The result was the "trade routes" became visible in the radar screen.
So here are my questions about the maps:
3. Is there any way to generate map_heights.hgt file using a command line similar to the one used for the sprites?
4. Is map_trade_routes.tga of any use for modding?
edyzmedieval
10-25-2005, 21:37
Couple of questions.
1.)Any help on decoding the diplomacy?!
2.)As Dromikaites said, is trade routes of any use for modding?!
3.)Any help on decoding the religious unrest?!
More to come up, as I explore the BI files. ~:)
Main thing is there going to be a Patch released to fix the Bugs in 1.3 and BI and also make the -mod: switch work more easily with less issues and work arounds?
Several game ruining bugs for Roman based Mod ports for BI and 1.3 ARE.
1. Pilum units for AI do not throw pilums just charge
2. Invasion switch dont seem to do ANYTHING AI behaves the same.
3. Bug where Scipii and Bruitii and any other land based invasions get on and off the boats never expanding properly until the have a province on mainland.
4. -mod switch IMO isnt not working correctly and especially for BI related mods will there be a feature added to specify to point to BI or RTW folder for BI mods?
5. There seems to be a Memory leak somewhere in BI will this be adressed?
6. PLEASE, I beg in BI change the way the 1st cohorts are numbered! Its a nice feature but having multiple 1st legions running around can be done better. Like making the game track ANY first cohorts recruited by the player and giving a consecutive number. Just let the title be Province specific.
7. We need a Proper Editor for Campaign maps Heights etc. Instead of a Jva based fan made one.
8. Are you guys going to make 1.3 and BI more RTW 1.2 friendly, Many things were changed many errors over little stupid things the game NEVER cared about. Plus Maps are a pain to port over to 1.3 or especially BI.
For me and my mod, unless MOST of these are resolved, I cant really port over like I would like to, because it crushing the game and I would rather wait to see if and when you may release the patch, as they usually cause our work to be knocked back. lol
Anyway, PLEASE HELP US JEROME AND CA TEAM. :bow:
Lt_1956
SigniferOne
10-26-2005, 08:26
Hm, it'd be nice if we were provided the command-line arguments for RTW, and what they did (similar to helping us with the docudemon files).
I'd like to know how to create a workaround for the fact that it isn't possible to disable level 1 buildings for a faction while they're able to build level 2+
In RTW 1.2 this was possible, but now it isn't anymore.
Bernhard of Clairvaux
10-26-2005, 12:00
Couple of questions.
3.)Any help on decoding the religious unrest?!
More to come up, as I explore the BI files. ~:)
I agree. A bit more explanation. Adding new religions work fine but only the three first ones cause unrest in a settlement. This has been tested by me and others (Andreas, Alpaca) so it does not clearly work as designed.
How do you mod gate houses' arrows and boiling oil?
Second this question!:bow:
edyzmedieval
10-26-2005, 15:28
I agree. A bit more explanation. Adding new religions work fine but only the three first ones cause unrest in a settlement. This has been tested by me and others (Andreas, Alpaca) so it does not clearly work as designed.
I've searched through those and it seems there are some hidden things....
For example, the "Pip" folder from UI is not there, even on "Show hidden files and folders".
There has to be a way to find out where those are.....
It would be nice to get some informations about the game mechanics related to provinces under "slave control" in descr_strat and the proper use of rebel-groups, sub-faction relationships with culture tags, and of course the funktions behind the new term "superfaction roman_senate"
PROMETHEUS
10-29-2005, 11:32
what can we do and what can't we do with BI feature mod switch , like how to add all the BI features to normal ROME TW game and or how to mod the new texts inside the mod switched folder created for a mod .... how for example to add new music only played inside the new mod ?
Hung Among Us
10-30-2005, 18:26
Is it possible to change the color of the menu text?
Meneldil
10-30-2005, 19:58
Is it possible for new religions to cause unrest ?
Is it possible to change the descr_geography.txt file, and to make it create a new .dat file so it would be possible to create new climates?
Mouzafphaerre
10-30-2005, 21:51
.
Is faction specific music possible?
.
Dol Guldur
10-30-2005, 23:40
1. Is it possible to add more than 1 additional culture in BI?
2. Does building_factions work and, if so, what is the correct syntax?
3. Are enum and lookup files obsolete?
4. Is it possible to make buildings indestructable?
5. What determines the unit composition of shadowing rebels?
6. Can the numeral and Legio prefix be modded in legion names?
7. Can the "apparently unused" hidden resources be removed for a new map or are there hard-coded implications that may cause a CTD, etc?
SigniferOne
11-02-2005, 18:15
Ok more questions:
What's the point of there being slot underlays/overlays? Assuming the answer is that it's to allow the civilians and possibly soldiers to walk on these structures, i.e. base_roman_awesome_temple, etc. If so, then how do we enable people to walk there?
As a tangental question, in what ways can we modify descr_lbc_db.txt file further, the file that regulates what civilians are walking around during the 'city view'?
Dol Guldur
11-06-2005, 18:58
What is it that enables the rebels to retain the same diplomatic stance throughout the game? The softcoding does not seem to produce the same ability in other factions even whne coded the same way as the rebels.
SigniferOne
11-08-2005, 07:01
Here's another question: can you place settlements on the same tile as where a river is? For some reason the engine interprets that idea as there being a bridge, and instead of showing a settlement in 'city view' merely shows there to be a bridge, and nothing else (not even citizens walking around), even if there's no crossing marked for the river in the TGA file. I'm really trying to figure this out in order to place my Rome settlement right next to a river, but for some reason the game simply replaces it with a bridge crossing the river and does not show me the city (but there is a drop in performance, as if there was a city loaded in memory...)
I even thought it's because there's a merchant building in the city and the game interprets that as there being a one-tile trade route through the river -- hence the bridge, but even removing the trader building does not change things (or removing all buildings, for that matter). So any help would be appreciated.
Big question I have too...
https://forums.totalwar.org/vb/showthread.php?t=57002
edyzmedieval
11-24-2005, 23:40
Why aren't we allowed at the source code?!
Only for modding purposes. The diplomacy is too bugged, and we need the AI to behave smarter. VH is too easy....
wlesmana
11-25-2005, 04:42
Why can't I create new sprites and instead always get this error:
DATABASE_TABLE error found : unrecognised record id c requested
I followed the instructions to the letter and using RTW vanilla 1.2, unmodded in any way and trying to generate sprites for existing units for testing. I'm not the only one with this problem btw.
Hans Kloss
11-25-2005, 10:02
EDITED
mercenary question deleted..I have found solution
Shigawire
11-26-2005, 01:23
How do we change the siege-point value of a siege engine?
For example, if I want to make a "siege tower" cost 300 siege points.
PSYCHO V
12-13-2005, 03:25
Updated and sent to CA
Thanks to all
Cheers
WhiteProphecy
12-13-2005, 23:22
Could sombody make a MOD for the regular RTW not the BI where I can play as all the factions?
Thanks :san_cheesy:
nikolai1962
01-01-2006, 17:23
A lot of triggers are passed a character-record. You can access things like character attributes through these. Can you get the character's age?
Lentonius
01-15-2006, 16:03
I know especially Jerome has contributed greatly to the community, but with the upcoming latest TW game, is there any possibility that some of the tools you lot used like a good campaign editor, and various other great helps, may be passed down to the community when the latest game is released.
I mean, when the new game comes out, if the extras are given to the community it will help greatly, and by that time RTW will not be having any expansions, so it would be very nice if we could have these...:2thumbsup:
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.