Forums Index >> Modding >> How to make Clones with the Dash Codes v 0.05
Page : <1> :
Max, adding those codes shuts down my dash script completely. Dash's script won't even work.
As well when I tried to add the heal code to the dash script.
Any ideas?
Last edited: Monday, February 21, 2005 at 9:38:19 PM
It took me a few tries to get the text right. You cant just copy/paste is as is from the web page.
It needs to be formatted to look like the images I provided.
Correct spacing, no capitals at the beginning of the sentence, no extra spaces or tabs.
I usually create a dedicated server so I can see the errors in the console/terminal window as the game is loading the scripts. Try it.
MAX
Ammo gate......no wonder it didnt work.........
you need to log in as admin, then type in /clo yourname
@Max
About making the clones move, some.dso reading would be needed, as Paco seemed to respawn a completly new player with a completly new CADD just with a similar name...
LOL Rx.
This particular clone script just stops you in your tracks and re-spawns you leaving static tank with your name in the place you were when you typed" /clone name".
There are two issues with this script.
1. The clone is static, no AI. Now that I've made the script work I can't for the life of me figure out why people want it so bad.
2. You always spawn in the same location. This location has nothing to do with spawn points. I think it is the center of the map (0,0,0)
3. Why do people have such a hard time getting it to work is weird too.
MAX
Hmm...
dosent work please help?
it says it isnt a correct code how do I change that?
*bump*
Last edited: Thursday, February 24, 2005 at 9:48:07 PM
Does it matter wat system it uses?
Mac/windows/linux?
P.S. I got a mac
I have mac. It works for me.
It says it isnt a correct code how do I change that?
What says that?
Did you try "create a dedicated server so you can see the errors in the console/terminal window as the game is loading the scripts"?
Do you get:
game/server/dash/Codes.cs Line: 1 - Syntax error.
>>> Advanced script error report. Line 768.
>>> Some error context, with ## on sides of error halt:
MAX
Last edited: Monday, February 28, 2005 at 8:23:36 AM
O! I havnt tried it on a dedicated :D. Ill do it now XD
PS this is what comes up in terminal, tell me whats wrong
Orbz> STARTING UP.
Orbz> Nonblocking terminal input properly initialized.
Orbz> Sleep time for 1ms sleep == [2ms]
Orbz> Console Initialized.
Console> Terminal control established properly.
#>
--------- Initializing MOD: Common ---------
Loading compiled script common/client/canvas.cs.
Loading compiled script common/client/audio.cs.
#>
--------- Initializing MOD: ThinkTanks ---------
Loading compiled script game/client/init.cs.
Loading compiled script game/server/init.cs.
Loading compiled script game/rankServer.cs.
#>
--------- Initializing ThinkTanks: Server ---------
Loading compiled script common/server/audio.cs.
Loading compiled script common/server/server.cs.
Loading compiled script common/server/message.cs.
Loading compiled script common/server/commands.cs.
Loading compiled script common/server/missionInfo.cs.
Loading compiled script common/server/missionLoad.cs.
Loading compiled script common/server/missionDownload.cs.
Loading compiled script common/server/clientConnection.cs.
Loading compiled script common/server/kickban.cs.
Loading compiled script game/server/scripts/commands.cs.
Loading compiled script game/server/scripts/centerPrint.cs.
Loading compiled script game/server/scripts/game.cs.
#>
--------- Starting Dedicated Server ---------
Starting multiplayer mode
Binding server port to default IP
UDP initialized on port 28000
Loading compiled script game/server/scripts/audioProfiles.cs.
Loading compiled script game/server/scripts/camera.cs.
Loading compiled script game/server/scripts/markers.cs.
Loading compiled script game/server/scripts/special.cs.
ParticleData(Lava) times[2] < times[1]
ParticleData(Lava) times[3] < times[2]
ParticleData(Torch) times[2] < times[1]
ParticleData(Torch) times[3] < times[2]
ParticleData(rocket) times[3] < times[2]
ParticleData(Smoke) times[2] < times[1]
ParticleData(Smoke) times[3] < times[2]
ParticleData(Rocksmoke) times[2] < times[1]
ParticleData(Rocksmoke) times[3] < times[2]
ParticleData(SmokeTrail) times[2] < times[1]
ParticleData(SmokeTrail) times[3] < times[2]
Loading compiled script game/server/scripts/tank.cs.
Loading compiled script game/server/scripts/tankFx.cs.
Loading compiled script game/server/scripts/tankDb.cs.
Loading compiled script game/server/scripts/tankAI.cs.
*** LOADING MISSION: game/data/missions/TT2_3.mis
*** Stage 1 load
Refreshing master server list
*** Stage 2 load
Executing game/data/missions/TT2_3.mis.
*** Mission loaded
Engine initialized...
Loading compiled script game/server/dash/main.cs.
Loading compiled script game/server/dash/prefs.cs.
Loading compiled script game/server/dash/ConsoleUtilities.cs.
Loading compiled script game/server/dash/GameConnection.cs.
Compiling game/server/dash/Codes.cs...
game/server/dash/Codes.cs Line: 735 - Syntax error.
>>> Advanced script error report. Line 735.
>>> Some error context, with ## on sides of error halt:
lient.player.setProjectile(0x0rojectile);
}
// ---------------------------------------
Function clone(##(null)ender,target_nm)
{
if(!ClientIsAdmin((null)ender,"/clone command failed you are not admin"))
>>> Error report complete.
Loading compiled script game/server/dash/Codes.cs.
Loading compiled script game/server/dash/UberBots.cs.
Loading compiled script game/server/scripts/ModWizardMain.cs.
Loading compiled script game/server/scripts/MissionLoaderMain.cs.
Loading compiled script game/server/scripts/MissionLoaderPreferences.cs.
game/server/scripts/MissionLoaderMain.cs (0): Unable to find object: 'moveMap' attempting to call function 'bind'
Loading compiled script game/server/scripts/observerMM.cs.
game/server/scripts/observerMM.cs (1): Unable to find object: 'moveMap' attempting to call function 'bind'
game/server/scripts/observerMM.cs (1): Unable to find object: 'moveMap' attempting to call function 'bind'
game/server/scripts/observerMM.cs (1): Unable to find object: 'moveMap' attempting to call function 'bind'
game/server/scripts/observerMM.cs (0): Unable to find object: 'moveMap' attempting to call function 'bind'
game/server/scripts/observerMM.cs (0): Unable to find object: 'moveMap' attempting to call function 'bind'
Loading compiled script game/server/scripts/Antidiver.cs.
Sending heartbeat to master server [IP:216.116.32.49:28002]
Received info request from a master server [IP:216.116.32.49:28002].
Got Connect challenge Request from IP:192.168.0.2:50299
Got Connect Request
CONNECT REQUEST FROM: X Pedro/Ex-P 192.168.0.2
getSubStr(...): error, starting position and desired length must be >= 0: (0, -1)
CreateDirectory(game/) - Succeeded
CreateDirectory(game/server/) - Succeeded
CreateDirectory(game/server/dash/) - Succeeded
Failed to log user connection
MODIFIED SET PLAYER NAME FUNCTION
CADD: 1183 IP:192.168.0.2:50299
*** Sending mission load to client: game/data/missions/TT2_3.mis
Mapping string: MissionStartPhase1Ack to index: 0
Mapping string: MissionStartPhase2Ack to index: 1
Ghost Always objects received.
Mapping string: MissionStartPhase3Ack to index: 2
Received info request from a master server [IP:216.116.32.49:28002].
Mapping string: messageSent to index: 3
diver -1 has flag 1189
Client 1183 disconnected.
Issuing Disconnect packet.
CDROP: 1183 IP:192.168.0.2:50299
Resetting server defaults...
Missing file: common/defaults.cs!
Missing file: common/prefs.cs!
*** ENDING MISSION
*** LOADING MISSION: game/data/missions/TT2_3.mis
*** Stage 1 load
Refreshing master server list
*** Stage 2 load
Executing game/data/missions/TT2_3.mis.
*** Mission loaded
Got Connect challenge Request from IP:192.168.0.2:50299
Got Connect Request
CONNECT REQUEST FROM: X Pedro/Ex-P 192.168.0.2
getSubStr(...): error, starting position and desired length must be >= 0: (0, -1)
CreateDirectory(game/) - Succeeded
CreateDirectory(game/server/) - Succeeded
CreateDirectory(game/server/dash/) - Succeeded
Failed to log user connection
MODIFIED SET PLAYER NAME FUNCTION
CADD: 1581 IP:192.168.0.2:50299
*** Sending mission load to client: game/data/missions/TT2_3.mis
Mapping string: MissionStartPhase1Ack to index: 0
Mapping string: MissionStartPhase2Ack to index: 1
Sending heartbeat to master server [IP:216.116.32.49:28002]
Ghost Always objects received.
Received info request from a master server [IP:216.116.32.49:28002].
Mapping string: MissionStartPhase3Ack to index: 2
Mapping string: messageSent to index: 3
diver -1 has flag 1587
Received info request from a master server [IP:216.116.32.49:28002].
diver -1 has flag 1587
Sending heartbeat to master server [IP:216.116.32.49:28002]
Received info request from a master server [IP:216.116.32.49:28002].
diver -1 has flag 1587
diver -1 has flag 1587
Client 1581 disconnected.
Issuing Disconnect packet.
CDROP: 1581 IP:192.168.0.2:50299
Resetting server defaults...
Missing file: common/defaults.cs!
Missing file: common/prefs.cs!
*** ENDING MISSION
*** LOADING MISSION: game/data/missions/TT2_3.mis
*** Stage 1 load
Refreshing master server list
*** Stage 2 load
Executing game/data/missions/TT2_3.mis.
*** Mission loaded
Received info request from a master server [IP:216.116.32.49:28002].
#>
Last edited: Friday, February 25, 2005 at 11:19:40 AM
Well did you notice the error when the dash/codes.cs tried loading?
Compiling game/server/dash/Codes.cs...
game/server/dash/Codes.cs Line: 735 - Syntax error.
>>> Advanced script error report. Line 735.
>>> Some error context, with ## on sides of error halt:
lient.player.setProjectile(0x0rojectile);
}
// ---------------------------------------
Function clone(##(null)ender,target_nm) ,<---------------------------------------------------------
{
if(!ClientIsAdmin((null)ender,"/clone command failed you are not admin"))
>>> Error report complete.
Loading compiled script game/server/dash/Codes.cs.
There is a problem around the line "function clone(%sender,%target_nm)", probably before it.
MAX
Also notice this
// ---------------------------------------
// Admin Cloner
function clone(%sender,%target_nm)
{
if(!ClientIsAdmin(%sender,"command failed you are not admin"))
return;
<-------------------------------------------- (
there is a space here
)
%match = matchClientName(%target_nm);
%client = firstword(%match);
%status_msg = restWords(%match);
If(%client == -1)
{
schedule(1000,false,"CommandToClient",%sender,'CenterPrint',%status_msg,4,4);
return;
}
schedule(1000,false,"centerprintall", %client.nameBase SPC $pref::Server::CloneMessage ,4);
%client.createplayer("LightTank");
}
Compared to this
Function adminprojectilechanger(%sender,%msg,%projectile)
{
if(!ClientIsAdmin(%sender,"command failed you are not admin"))
return; <--------------------------------------------(
no space here
)
%target_nm = firstword(%msg);
%new_nm = restWords(%msg);
%match = matchClientName(%target_nm);
%client = firstword(%match);
%status_msg = restWords(%match);
%client.player.setProjectile(%projectile);
}
Think that the space is supposed to be there or no?
Last edited: Saturday, February 26, 2005 at 12:12:04 PM
It should look exactly as it does in the pictures above.
So, yes you are right spark, but where does it show there is not a space?
MAX
Hmm... Ill try that now olso try to see if deleting the
//Admin cloner
Stuff
Get rid of what space? Forget what Spark said. He is confusing the matter. I don't know why he is even saying that.
You are not understanding me.
There is a problem around the line
Function clone(%sender,%target_nm)
Probably before it.
Try retyping that line from scratch?
Is there a space between the function code preceding the clone code you have inserted?
Like this:
%client.player.setProjectile(%projectile);
}
(space)
// ---------------------------------------
// Admin Cloner
Last edited: Monday, February 28, 2005 at 8:39:08 AM
@SPARK#3
Post #1
What is "it"? What says this? Don't say things like that without context and exact quotes.
It says it isnt a correct code how do I change that?
Post #2
Why are you even asking about weather or not that space after "return;" should be there?
In both the original text and the images I provided there is a space after the "return;"
Nowhere does it say otherwise!
I just don't understand why you would change the code from how I'm showing it to be it, then explain how it should be, then ask if that is correct.
That question is completely fabricated and is confusing others.
Are just messing with us or is something wrong with you?
Post #3
Also anything with "//" in front of it is ignored by the compiler (TGE), so deleting it does nothing.
Last edited: Monday, February 28, 2005 at 8:48:23 AM
Sorry no im not messing with you
but let me get this strait
1. You have a MAC, right?
2. I should copy EVERYTHING EXACTLY CORRECT and it will work, right?
3. "it" is the bottom print this is what "it" says when I try to clone "/clo IS NOT A VALAD CODE"
Why does it say that?
Last edited: Monday, February 28, 2005 at 3:39:58 PM
1. MAC
2. Copy the text provided then make it look like the pictures I provided.
3. You are getting "/clo IS NOT A VALAD CODE" because there is an error in the dash codes.
For the 3rd time.....
Did you try "create a dedicated server so you can see the errors in the console/terminal window as the game is loading the scripts"?
Sorry but im not supposed to create a dedicated server
(low upload time or sumpthing)
function clone(%sender,%target_nm)
{
if(!ClientIsAdmin(%sender,"command failed you are not admin"))
return;
%match = matchClientName(%target_nm);
%client = firstword(%match);
%status_msg = restWords(%match);
If(%client == -1)
{
schedule(1000,false,"CommandToClient",%sender,'CenterPrint',%status_msg,4,4);
return;
}
schedule(1000,false,"centerprintall", %client.nameBase SPC $pref::Server::CloneMessage ,4);
%client.createplayer("LightTank");
}
Last edited: Thursday, March 03, 2005 at 12:28:00 PM
How did you get that box Max?
Hey look, im typing in a box!
@Max
Is it possible to script up a clone gate?
If so, do you know how I could set it up?
Cool
@ pip - type the word "code" "/code" in brackets around the text like you would for any other BB Code
@ Gee-Joe - look at the bottom of the original post of this thread.
[b]HOW DO U PUT A LOCK ON A MOD PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ HELP!!!!!!!!!!!!!!!!!!!!!
HELLOW
I found another mistake......
// ---------------------------------------
// Admin Cloner
function clone(%sender,%target_nm)
{
If(!ClientIsAdmin(%sender,"command failed you are not admin"))
return;
%match = matchClientName(%target_nm);
%client = firstword(%match);
%status_msg = restWords(%match);
If
(%client == -1) <---------------------The if shouldent be capatilized.
{
schedule(1000,false,"CommandToClient",%sender,'CenterPrint',%status_msg,4,4);
return;
}
schedule(1000,false,"centerprintall", %client.nameBase SPC $pref::Server::CloneMessage ,4);
%client.createplayer("LightTank");
}
HAHA im too good for u
~~~KAG(KS)
Go me go me go me
I found another mistake......
// ---------------------------------------
// Admin Cloner
function clone(%sender,%target_nm)
{
If(!ClientIsAdmin(%sender,"command failed you are not admin"))
return;
%match = matchClientName(%target_nm);
%client = firstword(%match);
%status_msg = restWords(%match);
If
(%client == -1) <---------------------The if shouldent be capatilized.
{
schedule(1000,false,"CommandToClient",%sender,'CenterPrint',%status_msg,4,4);
return;
}
schedule(1000,false,"centerprintall", %client.nameBase SPC $pref::Server::CloneMessage ,4);
%client.createplayer("LightTank");
}
HAHA im too good for u
~~~KAG(KS)
Go me go me go me
@KAG(KS) - Wow thanks for the correction I had forgotten that I had already pointed that out in the opening post.
I have included images because the text is altered by the PTT forum.
The text has to look exactly as it does in the images.
Go you go you!
Whatever!
Also, you double posted.
So much for mistakes, just use mine...... XD
and for all those who wanted me to post my files, please say so in an organized manner what it is you want
@ Warfare - Nobody could get yours to work.
That's why this thread exist.
It took me awhile to get it to work myself.
There is something funky that happens with the text when it is posted.
So I had to retype a lot of lines by hand.
MAX
Hmm..? Post the file... Good idea
I meant post the file on a web site
, not in the forum.
Is something wrong with you?
I just explained why it doesn't work for any body else... The web formating is why it doesn't work for anybody else.
The text become corrupt in the forum.
"remember the auto capitalization!!"
And the left margin indent
and the deletion of backward slash
and the removal of double spaces
and the addition of hidden formating
and whatever else happens to code in this forum that makes all that text completely useless and unusable.
Nothing is wrong with me
...obviously...
the forum is the problem so take it up with -z-
sorry for any "miscommunications" out there for posting code in a forum
...sheesh...
I posted on a forum
like all the other PTT members yet I am the one with a problem....
Last edited: Tuesday, March 29, 2005 at 10:07:56 PM
It's only that I thought I had just explained why posting code in the forum was the problem in the first place, that's all.
I had tried desperately to help these people to use "your code".
I got it to work... But these guys can't.
I thought this subject was dead anyhow. Until that noob resurrected for the sake of spam.
It's ok max, no hard feelings...
the whole comments thing is screwed up because of the formatting...
and I cant e-mail anymore so what am I going to do to get the code to people besides getting a webstite?
Why can't you e-mail?
Send it to me I have a web site.
What other things have you added to the dash codes other than the cloner.
Health?
Chat log?
I have added a whole lot, I have everything Mr Big Show has and more, some stuff I wrote myself, like silence all and chat logger and stuff...
in essence, my dash codes are now like a Warfare & Dash codes thing.
my e-mail doesnt work because yahoo shut it down...too much spam filled it up or something...
anyway, I can get a new one but not right now, I am at school...
I can give you the code needed for cloning no problem so......
later....
I thought we covered the cloning thing already,^ twice if not three times. Not only do I have it working fine, I don't even like it. I think it's lame.
I have know idea what codes Mr Big Show has, so that is not meaningful.
If you want my help to distribute your additions to the Dash Codes let me know.
I can help, either through the Modding Resource or through my website.
You will of course get credit for anything you do.
But posting code in the forums is to inconsistent and just creates more problems.
Ok max. I am currently working on a chat logger that works on dash's stuff so I will let you know when I am through.
Ok Max, try and make a multi-clone function (like my hoster allows up to 74 clones in 1!). Or maybe a bot-allowing multi-cloner. Good luck, and script hard!
Page : <1> :
This is basically the same as the one Warfare gave in this other post.
Put this right before the "function codeAction" which is almost at the bottom of the "code.cs" file from the Dash codes v0.05
// ---------------------------------------
// Admin Cloner
function clone(%sender,%target_nm)
{
if(!ClientIsAdmin(%sender,"command failed you are not admin"))
return;
%match = matchClientName(%target_nm);
%client = firstword(%match);
%status_msg = restWords(%match);
If(%client == -1)
{
schedule(1000,false,"CommandToClient",%sender,'CenterPrint',%status_msg,4,4);
return;
}
schedule(1000,false,"centerprintall", %client.nameBase SPC $pref::Server::CloneMessage ,4);
%client.createplayer("LightTank");
}
In the second to the last section of the code.cs file there is a list of else commands, put this at the bottom:
else if (%code $="/clo" | %code $= "/clone" )
call("clone",%sender,%a2);
Now open up the "prefs.cs" Dash Codes v 0.05 and put this at the bottom.
$pref::Server::CloneMessage = " HAS BEEN CLONED ";
I have included images because the text is altered by the PTT forum.
The text has to look exactly as it does in the images.
I got this to work but the clones just sat there and did not move around. I'm working that out now if anybody has any ideas that would be great.
Here is another link to a thread about Clone gates
MAX
Last edited: Tuesday, March 01, 2005 at 10:21:30 PM