HELP!!!Mapping and scripting etc.


(Madpilot) #1

I’ve made a map with Radiant 1.3.8-ET and ive scripted the whole thing, but it doesnt work. Can sb. plz help me :???:


(nUllSkillZ) #2

On Ifurita’s page is very good scripting tutorial:
http://www.planetwolfenstein.com/4newbies/mapping.htm

You should read this first.
If you don’t get it to work you should post the script with a short description.


(Madpilot) #3

k thnx


(Madpilot) #4

Has somebody a good .map and a .scripr .bak and .arena for me i can use it as a tutorial


(Ifurita) #5

you could alway try Goldrush. The .map is included with the Radiant tools and everything else can be found in pak0.pk3 under /maps and /scripts respectively. You don’t need the .bak file


(Madpilot) #6

i know of the .map etc of goldrush, but can somebody make a map trigeerd and all(commpost etc)with script for me that i can use as a tutorial…


(Ifurita) #7

o_0? Huh?


(mrfin) #8

hey up Pilot

affraid you have to learn to walk before you learn to fly
:lookaround:


(Madpilot) #9

:skull: right


(Loffy) #10

madpilot, several good prefabs at www.drakir.tk that you can download and use. Incl. a command post prefab.

And here’s my own prefab master piece “passing airplanes” http://www.acc.umu.se/~loffy/mapping/prefabs/passingplanes

Keep on mapping!
//Loffy


(Madpilot) #11

thnx loffy, ive downloaded the map, but i miss a .map can i put that on ur site also? i can really use that. The drakir site doen’t work…

greetz Madpilot


(Madpilot) #12

mine script still doesn’t work, i will post the .arena .script and .objdata some1 whos is experienced plz read it an help me :???:

.arena:

{
map “The brige”
longname “The brige”
type “wolfmp wolfsw wolflms”
timelimit 30
axisRespawnTime 15
alliedRespawnTime 14
lmsbriefing “The Brige”
briefing “The axis have a very powerfull radar, they will use it to scan for allied troops comming in.
The allies have to destroy it, before the axis can preform a good scan…”
axiswintext “The scan has been completed”
alliedwintext “The radar has been destroyed”
mapposition_x 380 mapposition_y 510
}

.script:

game_manager
{
spawn
{
accum 1 set 0 // State of objective number one

	// Game rules
	wm_axis_respawntime	15
	wm_allied_respawntime	14
	wm_number_of_objectives 1
	wm_set_round_timelimit	25

	// Objectives
	// 1: Primary1 : Destroy the North gun
	// 2: Primary2 : Destroy the South gun
	// 3: Primary3 : Breach Old City wall
	// 4: Secondary1 : Capture forward spawn point
	// 5: Secondary2 : Drain/flood cave system by repairing/damaging the Oasis pump
	// 6: Secondary3 : Drain/flood cave system by repairing/damaging the Old City pump
	// 7: Allied command post
	// 8: Axis command post

	// Current main objectives for each team (0=Axis, 1=Allies)
	wm_set_main_objective		1	0
	wm_set_main_objective		1	1

	// Objective overview status indicators
	//wm_objective_status <objective> <team (0=Axis, 1=Allies)> <status (0=neutral 1=complete 2=failed)>
	wm_objective_status 1 1 0
	wm_objective_status 1 0 0

	// Stopwatch mode defending team (0=Axis, 1=Allies)
	wm_set_defending_team	0

	// If the round timer expires, the Axis have won, so set the current winning team
	// Set the round winner:  0 == AXIS, 1 == ALLIED
	wm_setwinner 0

	wait 150

	





trigger objective_1	{
	accum 1 inc 1				// Increase game counter
	accum 1 abort_if_not_equal 1			// All guns destroyed ?

	wm_announce	"Allies have destroyed the radar!"

	wait 8000

	accum 1 set 1				// Both pak guns destroyed

}

	// Call function to check if the round has been won
	trigger game_manager checkgame
}

trigger checkgame
{
	accum 1 abort_if_not_equal 1

	// Set the round winner:  0 == AXIS, 1 == ALLIED
	wm_setwinner 1

	// End the round
	wm_endround

	wait 500
}

}

percy_obj1
{
spawn
{
}

death
{
	trigger game_manager objective_1
}

}

.objdata:

// Set scenario information
wm_mapdescription axis "Protect the radar device at all cost. We need to run a full scan on the invasion. "
wm_mapdescription allied “Destroy the Axis radar device. We need to prevent the Axis of running a scan on the invasion.”
wm_mapdescription neutral "The Allies must destroy a radar deevice. Whitout it the Axis cant make a scan on the invasion. "

// Axis Objective Descriptions
wm_objective_axis_desc 1 “Primary Objective:**Protect the radar device at all costs.”

// Allied Objective Descriptions
wm_objective_allied_desc 1 “Primary Objective:**Destroy the radar device, it is an important objective in increasing in the invasion.”

thnx for reading it i hope u can learn me whats wrong… :drink:


(Ifurita) #13

You can help us help you by being specific about what doesn’t work. Do you have a script_multiplayer in your map with the scriptname = game_manager, are you getting any error messages? If so, what are they. I suppose we could keep guessing, but it’d be faster if you were more specific and provided details.


(CooperHawkes) #14

yes, being more specific would help… what do you want to achieve?

some of your brackets are placed totally wrong… do you have any experience in a programming language? if you do: scripts work like most programming languages and use the same block structures…
copy and pasting parts you like from different script doesn’t help if you don’t understand what they do… so read ifuritas guides and grab a book explaining the basics of C or Java (there are also some online resources out there in the wide wide web)


(Madpilot) #15

in my map i have an brige to be build, and a radar(obj) to be blown up. if i start my map now i dont get any error msg, but i see a “awaitong connection 0”, and that stands for more than hours…

i have a script_multiplayer with scriptname game_manager…

i have a little bit scripting exp. but not much… if u can make a script that work plz


(nUllSkillZ) #16

Here are also some tutorials:
http://www.wolfensteinx.com/surface/tutorials.html


(Madpilot) #17

yea i know the surface tutorials, but there is not much about scripting


(Madpilot) #18

ive now made a new map, a box with spawn, team_wolf_obj, script_multi, info_player_dead match. No obj…

script:
game_manager
{
spawn
{
remapshaderflush
wm_axis_respawntime 1
wm_allied_respawntime 1
wm_number_of_objectives 1
wm_set_round_timelimit 10
wm_setwinner 1
}
}

the .arena works.

when i load the map i see the “map”(europe) with the place of the fight. the loading bar stays empty… what have i done wrong???:???:


(EB) #19

Spammage

This thread has made me laugh, cry and long for someone to use the search buton as well.


(Madpilot) #20

:???::???::???::???::???::???::???: