Mod ideas

Discussion in 'Mod Discussions' started by trialq, January 28, 2014.

  1. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Just had that bookmarked as a cool github.
    Isn't d3 what pa stats uses? If so then D3 is great.
  2. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Last edited: June 30, 2014
    cwarner7264 likes this.
  3. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    That is a pretty essential mod as far as I'm concerned, it sounds stupid but I consider the game very hard to play with the auto-hiding nonsense.
  4. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Makes streams harder to follow, too.
  5. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
  6. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Server Filtering
    The server browser (62443) makes me sad. Half the time I get so depressed I play the AI or just leave. I might be able to live with the wide player ranges, but I'd probably fix it anyway. We need filtering for regions, planets, open spectator slots, open player slots, locked games, and anything else that looks useful.

    Celestial Browser
    If time were no object, the server browser could be reimagined as a galaxy for each region. Once a galaxy was entered, the screen would be miniature versions of the systems (could use the static planet icons, no movement required) , with commander icons (players), astreus (open slots) and radar (spectators) orbiting.
    Last edited: October 3, 2014
  7. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Scale
    Just noticed the api method setIconScale (strategic icons) This begs for a setting and some hotkeys.
  8. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    where can I make this call, what syntax and what file ? and how do insert it correctly?

    I've been desperately needing this.

    I'm off to redraw my icons.
  9. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    api.arch.setIconScale(scale);
    tatsujb likes this.
  10. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    Is that in any file? do I have to include it's name in the modinfo.json for it to be used?

    how do I do it?
  11. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    so placing this inside icon_atlas.js did this :
    df.png
    Last edited: March 8, 2014
  12. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Yeah, might have some weird effects in icon_atlas. I did my proof of concept in a debugger console on live_game.
  13. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    alright, trying now thanks!
    EDIT: hmm nope that killed it, I know nothing about Java and code in general but is it really three equal signs before 'number'?
  14. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    It's Javascript. Or ECMAscript if we're really pedantic.

    === is the hard-core, it's really exactly the same thing comparison. == might do implicit conversions and is generally more loosy goosy about what it means to be equal. Sometimes thats what you want, like when you compare two strings that might be 'different objects' that happen to have the same content.
  15. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    The quote is from grep, it's a search tool I recommend for investigating the source. From commandline cd to the media folder, then use grep as above to search all of the moddable files. It's saying it found 'setIconScale' in arch.js and shows the line it's on, where we can see it's the function. Open arch.js and you can see the function is called by 'api.arch.setIconScale(scale);'

    Another example of where it's useful is finding unit blueprints where the in-game name is known:
  16. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    so what whould the correct syntax be if I wanted to write a Js that set the icon size to 1 ?
    this? :
    Code:
    function (scale) {
    arch.setIconScale(1.0) };
  17. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Trialq had the full name a few posts back

    Code:
    function (scale) {
    api.arch.setIconScale(1.0) };
  18. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    When I saw the Flexible Build Queue I misinterpreted it as a Global Build Menu, where you could put units in a global queue and any factories that were otherwise not preoccupied would fulfill those orders. I guess it would come with a global rally point which would coordinate with nearby factories. Don't we have a mod very similar to this?
  19. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    and if I want to not shadow the file? how do I make an ..err "insert"?
  20. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    and does this call have only one variable 'cause it doesn't seem happy this way.

    I placed it after the last function before the handlers in live_game, it keeps killing the game.

Share This Page