+ Reply to Thread
Page 3 of 16 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 153

Thread: Jimlad's wire addons

  1. #21
    Wire Sofaking ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,391

    Default Re: Jimlad's wire addons

    Hmm, okay cool. Then could we also merge the text receiver and remove that lib? It is practically the exact same code I used for the emarker.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  2. #22
    Wire Sofaking tomb332's Avatar
    Join Date
    Mar 2007
    Location
    Birmigham,UK
    Posts
    1,377

    Default Re: Jimlad's wire addons

    Text receiver might need it as it is tracking a global list of receivers to distribute chat message to all of them.
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

    Super Easy Wire Download

  3. #23
    Wire Sofaking ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,391

    Default Re: Jimlad's wire addons

    Quote Originally Posted by tomb332 View Post
    Text receiver might need it as it is tracking a global list of receivers to distribute chat message to all of them.
    I was using the same system for mine... if it found that any of the emarkers in it's list had it's target removed it would tell that one marker to update... I don't know why Syranide didn't like it.

    I guess you could make it so every single emarker adds itself to the EntityRemoved gamemode hook but that just makes more work for every emarker as they will ALL check to see if it was their own entity instead of one place handling all the data. Plus, it adds a lot more calls to the hook itself.

    EDIT: I guess for chat it is best if one place handles it all for the asterisking of characters and such...
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  4. #24
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Jimlad's wire addons

    Just to make it clear, the only reason you want to put something in autorun is because you want to create a "lib", something that many tools can use. The only thing that really differs between putting code there and in a SENT/SWEP is that autorun will be run before the SENT/SWEP. Thus, it can safely be utilized by many SENTs/SWEPs, there is no point in putting something there if it is only used by a single SENT/SWEP.

    That's why wirelib is there, because all tools need it to some extent, so it needs to be run before all SENTs/SWEPs are activated.

  5. #25
    Wire Sofaking ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,391

    Default Re: Jimlad's wire addons

    Quote Originally Posted by Syranide View Post
    Just to make it clear, the only reason you want to put something in autorun is because you want to create a "lib", something that many tools can use. The only thing that really differs between putting code there and in a SENT/SWEP is that autorun will be run before the SENT/SWEP. Thus, it can safely be utilized by many SENTs/SWEPs, there is no point in putting something there if it is only used by a single SENT/SWEP.

    That's why wirelib is there, because all tools need it to some extent, so it needs to be run before all SENTs/SWEPs are activated.
    As far as I know, the only thing using the textreceiver library is the textreceiver. If the hook can be thrown into the STool instead then we should do that. It seems like it should work anyways.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  6. #26
    Wire Sofaking Bobsymalone's Avatar
    Join Date
    Jul 2008
    Posts
    770

    Default Re: Jimlad's Wire Addons

    Quote Originally Posted by Jimlad View Post
    What to do next:
    • Find a way to make applyForce work more like a thruster (always on), rather than only
    ApplyForce works just as it does in lua. Thrusters are always on because they run on a set interval that all wire components besides expressions work on.
    If you made it automatically toggled internally, that would bring a lot of flexibility problems (ie, there would be none).

    For example, use as a thruster isn't the only use of applyforce. You might not want it to work like a thruster. It's impossible to know what someone might use it for, so the best idea is always to leave it in an unspecialised state.

    Look at the adv pod controller inputs (most of which are automatically togglable), and see how awkward it makes things.

    I like what you did with entity markers, much more intuitive. Also if you get wirelinks to dupe all the time, you get sexual favours.

    If you get wire components to keep their nocollide on duping, make sure there's a way to remove the nocollide. Right now the only way is to dupe it, and that doesn't even work on vector thrusters.
    Last edited by Bobsymalone; 02-07-2009 at 04:14 PM.

  7. #27
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: Jimlad's wire addons

    Yeah, you're right in some ways about the applyForce stuff - which is why I had in mind just adding a new command, for instance "applyThrust" or something like that. The point is, the "problem" exists because of the very reason you mentioned - the interval works differently for the expression chips.

    I'm not sure I understand what you mean about the whole "flexibility" thing though. How would it work any differently to the current system, besides being more consistent and "always on"?

    I've been building stuff with applyForce and it seems workable, but a bit unreliable - you'll get varying amounts of thrust out of them depending on what server you're on, which makes creating precision stuff quite difficult. I can get around this by running a calibration step on each server, but it's not exactly ideal!

    EDIT:
    It seems that other people are starting to run into this problem in the E2 forum as well. For a while I was thinking I was the only one who noticed the issue!
    Last edited by Jimlad; 02-08-2009 at 07:57 AM.

  8. #28
    Wire Sofaking Bobsymalone's Avatar
    Join Date
    Jul 2008
    Posts
    770

    Default Re: Jimlad's wire addons

    Quote Originally Posted by Jimlad View Post
    Yeah, you're right in some ways about the applyForce stuff - which is why I had in mind just adding a new command, for instance "applyThrust" or something like that. The point is, the "problem" exists because of the very reason you mentioned - the interval works differently for the expression chips.

    I'm not sure I understand what you mean about the whole "flexibility" thing though. How would it work any differently to the current system, besides being more consistent and "always on"?

    I've been building stuff with applyForce and it seems workable, but a bit unreliable - you'll get varying amounts of thrust out of them depending on what server you're on, which makes creating precision stuff quite difficult. I can get around this by running a calibration step on each server, but it's not exactly ideal!

    EDIT:
    It seems that other people are starting to run into this problem in the E2 forum as well. For a while I was thinking I was the only one who noticed the issue!
    Well, force acts differently server to server no matter what. Thrusters included. Anyway all I meant by E2 having a different interval to the rest of wire is that you specify the interval yourself with interval(N).

    Code:
    if(On)
    {
       interval(40)
       Ent:applyForce(Force)
    }
    This should apply force at the same rate as a thruster. It'll also run whenever an input changes though, but you can fix that with:

    Code:
    if(On)
    {
       interval(40)
       if(clk()){ Ent:applyForce(Force) }
    }

  9. #29
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: Jimlad's wire addons

    ok, I won't be working on the applyForce function - I'll gladly leave that to ZeikJT. My computer seems to be dying at the moment, but while it's still going I'll be testing out his applyForce test version, and start working on getting those keypad commands going.

  10. #30
    Wire Sofaking ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,391

    Default Re: Jimlad's wire addons

    Alright I've committed the entity marker updates.
    Thanks dude.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

+ Reply to Thread
Page 3 of 16 FirstFirst 1234513 ... LastLast

LinkBacks (?)

  1. 03-14-2010, 02:27 PM

Similar Threads

  1. Addons for Wire Mod, mods for Wire Addon
    By _Kilburn in forum Wiremod Addons & Coding
    Replies: 63
    Last Post: 01-02-2011, 10:27 AM
  2. A note on inclusion of addons into official wire.
    By Anticept in forum Wiremod Addons & Coding
    Replies: 0
    Last Post: 08-18-2008, 07:13 AM
  3. Addons for a Mac?
    By FOXDONUT in forum Wiremod General Chat
    Replies: 18
    Last Post: 06-11-2008, 03:43 PM
  4. The [Table] |Lots of Addons|PHX|SVN Wire|SVN Wire2|
    By LemmingsOwnYou in forum Servers
    Replies: 0
    Last Post: 09-14-2007, 07:16 AM
  5. Combining Wire Addons into the main package
    By Maximized in forum Ideas & Suggestions
    Replies: 1
    Last Post: 02-21-2007, 03:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots