Clientless send correct command according to client

06/26/2019 19:41 Roxeez#1
Hey, i need to send command but i want my program to work with all possible nostale server (FR,ES, IT etc..) but every "server" have a language and so different command

For example the command used for sending miniland invitation in french is $Inviter {Name} but if you are playing on IT server for example the command will be different so i would like to know if it's possible to get the correct command used by the client ?

Thanks
06/26/2019 20:46 Digitalis87#2
I guess you should have couple of files with commands in each language and an unique 'id' for each string, then as your program to say 'ID 1' in case X ?

(i'm not dev so i may have wrong ideas)
06/26/2019 21:25 Cryless~#3
Quote:
Originally Posted by Digitalis87 View Post
I guess you should have couple of files with commands in each language and an unique 'id' for each string, then as your program to say 'ID 1' in case X ?

(i'm not dev so i may have wrong ideas)
It is correct except the part about "files" ;)

You probably want commands[languageFlag][commandId]

E.g. commands["en"]["invite"]
06/26/2019 22:08 Roxeez#4
I'm looking for something in nostale data file (like item name, skill name etc...)
But ofc if there is no such thing, i will "hardcode" needed commands

I've looked in NSlangData but i can't find something related to commands

Edit : Just found something who can help me in NScliData conststring.dat at id 3142 it's the list of all command i easily find my command in if i split the content of the string

But i'm not sure if the content of the 3142 string is the same for each language (for example the first command for french is the whisper command
06/26/2019 23:29 fantasy942#5
You can't just use the Language.dat file?

00 EN, 01 DE, 02 FR etc etc...
06/27/2019 00:01 Roxeez#6
Quote:
Originally Posted by fantasy942 View Post
You can't just use the Language.dat file?

00 EN, 01 DE, 02 FR etc etc...
Where is this file ?
06/27/2019 00:03 fantasy942#7
On the main nostale folder
06/27/2019 12:05 Bejine#8
It's safe to assume every (GF) client will have the same IDs in NScliData/NSlangData.