PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Terminator 2nd Generatation => AllInOne Scripts => GUI => Topic started by: Annie on 16 March, 2009, 14:25:54

Title: Settings wont save
Post by: Annie on 16 March, 2009, 14:25:54
Hi,

I tried this with ptokax 4.1.1 and everytime i fill the settings in  they dont save.  I also get this error when i try to connect to the hub
...1.1 - 20-08-08/scripts/Terminator/Lua/Connected.lua:189: attempt to concatenate field 'iOpHubs' (a nil value)



Thanks
Title: Re: Settings wont save
Post by: Madman on 16 March, 2009, 14:36:40
Save button works fine for me. I tested most the options in GUI.
Changing and then pressing Save button, and then a restart of script, and all new settings is loaded

found the other error, will be fixed when i get bak home
Title: Re: Settings wont save
Post by: Annie on 16 March, 2009, 14:53:08
Yeah I've done all that loads of times I cant see what im doing wrong because everytime i close the GUI it loses what I have changed
Title: Re: Settings wont save
Post by: Madman on 16 March, 2009, 15:32:51
That would mean that Settings.ini dosent get saved. Open it manually and change the Botname string.
Title: Re: Settings wont save
Post by: Annie on 16 March, 2009, 20:35:39
I just tried it changing the bot name and it still didnt save so I changed them myself in there and now they have saved.  But they wont save through the GUI
Title: Re: Settings wont save
Post by: Madman on 16 March, 2009, 22:03:16
That's really weird.

I added a file that has an updated GUI/General.lua and Lua/Serilize.lua in it.
It will add an Debug window, and update it everytime you add a letter in any of the boxes on General tab.
Title: Re: Settings wont save
Post by: Annie on 17 March, 2009, 14:14:41
Thanks :)
Title: Re: Settings wont save
Post by: Madman on 17 March, 2009, 17:27:03
Uploaded a new package here as well.

This one only contains the 2 updated files.
Title: Re: Settings wont save
Post by: Madman on 22 March, 2009, 18:08:11
Annie have you manage to get something saved thru GUI?
and what does the debug log return?
Title: Re: Settings wont save
Post by: Annie on 23 March, 2009, 10:30:21
No sorry still cant save anything through the GUI and i get this error to when i try entering the hub 23.03.2009 09:27:02 - ....1.1 - 20-08-08/scripts/Terminator/Lua/Connected.lua:187: attempt to concatenate field '?' (a nil value).   This is the Terminator.2nd.Gen.0.2_Beta  ive tried. I added the other files and still the same.
Title: Re: Settings wont save
Post by: Madman on 23 March, 2009, 14:58:45
Uhm... I would guess you are useing a client that ain't in ClientTags.xml.
The nil error refers to any of the client info at login, can't tell witch one, but i'll add text that should prevent that in next version.

As for the GUI, what do the debug window show?
Title: Re: Settings wont save
Post by: Annie on 23 March, 2009, 20:35:22
The Debug window only shows something when i change the bot name  says its saved which it does.   The GUI doesn't save the following,  in share/block/clean - min share, max share and blocks I tick for user, also in triggs the box to tick for anti advertise and misc it wont save if i untick or tick boxes in there.  I use Zion 2.07 Client and Zion is added in the Client Checker.  Hope this helps
Title: Re: Settings wont save
Post by: Madman on 23 March, 2009, 22:40:36
That helped alot, all GUI problems have been fixed.
As for client i'll look in to that tomorrow...
Title: Re: Settings wont save
Post by: Annie on 23 March, 2009, 23:27:41
thanks  :)