chikakoo / MVM-Randomizer

Creates balanced, randomized MVM POP files for Team Fortress 2.
1 stars 1 forks source link

Could not add custom templates #2

Closed CombineSlayer24 closed 2 years ago

CombineSlayer24 commented 2 years ago

Hello again, I ran into an issue. I'm trying to add my custom robots in, but some of them are not being added in for whatever reason. I've been trying to figure out why, but I just don't know why.

Here's my entire custom robot list https://cdn.discordapp.com/attachments/670808579825205269/1023774454796521502/robot_pyri_random.pop

ERROR: could not add template of name: T_TFBot_Scout_Marker_Tagger in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Scout_Bonk_Stun in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Scout_Bonk_Stun_FastCharge in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Scout_Cleaver in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Scout_Fast in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Scout_Shortstop in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Scout_Milk in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Soldier_Barrage in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Soldier_Warbox_Backup in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Soldier_Burst_Pusher in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Soldier_Burst_Pusher_Expert in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Soldier_ChargedBarrage in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Pyro_Buff in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Pyro_Backup in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Pyro_Conch in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Pyro_Backburner in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Demo_Buff in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Demo_Backup in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Demo_Conch in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Demo_Loch_Normal in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Demo_Loch_Expert in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Heavy_Buff in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Heavy_Backup in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Heavy_Conch in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Heavyweapons_Heavyweight_Mega_Champ in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Heavyweapons_Steel_Conch in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Heavy_Shotgun_Scout in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Heavy_Armored in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Heavy_Steel in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Heavy_Steel_Type2 in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Heavy_Deflector_Airblast in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Heavy_Healonhit in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_HeavyShotgun_Slugshot in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_HeavyShotgun_Hunter in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Medic_Uber_QuickFlash in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Sniper_AlwaysFire in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Sniper_AlwaysFire_Upgraded in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Sniper_Professional in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Sniper_Sydney_Sleepy in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Giant_Sniper_Huntsman_Pusher in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Spy_Ninja in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Spy_Enforcer in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Spy_Enforcer_Revolver in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Spy_Revolver in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Spy_Ambassador in robot_pyri_random.pop
ERROR: could not add template of name: T_TFBot_Spy_Fireproof in robot_pyri_random.pop
chikakoo commented 2 years ago

Hello - I've looked into this and found the issue. It seems the parser does not like tabs between the attributes and their values for these templates. If you want this to work now, you'll have to replace those tabs with spaces.

I have a fix for it that I'll get out there soon, so I'll keep this issue open and let you know when that's done.

Thanks for the report!

CombineSlayer24 commented 2 years ago

Hello there. I'm thankful to hear back from you. I've did what you commented, I fixed one template to remove the tab indentations and replaced those with spaces, but the program still refuses to load it.

        T_TFBot_Soldier_Barrage
        {
            ClassIcon   soldier_barrage_normal
            Health  800
            Name    "Barrage Soldier"
            Scale   1.4
            Class   Soldier
            Skill   Expert
            Attributes  "HoldFireUntilFullReload"
            Item "Upgradeable TF_WEAPON_ROCKETLAUNCHER"
            ItemAttributes
            {
                ItemName "Upgradeable TF_WEAPON_ROCKETLAUNCHER"
                "faster reload rate" 0.22
                "fire rate bonus" 0.2
                "damage bonus" 1.5
                "projectile spread angle penalty" 5
                "clip size upgrade atomic" 26.0
            }
            CharacterAttributes
            {
                "Projectile speed increased" 0.4
                "move speed bonus" 0.9
                "health regen" 10
            }
        }
chikakoo commented 2 years ago

Hello, I may not have explained that very well - it's not specifically Item/ClassAttributes, but every property in the template (well, specifically we care about ClassIcon, Name, and Class).

Either way - I did get a new release (v1.1) out there with a fix for this, along with a bunch of other pending changes that I never officially released if you want to see if that works.

CombineSlayer24 commented 2 years ago

Oh, no worries. I've downloaded 1.1, and it's fixed, I can see the templates that weren't getting added. I appreciate the help and the fix. Thank you.

chikakoo commented 2 years ago

Good to hear! Closing this issue now, as it's been resolved.