UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Help with ugx easy fx

broken avatar :(
Created 7 years ago
by wthout
0 Members and 1 Guest are viewing this topic.
1,980 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 5 March 2017
Last active: 5 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
Signature
Yo
×
wthout's Groups
wthout's Contact & Social Linkswth0utComputerSmitty
Now I feel real stupid for this, but  I've watched many videos and followed the tutorial completely but whenever I try to test out my map with the script_struct placed in, I build the mod, compile it, and whatever. But I go into waw, start  up my map and get an error that says like something is wrong  on line 265 of the ugx_easy_fx.gsc file
although I copied it completely from the tutorial.

Heres line 265: PlayFxOnTag( level._effect[fx], self.fx, fxTag );

Error: error: unexpected end of file found (file: maps/ugx_easy_fx.gsc line 265)
          PlayFxOnTag( level._effect[fx], self.fx, fxTag );

Could someone attempt to help me? It's probably just me being stupid but I can't figure it out for my life.
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
It's possible when copying you didn't copy the end:

Code Snippet
Plaintext
triggered_use_fx(loop) //These are triggered FX. They are triggered when the player uses a trigger (by pressing F) that you create in Radiant.
{
trigger = getEnt(self.target,"targetname");
if(!isDefined(trigger.script_string))
trigger.script_string = "SET THIS TEXT USING THE SCRIPT_STRING KVP ON THE TRIGGER";
trigger setHintString(trigger.script_string);
trigger SetCursorHint("HINT_NOICON");
fx = self.script_noteworthy;
trigger waittill("trigger");

fxTag = "tag_origin";
    self.fx = Spawn( "script_model", self.origin );
    self.fx SetModel( "tag_origin" );
    self.fx.angles = self.angles;
    self.fx.origin = self.origin;
    self.fx LinkTo( self, fxTag );

if(isDefined(loop))
{
if(!isDefined(self.speed))
{
self.speed = 0.5;
if(isDefined(level.fx_debug))iPrintLn("Easy-FX: ^1ERROR: ^7No speed was specified on the struct at origin "+self.origin+". It has defaulted to 0.5 seconds");
}
PlayLoopedFX(level._effect[fx], self.speed, self.origin);
}
else
PlayFxOnTag( level._effect[fx], self.fx, fxTag ); // Line 265
}

Check that the last curly bracket is there in your GSC under line 265.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 5 March 2017
Last active: 5 years ago
Posts
23
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
wthout's Groups
wthout's Contact & Social Linkswth0utComputerSmitty
It's possible when copying you didn't copy the end:

Code Snippet
Plaintext
triggered_use_fx(loop) //These are triggered FX. They are triggered when the player uses a trigger (by pressing F) that you create in Radiant.
{
trigger = getEnt(self.target,"targetname");
if(!isDefined(trigger.script_string))
trigger.script_string = "SET THIS TEXT USING THE SCRIPT_STRING KVP ON THE TRIGGER";
trigger setHintString(trigger.script_string);
trigger SetCursorHint("HINT_NOICON");
fx = self.script_noteworthy;
trigger waittill("trigger");

fxTag = "tag_origin";
    self.fx = Spawn( "script_model", self.origin );
    self.fx SetModel( "tag_origin" );
    self.fx.angles = self.angles;
    self.fx.origin = self.origin;
    self.fx LinkTo( self, fxTag );

if(isDefined(loop))
{
if(!isDefined(self.speed))
{
self.speed = 0.5;
if(isDefined(level.fx_debug))iPrintLn("Easy-FX: ^1ERROR: ^7No speed was specified on the struct at origin "+self.origin+". It has defaulted to 0.5 seconds");
}
PlayLoopedFX(level._effect[fx], self.speed, self.origin);
}
else
PlayFxOnTag( level._effect[fx], self.fx, fxTag ); // Line 265
}

Check that the last curly bracket is there in your GSC under line 265.

I don't think that's the issue, i just pasted that in there but before I already had the curly bracket at the end, I'll try again but I believe that isn't the problem

Double Post Merge: April 04, 2017, 08:44:43 pm
Well i'm no longer getting that issue
but now it's saying
"Could not find script maps/ugx_easy_fx"
Last Edit: April 04, 2017, 08:44:43 pm by wthout
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
I don't think that's the issue, i just pasted that in there but before I already had the curly bracket at the end, I'll try again but I believe that isn't the problem

Double Post Merge: April 04, 2017, 08:44:43 pm
Well i'm no longer getting that issue
but now it's saying
"Could not find script maps/ugx_easy_fx"

That's probably WaW being WaW, it will do that a lot, especially if you're constantly loading the map (which will be a lot when in dev stage).

Can you upload the GSC you have? It's a little hard to help off info you've given. :P

 
Loading ...