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.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top