+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Value changing error

  1. #1
    Wire Noob andyator's Avatar
    Join Date
    Sep 2008
    Posts
    2

    Default Value changing error

    every time i try to change a value, i get this error:

    RunConsoleCommand: Command has invalid characters! (wire_value_value1 ('1'))
    The first parameter of this function should contain only the command, the second parameter should contain arguments.

    and then it wont let me change the value still, it shows on the tool menu, but doesnt actually change...

    Any help here?

  2. #2
    GUN
    GUN is offline
    Wire Sofaking GUN's Avatar
    Join Date
    Jan 2008
    Location
    California
    Posts
    668

    Default

    this is caused by the new update please wait till garry fixes it

  3. #3
    Wire Amateur Synchro's Avatar
    Join Date
    Feb 2008
    Posts
    73

    Default

    Garry won't, it's to stop the lua virus.

  4. #4
    GUN
    GUN is offline
    Wire Sofaking GUN's Avatar
    Join Date
    Jan 2008
    Location
    California
    Posts
    668

    Default

    guess some wire things are broken till its fixed :/

  5. #5
    Wire Noob Sray's Avatar
    Join Date
    Sep 2008
    Posts
    1

    Default

    I found a way around this,
    Go to console type wire_value_value1 "Value you want"
    Or wire_value_value2 "value you want"
    You can do that all the way to 12.
    It's a quick way to do it till a fix comes along.

  6. #6
    Wire Noob NivvyDaSkrl's Avatar
    Join Date
    Sep 2008
    Posts
    2

    Default

    Another good work-around is to set a button's ON and OFF values both to the constant value you need, and use buttons instead of wired const-values until the issue's resolved.

  7. #7
    GUN
    GUN is offline
    Wire Sofaking GUN's Avatar
    Join Date
    Jan 2008
    Location
    California
    Posts
    668

    Default

    Garrys fixing this now

  8. #8
    Wire Noob Wolfhound's Avatar
    Join Date
    Aug 2008
    Posts
    17

    Default

    I have it fixxed on my server within 2 minutes in fact all my wire works thats the befits of having a coder as an admin. If anyone wants the lua files to fix it pm me.

  9. #9
    Wire Noob Wolfhound's Avatar
    Join Date
    Aug 2008
    Posts
    17

    Default

    go into your addons\wire\lua\entities\gmod_wire_value\ folder and open init.lua and delete everything and copy and paste in this code and save and try it out.

    all this was done by Mr.Coder of Free Ventrilo Channels on our server! he's the best period and deserves all the credit for this fix please give credit were credit is due.

    We'd also appreciate if you took the time to join are wiremod based server 194.50.80.40:27026 Wiremod Innovations 2 as a thank you for are help.

    Wolfhound & Mr.Coder

    AddCSLuaFile( "cl_init.lua" )
    AddCSLuaFile( "shared.lua" )

    include('shared.lua')

    ENT.WireDebugName = "Value"
    ENT.OverlayDelay = 0

    function ENT:Initialize()
    self.Entity:PhysicsInit( SOLID_VPHYSICS )
    self.Entity:SetMoveType( MOVETYPE_VPHYSICS )
    self.Entity:SetSolid( SOLID_VPHYSICS )

    self.Outputs = Wire_CreateOutputs(self.Entity, { "Out" })
    end

    function ENT:Setup(value)

    if type(value) != "table" then
    local v = value
    value = {}
    value[1] = tostring(v)
    end

    local adjoutputs = {}
    for k,v in pairs(value) do
    adjoutputs[k] = "Value"..tostring(k)
    end

    self.value = value
    //this is where storing the values as strings comes in
    Wire_AdjustOutputs(self.Entity, adjoutputs, value)

    local txt = ""

    for k,v in pairs(value) do
    //line break after 4 values
    //if (k == 5) or (k == 9) then txt = txt.."\n" end
    txt = txt .. k .. ": " .. v
    if (k < #value) then txt = txt .. "\n" end
    Wire_TriggerOutput(self.Entity, adjoutputs[k], tonumber(v))
    end

    self:SetOverlayText(txt)

    end


    function ENT:ReadCell( Address )
    if (Address >= 0) && (Address < table.Count(self.value)) then
    return self.value[Address+1]
    else
    return nil
    end
    end

    function ENT:WriteCell( Address, value )
    if (Address >= 0) && (Address < table.Count(self.value)) then
    return true
    else
    return false
    end
    end

  10. #10
    Wire Noob Wolfhound's Avatar
    Join Date
    Aug 2008
    Posts
    17

    Default

    sorry forgot to say this is server side only I dont think it works cleintside.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Changing Directorise Using DOS
    By Masogir in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 02-17-2009, 02:42 PM
  2. Changing wire without changing wire?
    By CDRW in forum Wiremod Addons & Coding
    Replies: 4
    Last Post: 10-04-2008, 11:05 AM
  3. Fun with changing weights
    By mjmr89 in forum Wiremod General Chat
    Replies: 5
    Last Post: 04-11-2008, 04:18 AM
  4. Changing Models!
    By Vicious3745 in forum Installation and Malfunctions Support
    Replies: 7
    Last Post: 12-15-2007, 07:12 AM
  5. Changing values
    By snakeface in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 05-27-2007, 01:30 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