![]() |
A Few Scripting Questions o.O
1. What is /clientside in the script? I read the FAQs, and everything, and don't see what it means.
2. If you are a Scripter for a server, what would be you job? Tell a LAT a script for... Something like what? See I need help, really bad? Can someone help meh? Arnack |
Quote:
2) A scripter usually authors and repairs scripts as his superiors/other staff direct. (Also: please don't sign your posts, use a signature for such things.) |
Sry, but I really did'nt get the 1st question, yeah I am slow.
|
Quote:
|
That it separates... Umm stuff?
|
Quote:
Quote:
Quote:
I also think that you are not a scripter if you speak about "telling a script". Quote:
Quote:
Quote:
|
Quote:
|
Umm? I don't know? Client side is...umm, your cpu.,and umm, server side is umm... The server?! But why would youseperate it and stuff?
|
Quote:
|
Quote:
Serverside scripts are executed on the server. As you learn scripting, you will learn which types of scripts are more suited for the client and which are more suited for the server. |
1 last ques. I think. What is the dif? Between those 2? What plans on there scripts?
|
Quote:
The serverside has control over players and database npcs. |
Clientside: the player's computer runs the script
Serverside: the gserver runs the script in addition to that some commands are different and blah blah. |
Can you give meh and ex for both?
|
if (created) {
message the server runs this; } or //#CLIENTSIDE if (created) { message your computer runs this.; } |
When you mean to your cpu, it does...? Only just for you, not other people on the server?
|
all players in the level recieve the script and run it clientside when you use //#CLIENTSIDE
|
Ha, I have finally learned what //#CLIENTSIDE actually does just now. I used to think that since there is // infront, it was just some sort of comments. Why would there be comment bars for part of the script ran? That doesn't seem right.
Just about a month ago I noticed scripts don't work, most of the time, unless they have //#CLIENTSIDE, so I stuck that in all the scripts from then on. Now I see that it actually means something specific. Still think it shouldn't look like a comment though. |
I always figured it was done that way for compatibility with the built in NPC editor.
it doesn't belong in ALL scripts, just certain things require it the NPC server's job is to handle scripts, things are often done better serverside when you use clientside the client has to compile and execute the script itself, causing more network data being sent |
Quote:
#!/usr/bin/perl # #Script goes here ------ #include #define ----- etc There are plenty of valid reasons for things to 'look like a comment.' |
Quote:
|
I used to think there was such thing as //#SERVERSIDE and if you didnt put it then your scripts would break XD
|
Quote:
He was talking about //#CLIENTSIDE obviously, if you didn't know then i would think twice about helping others... If you did and you were saying that just to spite him, that's not wanted either. For Arnack: Generally clientside scripts are for displaying things like Inventories (Q menus), GUIs like health meters and clocks, and controls player movement. Serverside scripts are for things like changing gralats, setting player parameters, and warping. Many things that require serverside simply won't work clientside. Good luck becoming more familiar with serverside scripting :) It opens a whole new world compared to just clientside, offline scripting. |
Quote:
|
Quote:
See how the asterisks make my post 40% more convincing. Quote:
Quote:
Quote:
Quote:
Also you need to be stabbed for your "advice". |
Quote:
|
I thought Gscript was copying C and C++.
In C, C++, #define is used, but # is also not a comment. Kaimetsu, it still has an impact on how the script works. You at least agree it is not just a comment? |
Quote:
|
Quote:
|
Quote:
|
obviously they would be different
without //#CLIENTSIDE they wouldn't be clientside.... it's hard to explain it..... x.x |
What is a good moderate scripter scripting guide?
|
Quote:
Look: Directives are not commands. Comments are as good a medium for expressing them as any other. |
Quote:
|
Quote:
|
Quote:
|
G-Script2? Where can I find how to do it?
|
|
I don't mean to poke my nose in, I normally don't.
Why is the "//" part used, anyways? Does the server check the script for "//#CLIENTSIDE" then send the part below to the client? Why isn't it something like "#Clientside" or some other means of breaking it without it having the appearance of a comment? I guess those are my only two questions. (I understand clientside, and serverside... so you don't need to explain) [EDIT] Quote:
[/EDIT] |
Quote:
|
| All times are GMT +2. The time now is 07:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.