+ Reply to Thread
Page 3 of 50 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 498

Thread: Wire 2

  1. #21
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default

    And how about the CPU?[/b]
    I'm going to port it under wire2, probably with some/lots of improvements. Probably it will be the CPU V3.

    Also Erkle, what about current hi-speed links system? It allows to read "memory" of a device by linking to it, will we be able to do this in Wire2?
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  2. #22
    Super Moderator Erkle's Avatar
    Join Date
    Feb 2007
    Location
    New Zealand
    Posts
    402

    Default

    Wire 2 should be able to do anything Wiremod can do and there will be a chip that can link a Wire 2 circuit to a Wiremod circuit so that you don't have to wait for things to be ported.

    ICs are built by placing a blank PCB, building a circuit on it with normal chips, right-click on it with the PCB tool and either shift-click(sprint+fire) to place it as an IC or add it to the chip tools list and use that to spawn it. You include ports by adding port chips to the PCB, their name and location is used to place the actual ports when it is spawned as an IC.

    The SVN will be at the same address except \wire2 instead of \wiremod. It checks out into addons\wire2 instead of just addons so it won't conflict with the current SVN.

    I will most likely be adding rotate and snap to the chip tool. I'm thinking of making it so shift-clicking places using rotate and snap and normal clicking places instantly but using the previous rotation.

    To hopefully answer everybodies coding questions, but mostly likely create more, here's an 8 port and gate scomponent:
    Code:
    SCMP.Group = "Logic"
    SCMP.Name = "And (All)"
    
    function SCMP:Init()
    ****Wire2Lib.AddPort(self, 'Value', WT_BOOL, WD_OUT, 26, 0, self.CalculateResult)
    
    ****for y=0,3 do
    ********for x=0,1 do
    ************local name = string.char(string.byte('A') + x*4 + y)
    ************self.Inputs, Wire2Lib.AddPort(self, name, WT_BOOL, WD_IN, -26 + x*16, -24 + y*16, nil, true))
    ************Wire2Lib.SetDepends(self, name, self.Ports.Value)
    ********end
    ****end
    end
    
    
    function SCMP:CalculateResult(port, cache)
    ****for _,p in pairs(self.Inputs) do
    ********if (!Wire2Lib.GetValue(p, cache)) then return false end
    ****end
    
    ****return true
    end
    and the constant value:
    Code:
    SCMP.Group = "I/O"
    SCMP.Name = "Constant"
    
    if (CLIENT) then
    ****CreateClientConVar("scmp_constant_value", "0", true, true)
    end
    
    
    function SCMP:Init()
    ****Wire2Lib.AddPort(self, 'Value', WT_NUMBER, WD_OUT, 26, 0, self.GetValue)
    end
    
    function SCMP:Setup(ply)
    ****self.Value = ply:GetInfoNum("scmp_constant_value")
    end
    
    
    function SCMP:Save(save, dest)
    ****save(self.Value, dest)
    end
    
    function SCMP:Load(load, src)
    ****self.Value = load(src)
    end
    
    
    function SCMP:GetValue()
    ****return self.Value
    end
    
    
    function SCMP.BuildCPanel(panel)
    ****panel:AddControl("Slider", {
    ********Label = "Value:",
    ********Type = "Float",
    ********Min = "-10",
    ********Max = "10",
    ********Command = "scmp_constant_value"
    ****})
    end
    I'll be adding full type support to that last one soon. The interface is only 90% final at the moment but it shouldn't change too much.
    If in doubt, stick your finger in it.

  3. #23
    Lifetime Supporter DuFace's Avatar
    Join Date
    Aug 2007
    Posts
    234

    Default

    Seems fairly self-explanatory there Erkle, thanks for the that! I assume there's a WD_BIDIR flag or something to that effect?

    Also, Black Phoenix, what are these CPU improvements of which you speak?
    Fields of Green

  4. #24
    Wire Noob polymer's Avatar
    Join Date
    Aug 2007
    Posts
    19

    Default

    a built in high level language translator

  5. #25
    Wirererer SuperU's Avatar
    Join Date
    Jul 2007
    Location
    Europe - Latvia
    Posts
    339

    Default

    Um... You forgot about THIS !
    There is no fate, but what we make.
    Do what you want, but at the end of the day, life is too short.
    The universe will not give you what you want, it will only give you what you need.
    Everything can be improved upon. Nothing is perfect.
    -SuperU

  6. #26
    Super Moderator Erkle's Avatar
    Join Date
    Feb 2007
    Location
    New Zealand
    Posts
    402

    Default

    Um... You forgot about THIS ![/b]
    Did I?
    I will most likely be adding rotate and snap to the chip tool. I'm thinking of making it so shift-clicking places using rotate and snap and normal clicking places instantly but using the previous rotation.[/b]
    If in doubt, stick your finger in it.

  7. #27
    Wirererer SuperU's Avatar
    Join Date
    Jul 2007
    Location
    Europe - Latvia
    Posts
    339

    Default

    Hehe NICE!!!
    There is no fate, but what we make.
    Do what you want, but at the end of the day, life is too short.
    The universe will not give you what you want, it will only give you what you need.
    Everything can be improved upon. Nothing is perfect.
    -SuperU

  8. #28
    Wire Noob ph0enixxx's Avatar
    Join Date
    Jun 2007
    Location
    Sør-norge | Norway
    Posts
    11

    Default

    Any chance it will be available tomorrow? Me and some friends are getting together to play some gmod, and it would be nice if it was ready before then


    I was a wowaholic...
    Until Tomasu told me about wiremod

    Peace through power!

  9. #29
    Wirererer adamscybot's Avatar
    Join Date
    Apr 2007
    Posts
    101

    Default

    The SVN will be at the same address except \wire2 instead of \wiremod. It checks out into addons\wire2 instead of just addons so it won't conflict with the current SVN.[/b]
    So do we have BOTH wire 2 AND wire 1 installed?

    If not, then having 2 SVN's isn't too good - shouldnt all efforts be transferred to wire 2?

  10. #30
    Wire Amateur GotenXiao's Avatar
    Join Date
    Apr 2007
    Posts
    67

    Default

    This is why Gmod10 needs a way to temporarily disable addons (i.e. by renaming it *.disabled).You could have both installed but only one in use.

    However, Wire2 uses an entirely new API as far as I can see, so having them both installed simultaneously wouldn't have any problems.

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

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