Vice City: Multiplayer

Off-Topic => Off-Topic General => Topic started by: Deep on Jan 02, 2025, 05:04 AM

Title: How to upload script
Post by: Deep on Jan 02, 2025, 05:04 AM
How to upload the script and how to edit it??? 

(https://i.ibb.co/ZL2D2m0/rt.png)
Title: Re: How to upload script
Post by: habi2 on Jan 02, 2025, 09:09 PM
Hi there,
Download blank server (http://files.thijn.ovh/download/9cedd88d75c4d0d76369b772342b4ba9/Blank%20Server%20-%209th%20August,%202024.zip) 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:
(https://i.imgur.com/LDK7wwi.jpeg)
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

Title: Re: How to upload script
Post by: Deep on Jan 03, 2025, 05:01 AM
(https://i.ibb.co/vxGscTd/fr6.png)

Show only 2 files in a blank server, yeah but the server run
Title: Re: How to upload script
Post by: habi2 on Jan 03, 2025, 01:59 PM
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
Title: Re: How to upload script
Post by: Deep on Jan 04, 2025, 05:07 AM
Thanks Solved but I've one more question How do I add the registration system can you tell me the full process,please ;D

Title: Re: How to upload script
Post by: habi2 on Jan 04, 2025, 08:31 AM
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 (https://forum.vc-mp.org/index.php?topic=8334.msg50749#msg50749)
SHy's Account System (https://forum.vc-mp.org/index.php?topic=7912.msg49049#msg49049)


Also you can find useful stuffs in Script Showroom (https://forum.vc-mp.org/index.php?board=11.0)
Title: Re: How to upload script
Post by: Deep on Jan 05, 2025, 05:45 AM
I'm trying the Shy registration system but got an error how do I fix it?

(https://i.ibb.co/ZfVvC4q/11.png)
(https://i.ibb.co/DDJ20Rh/144.png)
Title: Re: How to upload script
Post by: habi2 on Jan 05, 2025, 08:17 AM
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
Title: Re: How to upload script
Post by: Deep on Jan 06, 2025, 05:24 AM
(https://i.ibb.co/tKHBZJD/78.png)
(https://i.ibb.co/WcvNz3c/80.png)
(https://i.ibb.co/PYVw5sx/81.png)
(https://i.ibb.co/zJghV0C/6h.png)

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?

(https://i.ibb.co/ByL8mKW/hn.png)
Title: Re: How to upload script
Post by: habi2 on Jan 06, 2025, 02:55 PM
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 (https://forum.vc-mp.org/index.php?topic=2719.0)

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
Title: Re: How to upload script
Post by: Deep on Jan 07, 2025, 05:03 AM
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