fleetatks
  • fleetatks
  • 100% (Exalted)
  • Colonel Topic Starter
19 years ago
I'm trying to give the unit "horse drawn carriage" the overlord locomotor, because it's default is basic car locomotor & that makes it way to fast. I'm sure all the codes are correct, but it doesn't work (crashes map) I think it's something to do with the mass of the unit, or the set wander and set panic locomotors. I've tried it with all 3 overlord, but that didnt work, so I put it back and still not. Code is below, please help.

Object HorseDrawnCart
ReplaceModule ModuleTag_10

Locomotor = SET_NORMAL OverlordLocomotor
Locomotor = SET_WANDER WanderCarLocomotor
Locomotor = SET_PANIC PanicCarLocomotor

Behavior = PhysicsBehavior ModuleTag_10_override
Mass = 30.0
End
End
End

Email me if you ever need help (edited signature November 6th, 2014)
Sponsor
Sagi
  • Sagi
  • 100% (Exalted)
  • General
19 years ago
What's the problem? Go to the Locomotor.ini and copy the car locomotor lines, panic or whatever... change the name of it to something other than "PanicCarLocomotor" or whatever it says (just make sure your new entered name isn't already used in that file) and change whatever you wish in that locomotor. There! you have a new uniqe locomotor for your unit. Now just use the new locomotor's name where it needs to be used.


If you changed too much and it won't work. Go back and reset the locomotor back to its original CarSomethingLocomotor and try again. 😉
UserPostedImage 
Sagi.
fleetatks
  • fleetatks
  • 100% (Exalted)
  • Colonel Topic Starter
19 years ago


What's the problem?

Sagi wrote:


I don't know, put it in a map folder and see for your self.

Go to the Locomotor.ini and copy the car locomotor lines...



If I do that then all my cars that are on the map will be slow too, I just want this unit to be slow.

For some reason the last "end" looks weird here, and I think maybe it needs only 2 ends or maybe 4?
Email me if you ever need help (edited signature November 6th, 2014)
CommieDog
19 years ago
I'm thinking that the problem may be the stray "ReplaceModule ModuleTag_10" line. Locomotors are not attached to any module (though they are dependent on an AI module being defined beforehand), so there should be no ReplaceModule declared before it.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
fleetatks
  • fleetatks
  • 100% (Exalted)
  • Colonel Topic Starter
19 years ago
That didn't work either, If you have any time on your hands could you check it out for me? I'm not sure what I'm doing wrong.
Email me if you ever need help (edited signature November 6th, 2014)
CommieDog
19 years ago
I'm not any good with Map.ini, unfortunately.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Flip1299
19 years ago
in all cases that i've seen, the AI update is replaced before the new locomotor is specified (even if there is no difference between the AI Updates). like this:

Object HorseDrawnCart
  ReplaceModule ModuleTag_09
   Behavior = AIUpdateInterface ModuleTag_09_Override
  End
  Locomotor = SET_NORMAL OverlordLocomotor
  Locomotor = SET_WANDER WanderCarLocomotor
  Locomotor = SET_PANIC PanicCarLocomotor
  ReplaceModule ModuleTag_10
  Behavior = PhysicsBehavior ModuleTag_10_override
   Mass = 30.0
  End
End

UserPostedImage
fleetatks
  • fleetatks
  • 100% (Exalted)
  • Colonel Topic Starter
19 years ago
😞 still not working. I'm not sure if I need to replace module 9, because I'm not really changing anything in it's coding inside the end's. I am still willing for any advice.
Email me if you ever need help (edited signature November 6th, 2014)
Flip1299
19 years ago
i've done a bit of research, try this:
Object HorseDrawnCart
 ReplaceModule ModuleTag_09
   Behavior = AIUpdateInterface ModuleTag_09_Override
  End
 End
  Locomotor = SET_NORMAL OverlordLocomotor
  Locomotor = SET_WANDER WanderCarLocomotor
  Locomotor = SET_PANIC PanicCarLocomotor
 ReplaceModule ModuleTag_10
  Behavior = PhysicsBehavior ModuleTag_10_override
   Mass = 30.0
  End
 End
End

UserPostedImage