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

Members Online

»
0 Active | 85 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: objective error
junior1444
General Member
Since: Aug 29, 2009
Posts: 18
Last: Nov 13, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Monday, May. 24, 2010 10:19 am
when i want to launch a map this appears:

unlocalized (mymap_intro1)
unlocalized (mymap_intro2)
unlocalized (mymap_intro3)
unlocalized (mymap_intro4)

why is this text appearing instead of mine?

....and in the list of the tasks my text also doesnt appear.
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Monday, May. 24, 2010 10:24 am
You need to put your strings in a .STR file (?:\Call of Duty 4 - Modern Warfare\raw\english\localizedstrings).
Then in script preCache them and use them however you want.

precachestring( &"MYMAP_INTRO1" );

Objective_Add( 0, "active", &"MYMAP_INTRO1" );
Share |
junior1444
General Member
Since: Aug 29, 2009
Posts: 18
Last: Nov 13, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Monday, May. 24, 2010 11:10 am
there is trouble always yet

my script:

Code:
main()
{

level.weaponClipModels = [];
level.weaponClipModels[0] = "weapon_m16_clip";
level.weaponClipModels[1] = "weapon_dragunov_clip";
level.weaponClipModels[2] = "weapon_ak47_clip";
level.weaponClipModels[3] = "weapon_g36_clip";
level.weaponClipModels[4] = "weapon_ak74u_clip";
level.weaponClipModels[5] = "weapon_mp5_clip";
level.weaponClipModels[6] = "weapon_saw_clip";


maps\_load::main();
maps\_nightvision::main(); 


level.player takeallweapons();
level.player giveWeapon ("saw");
level.player giveWeapon ("m4_grenadier");
level.player givemaxammo( "m4_grenadier" );
level.player giveWeapon ("fraggrenade");
level.player giveWeapon ("flash_grenade");
level.player switchToWeapon( "m4_grenadier" );

precacheString( &"MYMAP_INTRO1" );
precacheString( &"MYMAP_INTRO2" );
precacheString( &"MYMAP_INTRO3" );
precacheString( &"MYMAP_INTRO4" );
precacheString( &"MYMAP_OBJ_1" );
precacheString( &"MYMAP_OBJ_2" );
precacheString( &"MYMAP_OBJ_3" );

Objective_Add( 0, "active", &"MYMAP_INTRO1" ); 
Objective_Add( 0, "active", &"MYMAP_INTRO2" ); 
Objective_Add( 0, "active", &"MYMAP_INTRO3" ); 
Objective_Add( 0, "active", &"MYMAP_INTRO4" ); 

thread ally_nodamage();  
thread spawners();
thread spawners2();
thread spawners3();
thread obj1();
}

ally_nodamage()
{
allyteam =getentarray ("ally", "targetname");
for(i=0;i<allyteam.size;i++)
allyteam[i] thread maps\_utility::magic_bullet_shield();
}<br />
<br />
<br />
<br />
spawners()
{
trig = getent("flood_and_secure","targetname");
trig waittill("trigger");
enemy = getentarray("auto16", "targetname");
for (i=0; i < enemy.size; i++ )
enemy[i] stalingradspawn();
}
spawners2()
{
trig = getent("flood_and_secure","targetname");
trig waittill("trigger");
enemy = getentarray("auto60", "targetname");
for (i=0; i < enemy.size; i++ )
enemy[i] stalingradspawn();
}

spawners3()
{
trig = getent("flood_and_secure","targetname");
trig waittill("trigger");
enemy = getentarray("auto66", "targetname");
for (i=0; i < enemy.size; i++ )
enemy[i] stalingradspawn();
}

obj1()
{

obj1 = getent("obj1", "targetname");

objective_add(1, "active", &"mymap_OBJ_1",getent("obj1","targetname").origin);

objective_current(1);

obj1 waittill("trigger");

objective_state(1, "done");

obj1 delete();

wait(2);

thread obj2();

} 

obj2()
{

obj2 = getent("obj2", "targetname");

objective_add(2, "active", &"mymap_OBJ_2",getent("obj2","targetname").origin);

objective_current(2);


obj2 waittill("trigger");

objective_state(2, "done");

obj2 delete();

wait(2);

thread obj3();

} 

obj3()
{

obj3 = getent("obj3", "targetname");

objective_add(3, "active", &"mymap_OBJ_3",getent("obj3","targetname").origin);

objective_current(3);

obj3 waittill("trigger");

objective_state(3, "done");

obj3 delete();

wait(2);

iprintlnbold (&"mymap_OBJ_COMPLETED"); //Let player know he is done

missionSuccess ("dawnville",false);
} 


my .str file
Code:

VERSION             "1"

CONFIG              "F:\projects\mk\bin\StringEd\StringEd.cfg"

FILENOTES           ""


REFERENCE           INTRO1
LANG_ENGLISH        "Action"

REFERENCE           INTRO2
LANG_ENGLISH        "bog"

REFERENCE           INTRO3
LANG_ENGLISH        "Sgt. Jackson"

REFERENCE           INTRO4
LANG_ENGLISH        "Vasquez squad"

REFERENCE           OBJ1

LANG_ENGLISH        "Get outside."<br />
<br />
<br />
<br />
REFERENCE           OBJ2

LANG_ENGLISH        "Avoid detection and pick up a weapon."<br />
<br />
<br />
<br />
REFERENCE           OBJ3

LANG_ENGLISH        "Kill everyone. Weapons free. Get to the river fast. Use the back."<br />
<br />
<br />
<br />
REFERENCE           OBJ_COMPLETED

LANG_ENGLISH        "All Objective Completed!"<br />
<br />
<br />
<br />
REFERENCE           OBJECTIVES

LANG_ENGLISH        "Press the |Tab| key to check your Objectives"<br />
<br />
<br />
<br />
ENDMARKER




Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 SP Mapping
Posted: Monday, May. 24, 2010 02:04 pm
What version of COD4 are you on? I know that older versions have weird problems with locstrs.
Share |
junior1444
General Member
Since: Aug 29, 2009
Posts: 18
Last: Nov 13, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Monday, May. 24, 2010 03:04 pm
1.7 patch
Share |
junior1444
General Member
Since: Aug 29, 2009
Posts: 18
Last: Nov 13, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Wednesday, Jul. 28, 2010 12:41 pm
please help me[exclamation]
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoD4 SP Mapping
Posted: Wednesday, Jul. 28, 2010 01:36 pm
is your strings file called mymap.str?
Share |
junior1444
General Member
Since: Aug 29, 2009
Posts: 18
Last: Nov 13, 2011
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Wednesday, Jul. 28, 2010 05:21 pm
yeah
Share |
-CoDMapper
General Member
Since: Nov 29, 2009
Posts: 83
Last: Oct 23, 2011
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Wednesday, Jul. 28, 2010 05:51 pm
Here's an example that I'm using atm.

main()
{
PreCacheString(&"MYLEVEL_OBJECTIVE_POWER");
level thread objective_00();
}

objective_00()
{
who = undefined;

master_switch = getent("use_master_switch","targetname");
origin_one = getent("master_switch", "targetname");
rotatedoor = getent("rotatedoor", "targetname");

Objective_Add( 0, "active", "MYLEVEL_OBJECTIVE_POWER" );
Objective_Position( 0, origin_one.origin );
Objective_State( 0, "active" );
objective_current(0);

master_switch waittill( "trigger", who );
Objective_State( 0, "done" );
Objective_Delete( 0 );

rotatedoor RotateYaw( 100, 2 );

level thread objective_01();
}
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

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

»