Recently with medmod V2 coming out I though I would implement Peter Triggs unit udater, but I can't get it to work. I already edited everything for medmod, but it says it cant find the MOB messages, and I can't find it in script.slc. I extracted update string . txt from the 9/13 craddle update, but it still doesn't work. I searched for the thread, but didn't find it either. Can any one help?
Announcement
Collapse
No announcement yet.
Can't get unit updater to work
Collapse
X
-
It says something like MObunitcost not found in string database. Basically what I think the problem is that its not finding the messages that popup to upgrade the units. The part that says units need to be upgraded, we have this much gold, do you want to upgrade all the units, do you want to upgrade some of the units etc........ I read the installation file and it says I need to put CRA_scen_str.txt in a scenario folder, but I didn't find CRA_scen_str.txt in the 9/13 update, and I don't want to download craddle since it's 12 MB and my connection sucks.
In a day or two I'll put together a file so that you can just insert the Updater into MedMod, but I'm working on something else right now.
that's Ok I need to study for two test, Differential Equations(a Hard math class), and Communications 1302( I need to read 3 chapters). My Diff. EQ. test is tommorow, and the Communications test is on Teusday, so I probably won't be playing CTP 2 until Wednesday.
Comment
-
Originally posted by Cube
I read the installation file and it says I need to put CRA_scen_str.txt in a scenario folder, but I didn't find CRA_scen_str.txt in the 9/13 update, and I don't want to download craddle since it's 12 MB and my connection sucks.
I could always send you a CD with all my modified files...Yes, let's be optimistic until we have reason to be otherwise...No, let's be pessimistic until we are forced to do otherwise...Maybe, let's be balanced until we are convinced to do otherwise. -- DrSpike, Skanky Burns, Shogun Gunner
...aisdhieort...dticcok...
Comment
-
Ahh, the MObs strings, it comes back to me. Couldn't do what I had originally planned but this should help:
Here's the original UnitUpdater file. Since you want to use it with the MedMod expansion pack, I've renamed it MM2X_UnitUpdater.slc. Put it in the same folder as the other MM2X_... slc files.
Now here's the strings you need:
Code:MObsUnitsFirst "Great news, Sire! Our recent discovery will allow us to re-train and re-equip some of our military units. We have already switched production to the new units but we have some old units in use. Shall I proceed?" MObsUnitsCostOK "We have {NUM_OBS_UNITS} {OBS_UNIT_ARRAY[0].name} units who are pleading for more modern equipment. It will cost {TOTAL_COST} gold to provide them with it and we have enough gold in the treasury. Shall we retrain and re-equip all of them?" MObsUnitsCostOKand1unit "We have {NUM_OBS_UNITS} {OBS_UNIT_ARRAY[0].name} unit who is pleading for more modern equipment. It will cost {TOTAL_COST} gold to provide them with it and we have enough gold in the treasury. Shall we re-train and re-equip them?" SOME "Not all. Show me them." MPartialUpdate "Shall we modernize this unit?" MObsUnitsCostNotEnoughGold "It will cost {TOTAL_COST} gold to modernize those units but we don't have enough gold in the treasury. Shall we retrain and re-equip some of them?" MNoMoreGold "Sire, I regret to inform you that the treasury is bare."
Now you get to customize the data. At the beginning of the UnitUpdater file there are four data arrays:
Code://DATA ARRAYS: here's where you fill in the above arrays enadv[0]=AdvanceDB(ADVANCE_FEUDALISM); OLD_UNIT_TYPE[0]=UnitDB(UNIT_HOPLITE); NEW_UNIT_TYPE[0]=UnitDB(UNIT_PIKEMEN); PER_UNIT_UPDATE_COST[0]=205; enadv[1]=AdvanceDB(ADVANCE_FEUDALISM); OLD_UNIT_TYPE[1]=UnitDB(UNIT_WARRIOR); NEW_UNIT_TYPE[1]=UnitDB(UNIT_PIKEMEN); PER_UNIT_UPDATE_COST[1]=230; enadv[2]=AdvanceDB(ADVANCE_GUNPOWDER); OLD_UNIT_TYPE[2]=UnitDB(UNIT_ARCHER); NEW_UNIT_TYPE[2]=UnitDB(UNIT_INFANTRYMAN); PER_UNIT_UPDATE_COST[2]=850;
You've already got CRA_updater.slc; check Hexagonian's data there. But remember that the data is relative to the Unit and Advance databases (Units.txt and Advance.txt) so it won't be completely compatible.Attached Files
Comment
-
I already edited it for medmod there were about 40 or so unit updates, and it was very tediuos. I lowerered the upgrade cost to about 0.1 % production since money is hard to make in medmod with the high upkeeps, or at least it was in the previous version.
I though these were messages, but you said they were strings. I know messages go in the MM2_script.slc file, But I don't really know where the strings go. I'll have to try in all the files in that folder except the library ones. What's the difference between a string and a message?
Comment
Comment