How to upload script

Started by Deep, Jan 02, 2025, 05:04 AM

Previous topic - Next topic

Deep

How to upload the script and how to edit it??? 



habi2

#1
Hi there,
Download blank server and see how it is configured for windows.

1. The script file name is main.nut in scripts folder.
2. Ensure server.cfg has line sqgamemode scripts/main.nut

The folder structure looks like this:

3. The plugins folder contain important dlls which are loaded by server.

Did you tried first running a server on your own computer and connecting to it by 127.0.0.1:8192


Deep

#2


Show only 2 files in a blank server, yeah but the server run

habi2

That is 64 bit windows server with no scripts.

Copy and paste the following link into your browser's address bar and you get complete server with scripts and commands like "heal", "goto".
http://files.thijn.ovh/download/9cedd88d75c4d0d76369b772342b4ba9/Blank%20Server%20-%209th%20August,%202024.zip

Deep

Thanks Solved but I've one more question How do I add the registration system can you tell me the full process,please ;D


habi2

To have registration system integrated into your server, you can use Account Systems. I have not tested, but on searching the forum the following results:
Aroli's Register and Login System
SHy's Account System


Also you can find useful stuffs in Script Showroom

Deep

I'm trying the Shy registration system but got an error how do I fix it?



habi2

#7
It is a common error.
Open server.cfg and add
sqlite04rel64
at the end of line beginning with
word plugins
Also make sure you have sqlite04rel64.dll inside folder plugins

If you do not have sqlite04rel64.dll inside plugins folder, then download it from https://v04.thijn.ovh/allplugins_04rel006_patch2.7z

This will fix the error

Deep

#8





Now the script is not loading please check btw there 2 folders for the script one in the main folder and one in the store folder why are there 2 script files in a folder?



habi2

It is server.cfg but you have saved as server.cfg.cfg

The main.nut in store/script is copied to client and it is run on player's computer. It is called client side script. The serverscript cannot be used as client side script and client side script cannot be used as serverscript.

Here is full documentation of client side scripts. topic

You can run server without any client side script at all. But if you want to create GUI elements like Textbox, button, progressbar you have to make client side script.

Also note that it is
script/main.nut client side
scripts/main.nut server side

Deep

Yeah, it is working can you tell me how to set my level admin on the server and how to add admin commands in the server