If I wanted to add a command to my prop, something Like “hold AUX to play/loop sound” how difficult would that be?
I am using Fetts prop file so when the blade is off holding AUX dose nothing.
Although you’ll have to make sure you don’t create a conflict with other controls.
Hold Aux in my prop is already used for Scroll Presets.
for me its long press, i was thinking of using hold, would there still be a conflict?
That’d be for you to test. I already got everything working in it’s current state, if you are changing or adding things you’ll want to make sure it doesn’t impact something else .
FWIW, you can use Track Player’s loop function to loop sounds without needing to make any mods, it’ll give you control to start and stop as needed. Just put the sound in your /tracks folder or as your default track.
i need it to work by holding or pressing Aux is the problem, my saber has a 3rd button that functions as a second aux that i want to play a sound when held.
would this work if i put it in the right place?
ase EVENTID(BUTTON_AUX, EVENT_HELD_LONG, MODE_OFF | BUTTON_POWER):
PlaySound("Example.wav");
return true;
My prop doesn’t use a 3rd button, so you’d have to write in to account for it.
My suggestion is trial and error. Unfortunately, I don’t have time to write custom prop files.
its not a 3rd button, its in series? with the aux button. they act as one button.
You can test it, not sure how that’s going to impact other things.
Having made some changes myself on Fetts263 prop (on my local copy), I can confidently state that NOTHING first or second will consistently work. Only some of the third and fourth are still open for the taking on AUX only: EVENT_THIRD_CLICK_SHORT, EVENT_FOURTH_CLICK_SHORT, EVENT_FOURTH_CLICK_LONG.
Forget adding any of the “held” because only one of short, med or long can be used because when the time expires, the event will be released and if any action is associated with it, it will happen. For example if you see a 1st, 2nd, … held long that was not used but there is a “held med” then that EVENT_your-number_HELD_MEDIUM will be released and your EVENT_your-number_HELD_LONG will be ignored.
But if you have 3 buttons, why not wire it separately, make it an AUX2 button and all the AUX2 events are available for the taking on Fett263’s prop.
I don’t have the tools to do any wiring that’s why I bought pre built. I did work it out tho! I swapped hold power to do force/quote to hold AUX and it worked. something else I would ask is can you have it that power turns on the blade and Aux turns it off? i cant find the “BUTTON_POWER, EVENT_PRESSED” for turning on and off?
I can tell you what to search, but I wouldn’t mess with it unless you know exactly what you are doing and understand all the intricacies of all the EVENT stuff.
Turning your saber ON is under
case EVENTID(BUTTON_POWER, EVENT_CLICK_SHORT, MODE_OFF):
Turning your saber OFF is under
case EVENTID(BUTTON_POWER, EVENT_FIRST_CLICK_SHORT, MODE_ON):
What ever you do, please make a back-up of the file you plan to modify.
I would also:
before you upload your modifications to the saber even IF it compiles (but it probably won’t compile). Don’t say I didn’t warn you.
I will caution that changing existing buttons and functions is like a “can of worms” as there are a lot of moving parts and changing one thing can have a cascading effect that prevents other things from working or causes other functions to not work properly. You’re free to try but as Oliver notes I would back up everything and just because something compiles doesn’t mean it works. Sometimes changing one thing will break a dozen other things, so be very mindful and be sure to test ALL controls after any change.
I find your lack of faith disturbing…but warranted. I always back things up, I made enough mistakes already to know to do that. I really don’t have any idea what I’m doing, but you don’t find your way without making a few wrong turns. learning this stuff and getting it to work is fun, even if frustrating at times. I’m sure others can relate.
This is the way.
It’s how I learned.
Reverse engineer what’s there enough and you will see how things work.
Then I suggest you read this tread (when I thought I knew what I was doing but didn’t)
I agree with you on the fun part but fett263 has already thought of a lot of (most in fact) button/events/move combos in his prop, and finding a new one to add is pretty hard (and frustrating), but swapping one that is already used, making it do something else and making it not “break” another thing, that I know it will be tough. Especially on the “lower amount of clicks” because he used everything that can be used. But if you find something on the “higher amount of clicks” (like EVENT_THIRD_something or fourth_something) you will have a better chance at being successful.
Probably you will tell me next “Never give me the odds…” so I won’t but I am wishing best of luck. I hope you are successful.
If you’re editing a prop file for the first time, I would recommend using the basic button prop as your starting point, called saber.h.
Fernando’s Fett263 prop is immensely powerful and complex, and as he’s already mentioned, changing one thing can ripple out and affect a thousand other things unless you really understand how it all works.
By contrast, the basic prop is a fraction of the size and any conflicts you inadvertently introduce will be much easier to trace and fix. By starting with Fernando’s prop, you’re diving straight in to working on a modern Formula 1 car - it’s much better to cut your teeth on a 1950s Morris Minor first while you get to grips with the tech and the principles. Then once you start to understand how it goes together, you can begin to mix and match sections and features from other prop files to create the custom prop file you want.
yea Fetts prop is honestly amazing, all the abilities and integration with blade styles is fantastic. I really wouldn’t want to change it, except the saber i have is Luke’s cave scene saber and in my mind the buttons work a certain way that’s different than Fetts prop. So the obsessive nerd in me wants to try make it work!
This is defiantly true, but if you have no idea what possible looking to the best for ideas is a good place to start imo.