Lysergix
  • Lysergix
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
Is it possible to add the autoloader upgrade to the Overlord tank?

I am using TibEd 2 and I have already made the ChinaTankAutoLoader an upgradeable option at the Propaganda Center, and tested it on the BattleMaster. Works perfectly.

Now I want to add it to the Overlord. I have already created a new tank gun for it "OverlordTankGunUpgraded" with a bigger clip size, and added the 2 new weaponset modules (one with the Upgraded gun, one with the Upgraded gun and the gattling cannon). But the game seems to only recognize one Weaponset upgrade module - the one for adding the gattling cannon.

Is there a way to make the Overlord have two weaponset upgrades? One for the gattling cannon, and one for the autoloader?

any help is appreciated!

thank you
Sponsor
Rrtaya_tsamsiyu
12 years ago
hmm, you could simply make it to where upgrading with the gattling cannon doesn't add the dummy weapon to the overlord, then you would only need your autoloader weaponset and there wouldn't be a problem. If you do that make sure to delete the weaponset upgrade stuffs that the gattling cannon does so that buying the gattling cannon doesn't give you the autoloader too.

That way it should still be able to attack aircraft, but i don't think you would be able to manually tell it to do so.

As far as i know you can only have one weaponset upgrade.
one soul at a time
Lysergix
  • Lysergix
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
Do you know if it's possible to alter the player_update string, or copy it as a repeat of itself, the same way as the crateupdate_one / crateupdate_two?

Thanks for your answer, by the way! I appreciate the insight
Annihilationzh
12 years ago

That way it should still be able to attack aircraft, but i don't think you would be able to manually tell it to do so.


You can, but only aircraft within the attack range of the gattling cannon.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Lysergix
  • Lysergix
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
it seems it is indeed impossible to have multiple weapon set upgrades when triggered by player upgrades - the GLA can have multiple weapon set upgrades because they have crate upgrades too... now, i'm no expert, but i played with it for hours and i cannot find a way to do it (doesn't necessarily mean there isn't a way).

...but, i did find a creative way around it...

multiple commandset upgrades for a war factory.

I cloned the overlord, called it ChinaTankOverlordUpgraded, and changed its weapon sets to have the upgraded gun, which I had already made and named OverlordTankGunUpgraded.

Then I cloned its command button, and called it Command_ConstructChinaTankOverlordUpgraded, and changed its Object Key to ChinaTankOverlordUpgraded.

Then I cloned both ChinaWarFactory command sets, calling them ChinaWarFactoryCommandSet_Auto and ChinaWarFactoryCommandSetUpgraded_Auto. On both of them, I replaced the Command_ConstructChinaTankOverlord with Command_ConstructChinaTankOverlordUpgraded.

Then I cloned the War Factory CommandSetUpgrade module. The first CommandSetUpgrade, I changed the keys of CommandSet, CommandSetAlt, TriggerAlt, and TriggeredBy to (respectively) ChinaWarFactoryCommandSet_Auto, ChinaWarFactoryCommandSetUpgraded_Auto, Upgrade_ChinaMines, and Upgrade_ChinaTankAutoLoader. The second CommandSetUpgrade, I did the same, but to the following keys: ChinaWarFactoryCommandSetUpgrade, ChinaWarFactoryCommandSetUpgrade_Auto, Upgrade_ChinaTankAutoLoader and Upgrade_ChinaMines

It worked flawlessly, except for the obvious that it doesn't upgrade existing Overlord to Upgraded Overlords. Nonetheless, all new overlords were the upgraded ones with the 4-shot clip size and 2-shots per barrel.

...so if anyone is trying to do this, this is one way to do it. But if anyone can figure out how to make it an actual upgrade to the weaponset, I'd love to know how.
Rrtaya_tsamsiyu
12 years ago
hmm, i didn't think of the gla vehicles. Took a look at it, they use a different way of upgrading the weaponsets. its crateupdate instead of weaponset_upgrade. So, you could use crates to upgrade your tank via making the button spawn a crate instead of actually upgrade the vehicle. This would mean it would be per-vehicle though, and if the GLA captured one of the tanks they could upgrade it via collecting crates instead of buying the upgrade.

Anyways, would probley be best to use the scorpion as a template, as it has the missile upgrade and the crate upgrades.

The upgrades will have to be either both per-vehicle, or the crate upgrades per-vehicle and the other universal (bought at a factory or something.)
one soul at a time
Annihilationzh
12 years ago
Learn how to use bike logic and problems like this will go away.

If you want an example, the Contra mod is full of them. Just look for RiderChangeContain in a unit that isn't a bike, and voila.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Lysergix
  • Lysergix
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago

hmm, i didn't think of the gla vehicles. Took a look at it, they use a different way of upgrading the weaponsets. its crateupdate instead of weaponset_upgrade. So, you could use crates to upgrade your tank via making the button spawn a crate instead of actually upgrade the vehicle. This would mean it would be per-vehicle though, and if the GLA captured one of the tanks they could upgrade it via collecting crates instead of buying the upgrade.

Anyways, would probley be best to use the scorpion as a template, as it has the missile upgrade and the crate upgrades.

The upgrades will have to be either both per-vehicle, or the crate upgrades per-vehicle and the other universal (bought at a factory or something.)

Originally Posted by: rrtaya_tsamsiyu 



wouldn't the vehicle have to move over a crate for this? or would it be possible to attach a CRATE_UPGRADE_ONE to a per-vehicle upgrade... so that purchasing the upgrade more-or-less creates a crate upgrade that doesn't have to be picked up by the vehicle, just automatically takes effect?
Annihilationzh
12 years ago
Is there a phobia of bike logic on this forum? Every time I mention it I get ignored. I might have to write a tutorial or something. Well, if you'd rather not use bike logic...

It worked flawlessly, except for the obvious that it doesn't upgrade existing Overlord to Upgraded Overlords. Nonetheless, all new overlords were the upgraded ones with the 4-shot clip size and 2-shots per barrel.


You can use a ReplaceObjectUpgrade to bypass this. You'll still need the commandset change. The biggest bug with this method is that the tanks reset health, veterancy and movement upon upgrading.

I invented a long winded workaround to prevent losing veterancy with this method a few years ago, but it's long winded because it was intended for use with 9+ weapon upgrades for a single unit.

wouldn't the vehicle have to move over a crate for this? or would it be possible to attach a CRATE_UPGRADE_ONE to a per-vehicle upgrade... so that purchasing the upgrade more-or-less creates a crate upgrade that doesn't have to be picked up by the vehicle, just automatically takes effect?


You don't need an upgrade with this method. The crate can be produced like a unit.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Lysergix
  • Lysergix
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago
Probably not many of us know what it is... I sure don't. I cannot think of a way to treat an upgraded Gun like a rider without messing up the 3D modelling. If you tutorial it, I'd love to give it a try. Any tips on object replace upgrade?
Annihilationzh
12 years ago

I cannot think of a way to treat an upgraded Gun like a rider without messing up the 3D modelling.


I don't follow, but this is how bike logic works:

A button spawns a fake, invisible rider inside the vehicle.

The fake rider changes the locomotor, model and weapon of the vehicle.

This allows for up to 7 different weaponsets, several locomotors and 7 different models all for one unit, at the click of a button.

Any tips on object replace upgrade?


There's not really much to say. The fake GLA structures use it to upgrade into real structures.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Lysergix
  • Lysergix
  • 50.25% (Neutral)
  • Private Topic Starter
12 years ago

Any tips on object replace upgrade?

Originally Posted by: Annihilationzh 


There's not really much to say. The fake GLA structures use it to upgrade into real structures.



Is there any way to retain previously purchased upgrades, like the gattling cannon, or veteran level?

...or... If I were to use the RiderChangeContain module, is it possible to attach a "spawn rider 1" command to an upgrade purchased in a building, or do i have to do it per vehicle?

thanks for the help, by the way! i appreciate it.
Annihilationzh
12 years ago

Is there any way to retain previously purchased upgrades, like the gattling cannon



Hoping you can deal with my pseudo-code:
ReplaceObjectUpgrade
    TriggeredBy = [Autoloader]
    ConflictsWith = [gattling upgrade]
    ReplaceObject = [autoloader Overlord]
End

ReplaceObjectUpgrade
    TriggeredBy = [Autoloader] [gattling cannon upgrade]
    RequiresAllTriggers = Yes
    ReplaceObject = [autoloader Overlord with free gattling cannon]
End
The first one will deactivate if the overlord has a gattling cannon. The second one will only activate if the overlord has a gattling cannon already.

or veteran level?


Only with bike logic. Although you could get creative with pilots.

...or... If I were to use the RiderChangeContain module, is it possible to attach a "spawn rider 1" command to an upgrade purchased in a building, or do i have to do it per vehicle?


ObjectCreationUpgrade. Same as the US drone upgrades.

The OCL must be similar to this:

ObjectCreationList OCL_Rider2
  CreateObject
    ObjectNames = Rider2
    Count = 1
    ContainInsideSourceObject = Yes
  End
End

There are two immediate bugs that are possible here. 1) The overlord will have two separate transport modules, one for the rider and one for the gattling cannon. This could cause bugs and 2) the upgrade activating immediately after a new overlord is created could cause problems with the location of the rider.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.