Snippet PreventSave


Super Moderator
Staff member
The fact that the non-constant global which users are meant to modify is in all capitals is indeed misleading.
I also assumed it was a constant simply by the name of it.


Vastly intelligent whale-like being from the stars
what, change it to constant or change to non-capitals?

I personally think it's fine, if someone really wanted to toggle saving in their map, they probably would look through the code and realise that it is not a constant.


Good Idea™
They also prefix all user variables with udg_, but we don't...
And you're right, for example they have an array named [LJASS]bj_ghoul[/LJASS].
But it is problematic for us, because one-word global variables would take on the same name accidentally as a local variable, so we uppercase the first letter of each word including the first one these days...

For example, if you had to store a unit in a global temporarily for a [LJASS]ForGroup[/LJASS] call, let's say you'd call the unit [LJASS]Unit[/LJASS] or [LJASS]Hero[/LJASS] (or something). Without the convention we use, it would be [LJASS]unit[/LJASS] (which is a type keyword) or [LJASS]hero[/LJASS] (which could conflict with a local variable or parameter). So we don't follow Blizzard's stuff on this one - the reason is we don't follow their udg_ stuff (with which this wouldn't occur...).


I keep popping up on this site from time to time.
> From what I've seen, blizzard names their globals like this;

Yes, that's correct from what I've seen in Blizzard.j


Active Member
Works, I think... Someone left when I did it thou, but that might be cuz they were a dick.
Shall try again.

Okay, I think it might crash macs, but apart from that it will work.


Godspeed to the sound of the pounding
Works fine in single-player and on BNet (one player), from what I can tell.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    The old shoutbox wasn't supported anymore. We updated xenForo, so it had to be replaced.
  • jonas jonas:
    let's see if everyone finds it... the nice thing about the shoutbox was I could check on it even while logged out, but the existence of this one is hidden when you're not logged in
  • Ghan Ghan:
    We can fix that.
  • Ghan Ghan:
    Chat should show on the sidebar when not logged in now.
  • Ghan Ghan:
    (You'll still need to log in to post messages)
  • Ghan Ghan:
  • tom_mai78101 tom_mai78101:
    I must be in a test server.
  • tom_mai78101 tom_mai78101:
    Nice, Twitter tweets embedding now works
  • Wizard Wizard:
  • Ghan Ghan:
  • Ghan Ghan:
    @tom_mai78101 Hello there.
  • Ghan Ghan:
    Tagging works in the chat too.
  • tom_mai78101 tom_mai78101:
    @Ghan Missed it.
  • Wizard Wizard:
    Still fixing things here and there. Added widgets to the portal, will make it match the ones here on the forum index tomorrow.
  • Ghan Ghan:
    The venerable World Editor Tutorials site has been converted to HTTPS at last.
  • jonas jonas:
  • jonas jonas:
    and I can even edit my messages, nice
  • seph ir oth seph ir oth:
  • Ghan Ghan:
    Hello there
  • The Helper The Helper:
    this new chatbox is great and the forum software update is great too
  • The Helper The Helper:
    upgrade has fixed forum registration spam problem
  • tom_mai78101 tom_mai78101:
    Something tells me we might be able to customize the chatbox a bit, considering that there's a gap under every message.
  • Wizard Wizard:
    Going to deploy a fix soon, just had to take some time for myself this weekend.
  • Varine Varine:
    Unbelievable. Time for yourself? How dare you!

    Members online

    No members online now.


    Hive Workshop