Missile mod

Hulor
Sergeant First-Class
Posts: 119
Joined: Mon 10 Apr 2017 15:25
Contact:

Re: Missile mod

Postby Hulor » Tue 30 May 2017 16:25

Hi,

D-M wrote:Why Eugen ? Am I not worthy of thy fondness and warmth ? :(

Don't take it wrong, I just wanted to see how far you would go without help :)

So I looked to your MissileDescriptor and there a few error of conversion (that's what the error is about you're try to convert variable incorrectly). Most of the time you use nil as a default value, that's true for Object type, but for integer, boolean, string and other you can't do that.

First, your TypeUnitModuleDescriptor, it has many conversion error, you can use this one (which is pretty much the same with correct default value) :

Code: Select all

        // TypeUnit
            TModuleSelector
            (
                ControllerName     = EControllerName/TypeUnit
                Default = TTypeUnitModuleDescriptor
                (
                    ControllerName                   = EControllerName/TypeUnit
                    TypeUnitValue                    = ETypeUnit/Undef
                    TypeUnitHintToken                = 'Command'
                    PortraitForInterface             = nil
                    TopViewForInterface              = nil
                    MenuIconForInterface             = nil
                    TextureForInterface              = nil
                    NameInMenuToken                  = ''
                    Nationalite                      = ENationalite/OTAN
                    ShowInMenu                       = False
                    Category                         = ECategoryTypeEnum/Infanterie
                    MotherCountry                    = ''
                    TextureMotherCountryForInterface = nil
                    UnitTypeTokens                   = [
                            'MISSILE',
                            'MISSILE_Shershen_AP',
                    ]
                    AcknowUnitType                   = $/SoundSettings/TAcknowUnitType_Command
                    UnitInfoJaugeType                = ~/UnitInfoJauge_Infantry
                    GenerateName                     = true
                    AliasName                        = ''
                    IsPrototype                      = False
                    VisualForInterface              = nil
                    Filters            = MAP [] 
                )
            ),

You can of course modify these default value to your conveinence.
Second, here is a list of all other error I found :

Code: Select all

TPositionModuleDescriptor
ClampInWorld               = False
StickToGround              = False
LowAltitudeFlyingAltitude  = ((0) * Metre)
NearGroundFlyingAltitude   = ((0) * Metre)

VisibilityModuleDescriptor
VisionUnitType       = EVisionUnitType/AlwaysOnGround
UnitIsStealth        = False
HideFromDebug        = False

DamageModuleDescriptor:
AutoOrientation = False
IsTargetableOutsideCenter = False
FxDoImpactOnUnit = False
UseTopArmorAgainstFire = False
                   
MouvementHandler_GuidedMissileDescriptor                   
CruiseAltitude = ((0) * Metre)

MinimapDisplay:
IsAlwaysVisible = False
UseTeamColor = True
FollowUnitOrientation = False


Thirdly, take care of your UnitTypeTokens in TypeUnitModuleDescriptor. You have a token named 'MISSILE_Shershen_AP', it's way too long, token can't exceed 10 caracters.

Finally, I didn't try the mod and I can't assert you that missile are still supported by the game.
So, I wish you luck for your mod ! :)

User avatar
D-M
Posts: 8794
Joined: Sat 23 Jul 2011 11:10
Contact:

Re: Missile mod

Postby D-M » Tue 30 May 2017 17:54

Han, I feel whole again ! Thanks.
Image

User avatar
D-M
Posts: 8794
Joined: Sat 23 Jul 2011 11:10
Contact:

Re: Missile mod

Postby D-M » Tue 30 May 2017 21:48

The game crashes when it fires the B1 (isn't even rendered), gotta change stuffs but it's a progress.
Image

Who is online

Users browsing this forum: No registered users and 1 guest