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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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