Addon Autoex Help

Language: JP EN DE FR
2010-09-08
New Items
users online
Forum » Windower » Support » Addon Autoex help
Addon Autoex help
 Ragnarok.Lockfort
Offline
Server: Ragnarok
Game: FFXI
user: Terazuma
Posts: 252
By Ragnarok.Lockfort 2024-10-29 22:51:28
Link | Quote | Reply
 
for autoexec plugin, the way to import another xml into your current xml is
Code
<autoexec>
	<import>Example</import>
</autoexec>


but how would you do this in autoex addon? I've asked in windower support but no answers.
Offline
Posts: 7
By JeanneRenault 2024-10-30 21:55:05
Link | Quote | Reply
 
Honestly, this is just the tip of the sheissberg that is Autoex. Literally all the events it recognizes are already implemented in Lua, but the cerebral colossus that pinched it out decided to write their own (broken) custom logic for every single one. Good luck if you have anything set to fire in response to HP/MP hitting certain thresholds. And if you used Autoexec to load any addons at character login instead of at launch (and you might, considering how many addons just break if you try to load them before a character's logged in), you have to go into the lua and fix the function that loads configs so that it can load a global one instead of only character-specific ones. (Incidentally, Autoex also doesn't have a proper "wait until there's actually a character logged in" function.) It's so bad that I'm sincerely considering switching to Ashita. If I wanted buggy, broken, unfinished garbo, I'd be playing modern games.

Anyway, to answer your question, you have to put all the XML files you want to import in the Convert folder along with the one that imports them. Presumably, just converting that main one will cause the others to get converted and embedded directly into it, but I wouldn't be surprised if it just plain breaks.
 Fenrir.Niflheim
VIP
Offline
Server: Fenrir
Game: FFXI
user: Tesahade
Posts: 669
By Fenrir.Niflheim 2024-10-30 22:49:18
Link | Quote | Reply
 
JeanneRenault said: »
if you used Autoexec to load any addons at character login instead of at launch
just use the addon designed specifically for that, it is called plugin_manager

autoex is like the excel, people learned it and then try to use it to solve all their possible problems rather than using a more appropriate tool.
[+]
Offline
Posts: 7
By JeanneRenault 2024-10-30 22:59:57
Link | Quote | Reply
 
Fenrir.Niflheim said: »
JeanneRenault said: »
if you used Autoexec to load any addons at character login instead of at launch
just use the addon designed specifically for that, it is called plugin_manager

autoex is like the excel, people learned it and then try to use it to solve all their possible problems rather than using a more appropriate tool.
If Plugin Manager actually worked, I never would've set up Autoexec xmls to handle something that, if we're honest, should have been built into the profile functionality to begin with.

Don't get smarmy with me.
VIP
Offline
Posts: 760
By Lili 2024-10-31 03:31:03
Link | Quote | Reply
 
Plugin_manager works correctly and is used daily by multiple dozens of people with no issues.

If yours is not working then there is some configuration problem or possibly a bug introduced in the last update, which means that the correct course of action is to come report the wrong behavior and ask for support, which we will happily provide.

Using autoex for stuff it's not intended for is going to be wonky at best.

If you like Ashita better, use it and don't look back. It's written by highly competent people who love ffxi just as much as we do. Its design and development philosophy is entirely different than Windower, which is why both softwares are in active and current development and are highly supported, for free, in our free personal time.

But coming here to spew passive-aggressive bullcrap at tools provided for free by a community of volunteers is, to say the least, an *** thing to do. Chill.
[+]
 Carbuncle.Nynja
Offline
Server: Carbuncle
Game: FFXI
user: NynJa
Posts: 3752
By Carbuncle.Nynja 2024-10-31 09:37:06
Link | Quote | Reply
 
Can I just point out there is one absolutely glaring flaw in autoex and the decision to do per-char profiles?

Quote:
* ### Login: `login_<name>`
* Triggers when a character is logged in with a specified name.
* `<name>`: Players name.
* **String Interpolation:**
* {NAME} - Name of the player that logged in.
* Example: \["command"\]="echo {NAME} logged in!"

This doesnt work because once the plugin detects a login and applies the profile, you've passed the trigger for the addon to run the command. But I can confirm with 100% certainty that my char.lua settings file is entered properly because if I log out then log back in, the command runs as expected.


Quote:
## Loading:
The addon by default now stores `Autoex` list by character name. If another file is wished to be used, then load that filename instead.
Perhaps there should be a default.lua that loads before any characters are selected so intital login commands can run?
 Fenrir.Niflheim
VIP
Offline
Server: Fenrir
Game: FFXI
user: Tesahade
Posts: 669
By Fenrir.Niflheim 2024-10-31 09:39:27
Link | Quote | Reply
 
Yeah op and i discussed imports dont work, and I found the bug in that while talking to them, guess talking to people is key to fixing problems.

I will look into this issue as well while i finish up making the import handle more levels.
[+]
 Lakshmi.Elidyr
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 912
By Lakshmi.Elidyr 2024-10-31 17:58:33
Link | Quote | Reply
 
If there is any concerns or bugs, or any other kinds of issues, feel free to let me know. The person who originally asked to have this made, sadly passed away and he was the person that originally tested this for me years ago. I don't personally use this, as the angry person above mentioned, you can simply do this in a standard addon, but not all users are capable enough to do this.

That's why AutoExec plugin existed, to wrap the events in a easy to use format, not to mention I think this was also before they were even visible in the API, or maybe not all of them.

Either way, I don't mind writing stuff, or helping in any manner. Feel free to message here, or PM, or even DM on Discord if you have any concerns or point to any issues, or whatever it may be. Like I said, I really have no reason to have such a tool, so it's not something I think about at all.
[+]
Log in to post.