Help map Error Line 513

Venv

Active Member
Reaction score
1
so i was just working on my map a second ago and i get this custom script code @-@ error when i save it and now its being really werid can anyone help see whats worng with my map i need soem help and some fixe's on it D: its being really gay @-@ ill load it up

Problem got some new spells and saved got a error 513 code should end here i did't kno what code its talking about

Problem 2 i disabled all my triggers now its doing code 304 custom code error end here i need help plz!

Note: this is a beta of my game plz do not release it D: lol but i really advise u not to plz

Edit this is afther i got teh spell pack that one with teh air shade and natures protection @-@ thats when this happend

@-@ okay well thats a problem i can't upload it its above 1.91kb its like atlest with out the optimizer proly 4.9mb @-@ i can email u instead D:
 

denmax

You can change this now in User CP.
Reaction score
155
so i was just working on my map a second ago and i get this custom script code @-@ error when i save it and now its being really werid can anyone help see whats worng with my map i need soem help and some fixe's on it D: its being really gay @-@ ill load it up

Problem got some new spells and saved got a error 513 code should end here i did't kno what code its talking about

Problem 2 i disabled all my triggers now its doing code 304 custom code error end here i need help plz!

Note: this is a beta of my game plz do not release it D: lol but i really advise u not to plz

Edit this is afther i got teh spell pack that one with teh air shade and natures protection @-@ thats when this happend

@-@ okay well thats a problem i can't upload it its above 1.91kb its like atlest with out the optimizer proly 4.9mb @-@ i can email u instead D:

We won't know the problem unless you tell us what is stated in that line.

It is best to post the whole trigger here..
 

Venv

Active Member
Reaction score
1
Code:
    set gg_rct_Region_007 = Rect( 224.0, 2848.0, 416.0, 3072.0 )
    set gg_rct_Rect_017 = Rect( 448.0, 2848.0, 704.0, 3072.0 )
    set gg_rct_Region_018 = Rect( 736.0, 2848.0, 928.0, 3072.0 )
endfunction

//***************************************************************************
//*
//*  Custom Script Code
//*
//***************************************************************************
<---- ends here 
<---- or here
's Shading
//***************************************************************************
//*
//*  Triggers
//*
//***************************************************************************

//===========================================================================
// Trigger: Player Spawner
//===========================================================================
function Trig_Player_Spawner_Actions takes nothing returns nothing
    call FogMaskEnableOff(  )
    call FogEnableOff(  )
    call DisplayTimedTextToForce( GetPlayersAll(), 60.00, "TRIGSTR_242" )
    call TriggerSleepAction( 25.00 )
    call DisplayTimedTextToForce( GetPlayersAll(), 30.00, "TRIGSTR_238" )
    call TriggerSleepAction( 25.00 )
    call DisplayTimedTextToForce( GetPlayersAll(), 60.00, "TRIGSTR_239" )
    call TriggerSleepAction( 60.00 )
    call DisplayTimedTextToForce( GetPlayersAll(), 60.00, "TRIGSTR_240" )
    call TriggerSleepAction( 60.00 )
    call DisplayTimedTextToForce( GetPlayersAll(), 60.00, "TRIGSTR_241" )
    call TriggerSleepAction( 60.00 )
    call DisplayTimedTextToForce( GetPlayersAll(), 60.00, "TRIGSTR_271" )
endfunction

//===========================================================================
function InitTrig_Player_Spawner takes nothing returns nothing
    set gg_trg_Player_Spawner = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Player_Spawner, function Trig_Player_Spawner_Actions )
endfunction

//===========================================================================
// Trigger: Money
//===========================================================================
function Trig_Money_Conditions takes nothing returns boolean
    if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(9) ) ) then
        return false
    endif
    return true
endfunction

function Trig_Money_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 100, Player(0), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_Money takes nothing returns nothing
    set gg_trg_Money = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Money, Player(9), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_Money, Condition( function Trig_Money_Conditions ) )
    call TriggerAddAction( gg_trg_Money, function Trig_Money_Actions )
endfunction

//===========================================================================
// Trigger: Money Copy 2
//===========================================================================
function Trig_Money_Copy_2_Conditions takes nothing returns boolean
    if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(9) ) ) then
        return false
    endif
    return true
endfunction

function Trig_Money_Copy_2_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 100, Player(1), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_Money_Copy_2 takes nothing returns nothing
    set gg_trg_Money_Copy_2 = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Money_Copy_2, Player(9), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_Money_Copy_2, Condition( function Trig_Money_Copy_2_Conditions ) )
    call TriggerAddAction( gg_trg_Money_Copy_2, function Trig_Money_Copy_2_Actions )
endfunction

//===========================================================================
// Trigger: Money Copy 3
//===========================================================================
function Trig_Money_Copy_3_Conditions takes nothing returns boolean
    if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(9) ) ) then
        return false
    endif
    return true
endfunction

function Trig_Money_Copy_3_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 100, Player(2), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_Money_Copy_3 takes nothing returns nothing
    set gg_trg_Money_Copy_3 = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Money_Copy_3, Player(9), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_Money_Copy_3, Condition( function Trig_Money_Copy_3_Conditions ) )
    call TriggerAddAction( gg_trg_Money_Copy_3, function Trig_Money_Copy_3_Actions )
endfunction

//===========================================================================
// Trigger: Money Copy 4
//===========================================================================
function Trig_Money_Copy_4_Conditions takes nothing returns boolean
    if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(9) ) ) then
        return false
    endif
    return true
endfunction

function Trig_Money_Copy_4_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 100, Player(3), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_Money_Copy_4 takes nothing returns nothing
    set gg_trg_Money_Copy_4 = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Money_Copy_4, Player(9), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_Money_Copy_4, Condition( function Trig_Money_Copy_4_Conditions ) )
    call TriggerAddAction( gg_trg_Money_Copy_4, function Trig_Money_Copy_4_Actions )
endfunction

//===========================================================================
// Trigger: Money Copy 5
//===========================================================================
function Trig_Money_Copy_5_Conditions takes nothing returns boolean
    if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(9) ) ) then
        return false
    endif
    return true
endfunction

function Trig_Money_Copy_5_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 100, Player(4), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_Money_Copy_5 takes nothing returns nothing
    set gg_trg_Money_Copy_5 = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Money_Copy_5, Player(9), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_Money_Copy_5, Condition( function Trig_Money_Copy_5_Conditions ) )
    call TriggerAddAction( gg_trg_Money_Copy_5, function Trig_Money_Copy_5_Actions )
endfunction

//===========================================================================
// Trigger: Money Copy 6
//===========================================================================
function Trig_Money_Copy_6_Conditions takes nothing returns boolean
    if ( not ( GetOwningPlayer(GetDyingUnit()) == Player(9) ) ) then
        return false
    endif
    return true
endfunction

function Trig_Money_Copy_6_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 100, Player(5), PLAYER_STATE_RESOURCE_GOLD )
endfunction

//===========================================================================
function InitTrig_Money_Copy_6 takes nothing returns nothing
    set gg_trg_Money_Copy_6 = CreateTrigger(  )
    call TriggerRegisterPlayerUnitEventSimple( gg_trg_Money_Copy_6, Player(9), EVENT_PLAYER_UNIT_DEATH )
    call TriggerAddCondition( gg_trg_Money_Copy_6, Condition( function Trig_Money_Copy_6_Conditions ) )
    call TriggerAddAction( gg_trg_Money_Copy_6, function Trig_Money_Copy_6_Actions )
endfunction

//===========================================================================
// Trigger: Money Trigg
//===========================================================================
function Trig_Money_Trigg_Func002002 takes nothing returns nothing
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, GetEnumPlayer() )
endfunction

function Trig_Money_Trigg_Actions takes nothing returns nothing
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(9) )
    call ForForce( GetPlayersAll(), function Trig_Money_Trigg_Func002002 )
endfunction

//===========================================================================
function InitTrig_Money_Trigg takes nothing returns nothing
    set gg_trg_Money_Trigg = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Money_Trigg, function Trig_Money_Trigg_Actions )
endfunction

and idk whats worng @-@
 

denmax

You can change this now in User CP.
Reaction score
155
May I ask, does it have custom scripted actions other than calls?

If so, then maybe there's no endif or endfunction
 

denmax

You can change this now in User CP.
Reaction score
155
There are so much possibilities in my mind.

It could be that he copied the triggers from Azeroth Grand Prix XD..

I doubt it..

EDIT:

To put the script, click on your trigger then at the right box, right click the trigger's name (above Event) then Copy as text..
 

denmax

You can change this now in User CP.
Reaction score
155
Wahahaha it's JASS scripted. To make things worse, it's not like vJass (although I don't know the difference, it just feels like it isn't vJass)

Meaning, I have no idea how to help you..

Why don't you erase all the things there? maybe erase the custom script code thing?
 

Venv

Active Member
Reaction score
1
@-@ its in i dont kno jas i ikno gui its in gui the code errors is in jass and iam shited is y i asked for help D:
 

denmax

You can change this now in User CP.
Reaction score
155
@-@ its in i dont kno jas i ikno gui its in gui the code errors is in jass and iam shited is y i asked for help D:

So the line has nothing in it and you have no idea what trigger is it in?

Great, just great..
 

Venv

Active Member
Reaction score
1
yup thats the problem delted everything i did't need got rid of the 513 but nwo got 511 @-@
 

Venv

Active Member
Reaction score
1
iam not using jass at all nor vjass nor newgen @-@ just using simple gui triggers D: but i saved and now i lost all of 3weeks work of non sleep x{ if u want i can email u my map @-@
 

Venv

Active Member
Reaction score
1
i kno @-@ i did't put any jass script into the WEU @-@ i never had any jass ir emoved the ones i did D: but ill see D:
 

undead_me77

New Member
Reaction score
5
I am having a similar error. I hav also spent about 2 days non-stop working on my map. It saved alright last night. Logged on my computer this morning, opened the map, saved it as soon as i opened it (habit) and i get this Script error:
1 compile error
"Line 561: Expected end of line"
endfunction

//***************************************************************************
//*
//* Custom Script Code
//*
//***************************************************************************
<------ Line 560
<------- Line 561
o
<------- Line 562
//***************************************************************************
//*
//* Triggers
//*
//***************************************************************************

//===========================================================================
// Trigger: initialization
//===========================================================================
(I just copy-pasted the script around the error line, left out the rest as i didn't think it was relevant)
The only custom script i use is to avoid leaks (Custom script: call RemoveLocation( udg_TempPoint ) )
The OP had something like "'s shading" in custom scripts, i have "o". How do we remove this? I am assuming if those were removed there would be no error. I also use GUI-only.

I really need help with this, i can not work on my map anymore without fixing this :(
 

undead_me77

New Member
Reaction score
5
OH EM GEE. I worked out my problem, and it may help your (the OP's problem also)

Go to trigger editor.
On the left hand side where you have
Name of map.w3x
+ Initialization
+ Spell triggers
ect...

Click on "Name of map.w3x"
You will get a big white box called "Custom Script code"
I found my
Code:
o
In there!
I just deleted that and it will save + compile correctly. I am very happy now, and hope this solves your problem too :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top