PDA

View Full Version : Novice Modder Needs Help!



Gregoshi
11-26-2002, 21:30
cugel needs some help, copied from the EH:

------
Arrrrgh@
This is much tougher than I thought I thought I would make a simple change, to make it possible to build feudal foot knights. It seems totally illogical and ahistorical that you can build mounted knights but not dismounted ones in the early period. Soo I simply added the build section from the feudal knight {Royal_Court2, Horse_Breeder2, Armourer2} to the Feudal Footknights column in the same place as it appears in the Feudal Knights row, thus:

FeudalFootKnights INFANTRY 275 10 1 0 80 40 1 PREFERRED "CATH_HERETICS(5), CATH_LOYALISTS(15), CATH_REBELS(5), ORTH_HERETICS(5), ORTH_LOYALISTS(15), ORTH_REBELS(5), ORTH_ZEALOTS(5)" "POVERTY_STRICKEN(75.75), DESPERATE_DEFENCE(10.1), CATHOLIC_EXPANSIONIST(121.2), CATHOLIC_NAVAL_EXPANSIONIST(121.2), CATHOLIC_TRADER(101), CATHOLIC_CRUSADER_TRADER(101), CATHOLIC_EXPANSIONIST_CRUSADER(121.2), CATHOLIC_DEFENSIVE_CRUSADER(80.8), POPE(50.5), CATHOLIC_DEFENSIVE(80.8), CATHOLIC_ISOLATIONIST(50.5), ORTHODOX_DEFENSIVE(80.8), ORTHODOX_EXPANSIONIST(121.2), ORTHODOX_STAGNANT(101), MUSLIM_PEACEFUL(101), MUSLIM_EXPANSIONIST(121.2), MUSLIM_DEVOUT(121.2), BARBARIAN_RAIDER(161.6), REBELS(101), CLOSE_TO_SUPPORT_LIMIT(27.27)" "{ROYAL_COURT2, ARMOURER2, HORSE_BREEDER2}, ATTACKER,STRONG" ALL_PERIODS YES "HEIGHT( 85 ), RADIUS( 25 ), SCALE( 120 ), PROJECTILE_TYPE( NONE ), SAMURAI( YES ), MARCH_SPEED( 6 ), RUN_SPEED( 10 ), CHARGE_SPEED( 11 ), MIN_TURNSPEED( 2 ), MAX_TURNSPEED( 8 ), TURN_TO_MOTION_SPEED( 8 ), MAX_INMOTION_TURN( 96 ), FORMATION_WIDTH_SPACING( 60 ), FORMATION_LENGTH_SPACING( 60 ), ENGAGEMENT_THRESHOLD( 1500 ), CHARGE_BONUS( 3 ), MELEE_BONUS( 5 ), DEFENCE_BONUS( 2 ), ARMOUR_LEVEL( 3 ), HONOUR_LEVEL( 8 ), AMMO( 0 ), FORMATIONS_PREFERRED_NUM_ROWS( 3 )" NO "own_unit_tooltip1, own_unit_tooltip2, other_unit_tooltip1, other_unit_tooltip2" "CHAINHLM, YES, YES" "ARAGONESE, BURGUNDIAN, DANISH, ENGLISH, FRENCH, GERMAN_HRE, HUNGARIAN, ITALIAN, NOVGOROD, PAPIST, POLISH, RUSSIAN, SICILIAN, SPANISH, SWISS" "Missile, Shocktroop, Spear, Cavalry" "SKIRMISH(0), ADVANCE_PARTY(1),
OUTFLANKING_FORCE(0), MAIN_BODY(2), HOLD_TERRAIN(1), RESERVE(1), REINFORCEMENT(1), ASSAULT(2), ASSAULT_COVER(0), ASSAULT_COVER_CASTLE_ATTACK(0), COVER(0)" "CATHOLIC, ORTHODOX" 0 LARGE YES 1 NO 0 0 SWORD


The (unmodified) Feudal Knights entry is:
FeudalKnights CAVALRY 425 21 1 0 80 40 1 PREFERRED "CATH_BANDITS(2), CATH_HERETICS(5), CATH_LOYALISTS(-15), CATH_REBELS(-20), CATH_ZEALOTS(10), ORTH_HERETICS(10), ORTH_REBELS(5)" "POVERTY_STRICKEN(23.1), DESPERATE_DEFENCE(23.1), CATHOLIC_EXPANSIONIST(277.2), CATHOLIC_NAVAL_EXPANSIONIST(277.2), CATHOLIC_TRADER(231), CATHOLIC_CRUSADER_TRADER(231), CATHOLIC_EXPANSIONIST_CRUSADER(277.2), CATHOLIC_DEFENSIVE_CRUSADER(184.8), POPE(115.5), CATHOLIC_DEFENSIVE(184.8), CATHOLIC_ISOLATIONIST(115.5), ORTHODOX_DEFENSIVE(184.8), ORTHODOX_EXPANSIONIST(277.2), ORTHODOX_STAGNANT(231), MUSLIM_PEACEFUL(231), MUSLIM_EXPANSIONIST(277.2), MUSLIM_DEVOUT(277.2), BARBARIAN_RAIDER(369.6), REBELS(231), CLOSE_TO_SUPPORT_LIMIT(97.02)" "{ROYAL_COURT2, ARMOURER2, HORSE_BREEDER2}" "ATTACKER,AMBUSH,ANTI_MISSILE,CAVALRY" ALL_PERIODS YES "HEIGHT( 125 ), RADIUS( 50 ), SCALE( 138 ), PROJECTILE_TYPE( NONE ), SAMURAI( YES ), MARCH_SPEED( 9 ), RUN_SPEED( 20 ), CHARGE_SPEED( 22 ), MIN_TURNSPEED( 2 ), MAX_TURNSPEED( 8 ), TURN_TO_MOTION_SPEED( 8 ), MAX_INMOTION_TURN( 96 ), FORMATION_WIDTH_SPACING( 115 ), FORMATION_LENGTH_SPACING( 125 ), ENGAGEMENT_THRESHOLD( 2000 ), CHARGE_BONUS( 8 ), MELEE_BONUS( 4 ), DEFENCE_BONUS( 3 ), ARMOUR_LEVEL( 4 ), HONOUR_LEVEL( 8 ), AMMO( 0 ), FORMATIONS_PREFERRED_NUM_ROWS( 4 )" NO "own_unit_tooltip1, own_unit_tooltip2, other_unit_tooltip1, other_unit_tooltip2" HORSE "MAILHCAV, YES, YES, LiHorse" ALL_FACTIONS "Missile, Shocktroop, Spear, Cavalry" "SKIRMISH(0), ADVANCE_PARTY(1),
OUTFLANKING_FORCE(1), MAIN_BODY(1), HOLD_TERRAIN(0), RESERVE(1), REINFORCEMENT(1), ASSAULT(2), ASSAULT_COVER(0), ASSAULT_COVER_CASTLE_ATTACK(0), COVER(0)" CATHOLIC 0 UNCONTROLLED CAV YES 1 NO 0 0 "BerberCamel, bedouincamelwarriors" FeudalFootKnights SWORD


That was the only change I made. Now I get a CTD error message: "unknown unit class encountered: column 18, row62 {Royal_Court2"

Does anybody have any idea what I did wrong? http://www.totalwar.org/forum/non-cgi/emoticons/confused.gif

I've had somewhat mixed results from my modest modding efforts to date. I decided to sever the oversea "land-bridges" between provinces & that seemed to work o.k. Then I decided to build a port & shipyard for the Elmoheads since they start off severed from Europe and don't know what to do about it. When I added Shipyard2 to the province list it worked fine, but when I changed the 2 to a 1 half of the castles on the map disappeared. Changed the 1 back to a 2 and re-load and they all re-appeared. I have no idea what the problem was on that one. Played about 100 turns last night and seems to work fine with shipyard2
http://www.totalwar.org/forum/non-cgi/emoticons/confused.gif

If anyone can help me to understand what's wrong I'd appreciate it. http://www.totalwar.org/forum/non-cgi/emoticons/frown.gif

------

NagatsukaShumi
11-26-2002, 22:55
Hmmmmmmm, I can't see much wrong, better ask LK, he's got an eye for these things...

Nag http://www.totalwar.org/forum/non-cgi/emoticons/idea.gif

fenir
11-26-2002, 23:22
Hello Cugel,

Ok, Change the "ShipYard2" to "Shipyard". it will now work.
don't put the 1 in.
Check your other txt docment files for examples on what is record as what, eg: Spelling and definitions.

Also, replace crusaders_unit_prod11 with your back up again.
Start again...
Your feudalfootknights, sounds like you missed the tab. The txt Doc ie: early.txt is tab delimited. So you will need a MS excel Viewer, which is downloadable from the totalwar.org download page.

I however perfer to use notepad, I actually use the arrow keys to find each tab space on the txt.
If you are going to include FootKnights of any kind, then download the Footknights addon mod that Lord Krazy made, it to is available in the Download section.

Use it as a referrence for constructioning your own entry in your own files.
This way you will gain an understanding of the way to change the files, and how to do it with out to many problems.

Also Note: {Royal_Court2, Armourer2} don't need horses for FootKnights http://www.totalwar.org/forum/non-cgi/emoticons/tongue.gif


Let me know if you have any more problems, I will send you a copy of the entry you need to make.

fenir http://www.totalwar.org/forum/non-cgi/emoticons/smokin.gif

MonkeyMan
11-27-2002, 00:49
here's the relevant section from my unit_prod text for feudals

.27)" "{ ROYAL_COURT2, ARMOURER2 }" "ATTACKER

Note that that is:

.27)" TAB TAB "{ ROYAL_COURT2, ARMOURER2 }" TAB "ATTACKER

almost all error messages in this situatio are to do with the wrong syntax, usually down to the number of TABS between statements.

**************************************************

also have a link to my full editing guide to this


http://www.totalwar.org/cgi-bin....;t=2283 (http://www.totalwar.org/cgi-bin/forum/ikonboard.cgi?act=ST;f=15;t=2283)

*************************************

also if you want to make feudals (or anything else) dismountable in all situations change the following as given example for royal knights:


In your crusader_unit_prod11.txt

at the end of the entry for each unit a piece of code states, what dimountable unit is associated with a unit, whether they can always dismount and then the name of a weapon.

So late Royal Knights have

ChivalricFootKnights yes SWORD

Whereas Early Royal Knights Have

FeudalFootKnights SWORD

This creates the difference between the dismounted unit types and whn and when not they can dismount.

Personally i like to make Early knights

FeudalFootKnights YES SWORD

(thats feudalfootknights TAB YES TAB Sword)

and Lates

GothicFootKnights yes SWORD

.

cugel
11-27-2002, 00:55
Thanks Fenir for your response. At the risk of sounding rather dim, I'm not sure what you mean when you say "it sounds like you missed the tab. the txt.doc . . . is tab delimited." Err - Say what? http://www.totalwar.org/forum/non-cgi/emoticons/confused.gif

(I used wordpad (won't open in notepad) because I assumed that WP programs like Word would screw things up by inserting squirrelly caracters that cause the game to blow up.) There doesn't seem to be a problem with saving .txt files with wordpad and getting them to work).

Do you mean that I needed to insert an extra tab before the entry: {Royal_Court2, Armourer2} - i.e. the game is reading from the wrong column? That's kind of what I assumed, but I dunno whether to add a tab or subtract. I'm just not familiar with this programming language. I assumed that tabs did nothing and that commas delimited each entry. No? I've entered extra tabs to items or deleted tabs on occasion in the early.txt file (to get some columns to line up the way they obviously intended and for ease of viewing) never caused a problem so far. Are the entries in crusaders_unit_prod11 different?

BTW, I downloaded and installed Lord Krazy's mod. When I tried it out Royal Knights now are dismountable during battle, but Feudal Knights are still not. I wish I knew exactly how he did it. What entry causes knights to be dismountable? Anyone?

Thanks in advance for your help http://www.totalwar.org/forum/non-cgi/emoticons/cool.gif

cugel
11-27-2002, 00:59
Well Phew You gotta move fast on this forum While I was composing my post in response to Fenir MonkeyMan answered my question Didn't see it until after I posted.

Thanks everyone http://www.totalwar.org/forum/non-cgi/emoticons/cool.gif

cugel
11-27-2002, 01:08
Yes you did MonkeyMan What I meant was that while I was composing a response to Fenir's last post, you snuck in and answered all my questions. Then I hit Add Reply and noticed what you said Color me a bit embarrased. http://www.totalwar.org/forum/non-cgi/emoticons/rolleyes.gif

Lord Krazy
11-27-2002, 04:31
If you got excel open prod in that and read all the headers
before you start to change things.

Did you ever get one of those fack exams
that says at the top, "Read all the paper before
answering the questions" and at the bottom
says "Do not answere any questions, just
fold your arms and take it easy" http://www.totalwar.org/forum/non-cgi/emoticons/biggrin.gif

This exam paper can save lives well time anyway:D

LK http://www.totalwar.org/forum/non-cgi/emoticons/smokin.gif

fenir
11-28-2002, 06:26
Cugel,
What Lord Krazy Said http://www.totalwar.org/forum/non-cgi/emoticons/tongue.gif


Open your Copy of crusaders_unit_prod11 in Excel. read the headers at the top of each Column. DO NOT SAVE IT ON CLOSING

Then when editing your test crusaders_unit_prod11 you will know what column you are editing and why.


fenir