• 0

    posted a message on Rounding a Real to one decimal place?

    Always aim for constant computational complexity, whenever possible.

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    //** Round value f to nearest increment.
    fixed RoundIncrement (fixed f, fixed increment) {
        return Round(f/increment)*increment;
    }
    
    //** Round value f to specific place value.
    //      +place value for whole places
    //      -place value for fractional places
    fixed RoundPlace (fixed f, int place) {
        return RoundIncrement(f,Pow(10,place));
    }
    
    //** Round value f to nearest tenths.
    fixed RoundTenths (fixed f) {
        return RoundIncrement(f,0.1);
    }
    

    As for misinformation about the fixed-point Real, learn the bit widths.

    Posted in: Triggers
  • 0

    posted a message on Update the Website!

    I can assure you, the "galaxy platform" is not speculation on my part.

    • The betrayed a brief glimpse of the map editor, and it's the SC2 editor right down to the icons.
    • One of the BlizzCon panels covered a , and is again identical to SC2's terrain tools.
    • In separate interviews with and , Chris Sigaty discussed the "galaxy platform", SC2 and Herostorm in its present, and its possible future.

    The available evidence indicates Herostorm is a fork of the SC2 source, diverging at least to the extent it must to support a different backend.

    EDIT: Formatting fix.

    Posted in: General Chat
  • 0

    posted a message on Update the Website!
    Quote from Mozared:
    Most of the moderators aren't as active as they used to be - people like TacoManStan, xCorbo, JademusSreg, Molsterr, Zeldarules28 and EternalWraith do show up from time to time but can't really be called regulars anymore by now.
    To be fair, I've never been quite active on the forums, instead having occupied the #sc2mapster IRC channel more or less continuously for the past 3 years.

    Regarding the site, one expects it will become a priority for Curse when the SC2 content-generation community has the potential to be something more than a blackhole investment, which is contingent on it being a priority for Blizzard. Talks at the recent BlizzCon indicate their interest in positioning SC2 and Herostorm as products on the "Galaxy platform" which, while of no immediate use, seems like a promising development and suggests they may eventually put the content-generation community to profitable use.
    Posted in: General Chat
  • 0

    posted a message on Are Presets accessible in custom galaxy scripts?

    This paste may be helpful, as it provides some usage examples of funcref and structref (didn't include arrayref, since it's used similarly to structref).

    Posted in: General Chat
  • 0

    posted a message on Need help on galaxy scripting and more general problems

    Attached is a .7z archive of the most recent standard galaxy files, with some additional reference compilations. See also Deaod's docs on galaxy script, its operators and types, and optionally an explanation of bitwise operators.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Are Presets accessible in custom galaxy scripts?

    Presets are a GUI trigger construct, its values are inserted into the map script as literals. So definitely not accessible via script.

    While galaxy lacks an enum construct, one may employ constants, arrays, structs, functions, DataTable API, and/or UserType data & UserData API to similar effect. None of the approaches are entirely satisfying as a convenient enum construct, but given the options one ought to find a workable compromise.

    Posted in: General Chat
  • 0

    posted a message on How many players are required b4 it is necrophilia?

    Oh, I've neglected to mention, I'm working on a new version. It has enough changes that it will be published separately, so people can continue to enjoy/hate the previous version.

    Posted in: General Chat
  • 0

    posted a message on Viral Bank Injector (VBI) + Character Code Locker (CCL)

    What you've posted here is nothing short of amazingly useless, with a description which would be misleading if it weren't obvious nonsense. Have a look.

    "CCL" is confused about its identity; the identifiers suggest it's intended to be a checksum, yet its relationship with "VBI" suggests it's intended to track versions. Both of which could be barely useful if they actually worked, nevermind that nothing about this "injects" or "infects" players' banks, or does anything with them at all. And if you could overlook the parody of a hash function that demonstrates zero concern for collision, the date tracker that can't even get time from the server, the absence of banks even being used in the code, and that this scrapbook of functions and variables don't accomplish anything in the least, if you could overlook all of that and suppose it might somehow work the way you describe, it would still be exploited by anyone with a few minutes of spare time simply by unlocking the map and coding it to output a bank with a date "checksum" higher than the official.

    Moving this to the Trigger Dev forum; it's not a resource to anyone.

    Posted in: Triggers
  • 0

    posted a message on Starcraft Universe reaches $80,000+ goal!!!

    Congratulations to StarCraft Universe and the obscenely committed team behind it. Surprised the Kickstarter succeeded, but not at all unpleasantly so.

    To those who would shit on it, seems rather petty; people with dignity celebrate the successes of their peers.

    Posted in: General Chat
  • 0

    posted a message on SC2 ESports in visible decline

    Perhaps instead of indulging in grandiose fantasies of persecution and Martin-Luther-like proclamations, one could devote the energy and hours wasted writing rage-erotica to something more productive. Like, literally anything. Anything would be more productive than publishing histrionic, fight-the-power vitriol on a small niche forum, especially when the target of such disproportionate resentment is just a company that makes games and provides services for said games.

    Blizzard is not significant enough to warrant it, and making them your target makes you even less significant than you could have been had you taken the time to accomplish something. A sensible person doesn't invest so much in lashing out at a company for providing a dissatisfying experience; a sensible person gets the fuck over it, learns from the experience, and doesn't waste any more time or money on it.

    In short, stop doing this:
    Excessive Expired Equine Excitation

    Posted in: General Chat
  • 0

    posted a message on MSG From Blizzard.
    "Real water" is ambiguous; instead, I'd suggest following features for water:
    • Defined by array of primitive shapes (like regions) or set of vectors (like water in later Command & Conquer games), instead of tiles.
    • Naval pathing, amphibious pathing, and marine heightmap.
    • Water Body data to instantiate shape arrays / vector sets and apply pathing to the pathing map, using graphical features defined in the Water data.
    Posted in: General Chat
  • 0

    posted a message on Chinese are stealing maps. I want to know how.

    Since "locking" a map merely strips out the editor-read data, "unlocking" a map is roughly simple as substituting editor-read data. The editor doesn't need GUI trigger data, and on Test Map the client will read the previously generated script just fine, so while GUI trigger data is not recoverable and thwarts most non-technical users, it does nothing to stop tinkering from those comfortable with galaxy script.

    Best way to reduce cracked maps from popping up is to publish your content to other regions and (where the authentic version has trouble competing with the cracked version) improve the quality of your content. Where cracked maps become popular, and especially when they make non-trivial changes to the gameplay, it's because there's a demand for that experience, and people had little alternative but to make that experience more accessible.

    Posted in: General Chat
  • 0

    posted a message on Something hit me last night...

    Perhaps Hobb is confused, because there exists no such deal. Hobb may be referring to Taint's presence in the IRC channel, and assumes that a deal was struck, but as I told Hobb in IRC, I'm not going to waste time tracking down the alts of banned individuals unless they are behaving in such a way as to draw attention to themselves. One would do well to not confuse disinterest with collusion.

    Posted in: General Chat
  • 0

    posted a message on How to fix the Mapping communities

    This topic has been an inspirational example illustrating the power of collective action, how talented and resourceful people can put aside their petty differences, come together, and succeed spectacularly in accomplishing nothing.

    Posted in: General Chat
  • 0

    posted a message on How to fix the Mapping communities
    As for derailing the thread. This could make a valid claim to be on topic. After all you cannot successfully brainstorm a working solution until you identify all of the reasons for the failure.

    Fair enough. Having thoroughly outlined the obstacles, one would expect the next post propose an equally comprehensive draft of viable, actionable measures on which community members may act toward realizing a solution. Otherwise, people may misinterpret your rigorousness as petulance, and I for one wouldn't want people to misconstrue your motivations in such a way.

    Posted in: General Chat
  • To post a comment, please or register a new account.