|
Post by skyguysss on Mar 28, 2022 15:04:19 GMT -5
Hi S4S forums, I have an idea for a mod I'd like to see in the game and need some help making it work.
It's an item called a Servo Auto-Charger, and for Servo sims it will automatically & wirelessly recharge their charge motive if they're in the same room as the device. It would be the tesla coil object borrowed from the Parenthood GP, but with the colors of its rod swapped from red to green. Servos would no longer need to go into sleep mode as long as they're in proximity to the charger, although a downside is that it would draw lots of power and could make a big impact on the household's electric bill. Perhaps there could also be a little buff on Servos that shows up when they're being charged wirelessly. I was able to make an item clone in S4S with the recolor, and while I've dabbled in a little script modding recently, I'm not too sure what else I need to edit or the appropriate TDESCs I need to use for it to work. Something else I noticed with this object is that it has 3 animation states for the electricity animation in high, medium and low, and I think it'd be good to tie these into options for different "charging" strengths so servos could charge faster or slower if the user desires. Would also like to turn off the sound effects so its electric sounds aren't too annoying after a while. I already have a package file that I could share with someone who wants to help and it should have most of the resources needed inside, just need help on scripting it to function. Any help would be appreciated, thanks!
|
|
|
Post by salvatorest on Mar 29, 2022 11:21:30 GMT -5
Sounds cool. I'd like to help but my knowledge is not enough for it
|
|
|
Post by baniduhaine on Apr 1, 2022 23:30:37 GMT -5
Absolutely no idea how custom objects can be made since all I've ever done is fix them, but pretty sure this is how you could go about it: the charging interactions could presumably be clones to the regular charging interaction, with different tuningIDs, loot being a buff that's very short-lived and thus needs to be renewed by the maintained presence of the object in question. The respective buffs would then have a continuous statistic modifier targeting charge to make it increase so long as the buff is active. Is that what you're trying to do?
btw pretty sure it can be done just using snippets compatible with XML Injector without the need for custom scripts
edit: automatic charging could also hypothetically be toggled like teleportation can be, nesting a buff -> hidden trait with XML Injector to not override the Servo trait itself, then enabling a toggle bound to the hidden trait. The one thing I can't advice on is the animation thing because what even are vfx or animations I don't have a clue :D
|
|
|
Post by skyguysss on Apr 3, 2022 21:14:11 GMT -5
Thank you for the advice, baniduhaine. Not too familiar with some of that but I think I get the just of what you're talking about.
Although, I just noticed I seem to be running into an issue with the cloned tesla coil. Even when I import it into the game with little to no changes, the "Activate" super interaction doesn't do anything for some reason. Not sure why that is, is it a bug of some sorts?
|
|
|
Post by baniduhaine on Apr 4, 2022 9:57:12 GMT -5
Thank you for the advice, baniduhaine. Not too familiar with some of that but I think I get the just of what you're talking about. Although, I just noticed I seem to be running into an issue with the cloned tesla coil. Even when I import it into the game with little to no changes, the "Activate" super interaction doesn't do anything for some reason. Not sure why that is, is it a bug of some sorts? No idea what it might be without seeing it, but check the warehouse tab and make sure any parts that used to refer to the original objects ID now refer to that of your new item. If need be, compare it to the original by looking for the Activate interaction of that one. My first reply to this was very late so it appears my sleep-deprived self completely forgot about the existence of broadcasters, but yeah I forgot to mention that step between the object and the buffs that could be applied to Servos. x_x
|
|
|
Post by skyguysss on Apr 4, 2022 18:03:10 GMT -5
As a matter of fact, I actually read up on broadcasters shortly after your other post, and yeah I bet that could work.
But I'm still having issues with the mod. When I try to test it with the script mods I made, I keep getting an error saying "Script call failed" when trying to place it, maybe I'm not doing something right? Again I'm willing to share the package file so you can take a look for yourself.
|
|
|
Post by baniduhaine on Apr 4, 2022 23:58:13 GMT -5
As a matter of fact, I actually read up on broadcasters shortly after your other post, and yeah I bet that could work. But I'm still having issues with the mod. When I try to test it with the script mods I made, I keep getting an error saying "Script call failed" when trying to place it, maybe I'm not doing something right? Again I'm willing to share the package file so you can take a look for yourself. If you so wish, I could take a look at it tomorrow-ish. I'm pretty sure it might be doable without a custom script if it can be made compatible with XML Injector.
|
|