+ Reply to Thread
Page 2 of 16 FirstFirst 123412 ... LastLast
Results 11 to 20 of 153

Thread: Jimlad's wire addons

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

    Default Re: Jimlad's wire addons

    Nice!

    I've commited it, but not the applyForce-thing, yes I see your point, but the problem is that there are 4 of the functions, with the possibility of adding another 4. I don't see the point of doubling the amount of functions simply to shave off "vec()".

  2. #12
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: Jimlad's wire addons

    Quote Originally Posted by Syranide View Post
    I've commited it, but not the applyForce-thing,
    Yeah, I figured the redundancy would be off-putting, but I only did it for that one command since it's so useful for testing. It's not like it'll be hard to live without it though, it's not an issue for full-blown code where you're defining vectors anyway... it's just nice when you want to quickly write like a hover expression or something.

    ZeikJT: yay, It works! It took me a second to figure out why it wasn't working at first though, it's those spelling errors I told you about!

    Anyway, I've updated my first post with the new emarker code. It works a bit more cleanly now, thanks for that. I think I'll reformat my first two posts, so that the first post is only things that haven't been commited yet, and the second one is for archival. Makes it easier to check if anything new has been released.

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

    Default Re: Jimlad's wire addons

    Quote Originally Posted by Jimlad View Post
    ZeikJT: yay, It works! It took me a second to figure out why it wasn't working at first though, it's those spelling errors I told you about!
    Damn me and my horrible spelling! I thought I had gone through and fixed em all... at least you got it working. I see they've committed the version with the think function at least. I don't know if there will be reason to commit my gamemode hook version.
    Does it work well? It doesn't have any reason to fail but you never know.
    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. #14
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: Jimlad's wire addons

    Yeah, it works better if anything, since I had that delay in the Think function. Now it updates the overlay immediately... probably won't make much difference, but it definitely makes for "better" code.

    Thinking about it, would this approach be a good way to "fix" the applyForce functions? Create a table of entities that have the applyForce function assigned to them, and a table of force vectors, and apply the force each tick. Then the E2 functions would relate to changing the tables rather than applying force directly. Should be relatively straightforward, right?
    Last edited by Jimlad; 02-06-2009 at 11:33 AM.

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

    Default Re: Jimlad's wire addons

    Haha, awesome! I might commit it myself eventually.
    Good luck working on those other additions
    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. #16
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Jimlad's wire addons

    But please remove the markerlib, it's kind of pointless, especially since it doesn't have any kind of purpose.

  7. #17
    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
    But please remove the markerlib, it's kind of pointless, especially since it doesn't have any kind of purpose.
    What do you mean? In the past whenever I've tried adding a gamemode hook to an entity it has failed. It needs a library in the autorun to register the hook correctly... I hope I'm wrong but some of my SENTs used to fail because of this, maybe I was doing it wrong back then.
    I wish I could test it... it could work. I'll rewrite it and see if anyone can get it to work.

    I could also just merge the markerlib and the textlib if the above doesn't work.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

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

  8. #18
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: Jimlad's wire addons

    Yeah, I was also confused, but that's probably because I assumed you made the markerlib file therefore it was necessary. As you say, it could always be merged. If you do a rewrite I'll give it a go.
    Last edited by Jimlad; 02-06-2009 at 11:59 AM.

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

    Default Re: Jimlad's wire addons

    Quote Originally Posted by ZeikJT View Post
    What do you mean? In the past whenever I've tried adding a gamemode hook to an entity it has failed. It needs a library in the autorun to register the hook correctly... I hope I'm wrong but some of my SENTs used to fail because of this, maybe I was doing it wrong back then.
    I wish I could test it... it could work. I'll rewrite it and see if anyone can get it to work.

    I could also just merge the markerlib and the textlib if the above doesn't work.
    Anything that is defined with-in the entity/tool is also run.
    The only difference is that what ever is in autorun doesn't have any "binding", it just exists.

    Meaning, the point of stuff in autorun is for libraries or stuff that a lot of entities/tools intend to share or use. It's no point in defining something in there for a single tool, then it's better to just put it in the tool or in the entity of the tool.

  10. #20
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: Jimlad's wire addons

    ok, thanks for explaining Syranide. I've updated it and merged the code into the tool, so no more markerlib. It looks like it's working fine with the merge; linking, removing, and duplication remain unchanged. Good think you mentioned it - looks like tomb just updated the laser pointer with the same thing!
    Last edited by Jimlad; 02-06-2009 at 04:39 PM.

+ Reply to Thread
Page 2 of 16 FirstFirst 123412 ... 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