Error needs localization

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Error needs localization

Post by Alcoholic »

Hi. Ive seen this in other maps, and it happens in mine. whenever a text message is supposed to be displayed, i get this error that says, "error: needs localization: blah blah whatever the message was."

i was wondering how i could fix it.

can you look at my script and tell me whats wrong??? thx

Code: Select all

main:

	exec global/ai.scr
	exec global/friendly.scr
	exec global/loadout.scr maps/test_alliedraid.scr // i have no idea why this is here. i just put it here cuz i see it in other scripts.

level waittill prespawn

	level.captain = level.friendly1
	level.medic = level.friendly5
	
	level.medic exec globa/disable_ai.scr // BTW- my medic STILL DOESNT HEAL!! ARGHHH
	
	level.script = maps/test_alliedraid.scr

level waittill spawn
	
	$player item weapons/bar.tik
	$player item weapons/colt45.tik
	$player ammo mg 200
	$player ammo pistol 70
	$player useweaponclass mg
	$player item weapons/m2frag_grenade.tik
	$player ammo grenade 4

//Threads	
thread friendlysetup
//thread followtheleader
end

friendlysetup:

	level.captain thread global/friendly.scr::friendlythink
	level.friendly2 thread global/friendly.scr::friendlythink
	level.friendly3 thread global/friendly.scr::friendlythink
	level.friendly4 thread global/friendly.scr::friendlythink
	level.medic thread global/friendly.scr::friendlythink

	level.captain.friendtype = 4
	level.friendly2.friendtype = 0
	level.friendly3.friendtype = 0
	level.friendly4.friendtype = 0
	level.medic.friendtype = 5
	
	level.captain.avoidplayer = 0
	level.friendly2.avoidplayer = 0
	level.friendly3.avoidplayer = 0
	level.friendly4.avoidplayer = 0
	level.medic.avoidplayer = 0

	level.captain.health = 1000
	level.friendly2.health = 1000
	level.friendly3.health = 1000
	level.friendly4.health = 1000
	level.medic.health = 1000
	
	level.friendly2.mins = 128
	level.friendly2.maxs = 512
	
	level.friendly3.mins = 128
	level.friendly3.maxs = 512
	
	level.friendly4.mins = 128
	level.friendly4.maxs = 512
	
	level.medic.mins = 128
	level.medic.maxs = 512
/*	level.friendly2.destination = level.captain
	level.friendly3.destination = level.captain
	level.friendly4.destination = level.captain
	level.medic.destination = level.captain*/
	
	level.captain thread deathleader
	level.friendly2 thread deathfriend2
	level.friendly3 thread deathfriend3
	level.friendly4 thread deathfriend4
	level.medic thread deathmedic
	end

deathleader:
	
	self waittill death
	iprintlnbold "Captain Smith has been killed in action. You are the new leader."
	thread newleader
	end

deathfriend2:

	self waittill death
	iprintlnbold "Private Duncan has been killed in action."
	end

deathfriend3:

	self waittill death
	iprintlnbold "Private Jordan has been killed in action."
	end

deathfriend4:

	self waittill death
	iprintlnbold "Sharpshooter Jones has been killed in action."
	end

deathmedic:

	self waittill death
	iprintlnbold "Medic Henry has been killed in action."
	end

newleader:

	iprintlnbold "The Captain has died. You are the new leader."
	thread newleadersetup
	end

newleadersetup:

	level.friendly2.friendtype = 1
	level.friendly3.friendtype = 1
	level.friendly4.friendtype = 1
	
	level.friendly2.distance = 128
	level.friendly3.distance = 128
	level.friendly4.distance = 128
	end
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It happens because mohaa tries to translate everything it sees. There's no reason to worry about it and you can't stop it from whining anyway (unless you type developer 0).

For print commands, you can use iprintlnbold_noloc instead, it won't give any nasty errors.

If you're using mohaa v1.0, consider upgrading to v1.11. It gives even more of these localization errors but will only display them in the console.
Image
Post Reply