| Author |
Topic: Objectives not working correctly |
| starkk |
 |
General Member Since: Aug 8, 2008 Posts: 216 Last: Apr 5, 2012 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Tuesday, Jun. 9, 2009 02:05 am |
 |
Hey my objectives arnt working correctly, tho as far as I know my code is correct.
For my gsc I have this
Code: objective_1()
{
objective_add( 1, "current", &"NIGHTRAID_OBJ_1", (-30, -5519, -511.7) );
thread obj1_done();
}
for my string file i have this
Code: VERSION "1"
CONFIG "C:\cod5\cod\cod5\bin\StringEd.cfg"
FILENOTES ""
REFERENCE OBJ_1
LANG_ENGLISH "Fight through the village using the swamp path"
yet ingame I get this
I have checked dev gsc and also babycops meadow source code and none of precached the strings. Babycops map compiles fine for me and objectives work correctly ingame.
and yes I have tried pracaching them anyway. Oh and the position on the compass works fine and to make sure I didnt screw up my str file I copied and pasted my str file into babycops and then compiled meadow and it worked fine. Its gotta be something im missing in my gsc.
Any insight on correcting this would be amazing
Starkk
edited on Jun. 8, 2009 10:06 pm by starkk
edited on Jun. 8, 2009 10:07 pm by starkk |
|
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
|
| starkk |
 |
General Member Since: Aug 8, 2008 Posts: 216 Last: Apr 5, 2012 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Tuesday, Jun. 9, 2009 05:08 pm |
 |
DemonSeed writes...Quote: You dont have an ENDMARKER at the foot of your str file. The game will not read strings correctly without it:
Code: VERSION "1"
CONFIG "C:\cod5\cod\cod5\bin\StringEd.cfg"
FILENOTES ""
REFERENCE OBJ_1
LANG_ENGLISH "Fight through the village using the swamp path"
ENDMARKER
Oh ya I do, sorry forgot to include that in my original post
edited on Jun. 9, 2009 01:08 pm by starkk |
|
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
|
| starkk |
 |
General Member Since: Aug 8, 2008 Posts: 216 Last: Apr 5, 2012 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Tuesday, Jun. 9, 2009 05:14 pm |
 |
DemonSeed writes...Quote: Ok, tell me, step by step, how you added it to your zone file. File setup, and syntax to add the str file.
my zone file? mean csv in zone_source??
I have looked at dev csv files and they had nothing to do with string files in it.
For my string file I just opened up a dev str file, saved it has nightraid.str and changed what I wanted. |
|
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
Category: CoDWW Scripting Posted: Tuesday, Jun. 9, 2009 05:21 pm |
 |
starkk writes...Quote: DemonSeed writes...Quote: Ok, tell me, step by step, how you added it to your zone file. File setup, and syntax to add the str file.
my zone file? mean csv in zone_source??
I have looked at dev csv files and they had nothing to do with string files in it.
For my string file I just opened up a dev str file, saved it has nightraid.str and changed what I wanted.
No, you must localize it in your zone csv file:
Quote: localize,nightraid
All string files must be added to your zone csv in that manner, otherwise they dont register with the game.
EG: Taken from COD4/zone_source/coup.csv:
Quote: localize,credit
localize,coup
edited on Jun. 9, 2009 01:22 pm by DemonSeed |
 |
|
|
| starkk |
 |
General Member Since: Aug 8, 2008 Posts: 216 Last: Apr 5, 2012 [view latest posts] |
|
|
|
|
| starkk |
 |
General Member Since: Aug 8, 2008 Posts: 216 Last: Apr 5, 2012 [view latest posts] |
|
|
|
Category: CoDWW Scripting Posted: Tuesday, Jun. 9, 2009 06:42 pm |
 |
WOOOT got my objectives to work!!
The localize,nightraid,, was near the bottom of my csv file...for kicks and giggles i descided to put it at the top....and now my objectives work!!!
Thanks tubby!
 |
|
|
|
| starkk |
 |
General Member Since: Aug 8, 2008 Posts: 216 Last: Apr 5, 2012 [view latest posts] |
|
|
|
|
| DemonSeed |
General Member Since: Apr 30, 2009 Posts: 1362 Last: Feb 19, 2018 [view latest posts] |
|
|
 |
|
Category: CoDWW Scripting Posted: Tuesday, Jun. 9, 2009 07:49 pm |
 |
starkk writes...Quote: i meant tally....thanks tally
You're quite welcome Zeroy lol
edited on Jun. 9, 2009 03:53 pm by DemonSeed |
 |
|
|
|
|
mp_TempleCall of Duty: Mods: Multiplayer (624.12Kb)
|