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

Members Online

»
0 Active | 80 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: World at War
Category: CoDWW SP Mapping
Call of Duty: World at War single player mapping, scripting and everything 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: Please help, urgent
schutzephilipp
General Member
Since: Mar 30, 2011
Posts: 2
Last: Sep 26, 2012
[view latest posts]
Level 0
Category: CoDWW SP Mapping
Posted: Tuesday, Sep. 25, 2012 07:32 pm
Please help, i get a script compile error (bad syntax) when i try to play my map that has an animation for an actor, my map name = test
In radiant, i made a marine with "targetname" and "guy"
I made a script node with "targetname" and "anim_node"

this is my test.gsc

#include maps\_utility;
#include common_scripts\utility;
#using_animtree( "generic_human" );
main()
{
// Don't give the player the default loadout, we want to specify it for our custom made map
level.dodgeloadout = true;
// Sets up all of the FX in the level
maps\test_fx::main();
// _load, sets up all of the basic entity behaviors
maps\_load::main();
// Sets the player's weapon loadout... This line should be right after _load::main(), and no waits/delays before it.
set_loadout();
// Sets up ambient sounds
maps\test_amb::main();
// Sets up "canned" animations
maps\test_anim::main();
thread anim();

}
// Sets the custom weapon loadout
set_loadout()
{
// Precache's / sets the list of weapons to give to the player when he spawns in
maps\_loadout::add_weapon( "colt");
maps\_loadout::add_weapon( "m1garand" );
maps\_loadout::add_weapon( "fraggrenade" );
maps\_loadout::add_weapon( "m8_white_smoke" );
// Sets the player's offhand throw weapon (aka smoke/flash)
maps\_loadout::set_secondary_offhand( "smoke" );
// Sets the player's default (if he does not have a pistol) laststand pistol.
maps\_loadout::set_laststand_pistol( "colt" );

// Sets the player's viewarms
maps\_loadout::set_player_viewmodel( "viewmodel_usa_marine_arms");
// Sets the player's viewarms when attacked by an enemy in a melee sequence or if a canned animation calls for them
maps\_loadout::set_player_interactive_hands( "viewmodel_usa_marine_player" );
// Switches the player's weapon once he spawns in
maps\_loadout::set_switch_weapon( "m1garand_bayonet" );
// Sets the campaign, which is used for battlechatter and other various scripts
level.campaign = "american";
// Precaches the 3rd person model (for when playing coop)
mptype\player_usa_marine::precache();
}
anim()
{

level.guy = getent( "guy", "targetname" );

level.guy.animname = "guy";

anim_node = getnode( "anim_node", "targetname" );

level.guy setgoalnode(anim_node);

level.guy waittill( "goal" );

anim_node anim_reach_solo( level.guy, "anim" );

anim_node thread anim_single_solo( level.guy, "anim" );

}


This is my test_anim.gsc


#include common_scripts\utility;
#include maps\_utility;
#include maps\_anim;
#using_animtree( "generic_human" );
main()
{
level.scr_anim["guy"]["anim"] = %ch_makinraid_intro_officer_a;
}


This is my test.csv


// NOTE: If you add a comment, put a space after the double forward slash or you will get issues
ignore,code_post_gfx
ignore,common
// map specific files
col_map_sp,maps/test.d3dbsp
gfx_map,maps/test.d3dbsp
rawfile,maps/test.gsc
rawfile,maps/test_amb.gsc
rawfile,maps/test_anim.gsc
rawfile,maps/test_fx.gsc
// Weapons
weapon,sp/m1garand
weapon,sp/colt
weapon,sp/fraggrenade
weapon,sp/m8_white_smoke
// Viewarms
xmodel,viewmodel_usa_marine_arms
xmodel,viewmodel_usa_marine_player
// 3rd person model
include,common_player_us
xanim,ch_makinraid_intro_officer_a


edited on Sep. 25, 2012 12:38 pm by schutzephilipp

edited on Sep. 25, 2012 01:12 pm by schutzephilipp
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoDWW SP Mapping
Posted: Wednesday, Sep. 26, 2012 03:29 pm
type in /developer 1 then try and run your map, and then post what that error is saying

Thanks, Ukdjaj[thumbs_up]
Share |
schutzephilipp
General Member
Since: Mar 30, 2011
Posts: 2
Last: Sep 26, 2012
[view latest posts]
Level 0
Category: CoDWW SP Mapping
Posted: Wednesday, Sep. 26, 2012 04:26 pm
Thanks man! On google i searched for something that points out where the errors are (but found no info) I didnt know of "developer 1" I put it in and worked my way out of the errors with the gsc, and it actually worked [2guns][lol]

edited on Sep. 26, 2012 09:26 am by schutzephilipp
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW 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

»