Welcome to the new Diaspora forums, please let us know if you see anything broken! Notice: Some users may need to reupload their avatars due to an issue during forum setup!

No compressors on spawn planet

ClarkClark Posts: 7Registered
edited February 2013 in Development #1
http://pastebin.com/GeXzT6rR

Looks for the spawn planet by searching for it's entity class and it's size. When a player goes to spawn a compressor on the spawn planet it will remove it as soon as it's spawned.
Post edited by Unknown User on

Comments

  • LtBrandonLtBrandon Posts: 506Registered, Administrator
    Clark wrote:
    http://pastebin.com/GeXzT6rR

    Looks for the spawn planet by searching for it's entity class and it's size. When a player goes to spawn a compressor on the spawn planet it will remove it as soon as it's spawned.
    That's not exactly an optimal way to deal with it, as it will only work on one map, and even if it did work on all maps, it could affect planets besides the spawn planet. I'm going to implement something to keep spawn's atmosphere in a breathable range eventually, but its going to have to be dynamic as we run quite a few maps.
    This is a block of text that can be added to posts you make. There is a 255 character limit.

    Lλmbdλ: donations for coding the space future of diaspora :>

    Get your extra long EVE trial here!
  • ClarkClark Posts: 7Registered
    This only affects the spawn planet on one map because that's all the server #2 current plays. Also this looks for the spefic entity that makes up a planet and finds the exact size of the planet. Just you let you know the spawn planet on vacuum is the biggest at 4096 as you may of been able to see. The Space Build team are still lagging in their development. If they finish up environments(https://github.com/SnakeSVx/spacebuild/blob/master/lua/CAF/Addons/server/spacebuild.lua#L332) their would be a easy way to do this for all maps.
  • NinjrKillrNinjrKillr Posts: 192Registered
    Technically Compressors aren't all that bad unless used for a very long time and / or used with a very large multiplier. As much as I hate them being used at all, for the above reasons, we'd be better off educating people to split water rather than forcibly removing their compressors. I mean, if the only way you know how to get Oxygen is to compress it, and suddenly you can't spawn compressors?

    Something will be implemented as Brandon said, in the mean-time if you have troubles with people compressing the entire atmosphere either try to teach them or ask for an Admin to help (they can spawn plants to refresh O2, iirc).

    "We fear that which we cannot see... we respect that which we cannot see... thus the blade will be wielded."

    Urahara_Bleach_Signature_by_Harty73.png
  • ClarkClark Posts: 7Registered
    I haven't actually see an admin on server #2 is that a bad thing?

    Edit:
    Updated to include 14 spacebuild maps.
    https://github.com/clrksml/Lua-Snippets ... s/init.lua
  • DataSchmuckDataSchmuck Posts: 147Registered, Moderator
    Clark wrote:
    I haven't actually see an admin on server #2 is that a bad thing?

    Probably just means the owner of that server quit playing Gmod again.
  • drmatsuudrmatsuu Posts: 1Registered
    I agree, there should be a little more presence on server #2 and the spawn planet protection sounds great... We really need that as an ass was on the server earlier today trying to make earth's atmosphere um-breathable. Fortunately, we were able to generate enough O2 to counter the individual in question, considering their knowledge of wire and LS was limited... probably some kid trying to get a rise out of people on the server.
    Super broken programming!

    I'll fix it... later.
  • andrbootandrboot Posts: 46Registered, Administrator
    Server owner is around occasionly :p (I believe Server #2 is me?)
    We have a few admins that are on quite a bit, just depends on timezones and so forth in reality.
    Known as Clakattack ... or "ClakofDeath" xD
  • LtBrandonLtBrandon Posts: 506Registered, Administrator
    andrboot wrote:
    Server owner is around occasionly :p (I believe Server #2 is me?)
    We have a few admins that are on quite a bit, just depends on timezones and so forth in reality.
    You have it backwards clak, you have #1 not #2. Anyways not much talking going on here, just going to lock it for now.
    This is a block of text that can be added to posts you make. There is a 255 character limit.

    Lλmbdλ: donations for coding the space future of diaspora :>

    Get your extra long EVE trial here!
This discussion has been closed.