PDA

View Full Version : Renaming of LUA and XBST Files



hooliganz
08-27-2014, 09:24 PM
Hello!

Is it possible to rename the LUA and XBST Files like i want them to be? Because i have a few Scripts now in my Folder and its quite hard sometimes to find the right one? Or will it cause trouble with the loading etc. of the Scripts?

Thanks for your answers :]

ppgab
08-28-2014, 01:59 AM
hooliganz it will depend on whose scripts are you using

If it has two luas or more (config file for example) it will cause trouble

if the main lua is not encrypted(obfuscated) you should look for where it says "dofile(filename.lua)" and change that line, else there's nothing you can do other than contact who made the script.

As for the main lua, you can just execute it and click save all on settings panel, it will then auto open it along that xbst, so it doesnt matter the name

hooliganz
08-28-2014, 11:12 AM
Okay,thanks for sharing your Informations, i think i better let it be as it is, i know my luck and nothing is gonna work anymore afterwards ;D

Joshwa534
08-29-2014, 04:12 PM
Okay,thanks for sharing your Informations, i think i better let it be as it is, i know my luck and nothing is gonna work anymore afterwards ;D
ppgab is correct,

JXScripts for example verifies the file names so it has to be the file name that we set, although I'm not sure how many scripters are doing that. The dofile's would have to match up if they're using them. I'd say it would be worth a shot and if it doesn't work then you'd know pretty much immediately whether it works or not.

As for our scripts, I know currently there's 4 lua files including the shooter, hud, core & config & 1 xbst file.. but once the new library has launched, we'll be reduced down to 1 lua file and 1 xbst file. Hope it helps.

You can also have sub-folders now in Xenobot/Scripts to help sort your files. You could do something like Xenobot/Scripts/Knights and store your knight scripts there.

hooliganz
08-29-2014, 06:31 PM
You can also have sub-folders now in Xenobot/Scripts to help sort your files. You could do something like Xenobot/Scripts/Knights and store your knight scripts there.

Oh, that would be nice also, i think im gonna try it that way! Thanks Joshwa534

Joshwa534
08-29-2014, 07:16 PM
Oh, that would be nice also, i think im gonna try it that way! Thanks Joshwa534

Not a problem! :)

maroxy
08-29-2014, 07:31 PM
I'm using config files.

Then if you change the name of this file you must change it on the .lua file etc...

Like ppgab well explained ^.^