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

Members Online

»
0 Active | 5 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 Scripting
Scripting and coding with Call of Duty: World at War.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Help getting started with scripting
Helox
General Member
Since: Feb 2, 2008
Posts: 10
Last: Dec 18, 2008
[view latest posts]
Level 0
Category: CoDWW Scripting
Posted: Thursday, Dec. 18, 2008 01:39 pm
I tried to start with scripting, following the Treyarch wiki (http://wiki.treyarch.com/wiki/Intro_To_Scripting)

When I run the map though, nothing is moving, and I get an error that the script cannot be found. Ofc I check that the script is in my mp_movetest.gsc.

I tried putting the move thread in a seperate gsc and included that in the main gsc.
I reread and tried the manual several times, compiled the map after changes to the script. I disabled the X axis movement so that the error wasn't in the size of the room...

But I cannot seem to solve this. Does anyone know what I am doing wrong? Or better yet, what is wrong with the manual?
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoDWW Scripting
Posted: Thursday, Dec. 18, 2008 02:32 pm
Did you include the .gsc in your fast file?
Share |
Helox
General Member
Since: Feb 2, 2008
Posts: 10
Last: Dec 18, 2008
[view latest posts]
Level 0
Category: CoDWW Scripting
Posted: Thursday, Dec. 18, 2008 02:40 pm
NovemberDobby writes...
Quote:
Did you include the .gsc in your fast file?


Yes... But I think it has something to do with the location, especially since I saw that error in the console (can't remember the exact error, since I am not behind my homepc atm).

But the example on the Treyarch wiki should work?
Share |
novemberdobby
General Member
Since: Sep 17, 2006
Posts: 1965
Last: Oct 13, 2013
[view latest posts]
Level 8
Forum Moderator
Category: CoDWW Scripting
Posted: Thursday, Dec. 18, 2008 03:07 pm
Yes it probably should, where exactly did you put the file, and what is your line in the zone file list?
Share |
OLD_MAN_WITH_GUN
General Member
Since: May 13, 2006
Posts: 754
Last: Jan 23, 2010
[view latest posts]
Level 7
Category: CoDWW Scripting
Posted: Thursday, Dec. 18, 2008 04:00 pm
NovemberDobby writes...
Quote:
Yes it probably should
No, coz. there is an error.
The move() function isn't called from the main() function [wink]

It should look like this:
Code:
main()
{
	//maps\mp\mp_yourmapname_fx::main();		
	maps\mp\_load::main();
	
	//maps\mp\_compass::setupMiniMap("compass_map_mp_yourmapname");

	// If the team nationalites change in this file,
	// you must update the team nationality in the level's csc file as well!
	game["allies"] = "marines";
	game["axis"] = "german";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "german";
	game["axis_soldiertype"] = "german";

	setdvar( "r_specularcolorscale", "1" );
	setdvar("compassmaxrange","2100");

        thread move(); //  !!! missing line !!!
}

move() {

    // Assign any script object in the map with "targetname / move" to "moveEntity"
    moveEntity = getEntArray( "move" , "targetname" );

    //Always going, "while true" and 1 = true, 0 = false
    while (1)
    {
        //Rotating moveEntity 360 degrees in 5 seconds with 0 speed up time and 0 slowdown time
        moveEntity rotateyaw( 360, 5, 0, 0 );
        
        //Move moveEntity along the X axis 512 units in 5 seconds with a 1 second acceleration time and a .5 second deceleration time.
        moveEntity moveX( 512, 5, 1, .5 );

        //Having a slightly shorter wait time than move time assures us there are no hitches.
        wait 4.9;
    }
}
Share |
Helox
General Member
Since: Feb 2, 2008
Posts: 10
Last: Dec 18, 2008
[view latest posts]
Level 0
Category: CoDWW Scripting
Posted: Thursday, Dec. 18, 2008 04:08 pm
Quote:
OLD_MAN_WITH_GUN writes...
Quote:
NovemberDobby writes...
Quote:
Yes it probably should


No, coz. there is an error.
The move() function isn't called from the main() function [wink]




ARGGGGHhh. Gonna try that right away when I get home. Can't believe I missed that. [thumbs_up]

edited on Dec. 18, 2008 11:14 am by Helox

edited on Dec. 18, 2008 11:14 am by Helox
Share |
Helox
General Member
Since: Feb 2, 2008
Posts: 10
Last: Dec 18, 2008
[view latest posts]
Level 0
Category: CoDWW Scripting
Posted: Thursday, Dec. 18, 2008 08:48 pm
Ok, now, I know it loads the gsc, since I got an error that it couldn't find _move.gsc (I re-merged the _move.gsc and the mp_movetest.gsc).

However, my brush still isn't moving, and I get the followinf error:

Error: Could not load rawfile "clientscripts/mp/mp_movetest.csc"

Yes, it says csc. Am I still doing something wrong?
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty: World at War : CoDWW Scripting

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

»