Forums Index >> Modding >> Help here please



Page : <1> :


I know ive been bugging people about this but can any one really help me on this.

//scripts begin
function Clone:: onEnter(%client, %this, %tank)
{
%tank.client.createplayer
bottomPrintall(%tank.client.namebase SPC "Has Just Been Cloned!",5,2);
}
datablock PowerUpData(clone)
{
category = "PowerUp";
shape = "~/data/shapes/common/recharge.dts";
type = "weapon";
minOff = 1;
maxOff = 1;
startOn = true;
shadow = true;
shadowAnimation = true;
aiPickup = true;

Sound = "PupOnSound";
soundOff = "PupOffSound";
};
//scripts end

//--- OBJECT WRITE BEGIN ---
//Created with ModWizard v1.3
//Please remember to put 'MOD' at the beginning of your server name.
new SimGroup(MissionGroup) {
musicTrack = "Lush";

New ScriptObject(MissionInfo) {
name = "Medulla Mesa";
author = "GODZILLA(SF)";
};
new MissionArea(MissionArea) {
area = "-256 -256 512 512";
flightCeiling = "200";
flightCeilingRange = "0";
floor = "95";
locked = "false";
};
new Sky(Sky) {
position = "0 0 0";
rotation = "1 0 0 0";
scale = "1 1 1";
visibleDistance = "1000";
useSkyTextures = "1";
renderBottomTexture = "0";
SkySolidColor = "0.547000 0.641000 0.789000 0.000000";
fogDistance = "300";
fogColor = "0.820000 0.828000 0.844000 1.000000";
fogVolume1 = "1 1 1";
fogVolume2 = "1 1 1";
fogVolume3 = "40 1 95";
materialList = "game/data/skies/sky_day.dml";
windVelocity = "1 1 0";
windEffectPrecipitation = "1";
noRenderBans = "0";
fogVolumeColor1 = "128.000000 128.000000 128.000000 -222768174765569860000000000000000000000.000000";
fogVolumeColor2 = "128.000000 128.000000 128.000000 0.000000";
fogVolumeColor3 = "128.000000 128.000000 128.000000 -170698929442160050000000000000000000000.000000";
cloudSpeed3 = "0.0003";
cloudSpeed1 = "0.0001";
cloudHeightPer0 = "0";
locked = "true";
cloudHeightPer2 = "0";
cloudHeightPer1 = "0";
cloudSpeed2 = "0.0002";
};
new Sun() {
direction = "0.57735 0.57735 -0.57735";
color = "0.988000 0.985000 0.980000 1.000000";
ambient = "0.500000 0.500000 0.500000 1.000000";
scale = "1 1 1";
locked = "true";
rotation = "1 0 0 0";
};
new TerrainBlock(Terrain) {
rotation = "1 0 0 0";
scale = "1 1 1";
detailTexture = "game/data/terrains/details/detail1";
terrainFile = "game/data/missions/TT1_1.ter";
squareSize = "8";
tile = "0";
blockShift = "7";
locked = "false";
position = "-1024 -1024 0";
};
new SimGroup(PlayerDropPoints) {
new SimGroup(GreenPlayerDropPoints) {
};
new SimGroup(BluePlayerDropPoints) {
};
};
new PowerUp() {
dataBlock = "Reload";
position = "0.1 0.1 0.1";
rotation = "1 0 0 0";
scale = "1 1 1";
lightBoost = "0";
};
new TSStatic() {
position = "12.7715 72.2831 132.905";
rotation = "-0.187507 -0.114267 -0.975594 67.0114";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/treegreen02.dts";
treeLighting = "1";
lightBoost = "0";
};
new TSStatic() {
position = "-1.11509 79.9628 135.477";
rotation = "-0.0410582 -0.265224 -0.963312 30.0873";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen01.dts";
treeLighting = "0";
lightBoost = "0";
};
new TSStatic() {
position = "-10.35 91.6194 136.421";
rotation = "-0.0845156 -0.0272453 -0.99605 54.538";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen01.dts";
treeLighting = "0";
lightBoost = "0";
};
new TSStatic() {
position = "-27.0476 108.333 138.691";
rotation = "-0.0220759 0.0181677 -0.999591 30.6812";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen04.dts";
treeLighting = "0";
lightBoost = "0";
};
new TSStatic() {
position = "-68.7441 121.402 141.96";
rotation = "0.102165 0.0480242 0.993608 207.182";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen01.dts";
treeLighting = "0";
lightBoost = "0";
};
new PowerUp() {
dataBlock = "clone";
position = "73.2558 -15.8948 107.616";
rotation = "-0.122408 0.0328767 0.991935 83.119";
scale = "1 1 1";
lightBoost = "0";
};

};
//--- OBJECT WRITE END ---

Does any one know what im doing wrong with my clone gate?

Friday, February 04, 2005 at 7:34:32 PM

I've found that the best way is to delete one of the lines. So now it should look like this:

 

Function Clone:: onEnter(%client, %this, %tank)
{
%tank.client.createplayer
}
datablock PowerUpData(clone)
{
category = "PowerUp";
shape = "~/data/shapes/common/recharge.dts";
type = "weapon";
minOff = 1;
maxOff = 5;
startOn = true;
shadow = true;
shadowAnimation = true;
aiPickup = true;

Sound = "PupOnSound";
soundOff = "PupOffSound";
};

 

That should work


Friday, February 04, 2005 at 8:00:37 PM

Nope still didnt work.my mod just wont load. :'(

Friday, February 04, 2005 at 9:17:40 PM

Oh, me, me, me! Get rid of the space between Clone and OnEnter! You have this:

 

Clone:: onEnter

 

You should have this...

 

Clone::onEnter

 

Hope this helps! XD

-CL©

Friday, February 04, 2005 at 9:24:13 PM

Still didnt load :'(

Saturday, February 05, 2005 at 5:50:18 AM

Are you sure? You should have this EXACTLY like I have it:

Function clone:: onEnter(%client, %this, %tank)
{
%tank.client.createplayer("lighttank");
}
datablock PowerUpData(clone)
{
category = "PowerUp";
shape = "~/data/shapes/common/rehealed.dts";
type = "weapon";
minOff = 1;
maxOff = 1;
startOn = true;
shadow = true;
shadowAnimation = true;
aiPickup = true;
sound = "PupOnSound";
soundOff = "PupOffSound";
};

Try erasing other stuff you have above your mission file and just have this above there.

If it doesnt work then, I have no idea what you're doing wrong cuz it works for me


Saturday, February 05, 2005 at 6:37:43 AM

Really can you show me a screen shot of you and your clone :o ?

Saturday, February 05, 2005 at 9:14:23 AM

Better yet copy and paste your mis.file here and ill use it if it dont work then maybe I need a deicated server

Saturday, February 05, 2005 at 9:37:57 AM

Function clone:: onEnter(%client, %this, %tank)
{
%tank.client.createplayer("lighttank");
}
datablock PowerUpData(clone)
{
category = "PowerUp";
shape = "~/data/shapes/common/recharge.dts";
type = "weapon";
minOff = 1;
maxOff = 2;
startOn = true;
shadow = true;
shadowAnimation = true;
aiPickup = true;
sound = "PupOnSound";
soundOff = "PupOffSound";
};
//--- OBJECT WRITE BEGIN ---
//Created with ModWizard v1.3
//Please remember to put 'MOD' at the beginning of your server name.
new SimGroup(MissionGroup) {
musicTrack = "Lush";

New ScriptObject(MissionInfo) {
name = "Medulla Mesa";
author = "GODZILLA(SF)";
};
new MissionArea(MissionArea) {
area = "-256 -256 512 512";
flightCeiling = "200";
flightCeilingRange = "0";
floor = "95";
locked = "false";
};
new Sky(Sky) {
position = "0 0 0";
rotation = "1 0 0 0";
scale = "1 1 1";
visibleDistance = "1000";
useSkyTextures = "1";
renderBottomTexture = "0";
SkySolidColor = "0.547000 0.641000 0.789000 0.000000";
fogDistance = "300";
fogColor = "0.820000 0.828000 0.844000 1.000000";
fogVolume1 = "1 1 1";
fogVolume2 = "1 1 1";
fogVolume3 = "40 1 95";
materialList = "game/data/skies/sky_day.dml";
windVelocity = "1 1 0";
windEffectPrecipitation = "1";
noRenderBans = "0";
fogVolumeColor1 = "128.000000 128.000000 128.000000 -222768174765569860000000000000000000000.000000";
fogVolumeColor2 = "128.000000 128.000000 128.000000 0.000000";
fogVolumeColor3 = "128.000000 128.000000 128.000000 -170698929442160050000000000000000000000.000000";
cloudSpeed3 = "0.0003";
cloudSpeed1 = "0.0001";
cloudHeightPer0 = "0";
locked = "true";
cloudHeightPer2 = "0";
cloudHeightPer1 = "0";
cloudSpeed2 = "0.0002";
};
new Sun() {
direction = "0.57735 0.57735 -0.57735";
color = "0.988000 0.985000 0.980000 1.000000";
ambient = "0.500000 0.500000 0.500000 1.000000";
scale = "1 1 1";
locked = "true";
rotation = "1 0 0 0";
};
new TerrainBlock(Terrain) {
rotation = "1 0 0 0";
scale = "1 1 1";
detailTexture = "game/data/terrains/details/detail1";
terrainFile = "game/data/missions/TT1_1.ter";
squareSize = "8";
tile = "0";
blockShift = "7";
locked = "false";
position = "-1024 -1024 0";
};
new SimGroup(PlayerDropPoints) {
new SimGroup(GreenPlayerDropPoints) {
};
new SimGroup(BluePlayerDropPoints) {
};
};
new PowerUp() {
dataBlock = "Reload";
position = "0.1 0.1 0.1";
rotation = "1 0 0 0";
scale = "1 1 1";
lightBoost = "0";
};
new TSStatic() {
position = "12.7715 72.2831 132.905";
rotation = "-0.187507 -0.114267 -0.975594 67.0114";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/treegreen02.dts";
treeLighting = "1";
lightBoost = "0";
};
new TSStatic() {
position = "-1.11509 79.9628 135.477";
rotation = "-0.0410582 -0.265224 -0.963312 30.0873";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen01.dts";
treeLighting = "0";
lightBoost = "0";
};
new TSStatic() {
position = "-10.35 91.6194 136.421";
rotation = "-0.0845156 -0.0272453 -0.99605 54.538";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen01.dts";
treeLighting = "0";
lightBoost = "0";
};
new TSStatic() {
position = "-27.0476 108.333 138.691";
rotation = "-0.0220759 0.0181677 -0.999591 30.6812";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen04.dts";
treeLighting = "0";
lightBoost = "0";
};
new TSStatic() {
position = "-68.7441 121.402 141.96";
rotation = "0.102165 0.0480242 0.993608 207.182";
scale = "1 1 1";
shapeName = "game/data/shapes/Green/rockgreen01.dts";
treeLighting = "0";
lightBoost = "0";
};
new PowerUp() {
dataBlock = "clone";
position = "73.2558 -15.8948 107.616";
rotation = "-0.122408 0.0328767 0.991935 83.119";
scale = "1 1 1";
lightBoost = "0";
};

};
//--- OBJECT WRITE END ---

 


Saturday, February 05, 2005 at 10:10:44 AM

Here ya go! This one WILL work!

 

Function Clone::onEnter(%client, %this, %tank)
{
%tank.client.createplayer(%client.startingtankdb);
bottomPrintall(%tank.client.namebase SPC "Has Just Been Cloned!",5,2);
}
datablock PowerUpData(Clone)
{
category = "PowerUp";
shape = "~/data/shapes/common/recharge.dts";
type = "weapon";
startOn = true;
shadow = true;
shadowAnimation = true;

Sound = "PupOnSound";
soundOff = "PupOffSound";
};

 

-CL©

Last edited: Saturday, February 05, 2005 at 5:11:12 PM

Saturday, February 05, 2005 at 4:58:59 PM

I hope this works 8o.can you put a screen shot up to please :o

Saturday, February 05, 2005 at 9:17:35 PM

Sure!

 


 

 


 

-CL©

Saturday, February 05, 2005 at 9:32:10 PM

Next you'll say that don't work, that is not Function, it is function (first word) %) Always you use function-code you need function to start.

B ºº

Saturday, February 05, 2005 at 10:20:10 PM

IT WORKS! Thanks Boo Chilled Lizard and Mr Big Show thanks for all your help. B) XD

Sunday, February 06, 2005 at 5:47:00 AM

You very welcome. :)
@Boo, I was guessing that GODZILLA would know to change the capital F to an f!

Sunday, February 06, 2005 at 6:54:32 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald