RPG - Com issues

Discussion in 'Coding' started by Lightning, Aug 19, 2016.

  1. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    ive modified both the RPG and the commander armour for the game, and for some odd reason the RPG is suddenly knocking off 4 plates of armour in one shot (the RPG only has 15 extra damage, and the com armour has a bunch of extra HP and resistances

    Comm armour
    RPG
     
  2. Thexa4

    Thexa4 Developer Staff Member Moderator

    Messages:
    304
    Likes Received:
    98
    Trophy Points:
    0
    Could you post the differences between your version and the most recent version that didn't have the effect? (the version you based it on)
     
  3. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    i honestly cant remember the original version these scripts are from..
     
  4. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    current game version scripts (2.9.3)

     
  5. Thexa4

    Thexa4 Developer Staff Member Moderator

    Messages:
    304
    Likes Received:
    98
    Trophy Points:
    0
    Try to use something like git, time machine or windows file history, it helps you figure out what caused things to go bad.
    Can you list the differences?
    If you have a lot of changes with the current version, try reverting half the properties and test again, if it still fails, remove another half, etc.
     
  6. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    MY VERSION
    {
    // Weapon characteristics:
    "Damage" "145" // damage
    "Bullets" "1" // bullets per shoot
    "CycleTime" "2" // time between shoots

    //Explosive-specific values
    "Velocity" "2600" // Rocket velocity
    "Turning Speed" "2.5" // Turning speed (0-1)
    "Explosion Force" "100" // Explosion push force
    "Explosion Radius" "80" // Explosion radius
    "Explosion Sprite" "9" // This number is converted into a particle name in game_particles.txt


    CURRENT
    WeaponData
    {
    // Weapon characteristics:
    "Damage" "130" // damage
    "Bullets" "1" // bullets per shoot
    "CycleTime" "3" // time between shoots

    //Explosive-specific values
    "Velocity" "1500" // Rocket velocity
    "Turning Speed" "1.5" // Turning speed (0-1)
    "Explosion Force" "100" // Explosion push force
    "Explosion Radius" "50" // Explosion radius
    "Explosion Sprite" "9" // Explosion Sprite


    Difference in RPGs
     
  7. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    Comm armour difference

    MY VERSION
    CURRENT
     
  8. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    the colour coding is what i added / changed
     
  9. Thexa4

    Thexa4 Developer Staff Member Moderator

    Messages:
    304
    Likes Received:
    98
    Trophy Points:
    0
    You can most likely ignore CycleTime and Turning Speed. The most promising value seems Angle Modifier. If that doesn't change it, try reverting half of the values, etc...
     
  10. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    Change velocity of rpg back to normal and test again.

    CV armor is weak against high velocity things afaik.
     
  11. Lazybum

    Lazybum :D Staff Member Moderator

    Messages:
    4,827
    Likes Received:
    190
    Trophy Points:
    0
    That's the speed to damage modifier, which is 0. So no that's not it.

    Only thing I v can think of is you changed the comm to use plain armor instead of the comm armor. To help see what exactly it is try hitting it with something else, sticky nades or a rail heavy or somersetting. There's nothin wrong with values as far as i can tell.
     
  12. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    Isnt there a backup system that makes commanders use plain if the commander armour is bugged? this because otherwise the armor prevents the game from even booting.
     
  13. Devourawr

    Devourawr Member

    Messages:
    1,970
    Likes Received:
    72
    Trophy Points:
    0
    Just revert all your changes to the comm vehicle armour, then test out the RPG on it. If it doesn't take off 4 plates, you're golden.

    Besides, you won't need to compensate the CV armour, it's pretty strong to RPGs and 10% less damage from them is probably a bad thing anyway.
     
    BlackRedDead likes this.
  14. Lazybum

    Lazybum :D Staff Member Moderator

    Messages:
    4,827
    Likes Received:
    190
    Trophy Points:
    0
    That's not 10%, it's 90% less damage. It's pretty clear it's just to see if rpg was working right and the fact it's not changing anything says to me it's not using comm armor.
     
  15. Thexa4

    Thexa4 Developer Staff Member Moderator

    Messages:
    304
    Likes Received:
    98
    Trophy Points:
    0
    Yes, there is. If it's activated it should be visible in the console though.
     
  16. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    FIXED IT! .. i uh.. i fucked up a bit , and it involved one of these fuckers }
     
    BlackRedDead likes this.
  17. blizzerd

    blizzerd Member

    Messages:
    10,552
    Likes Received:
    60
    Trophy Points:
    0
    ke ke ke i knew i still had it... i am surprised about how much tiny querks i know of this games inner working while never having seen a class of code.

    edit; besides the stuff mootant shared with me that is... full disclosure
     
  18. BlackRedDead

    BlackRedDead Member

    Messages:
    268
    Likes Received:
    6
    Trophy Points:
    0
    well, syntax checkers can prevent this ;D
     
  19. Lightning

    Lightning Member

    Messages:
    147
    Likes Received:
    23
    Trophy Points:
    0
    it wasn't syntax at all, it was just me not noticing the ending of the script that contained all active Armour's. it was an absolutely tiny detail that was difficult for me to notice.
     
  20. LordDz_2

    LordDz_2 Strange things happens here

    Messages:
    2,956
    Likes Received:
    93
    Trophy Points:
    0
    I hope you're using something like Notepad++ or Sublime and not using the basic Notepad program for your edits.
     

Share This Page