Index lists
#1
Posted 16 April 2006 - 09:23 PM
I know what this error is about, but know not how to solve it.
Can we add new tokens in a list, that I just haven't heard of yet?
Or is this something that is hardcoded, and unreachable for us?
Is it new in BFME II, or is it a know thing from BFME I, which EA has perhaps even made a statement about?
If someone can give me any answers on any of these questions, I would be very glad to hear them.
Most of the time, there are ways around the problem, but they are not always easy to find or code.
Solinx
"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr
#3
Posted 16 April 2006 - 11:36 PM
Edited by J-a-Y, 16 April 2006 - 11:37 PM.
#4
Posted 16 April 2006 - 11:50 PM
yes i got this error when i was tring to make a new trype of formation unit (or wahtever u call them) for the peasant horde,
Yeah, it seems to show up on everything new you enter in a ini file. It all needs to be listed in the index. :(
I've been looking at game.dat just now. That file is... large! And all the scripts are encrypted/unreadable, as was to be expected. Only a few things are readable with a hexeditor, I've seen nothing really special yet, most of what I saw are comments (or maybe messages).
Haven't used a hexeditor before, so it might just be me, doing something wrong
Solinx
"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr
#5
Posted 16 April 2006 - 11:54 PM
-MOUNTED
-WEAPONSET TOGGLE_1
-PLAYER_UPGRADE
I think you can also use "PLAYER_UPGRADE 2" and so on. Btw, I'm not sure if all that spelling is right so check underscore placement in the INI's. Just make sure what you add those too don't already use that flag. For example, something that can mount will already use MOUNTED, a unit that can change its weapon will have WEAPONSET TOGGLE_1, and PLAYER_UPGRADE is used with units that can get upgrades purchased at an armory.
#6
Posted 17 April 2006 - 12:15 AM
You are right, and I thank you for the help, but I already knew that. Now I read it again I have to admit that "I know what this error is about, but know not how to solve it." is a bit vague and didn't have to mean I already knew all you said at all.I am assuming you had something like "ModelConditionState = CRATEUPGRADE_ONE" or maybe "Conditions = CRATEUPGRADE_ONE". The problem is that there is an "index list" of all the different flags you can use; you can't just make one up. Some flags you could use instead are:
-MOUNTED
-WEAPONSET TOGGLE_1
-PLAYER_UPGRADE
I think you can also use "PLAYER_UPGRADE 2" and so on. Btw, I'm not sure if all that spelling is right so check underscore placement in the INI's. Just make sure what you add those too don't already use that flag. For example, something that can mount will already use MOUNTED, a unit that can change its weapon will have WEAPONSET TOGGLE_1, and PLAYER_UPGRADE is used with units that can get upgrades purchased at an armory.
Btw. I tried to use PLAYER_UPGRADE_2 for a weaponset, but that token seems to only works for armorsets, which have the possibility of setting a flag. (armorsets can use both nr 1 and 2, weapons only 1) I know I can solve the problem by creating new units for every x weaponsets and link them with MountedTemplate, but that is just another workaround that requires a lot more coding than adding a simple token to a list.
About game.dat, look at this:
A complete list of settings used in weapon.ini. But without the uncrypted code it is pretty useless, because there are no pointers to set. It just shows what you can use in weapon.ini
Solinx
"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr
#7
Posted 17 April 2006 - 12:19 AM
#8
Posted 17 April 2006 - 12:36 AM
About game.dat, look at this:
A complete list of settings used in weapon.ini. But without the uncrypted code it is pretty useless, because there are no pointers to set. It just shows what you can use in weapon.ini
Solinx [/quote]
Oh my goodness... What exactly were you doing in game.dat? From what Ive heard, there isnt anything usefull in there... Just alot of Jibberish.
#9
Posted 17 April 2006 - 12:48 AM
hehe, that's the problem... I used all the states I could think of or find and get to workI always thought you could use flags for whatever you want. For example, in my mod I used the ModelConditionState = MOUNTED for Haldir's Galadhrim state. Then again I could be wrong. Also, how is the unit aquiring this flag? If it's through a button, make sure the "FlagsUsed" or whatever it is is the same as the flag you use in the code. Try using MOUNTED if the unit does not already have that state.
Here is the code I used:
From Siegemod_trebuchet.ini (my own object, modded copy of trebuchet.ini)
WeaponSet Conditions = PLAYER_UPGRADE_2;CLOSE_RANGE CONTESTING_BUILDING Weapon = PRIMARY Siegemod_GondorTrebuchetFireSiege End ... Behavior = WeaponSetUpgrade ModuleTag_TestingWeaponSet TriggeredBy = Upgrade_TestingWeaponSet EndAt this the game states that the condition given in the WeaponSet is no good.
Now look at this from rohanrohirrim.ini:
ArmorSet ;Horse Shield Conditions = PLAYER_UPGRADE Armor = RohirrimShieldArmor ;RohirrimHorseShieldArmor DamageFX = NormalDamageFX End ArmorSet ;Heavy Armor Conditions = PLAYER_UPGRADE_2 Armor = RohirrimHeavyArmor DamageFX = NormalDamageFX End ... Behavior = ArmorUpgrade ArmorUpgradeModuleTag TriggeredBy = Upgrade_RohanHeavyArmorForRohirrim ArmorSetFlag = PLAYER_UPGRADE_2 End ... Behavior = ArmorUpgrade ModuleTagHorseShield TriggeredBy = Upgrade_RohanHorseShield ArmorSetFlag = PLAYER_UPGRADE EndIt sets a flag to use the second upgrade. I tried using WeaponSetFlag, but that is unknown and gives an error.
You heard right. Nothing usefull, only a list of the things you may be able to use. I just took a quick look at it.Oh my goodness... What exactly were you doing in game.dat? From what Ive heard, there isnt anything usefull in there... Just alot of Jibberish.
Solinx
Edited by Solinx, 17 April 2006 - 10:16 AM.
"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr
#10
Posted 18 April 2006 - 03:48 PM
And that may not even be legal
#11
Posted 18 April 2006 - 03:55 PM
you can't edit game.dat, unless you somehow decompile it and then somehow recompile it again.
And that may not even be legal
I would be suprised if it is.
But I was just wondering if EA ever said anything about these restrictions to the nummer of tokens. It must be bugging a lot of modders.
Solinx
"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users