Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty: World at War
Category: CoDWW Scripting
Scripting and coding with Call of Duty: World at War.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: teleporting
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Thursday, Feb. 5, 2009 01:05 pm
Quote:
Well huh. It thinks that less than sign is the start of some html code and cuts off the rest. That's the problem.
I'll have to look into a fix for that. Thanks


That sounds like the problem, Foyleman[rocking]
Share |
*UWS*ThisGuy
General Member
Since: Jul 31, 2008
Posts: 215
Last: Jan 8, 2012
[view latest posts]
Level 4
Category: CoDWW Scripting
Posted: Thursday, Feb. 5, 2009 01:19 pm
Insane.....Thank you for posting that for my understanding.....unfortunatly.....I have no clue. lol

I'm kinda new to all this so, I'll try and learn some basics and along the way post any questions.

Thanks. [biggrin]
Share |
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Thursday, Feb. 5, 2009 01:38 pm
[lol] Lol.

No problem. Just read some stock scripts... Simple ones.. and understand what they mean, and just go from there..

Start writing your own small scripts .. Just simple ones..
Then its just trial and error after that. [crazy]
Make them more complex as you learn more.

And then after that, you start to get the hang of it. You go through alot of questions, alot of forum posting, but in the end you'll be on your own if you keep it up. [thumbs_up]

edited on Feb. 5, 2009 08:38 am by INSANE{H|S}
Share |
Zambesi
General Member
Since: Jun 12, 2009
Posts: 12
Last: Sep 20, 2009
[view latest posts]
Level 1
Category: CoDWW Scripting
Posted: Saturday, Aug. 29, 2009 02:12 pm
hey guys, i am stuck on this same teleport thingy heres my error:

ERROR: Could not open 'mapsmpteleportenter.gsc'
failed loading 'mapsmpteleportenter.gsc' of type 'rawfile' found in source file '../zone_source/mp_mass_pyramids.csv'


somehow launcher dont create .gsc files, not for "yourmapname.gsc" not for teleport???, so i end up having to notepad edit this by myself and then save as .gsc, but i do know that i know nothing about scripting, i followd the teleport script tutorial to the letter, and even put the spaces in as suggested previously, but that still brings me up with the same error, any ideas or any more info that any of you clever folk need i will submit

gretaly appreciated thid forum and alot of the tutorials found on this great site
Share |
*UWS*ThisGuy
General Member
Since: Jul 31, 2008
Posts: 215
Last: Jan 8, 2012
[view latest posts]
Level 4
Category: CoDWW Scripting
Posted: Saturday, Aug. 29, 2009 02:48 pm
assuming you've placed all the right scripts in radiant

create a .gsc file with the name _teleporter with the teleport code inside.


Quote:
main()
{

entTransporter = getentarray("enter","targetname");
if(isdefined(entTransporter))
{
for(lp=0;lp entTransporter[lp] thread Transporter();
}


}


Transporter()
{
while(true)
{
self waittill("trigger",other);
entTarget = getent(self.target, "targetname");

wait(0.10);
other setorigin(entTarget.origin);
other setplayerangles(entTarget.angles);
wait(0.10);
}
}


this goes in raw/maps/mp folder

add this line to your maps main .gsc file:

maps\mp\_teleport::main();

then add this line to you zone file:

rawfile,maps/mp/_teleport.gsc

[thumbs_up]

ps if ya need help with radiant let me know
Share |
Zambesi
General Member
Since: Jun 12, 2009
Posts: 12
Last: Sep 20, 2009
[view latest posts]
Level 1
Category: CoDWW Scripting
Posted: Monday, Aug. 31, 2009 03:26 am
thanks *UWS*ThisGuy that help, no more cannot open errors, i hope this last one will be the last lol.....

now that that is sorted out, when the launcher starts the game i get the following error


ERROR

server script compile error
bad syntax
maps\mp\_teleport::main();
(see console for details)

any ideas???

i am absolutely blown away by the great maps your UWS members are making and hope to put something on our server to match your great maps, thanks for the help you already gave me....

edited on Aug. 30, 2009 11:27 pm by Zambesi
Share |
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoDWW Scripting
Posted: Monday, Aug. 31, 2009 03:34 am
Code:
main()
{
	entTransporter = getentarray("enter", "targetname");
	if(isdefined(entTransporter))
	{
		for(lp = 0; lp < entTransporter.size; lp++)
			entTransporter[lp] thread Transporter();
	}
}

Transporter()
{
	while(true)
	{
		self waittill("trigger",other);
		entTarget = getent(self.target, "targetname");

		wait(0.10);
		other setorigin(entTarget.origin);
		other setplayerangles(entTarget.angles);
		wait(0.10);
	}
}
Share |
Zambesi
General Member
Since: Jun 12, 2009
Posts: 12
Last: Sep 20, 2009
[view latest posts]
Level 1
Category: CoDWW Scripting
Posted: Monday, Aug. 31, 2009 03:44 am
txs INSANE just changed the code from your previous post as you were posting this, error seem to go away, i am doing a compile now to run the map after to see if i got everything working on the teleports , . is there a limit to one destination per trigger?? or can i add two or three destinations from the same trigger??? for example one trigger to spawn players on three different locations in the desert ( have three script origins linked to one trigger)


oh the sorrows of being a scripting noob lol[banghead]
[banghead][wave]

edited on Aug. 30, 2009 11:47 pm by Zambesi
Share |
Zambesi
General Member
Since: Jun 12, 2009
Posts: 12
Last: Sep 20, 2009
[view latest posts]
Level 1
Category: CoDWW Scripting
Posted: Monday, Aug. 31, 2009 04:42 am
it seems that if i manualy make a maymapname.GSC file and place it in raw/maps/mpand then compile i get this error after i compile and or fastfile compile when it setting up the game

this is mymap GSC ....:

main()
{
//maps\mp\mp_mass_pyramids_fx::main();
maps\mp\_load::main();

// If the team nationalites change in this file,
// you must update the team nationality in the level's csc file as well!
game["allies"] = "marines";
game["axis"] = "japanese";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "pacific";
game["axis_soldiertype"] = "pacific";
}
maps\mp\_teleport::main();

allthough i did the code from INSANE i stille get that bad syntax error

and this is my zone file


// NOTE: If you add a comment, put a space after the double forward slash or you will get issues
col_map_mp,maps/mp/mp_mass_pyramids.d3dbsp
impactfx,mp_mass_pyramids
sound,common,mp_mass_pyramids,!all_mp
sound,generic,mp_mass_pyramids,!all_mp
sound,voiceovers,mp_mass_pyramids,!all_mp
sound,multiplayer,mp_mass_pyramids,!all_mp
character,char_usa_raider_player_rifle
character,char_usa_raider_player_cqb
character,char_usa_raider_player_assault
character,char_usa_raider_player_lmg
character,char_usa_raider_player_smg
character,char_jap_impinf_player_smg
character,char_jap_impinf_player_rifle
character,char_jap_impinf_player_lmg
character,char_jap_impinf_player_cqb
character,char_jap_impinf_player_assault
// model view hand,
xmodel,viewmodel_usa_marine_arms
xmodel,viewmodel_usa_raider_arms
xmodel,viewmodel_usa_marine_rolledup_arms
xmodel,viewmodel_ger_waffen_rolledup_arms
xmodel,viewmodel_ger_wermacht_arms
xmodel,viewmodel_jap_infantry_arms
xmodel,viewmodel_jap_infantry_rolledup_arms
xmodel,viewmodel_rus_guard_padded_arms
xmodel,viewmodel_rus_guard_arms
rawfile,maps/mp/_teleport.gsc


hope this help you to help me lol txs in advance

edited on Aug. 31, 2009 12:44 am by Zambesi

edited on Aug. 31, 2009 12:54 am by Zambesi
Share |
arachnofang
General Member
Since: Nov 16, 2008
Posts: 505
Last: Sep 9, 2012
[view latest posts]
Level 6
Category: CoDWW Scripting
Posted: Monday, Aug. 31, 2009 06:48 am
Hi mate!

This might be your problem.

main()
{
//maps\mp\mp_mass_pyramids_fx::main();
maps\mp\_load::main();

// If the team nationalites change in this file,
// you must update the team nationality in the level's csc file as well!
game["allies"] = "marines";
game["axis"] = "japanese";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "pacific";
game["axis_soldiertype"] = "pacific";
}
maps\mp\_teleport::main();

Try this.....

main()
{
//maps\mp\mp_mass_pyramids_fx::main();
maps\mp\_interactive_objects::init();
maps\mp\_load::main();
maps\mp\_teleport::main();

// If the team nationalites change in this file,
// you must update the team nationality in the level's csc file as well!
game["allies"] = "marines";
game["axis"] = "japanese";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "pacific";
game["axis_soldiertype"] = "pacific";
}

and your zone file is missing a couple of lines.....

// NOTE: If you add a comment, put a space after the double forward slash or you will get issues

col_map_mp,maps/mp/mp_mass_pyramids.d3dbsp

impactfx,mp_mass_pyramids

rawfile,maps/mp/mp_mass_pyramids.gsc
// rawfile,maps\mp\mp_mass_pyramids_fx.gsc
rawfile,maps/mp/_interactive_objects.gsc
rawfile,maps/mp/_teleport.gsc

sound,common,mp_mass_pyramids,!all_mp
sound,generic,mp_mass_pyramids,!all_mp
sound,voiceovers,mp_mass_pyramids,!all_mp
sound,multiplayer,mp_mass_pyramids,!all_mp

character,char_usa_raider_player_rifle
character,char_usa_raider_player_cqb
character,char_usa_raider_player_assault
character,char_usa_raider_player_lmg
character,char_usa_raider_player_smg
character,char_jap_impinf_player_smg
character,char_jap_impinf_player_rifle
character,char_jap_impinf_player_lmg
character,char_jap_impinf_player_cqb
character,char_jap_impinf_player_assault

// model view hand,

xmodel,skybox_nightfire

xmodel,viewmodel_usa_marine_arms
xmodel,viewmodel_usa_raider_arms
xmodel,viewmodel_usa_marine_rolledup_arms
xmodel,viewmodel_ger_waffen_rolledup_arms
xmodel,viewmodel_ger_wermacht_arms
xmodel,viewmodel_jap_infantry_arms
xmodel,viewmodel_jap_infantry_rolledup_arms
xmodel,viewmodel_rus_guard_padded_arms
xmodel,viewmodel_rus_guard_arms

You mainly need this line maps\mp\_interactive_objects::init(); for tanks, but i'm assuming you would need it for teleporting as well as it is a interaction, you will also need to change xmodel,skybox_nightfire to which-ever one it is you are using.

Hope this helps,

Ian.

edited on Aug. 31, 2009 03:15 am by arachnofang
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»