• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Compilingerrors..?

Status
Not open for further replies.
Level 1
Joined
May 14, 2015
Messages
7
Hi community!

I used to make my WC3 maps on my Laptop, since i was a lot on the train.

Today i transfered my data onto my home pc and everytime i save i get this weird error/information window.

8cbfEra.png


And I have no clue where all theses Errors come from.
On my laptop i never had any issues. I can't remember changing any setting inside the editor either.

Also, i always get an error message if I have an error inside a trigger and it auto disables it, which my laptop never did either.

Any clue how to fix all theses Compilation errors or to not show them, because the used map to works fine, but if i save it on my PC it wont even start.

Here just some of the 149 Errors:

JASS:
    set gg_unit_n00F_0039 = CreateUnit( p, 'n00F', -2880,0, 1600,0, 270,000 )
    set gg_unit_ewsp_0017 = CreateUnit( p, 'ewsp', 2526,3, 2825,3, 19,545 )
    set gg_unit_n00F_0040 = CreateUnit( p, 'n00F', -2624,0, 1600,0, 270,000 )
    set gg_unit_ewsp_0020 = CreateUnit( p, 'ewsp', 2587,1, 2835,0, 339,971 )

    set u = CreateUnit( p, 'n001', 2176,0, 2688,0, 270,000 )
    set u = CreateUnit( p, 'n002', 2944,0, 2688,0, 270,000 )
    set gg_unit_n000_0002 = CreateUnit( p, 'n000', 2560,0, 2688,0, 270,000 )

    set gg_rct_Shop = Rect( -2560,0, 2048,0, -2048,0, 2560,0 )
    set gg_rct_DuelChamp = Rect( -768,0, 2304,0, -640,0, 2432,0 )
    set gg_rct_DuelBoss = Rect( 1152,0, 2304,0, 1280,0, 2432,0 )

    call CameraSetupSetField( gg_cam_Camera_001, CAMERA_FIELD_TARGET_DISTANCE, 1084,0, 0,0 )


Ill gladly attach a .txt file with everything copied in it, if needed.

Regards,

Shahoo
 
Level 1
Joined
May 14, 2015
Messages
7
yeah, it happens everytime.

My Laptop is WindowsVista, my home pc Win8, does that maybe have anything todo with it? :8
 
Level 4
Joined
Jul 9, 2007
Messages
50
ah, now i see the problems, your script actually IS broken
in english the decimal point is a point, not a comma like in german
in your map script, all real numbers are with a comma instead of a point, that breaks it
what you can do is remove all the objects you placed in your map that bug and recreate them OR edit the war3map.j file of your map (i believe its called like that) and correct it
 
Level 1
Joined
May 14, 2015
Messages
7
I'll try that, good i dont have too many units placed. most of them are spawn via triggers. Or do I have to change those too?
 
Level 1
Joined
May 14, 2015
Messages
7
Whelp, i guess ill have a lot of work to do then.

Is there a way i can export everything into an universal file and if i open it up on the german one it corrects/switches . to , ?

Otherwise... well shit ^^
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Not this problem again...

For some reason one of the last WC3 patches broke automatic script compiling so that it now depends on system localization. JASS as a language only supports US localization so it breaks badly for many localizations. Germany and France are especially prone to this as their localization has ',' as the fractional delimiter instead of '.' which makes the resulting script pass as if it has too many arguments declared.

The only solution is to change the fractional delimiter for your localization to match that of the US (or UK, as that also works and is similar to US).

Control Panel->Region and Language->Format panel->Additional settings...
Make "Decimal symbol:" be '.'

In France and Germany it would be ',' which is why WC3 is breaking.

You need to then accept the changes, restart the computer (they do not work immediately as far as I know) and then once booting is done it should allow you to save maps as expected (unless some other problem with localization occurs, but I cannot think of one).
 
Status
Not open for further replies.
Top