Console Command Issue In .txt File

Langues: JP EN DE FR
users online
Forum » Windower » Support » console command issue in .txt file
console command issue in .txt file
 Odin.Wyclef
Offline
Serveur: Odin
Game: FFXI
user: wyclef
Posts: 21
By Odin.Wyclef 2023-12-02 20:34:30
Link | Citer | R
 
I'm trying to have my Alt use a .txt file after a Send command from another character.

So far the
Quote:
/con send AltCharacter exec Filename.txt
macro seems to work succesfully.
Now in the .txt file I try to have my Bard character set his SongMode to Daurdabla songs, then sing 4 songs and after that set his SongMode to Gjallarhorn and repeat the 4 songs again.

And here is where i get stuck the songs will sing but the command to change the SongMode will not execute.

I have tried using:

Quote:
input /con gs c set SongMode Placeholder

But unfortunatly this doesnt work and i'm sure it is a syntax/typing mistake or so due to the difference between text files or gearswap lua's behaviour.
(if i type the exact same line ingame it will change the SongMode)

Does anyone have an idea what command line would work from an input / in a .txt file from the scripts folder?

For reference, this is the text file I aim to use:
Quote:
input /con gs c set SongMode Placeholder
pause 2
input /Honor March
pause 6
input /Blade Madrigal
pause 6
input /Valor Minuet IV
pause 6
input /Valor Minuet V
pause 6
input /Marcato
pause 2
input /Troubadour
pause 2
input /Nightingale
pause 2
input /con gs c set SongMode None
pause 1
input /Honor March
pause 6
input /Blade Madrigal
pause 6
input /Valor Minuet IV
pause 6
input /Valor Minuet V
 Carbuncle.Nynja
Offline
Serveur: Carbuncle
Game: FFXI
user: NynJa
Posts: 4088
By Carbuncle.Nynja 2023-12-02 20:51:56
Link | Citer | R
 
Your script is likely the problem, there is SOOOOOOOOO much extra in there.

Get rid of "input /" on all the songs
Get rid of "input /con " on all the gs commands

You dont need input for windower commands, only when actually inputting game commands (ie: "input /targetnpc")

Also, you dont need the .txt part:
"/con send AltCharacter exec Filename" will work
 Odin.Wyclef
Offline
Serveur: Odin
Game: FFXI
user: wyclef
Posts: 21
By Odin.Wyclef 2023-12-02 20:58:38
Link | Citer | R
 
Ok i've tried making a new script with just 1 line to see if the
SongMode is changing. No input / etc anymore, just
Quote:
con gs c set SongMode Placeholder

(that is what's in the Brd.lua i use from Mote/Arislan)

But this is not working either, seems the script wont execute a console command and I can't figure out why.

Edit: Figured it out now, needed to remove the 'con' from the command line as well for it to work.

Quote:
gs c set SongMode Placeholder

does the trick!!

Thanks for thinking with me Nynja!
[+]
Log in to post.