Fallout Tactics utility Fallout Tactics Scripting Engine (0.51a)

Discussion in 'Fallout Tactics Modding' started by Melindil, Jul 3, 2018.

  1. nadeauhugo

    nadeauhugo Author of FOT mod THE SUM Modder

    539
    Mar 9, 2014
    I have an easy to create (I think...?) hook that I would like to suggest, lets say for your long-term update list Melindil. :D

    It would be something like : OnDeath(isSquadMember)

    You see, I just had this crazy idea to give more meaning to squad members death. Upon a squad member death, the hook could theorically fire and then create an item (using your already existing function) inside the main character inventory. This item would be the "remains" of the characters, or "dogtags", with the name of the character as the item name. The "on the ground" image for that item could be the image of a tomb, that the squad could "dig" anywhere they want just by dropping the item. Mouse over the tomb would then show the squad member name. pretty great isn't it? Hehe! I would LOVE to see something like this one day ;).
     

    Attached Files:

  2. Uncertain Questioner

    Uncertain Questioner First time out of the vault

    3
    Apr 3, 2021
    I don't want to be presumptuous, but is there a chance for a version of the sniper perk that works on all ranged weapons ala FO2? I feel like that would really help the otherwise kinda wimpy feeling miniguns. (Well, that or AP ammo for 5.56 and 7.62, but my ignorant rear assumes it would probably be easier to make a Falout 2 style Sniper patch than to create new ammo and place it in appropriate inventories.
     
  3. Melindil

    Melindil First time out of the vault

    84
    Apr 15, 2018
    Updated to 0.51a. Only change is a (hopeful) bugfix for the crash issue that some people have been experiencing. If you have had issues with crashing, please try again with this version to see if the crash has been eliminated. If not, I'll try to put together a debug build to get more information on the reason for the crash.

    I also owe responses to some of the replies above - I'll try to get to those tomorrow.
     
  4. nadeauhugo

    nadeauhugo Author of FOT mod THE SUM Modder

    539
    Mar 9, 2014
    I played a lot with the previous version while having a long list of ftse.lua added functions. The only repetitive crashs to desktop I experienced were soon after the beginning of a game on the first map, but not frequently. Might it be the crash we're after? Its possible its not related due to my map scripts.

    Also, are you closed to implementing the equipped status in onInventoryAdd and removed? I'm about to send a new version of my mod out there and this could really come in handy. Thanks a lot!
     
  5. Melindil

    Melindil First time out of the vault

    84
    Apr 15, 2018
    Re: crash:

    The way you describe it, it is actually very likely to be the same one. The Lua stack issue tends to happen a) near the beginning of the start of the game (reason unknown), and b) when there are *fewer* Lua hook functions implemented in ftse.lua, as the problem is that the C++ part of the code wouldn't pop the error object off the stack whenever it tried to look up a hook function name and couldn't find it. So that may be why you didn't see it as often as others, and why I couldn't see it at all during testing (as I usually have at least a small logging function on each hook).

    Now that the crash is (hopefully?) solved, this is next on my list. And I have most of the info and code I need to implement it, so it will not take very long. If I get time like I did yesterday, then it should only take a couple days to get it working.

    This one is already on my list, along with hooks for when entities take damage or are healed/repaired.

    No worries. This is pretty easy to do with a FTSE script, I'll put one together along with instructions on how to install. If you'd prefer a hex edit instead (e.g. you'd prefer to not install FTSE), I can try to come up with one that works (though it wouldn't be as easy to tweak the behavior to, e.g., not make the M2 Browning ridiculously overpowered).
     
  6. nadeauhugo

    nadeauhugo Author of FOT mod THE SUM Modder

    539
    Mar 9, 2014
    This is wow very promising, as about now this is the only problem I have that really get me stuck. The rest are rare or mostly nuisance. Your explainations make real sense so let's hope it's only this.

    As for the onEquipped script, very great news it means a lot to me and it's all I could hope for! :D As soon as yesterday, I tried to add a script to "transform" an item in the player's inventory (a working cellphone to a dead one) under certain circumstances. Worked fine, but both vanilla Tactics scripts and Lua code were unable to deal with the item in any way when it was eqquiped. I'm confident it will help me solve that as well.

    And finally yes I'm glad the OnDeath and damage/healed/repaired hook is on the list. I also have a script ready for when this is implemented : a bonus "Survivor" perk if the squad member get in a situation when he.she gets very close to dying but survives... :D
     
  7. Uncertain Questioner

    Uncertain Questioner First time out of the vault

    3
    Apr 3, 2021
    Thank you so much. I already have FTSE. (A shame I didn't actually build my main character for Sniper and none of the recruits really have a good mix of PE, AG, and LK for it, but it's still a fun idea maybe for a future playthrough.
     
  8. Reinar

    Reinar First time out of the vault

    70
    Oct 23, 2011
    I tried all the previous crash scenarios and so far no crash. Looks like you did it!