Liberty Unleashed

Scripting => Script Releases => Topic started by: Stoku on October 31, 2013, 10:24:55 pm

Title: [Update 23-09] GUI Admin Panel
Post by: Stoku on October 31, 2013, 10:24:55 pm
LATEST UPDATE: 23.09.2015 [STABLE]

(http://lck.vc-mp.eu/Scripts/adminpanel/screenshots/aplogo.png)



A GUI admin panel which includes a spectator mode. The main goal of script was adding basic administrator features, but it expanded and now includes many intricate options. Since 1.2 release, the project is in a STABLE state.

Main features
- Time and weather management
- Player management
- Vehicles management
- Game and server settings management
and more (expanded list (http://forum.liberty-unleashed.co.uk/index.php/topic,1852.msg10501.html#msg10501))

Instalation
1. Unzip `adminpanel.zip` to your `Scripts` directory.
2. Open `content.xml` and add `<script folder="adminpanel"/>` on the bottom.
3. In your accounts script add `SetAdminLevel( pPlayer, 1 )` to grant admin access or use /aplogin <password> command to login.
4. Panel is ready! To open press 'P' button :)

To enable/disable autoloader, open config.ini and change/add line below:
Code: [Select]
[panel_config]
UseAutoloader = true

Download
Admin Panel 1.3.3 (latest) (https://github.com/TheStoku/AdminPanel/releases/download/1.3.3/adminpanel1.3.3.zip)
Admin Panel 1.3.2 (https://github.com/TheStoku/AdminPanel/releases/download/1.3.2/adminpanel1.3.2.zip)
Admin Panel 1.3.1 (https://github.com/TheStoku/AdminPanel/releases/download/1.3.1/adminpanel1.3.1.zip)
Admin Panel 1.3 (https://github.com/TheStoku/AdminPanel/archive/1.3.zip)
Admin Panel 1.2 R3 (https://github.com/TheStoku/AdminPanel/archive/1.2r3.zip)
Admin Panel 1.2 R2 (https://github.com/TheStoku/AdminPanel/archive/1.2r2.zip)
Admin Panel 1.2 (https://github.com/TheStoku/AdminPanel/releases/download/1.2/adminpanel1.2.zip)
Admin Panel 1.1 R2 (https://github.com/TheStoku/AdminPanel/releases/download/1.1r2/adminpanel1.1r2.zip)
Admin Panel 1.1 (https://github.com/TheStoku/AdminPanel/releases/download/1.1/adminpanel1.1.zip)
Admin Panel 1.0 (https://github.com/TheStoku/AdminPanel/releases/download/1.0/adminpanel1.0.zip)

Github:
https://github.com/TheStoku?tab=activity (https://github.com/TheStoku?tab=activity)
https://github.com/TheStoku/AdminPanel (https://github.com/TheStoku/AdminPanel)

If you liked this project, you can feed me :)
Quote
PayPal: [email protected]
Title: Re: [Script Release] GUI Admin Panel
Post by: Stoku on October 31, 2013, 10:25:19 pm
Known issues
You tell me :)

Features
Time & Weather:
- time lock
- weather lock
- setting time
- setting weather

Player Manager:
(includes spectator)
- ban player
- kick player
- heal player
- freeze/unfreeze player
- heal player
 8 console modes (change mode with END key and accept with RETURN):
- find player
- private message
- set player health
- set player armor
- set player skin
- ban IP
- unban IP
- set admin level

Vehicle Manager:
- explode
- fix
- respawn
- remove
- teleport
- primary and secondary color palette
- locked true/false
- lights on/off
- engine on/off
- a color picker!

Server Settings:
- server name
- map name
- gamemode name
- max players
- password
- port

Game Settings:
- set game speed
- set game gravity
- toggle flying cars cheat
- toggle handling cheat
- toggle friendly fire
- toggle SSV bridge lock

Additional features:
- autoloader - autoloads scripts from `/autoload/` directory
- definable admin access level in `client.nut` file (by default level 1 has access to everything)
- easy sound and color scheming   2 color and sound schemes (check readme.txt)
- definable admin actions output in `server.nut` file
and more :)

Changelog
Version 1.3.3 (23.03.2015):
- [GENERAL] fix for setting admin level from panel

Version 1.3.2 (05.10.2014):
- [GENERAL] added fix of security flaw

Version 1.3.1 (29.09.2014):
- [CLIENT] reduced script load time from ~1350ms to <5ms.
- [CLIENT] tweaked spectate camera (from the back of spectated player)
- [GUI] prevent pressing buttons on the background windows (vehicle manager/color palette)
- [SERVER] added LoginCommand, Password, DefaultLevel, MaxAttempts, LUIDAutoLogin to config.ini (the config will be updated automatically after first launch)
- [GENERAL] redone some stuff, added minor fixes

Version 1.3 (02.09.2014):
- [SERVER] added admin login command (/aplogin by default)
- [SERVER] added autologin via LUID
- [SERVER] new variables in server.nut: (str)LOGIN_COMMAND, (str)ADMIN_PASSWORD, (int)ADMIN_LEVEL, (int)ADMIN_LOGIN_ATTEMPTS, (bool)LUID_AUTOLOGIN

Version 1.2 R3 (08.08.2014):
- [GUI] fix labels transparency in Liberty Unleashed 0.1.0.16
- [GUI] added GUI_LABEL_ALPHA for theming
- [GUI] added ban type selection window (Liberty Unleashed 0.1.0.16 )
- [CLIENT] small code cleanups

Version 1.2 R2 (04.08.2014):
- [SERVER/CLIENT] add support for Liberty Unleashed 0.1.0.15
- [SERVER] use autoloader by default
- [SERVER] Autoloader: added "off_" prefix detection in script name to ignore scripts
- [SERVER] Autoloader: added scripts counter

Version 1.2 (29.05.2014):
- [GUI] added "Vehicle Manager" tab
- [GUI] added color picker for vehicles
- [GUI] added teleport feature for players/vehicles
- [GUI] added "Set admin level" mode
- [GUI] added "All" checkbox to specify if you want to work on one player or all players (teleport all, kill all etc.)
- [GUI] added shadows for text which makes it more readable and nicer
- [GUI] some code improvements
- [CLIENT] fixed delayed settings load in "Time & Weather", "Server Settings" and "Game Settings" tab
- [CLIENT] fixed spawnscreen bug
- [CLIENT] fixed spectator mode
- [SERVER] added script autoload feature (thanks to Thijn). Just paste any .nut file into "adminpanel/autoload/" dir
- [SERVER] added "autoload/consolechat.nut", an example script and autoload feature
- [SERVER] added some new ADMIN_ECHO modes
- [SERVER] added server console commands, try 'help', 'cmd', or 'commands'
- [SERVER/CLIENT] added many checks, security fixes and did some code cleanups

Version 1.1 R2 (02.11.2013):
- fixed "P" bind in "Server Settings" tab
- streched time (hours and minutes) input boxes

Version 1.1 (01.11.2013):
- added "Server Settings" tab
- added  /- buttons to control gravity and game speed
- added "Ban" player button
- added IP in "Player Manager"
- added "Ban IP" console mode
- added "Unban IP" console mode
- added some server side checks to prevent errors
- fixed freezed camera issue in panel main menu
- fixed "P" bind issues in "Player Manager" (disabled bind for mode 1 and 2)
- fixed "Find player" mode bug when "Free slot" was selected

Version 1.0 (31.10.2013):
Initial release
Title: Re: [Script Release] GUI Admin Panel
Post by: NC on October 31, 2013, 10:50:49 pm
Looks fine. Looking forwards new versions, hoping you'll add +/- buttons for speed and gravity instead of text boxes.
Title: Re: [Script Release] GUI Admin Panel
Post by: Stoku on November 01, 2013, 01:29:19 am
Thanks for your feedback NC. I've just finished adding these buttons, the gravity has additional "++" and "--" for faster changing (+0.1) instead of normal "+"/"-" which is +0.001.

I've also fixed issue when camera stops moving in main menu and did some minor tweaks in spectating camera view. Ohh and hopefully fixed "P" bind in Player Manager.

Update: there is a major bug with searching players when "Free slot" is selected, fixed in feature version. solved in 1.1

The new version will be published soon, I just want to be sure there are no bugs left :)
Title: Re: [Script Release] GUI Admin Panel
Post by: Mido_Pop on November 01, 2013, 09:40:49 am
Nice Work  ;) +1
Title: Re: [Script Release] GUI Admin Panel
Post by: Thijn on November 01, 2013, 12:29:48 pm
Looks very nice from the screenshots, haven't had a chance to try it out ingame.
Title: Re: [Script Release] GUI Admin Panel
Post by: Fire_Head on November 01, 2013, 02:51:23 pm
Gud Job :D
Title: Re: [Script Release] GUI Admin Panel
Post by: Stoku on November 01, 2013, 04:33:08 pm
Thank you guys, just finished and uploaded a new version with bugfixes and many new features.

Version 1.1 (01.11.2013):
- added "Server Settings" tab
- added +/- buttons to control gravity and game speed
- added "Ban" player button
- added IP in "Player Manager"
- added "Ban IP" console mode
- added "Unban IP" console mode
- added some server side checks to prevent errors
- fixed freezed camera issue in panel main menu
- fixed "P" bind issues in "Player Manager" (disabled bind for mode 1 and 2)
- fixed "Find player" mode bug when "Free slot" was selected

New "Server Settings" tab:
(http://lck.vc-mp.pl/Scripts/adminpanel/screenshots/serversettings.png)

You can still request new features for upcoming version, the point of next update is making panel more advanced.
Title: Re: [Script Release] GUI Admin Panel
Post by: NC on November 01, 2013, 09:52:28 pm
Are these ">" in the text input boxes necessary?
Title: Re: [Script Release] GUI Admin Panel
Post by: sasha19323 on November 02, 2013, 10:20:44 am
Are these ">" in the text input boxes necessary?
It includes by LU and you can't remove it.
Title: Re: [Script Release] GUI Admin Panel
Post by: Stoku on November 02, 2013, 11:44:27 am
Are these ">" in the text input boxes necessary?
It includes by LU and you can't remove it.
That's right.

Bugs Detected



  • When i write on "Server Settings" the letter P, the panel closes.
  • Set Time have errors, like cannot edit the hour when more 2+ numbers.


Thank you GTU, just released 1.1 R2 which solves these issues.

Version 1.1 R2 (02.11.2013):
- fixed "P" bind in "Server Settings" tab
- streched time (hours and minutes) input boxes

PS. The upcoming 1.2 version will contain many new and useful features but development will take a while. Anyways, it'll be worth the wait :)
Title: Re: Help!
Post by: Gabox0242 on April 24, 2014, 05:20:42 pm
I do not get to put SetAdminLevel (pplayer, 1) in the script of my accounts but as I put the script of my accounts is so LUS.sqlite not like putting it there is no other easier way?
Title: Re: [Script Release] GUI Admin Panel
Post by: Stoku on April 24, 2014, 11:01:18 pm
Please paste your script (account load part) on pastebin or something, so we can help you. Also, you should probably change "pPlayer" to name which you use in your script.

Ps. Here's waiting an update which only needs to be tested before the release :)
Title: Re: [Script Release] GUI Admin Panel
Post by: Stoku on May 29, 2014, 02:57:29 pm
*bump*

I just created a github repo, so you can watch any changes in my sources, download releases etc.

Links:
AdminPanel: https://github.com/TheStoku/AdminPanel (https://github.com/TheStoku/AdminPanel)
Nightlies: https://github.com/TheStoku/AdminPanel/tree/unreleased-NIGHTLY (https://github.com/TheStoku/AdminPanel/tree/unreleased-NIGHTLY)
My activity: https://github.com/TheStoku?tab=activity (https://github.com/TheStoku?tab=activity)

About the upcoming version... I've made a test and it needs some fixes before the release, but hopefully will be finished in a few days :)

/edit: releasing!

(http://lck.vc-mp.pl/Scripts/adminpanel/screenshots/vehiclemanager.png)

A color picker!
(http://lck.vc-mp.pl/Scripts/adminpanel/screenshots/colorpicker.png)

Version 1.2 (29.05.2014):
- [GUI] added "Vehicle Manager" tab
- [GUI] added color picker for vehicles
- [GUI] added teleport feature for players/vehicles
- [GUI] added "Set admin level" mode
- [GUI] added "All" checkbox to specify if you want to work on one player or all players (teleport all, kill all etc.)
- [GUI] added shadows for text which makes it more readable and nicer
- [GUI] some code improvements
- [CLIENT] fixed delayed settings load in "Time & Weather", "Server Settings" and "Game Settings" tab
- [CLIENT] fixed spawnscreen bug
- [CLIENT] fixed spectator mode
- [SERVER] added script autoload feature (thanks to Thijn). Just paste any .nut file into "adminpanel/autoload/" dir
- [SERVER] added "autoload/consolechat.nut", an example script and autoload feature
- [SERVER] added some new ADMIN_ECHO modes
- [SERVER] added server console commands, try 'help', 'cmd', or 'commands'
- [SERVER/CLIENT] added many checks, security fixes and did some code cleanups

Download Admin Panel 1.2 (http://lck.vc-mp.pl/Scripts/adminpanel/adminpanel.zip)

To enable/disable autoloader, open config.ini and edit/add line below:
Code: [Select]
[panel_config]
UseAutoloader = true
Title: Re: [Update 29-05] GUI Admin Panel
Post by: NC on June 01, 2014, 08:15:16 pm
The color picker looks pretty nasty :>.
Title: Re: [Update 04-08] GUI Admin Panel
Post by: Stoku on August 04, 2014, 02:55:59 pm
The update is ready!

Version 1.2 R2 (04.08.2014):
- [SERVER/CLIENT] added support for Liberty Unleashed 0.1.0.15
- [SERVER] use autoloader by default
- [SERVER] Autoloader: added "off_" prefix detection in script name to ignore scripts
- [SERVER] Autoloader: added scripts counter

Download link in first post.
Title: Re: [Update 08-08] GUI Admin Panel
Post by: Stoku on August 08, 2014, 02:55:43 pm
Info:
A small update which adds new banning methods (LU 0.1.0.16).

Version 1.2 R3 (08.08.2014):
- [GUI] fix labels transparency in Liberty Unleashed 0.1.0.16+
- [GUI] added GUI_LABEL_ALPHA for theming
- [GUI] added ban type selection window (Liberty Unleashed 0.1.0.16+)
- [CLIENT] small code cleanups

Screen:
(http://lck.vc-mp.pl/Scripts/adminpanel/screenshots/bantypeselection.png)

Download latest Admin Panel (http://lck.vc-mp.pl/Scripts/adminpanel/adminpanel.zip)
Title: Re: [Update 02-09] GUI Admin Panel
Post by: Stoku on September 02, 2014, 02:27:13 pm
Admin Panel 1.3

Info:
New login methods (password/LUID autologin). Check readme.txt and new variables in server.nut!

Version 1.3 (02.09.2014):
- [SERVER] added admin login command (/aplogin by default)
- [SERVER] added autologin via LUID
- [SERVER] new variables in server.nut: (str)LOGIN_COMMAND, (str)ADMIN_PASSWORD, (int)ADMIN_LEVEL, (int)ADMIN_LOGIN_ATTEMPTS, (bool)LUID_AUTOLOGIN
Title: Re: [Update 02-09] GUI Admin Panel
Post by: [RU]Kewun on September 14, 2014, 08:52:36 am
How i launch the admin panel?
Title: Re: [Update 02-09] GUI Admin Panel
Post by: Stoku on September 14, 2014, 03:39:37 pm
How i launch the admin panel?
With LUID_AUTOLOGIN enabled, it's not necessary to login with command everytime, only once :)
Title: Re: [Update 02-09] GUI Admin Panel
Post by: [RU]Kewun on September 14, 2014, 05:56:01 pm
thx
Title: Re: [Update 29-09] GUI Admin Panel
Post by: Stoku on September 29, 2014, 03:45:48 pm
Admin Panel 1.3.1

Release info:
The main goal of this update was reducing script load time and... TADA! It decreased from ~1350ms to <5ms! That means, the game won't lag on connect anymore.
It also includes a config.ini update (admin password, login command and other features from 1.3), some tweaks and minor bugs fixes.
There were made many changes, so please test and tell me if everything's fine.

Version 1.3.1 (29.09.2014):
- [CLIENT] reduced script load time from ~1350ms to <5ms.
- [CLIENT] tweaked spectate camera (from the back of spectated player)
- [GUI] prevent pressing buttons on the background windows (vehicle manager/color palette)
- [SERVER] added LoginCommand, Password, DefaultLevel, MaxAttempts, LUIDAutoLogin to config.ini (the config will be updated automatically after first launch)
- [GENERAL] redone some stuff, added minor fixes
Title: Re: [Update 29-09] GUI Admin Panel
Post by: Stoku on October 02, 2014, 12:20:23 am
Thanks for good words, it's nice to see that someone's using this :)

And I've got some good info about next update. I'm not a regular player, but...had a chance to get bored of current panel look, so...

/me announces Admin Panel 2.0!
(http://lck.vc-mp.eu/Scripts/adminpanel/screenshots/ap_2.0_preview.jpg)

Tabbed view and movable window, which you should love :) The hint for planned release date is here: Version 1.0 (31.10.2013).

The question is...do you love it?


/edit:
Preview #2
(http://lck.vc-mp.eu/Scripts/adminpanel/screenshots/ap_2.0_preview_2.jpg)

Feel free to request new features.
Title: Re: [Update 29-09] GUI Admin Panel
Post by: sasha19323 on October 05, 2014, 04:18:44 pm
There's security flaw in your script. Anybody with client exploit can control the server w/ admin on it.

I suggest to add one more parametr to CallServerFunc. Special key/code, what admin of server receives on join. Or it can be any other check.
Title: Re: [Update 29-09] GUI Admin Panel
Post by: [RU]Kewun on October 05, 2014, 04:55:59 pm
the old one was better
Title: Re: [Update 29-09] GUI Admin Panel
Post by: Stoku on October 05, 2014, 05:15:38 pm
There's security flaw in your script. Anybody with client exploit can control the server w/ admin on it.

I suggest to add one more parametr to CallServerFunc. Special key/code, what admin of server receives on join. Or it can be any other check.
Thank you. It was planned for the earlier version, but finally I didn't apply this kind of check. I thought the LU security fix will be enough.

I'll update it when I get back to home. It would be great if you could test the new upload (maybe this evening).

the old one was better
Please tell me why? You mean the color scheme or overall design? The 1.x will be getting some major bugfixes, but it's hard to add 2.0 features, cause the design isn't organised well and there's not much space.
Title: Re: [Update 29-09] GUI Admin Panel
Post by: [RU]Kewun on October 05, 2014, 05:40:27 pm
yes, colour scheme,the tabel
Title: [Update 05-10] GUI Admin Panel
Post by: Stoku on October 05, 2014, 11:50:35 pm
yes, colour scheme,the tabel
Oki, I'll port the old colors back :)

Admin Panel 1.3.2

Release info:
Fix of security flaw. The servers should be more secure from now.

Version 1.3.2 (05.10.2014):
- [GENERAL] added fix of security flaw
Title: Re: [Update 05-10] GUI Admin Panel
Post by: [RU]Kewun on October 06, 2014, 05:45:36 pm
or you can make 2 skins for this admin panel
the old one and the new one

BTW i found a bug when i have the color picker for car then if i choose red then it turns in to white
and if yellow then grey and other colors
why?
bug#2
The mouse some times disapears when i open the panel, idk why
Title: Re: [Update 05-10] GUI Admin Panel
Post by: Stoku on December 20, 2014, 12:02:54 pm
Hello! It's been a while since the last update on developmnent progress. Many things has changed in my life and I don't have that many time and motivation as I had before, but it doesn't mean that the project is completely abadonned.

@up: maybe some of RGB colors in palette are not "compatible" with LU, I'll take a look on it or you can try to change them yourself in client.nut file and send me corrected ones.

About disappearing mouse cursor... It may be issue with LU, because it happened to me many times even with simple scripts. It would be great to know how to reproduce this bug.

And the last thing... Merry Christmass!!! :)

Ps. Here's my latest screenshot with a new feature and context menu from 2.0, so I got a question to get some motivation... Who is waiting for 2.0? :)

Preview #3
(http://lck.vc-mp.eu/Scripts/adminpanel/screenshots/ap_2.0_cm_preview.jpg)

Merry Christmass again!
Title: Re: [Update 05-10] GUI Admin Panel
Post by: [RU]Kewun on December 22, 2014, 09:07:39 pm
and also,some times it wont appear when i press "P"
You can post 2 skins the yellow one and the 2.0 skin

EDIT: im waiting for 2.0
Title: Re: [Update 23-09] GUI Admin Panel
Post by: Stoku on September 23, 2015, 03:06:41 pm
Admin Panel 1.3.3

Release info:
Bugfix release.

Version 1.3.3 (23.09.2015):
- [GENERAL] fix for setting admin level from panel

Ps. Sad to inform you, but there's no big progress on 2.0. I'm focused on the other cool project and it should come out soon :) After that I'll probably continue the 2.0 development.
Title: Re: [Update 23-09] GUI Admin Panel
Post by: Theremin on September 26, 2015, 05:12:58 pm
I know this is totally OT, but anyway Stoku how did you found those IDs you used for menu sounds? did you try randomly IDs until you found those, or ...? I've been looking for a list of those IDs for long time.
Title: Re: [Update 23-09] GUI Admin Panel
Post by: Stoku on September 26, 2015, 06:18:46 pm
I know this is totally OT, but anyway Stoku how did you found those IDs you used for menu sounds? did you try randomly IDs until you found those, or ...? I've been looking for a list of those IDs for long time.
Here's my snippet, client side. Try PlayFrontEndTrack and PlayFrontEndSound.

Code: [Select]
//onScriptLoad
BindKey( '0', BINDTYPE_DOWN, "plus" );
BindKey( '9', BINDTYPE_DOWN, "minus" );

// 74 or 75=crash
local i = 0;
function plus()
{
i++;
StopFrontEndTrack();
PlayFrontEndTrack( i );
Message( "Sound ID: " + i.tostring());
}
function minus()
{
i--;
StopFrontEndTrack();
PlayFrontEndTrack( i );
Message( "Sound ID: " + i.tostring());
}
Title: Re: [Update 23-09] GUI Admin Panel
Post by: Motley on August 15, 2016, 03:31:25 am
Stoku

You have been inactive, Your web domain has been down, everything of yours has been down, I hope your doing okay and we hope to hear from you sometime..
Title: Re: [Update 23-09] GUI Admin Panel
Post by: Piterus on August 15, 2016, 12:50:01 pm
As far as I know, everything fine with him. He was some times ago on polish site/irc channel. He's a little busy with different things. Another thing that the community here, same as multi, died, so
there is no reason to come here.
Title: Re: [Update 23-09] GUI Admin Panel
Post by: Stoku on September 05, 2016, 08:37:51 pm
Stoku

You have been inactive, Your web domain has been down, everything of yours has been down, I hope your doing okay and we hope to hear from you sometime..
Thanks for caring! I'm fine, but my PC is crashing so often and it's pretty annoying to do stuff on it. Generally I'm busy at life with small access to the web. I've broke display in my handy and using web on my current one is pain in the ass and waste of time, that's why I'm offline even on private facebook, snapchat etc. At this moment I'm planning to move to the other city in the end of September and now I'm spending most of time on making money for "new life", finding a new job in that city and house or room. It would be great to finish my unreleased projects, so if I'll take my PC there and get most of important things done, I'll try to fix PC and release something new :)

Also thanks for reporting links. I didn't know that they're dead and sorry for this inconvenience. If anyone can post some mirrors I'll be glad and add them to the OP. Also any of suggestion with good and free ftp server (european) is appreciated. As alternative I recommend using my github here (https://github.com/TheStoku/AdminPanel/releases), the most recent version there at this moment is 1.3, but I'll try to update the releases in a sec :)

See you soon and have a good day!


Edit:
The GitHub releases has been updated, download links in OP too. I'm missing the screenshots, so at this moment no pics. Is the most recent version (1.3.3) fully compatible with latest LU (0.1.0.17) update?
Title: Re: [Update 23-09] GUI Admin Panel
Post by: Motley on September 06, 2016, 02:47:37 pm
This is really good to hear that you're doing well, You are a very good scripter.

I understand what you are going through personally as I just got out of a 5 year relationship and have been focusing on myself, As well literally working myself into the ground. Trying to get somewhere in life again.

Sadly I am dealing with PC issues as well. It's no longer reliable. The bios needs flashing. And the mouse just died, as well the boot menu has become corrupted. Luckily the motherboard/hardware is perfectly fine.

I am unable to test version 17 but! Extended garages is bugged on 16 "mouse related issues client side".
Other than tiny issues there that's it that I know of.

Happy to hear the eagerness for scripting.
Hope to see you more active when that time comes.
 :)