[WIP] Orbital (and bot) balance mod

Discussion in 'Work-In-Progress Mods' started by emraldis, July 5, 2014.

  1. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    I'm working on a server mod that adds more variety to orbital, and fixes bots. Currently not much to say other than I've been working on making the dox more useful.

    The dox is now close-range (~inferno range) and high DPS. It shoots 6 shots a second and each shot does 3 damage. It also has a greater sight range, and can take 2 shots from an ant. However infernoes chew up dox (because they are the same range). Also to compensate, single laser turrets shoot a little faster, do a little more damage per shot, and have a small, low-damage AOE.

    I am looking for a bit of help with getting the stinger back into the factory (not quite sure how to do it), and getting new units and structures into the orbital layer. I will upload the mod to PAMM once it actually is a bit more substantial.
    gtf50 likes this.
  2. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    For units to be buildable and appear in the build menu, they need to be in unit_list.json (pa\units), build.js (ui\main\shared\js\) and have the appropriate unit_types for the factory.
  3. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Ok, thanks! I'll see if I can get that working.
  4. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Hmmm. I've done all those things and the AA bot still doesn't seem to show up...
  5. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Post the mod on github. I'll take a look at what's broken.
  6. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    One moment. Got the stinger working by stealing the RCBM build list. Going to figure out what's up. Testing the new unit now. If I can't figure it out, I'll put it up, but that's gonna be tomorrow, probably.
  7. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    It was the build.js? You assigned it build position 15 didn't you?

    0-14.
  8. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    I didn't actually. I think it was a spacing issue or something. I assigned it 6, I think.

    EDIT: Got the new unit in. Where do I add the unit build bar icons?
  9. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    pa\ui\main\game\live_game\img\build_bar\units
  10. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Ok, so I got that working, and I got strategic icons to display when you go to build the units, but when the unit gets build it does not get the strategic icon.
  11. nanolathe

    nanolathe Post Master General

    Messages:
    3,839
    Likes Received:
    1,887
    Try making the UI element of your mod a client-side one.

    Replicate the UI file structure you have in "server_mods" into "client_mods", add a modinfo and change it to client rather than server.

    No idea why bot_aa isn't inheriting its icon correctly from server-side ui... something is causing it to break that I can't (yet) identify. Other units, if not assigned a specific icon are being given "blip"... but bot_aa is a special case for some reason.

    You could also try renaming it (its file structure and anything that references it) to something else; might fix it.
    Last edited: July 6, 2014
  12. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Uber straight up removed the bot_aa icon from the icon directory. You'll need to add it back in. No modifications to the icon atlas.js file will be needed.

    The path is as follows: \ui\main\atlas\icon_atlas\img\strategic_icons

    Attached is the icon from Transparent Strategic Icons mod v 3.3.1.

    Attached Files:

  13. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    I added it back in. When I hover my mouse over the unit when it is in the factory, I can see it's unit icon as a preview, however, when I actually build it, it is the "broken image" picture, even though my other units that I made just have the standard dot.
    nanolathe likes this.
  14. liquius

    liquius Well-Known Member

    Messages:
    731
    Likes Received:
    482
    So we had this problem as well. It seems that the server mods don't like when you mess with the vanilla models or icons.

    So you can either make a UI mod to go with the server mod, or you have to rename the aa bot to something else.
  15. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    odd.
  16. nanolathe

    nanolathe Post Master General

    Messages:
    3,839
    Likes Received:
    1,887
    indeed. But we've fixed it now.

    "bot_aa" is dead, long live "bot_antiair".
    squishypon3, stuart98 and emraldis like this.
  17. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    ok, so I cannot, for the life of me, get an orbital unit to have a missile weapon. Can someone help with this?
  18. nanolathe

    nanolathe Post Master General

    Messages:
    3,839
    Likes Received:
    1,887
    Checked the spawn layer of the missile?
    stuart98 likes this.
  19. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Generally I'd recommend that you keep a repo on github so that if you have an issue like this we can take a look at the code and find out what the issue is.
  20. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    I also cannot, for the life of me, figure out github. :/
    Raevn and thetrophysystem like this.

Share This Page