Author Topic: i have a quetsion about server.cs thing  (Read 2884 times)

Client.cs changes how the client works.
It could be adding GUIs, keybinds, and other client functions.

so would i need a client.cs if i wanted to make a regular melee weapons?or a gun?


Client.cs changes how the client works.
It could be adding GUIs, keybinds, and other client functions.

Unless your sword somehow needed to edit the client, no.

so tell me are these the only things i need in the file if i make a sword
1.server.cs
2.model.dts
3.description.cs
4.???
and the server.cs has like...exec("/Weapon_Sword") then a script?right?

description.cs shouldn't exist, instead should be description.txt

server.cs - Anything server related, for hosting.
model.dts - Create these in modelling programs.
description.txt
Example:
Title: Claymore
Author: Chrono
A large sword that deals more damage but swings slow.

exec("filepath"); is a code line that executes another file containing a whole bunch of code lines.


There is no difference between these situations:



2 files:

server.cs
Code: [Select]
exec("./Script_HelloWorld.cs");Script_HelloWorld.cs
Code: [Select]
function serverCmdHello(%client)
{
messageclient(%client,'',"Hello.");
}




1 file:

server.cs
Code: [Select]
function serverCmdHello(%client)
{
messageclient(%client,'',"Hello.");
}

Both would do the same thing.

so...
if i make a hmm lets say i make a toy doll as a melee
server.cs should be
exec("./Weapon_Doll.dts");

and my script is just the regular melee script but named "Weapon_Doll" txt or cs?

and my desc.txt should be this
Title:Doll
Author:SoulStealer
A toy doll your kids can play with!

correct?

exec("./Weapon_Doll.dts");
Wrong.

and my script is just the regular melee script but named "Weapon_Doll" txt or cs?
It's fine if you put the code in server.cs instead of using exec.

and my desc.txt should be this
Title:Doll
Author:SoulStealer
A toy doll your kids can play with!
Right.


whats right?

It would be .cs not .dts

(Wait for Chrono to come back, he knows WAY more than I do about this.)

so close yet so far from being able to package

A .dts is a shapefile, and should be used inside the datablocks within the code.

so if it isnt exec(./"Weapon_Doll.dts") what should it be?

Did you understand me at all when I said you don't even need exec?

so...
i can put this in a file and zip it after
1.server.cs[with the script in it]
2.desc.txt[Title:Doll Author:SoulStealer A doll!]
3.Weapon_Doll.dts
is that all?im so close from understanding yet so far please dont give up on em and quit like most peaple do who try explaining it to me