Code Monkey home page Code Monkey logo

wire's People

Contributors

abigailbuccaneer avatar adosikas avatar alexalx avatar anticept avatar aws0mee avatar bigdogmat avatar captainprice avatar colonelthirtytwo avatar denneisk avatar devdtc avatar divran avatar dvdvideo1234 avatar fasteroid avatar immibis avatar jack37 avatar jimladseraph avatar just-boog avatar marchcain avatar natrim avatar nebual avatar ninja101 avatar phoenixblack avatar python1320 avatar shadow7483147 avatar shadowscion avatar syranide avatar thegrb93 avatar tomylobo avatar vurv78 avatar wrefgtzweve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wire's Issues

E2 interval() does not work

  1. This happens to the console when switching to E2 tool:
Timer Failed! [Simple][@lua/vgui/dtree_node.lua (line 604)]
[ERROR] lua/includes/extensions/table.lua:536: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. SortedPairs - lua/includes/extensions/table.lua:536
    3. FilePopulateCallback - lua/vgui/dtree_node.lua:539
     4. FilePopulate - lua/vgui/dtree_node.lua:588
      5. unknown - lua/vgui/dtree_node.lua:607
  1. Code files don't get selected for spawning when they are selected in the browser. They have to be double-clicked which is a bit annoying having to open the editor every time I want to spawn another E2.
  2. interval() function doesn't seem to work. The below code only prints "test" to chat twice after spawning the chip.
@name t
print("test")
interval(125)
  1. Folders with characters like ! or ' can't be browsed (but I guess this is a minor issue - I can just rename the folders).

I'm on Garry's Mod version 147 with Wire revision 1853.

GPU needs new font system

GPU needs to cache font names since surface.CreateFont doesn't do this anymore, thus causing tons of fonts to be allocated and memory usage to skyrocket.

Tools Missing

Apparently all the crap in wire\lua\wire\stools doesn't load.

GetCursorAimVector nil value

Most tools are returning GetCursorAimVector as a nil value example:

[addons/wiremod-wire-40a8331/lua/weapons/gmod_tool/stools/wire_spu.lua:146] attempt to call method 'GetCursorAimVector' (a nil value)
1. addons/wiremod-wire-40a8331/lua/weapons/gmod_tool/stools/wire_spu.lua:146 (UpdateGhostWireSPU)
2. addons/wiremod-wire-40a8331/lua/weapons/gmod_tool/stools/wire_spu.lua:182 (Think)
3. gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:183 (unknown)

Damage Detector sometimes spits out an error

Hook 'DamageDetector_LinkRemoved' Failed: [addons/wire/lua/weapons/gmod_tool/stools/wire_damage_detector.lua:162] attempt to index global 'self' (a nil value)

    1. lua/includes/modules/hook.lua:83 (unknown)

Seemingly randomly. Probably due to timers, though I thought I converted them

E2 AlphaBar error

[addons/wiremod-wire-40a8331/lua/wire/client/wire_expression2_editor.lua:1263] attempt to index field 'AlphaBar' (a nil value)
1. addons/wiremod-wire-40a8331/lua/wire/client/wire_expression2_editor.lua:1263 (unknown)

( Also no gui can not be closed)

wire spu fix

here is a patch for the spu. this error appeared apon spawning it.

Index: lua/entities/gmod_wire_spu/cl_init.lua
===================================================================
--- lua/entities/gmod_wire_spu/cl_init.lua  (revision 2688)
+++ lua/entities/gmod_wire_spu/cl_init.lua  (working copy)
@@ -57,7 +57,7 @@
   for i=0,WireSPU_MaxChannels-1 do
     SPU.SoundSources[i] = ents.GetByIndex(um:ReadLong())
     SPU.SoundSources[i]:SetNoDraw(true)
-    SPU.SoundSources[i]:SetModelScale(Vector(0),0)
+    SPU.SoundSources[i]:SetModelScale(0,0)
   end

   -- Reset VM

Wire error (Entity [496][gmod_wire_cameracontroller]): addons/wire/lua/entities/gmod_wire_cam/init.lua:42: bad argument #1 to 'SetPos' (Vector expected, got table) Wire error (Entity [496][gmod_wire_cameracontroller]): addons/wire/lua/entities/gmod_wire_c

My error log got spammed by around a thousand lines of this:

Wire error (Entity [496][gmod_wire_cameracontroller]): addons/wire/lua/entities/gmod_wire_cam/init.lua:42: bad argument #1 to 'SetPos' (Vector expected, got table)

I do not have context, I just host a popular GMod server.

Clientside Error in SetModelScale

[ERROR] addons/wire/lua/entities/gmod_wire_spu/cl_init.lua:60: bad argument #1 to 'SetModelScale' (number expected, got userdata)

  1. SetModelScale - [C]:-1
    1. Function - addons/wire/lua/entities/gmod_wire_spu/cl_init.lua:60
    2. unknown - lua/includes/modules/usermessage.lua:87

GMOD13 Wire thruster panel not rendering

When I select the wire thruster from the tools list, I get this:

[@lua/vgui/dcategorycollapse.lua:125] bad argument #1 to 'SetText' (string expected, got Panel)
    1. [C]:-1 (SetText)
    2. lua/vgui/dcategorycollapse.lua:125 (Add)
    3. addons/wiremod-wire-9034312/lua/wire/stools/physics.lua:889 (func)
    4. gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua:107 (FillViaFunction)
    5. gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua:92 (FillViaTable)
    6. gamemodes/sandbox/gamemode/spawnmenu/toolpanel.lua:73 (DoClick)
    7. lua/vgui/dlabel.lua:196 (unknown)
    8. (tail call):-1 (unknown)

And only the model selection part gets rendered. The rest of the panel (force, values, etc) is not there.

attempt to call method 'GetViewModel' (a nil value)

<Cprossu> [ERROR] ...iremod-wire-10b70ab/lua/weapons/laserpointer/cl_init.lua:12: attempt
<Cprossu> to call method 'GetViewModel' (a nil value)
<Cprossu>   1. unknown - ...iremod-wire-10b70ab/lua/weapons/laserpointer/cl_init.lua:12

E2 Dedicated Server Lag Spikes

When I have multiple E2's using runOnTick(1), the server has severe lag spikes to like 10 FPS, when it should be at 66. These E2's are used for timing "hydraulic engines" to power a car I built, not sure if the rapid changing of hydraulic length makes a difference.

[Expression 2] fileLoad() indexing error

Whilst attempting to load a non-existent file, I received the following error:

[ERROR] entities/gmod_wire_expression2/core/files.lua:432: attempt to index global 'pfile' (a nil value)
  1. unknown - entities/gmod_wire_expression2/core/files.lua:432
   2. unknown - lua/includes/modules/concommand.lua:69

Looks like someone forgot to define a local variable! ๐Ÿ˜†
I'd fix this myself and submit a patch, but I'm too lazy to figure out how git works at the moment.

holoScaleUnits accuracy

I'm not actually sure if this is a bug, but I don't know were else i should post it.
I was working with wireholograms yesterday. I was very happy about the new accuracy of holoScaleUnits (scale under 0.4 was possible) when i did the update to the newest version. Now all is back to normal. I would really enjoy if you could try to bring back this accuracy (maybe make it possible to disable it with concmd). I did some testing on my own server and it don't seem to make a huge difference witch version I use (i spawned and scaled about 200 holos on the server and watched the traffic), but it seems like the new .net stuff is better for use with holoModelAny. If you are interested in, i can upload the version I'm talking about.

Thanks for reading,
Evil128

ps.: Sorry if I'm doing stuff wrong. Just tell me what i did wrong and I'll fix it ^^

E2 Bone thing

 entities/gmod_wire_expression2/core/bone.lua:208: attempt to index local 'this' (a nil value)

Theres not really much more information on it, hopefully it'll get fixed.

Erroring opening files

Getting lots of bugs with E2 that nobody seems to be listing so I'll get the ball rolling.

Basically the majority of my E2s (Mainly the ones that are over like 50 or so lines) are giving me this:
Erroring opening file: Expression2/FileName.txt

Edit: So I've been doing some testing and Its looking more like the file.Read function fails to load files with certain characters in them now. I'm trying to figure out what characters are in most of my E2s that aren't in my non broken ones / my test files I've been making.

Double Edit:
So I've found the source of the problem. Certain special characters that used to work IN FILE NAMES, not in the file itself like I previously thought, no longer allow reading ( haven't tested writing ).

The list of characters I have found that block file loads so far are:
Brackets: '(' and ')'
Exclamation marks: '!'

Note

garrysmod13 branch is now the master and previous master is now garrysmod12.

Don't get confused :)

E2 Extension Transfer

This is more an Enhancement then an issue, but i was wondering if someone else here cares about this and could help. I found out that UWSVN is rather inactive and i was wandering if at least the "good" E2 extensions like PropCore or HoloAnim are worth fixing them for the new E2 versions and then transfer them to the Wiremod SVN. Bouth, holoAnim and PropCore are disabled by default and can be enabled with console command. This means they are no threat to people who are afraid of guys who keep abusing this functions. The only issue i can see this far is that they are outdated and still working with "RegisterExtension".

[ERROR] Skipping E2 extension 'holoanim'.
  1. error - [C]:-1
   2. RegisterExtension - ...iremod/lua/entities/gmod_wire_expression2/core/e2lib.lua:461
    3. unknown - entities/gmod_wire_expression2/core/custom/holoanim.lua:23
     4. RunStringEx - [C]:-1
      5. e2_include_pass2 - ...od/lua/entities/gmod_wire_expression2/core/extloader.lua:79
       6. e2_include_finalize - ...od/lua/entities/gmod_wire_expression2/core/extloader.lua:84
        7. unknown - ...od/lua/entities/gmod_wire_expression2/core/extloader.lua:148
         8. include - [C]:-1
          9. unknown - ...wiremod/lua/entities/gmod_wire_expression2/core/init.lua:184
           10. include - [C]:-1
            11. unknown - ...n) wiremod/lua/entities/gmod_wire_expression2/shared.lua:19
             12. include - [C]:-1
              13. unknown - ...svn) wiremod/lua/entities/gmod_wire_expression2/init.lua:3
[ERROR] Skipping E2 extension 'propcore'.
  1. error - [C]:-1
   2. RegisterExtension - ...iremod/lua/entities/gmod_wire_expression2/core/e2lib.lua:461
    3. unknown - entities/gmod_wire_expression2/core/custom/prop.lua:6
     4. RunStringEx - [C]:-1
      5. e2_include_pass2 - ...od/lua/entities/gmod_wire_expression2/core/extloader.lua:79
       6. e2_include_finalize - ...od/lua/entities/gmod_wire_expression2/core/extloader.lua:84
        7. unknown - ...od/lua/entities/gmod_wire_expression2/core/extloader.lua:148
         8. include - [C]:-1
          9. unknown - ...wiremod/lua/entities/gmod_wire_expression2/core/init.lua:184
           10. include - [C]:-1
            11. unknown - ...n) wiremod/lua/entities/gmod_wire_expression2/shared.lua:19
             12. include - [C]:-1
              13. unknown - ...svn) wiremod/lua/entities/gmod_wire_expression2/init.lua:3

It would be nice if someone could hook up to this little "project", since PropCore and HoloAnim became something kinda essential in E2. I guess it would be the best if someone could contact Divran and ask for permission. Files can be found here:

https://github.com/wiremod/Wire-Extras/tree/master/lua/entities/gmod_wire_expression2/core/custom

Thanks for your interest,
Evil128

Note

garrysmod13 branch is now the master and previous master is now garrysmod12.

Don't get confused :)

Address Bus Tool UI is horrible

Address Bus Tool UI is currently just two sliders per Address Space.

It should be possible to set the numbers manually and they should be groups.

Dictated but not read.

Button models missing

In the model list for the Wire Button menu:

  • Several normal-sized (all non-red) buttons are missing
  • No small buttons are listed

interval broke

no errors, using wire da04f1c

E2 code:

@name test
@persist I 
interval(1000)
I++
print(I)

it counts 1 2 and stops
output after few seconds was

1
2

Laserpointer error

First person still gives this error:

[ERROR] lua/weapons/laserpointer/cl_init.lua:35: attempt to index a nil value
  1. unknown - lua/weapons/laserpointer/cl_init.lua:35

(Thirdperson now works ok and the laser is shown)

Advanced Pod Controller Detection not working correctly

When you link the Advanced Pod Controller to any seat it won't detect when the seat is in use. It does detect the usage of the Remote Control

Errors from console:

[ERROR] addons/wire/lua/wire/stools/sv_io.lua:41: attempt to call global 'MakeWireAdvPod' (a nil value)
1. LeftClick_Make - addons/wire/lua/wire/stools/sv_io.lua:41
2. LeftClick - addons/wire/lua/wire/stools/tool_loader.lua:46
3. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:240 

Expression 2 Tool View

Hello,
I got a standard Gmod server installed with Wiremod.
Everytime I press on the Expression 2 Tool I get these lua errors followed by a kick for too many lua errors:

[ERROR] lua/includes/extensions/table.lua:536: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. SortedPairs - lua/includes/extensions/table.lua:536
    3. FilePopulateCallback - lua/vgui/dtree_node.lua:539
     4. FilePopulate - lua/vgui/dtree_node.lua:588
      5. Func - lua/vgui/dtree_node.lua:607
       6. v - lua/includes/modules/timer.lua:190
        7. unknown - lua/includes/modules/hook.lua:86


[ERROR] lua/includes/extensions/table.lua:536: bad argument #1 to 'pairs' (table expected, got nil)
  1. pairs - [C]:-1
   2. SortedPairs - lua/includes/extensions/table.lua:536
    3. FilePopulateCallback - lua/vgui/dtree_node.lua:539
     4. FilePopulate - lua/vgui/dtree_node.lua:588
      5. Func - lua/vgui/dtree_node.lua:607
       6. v - lua/includes/modules/timer.lua:190
        7. unknown - lua/includes/modules/hook.lua:86

Wiremod is untouched and the latest version.

E2 soundPitch broke

because of lua updates so it must now take a second parameter, deltaTime I think it is, you must pass on a 0 to the lua function from E2

Move to a proper release cycle with versioning

Currently (or, rather, when Garry's Mod 13 drops in less than 24 hours) we have one branch. It's the development branch, nothing gets that much testing, and yet it's the one we expect the general populace to use.

Whether we're ever going to use Workshop or not, I think there are clear benefits to the users to having a proper release cycle. I propose that we move development to a 'develop' branch, and use the master branch for stable code, versioned with year.month.day of release.

People are posting github SVN URLs

Is there any reason why people should be using github urls instead of the old sourceforge svn?
The Jenkins task that mirrors commits is still there, right?
That thing also adds a version.txt, which, you know, helps us identify versions.

Fix to the WMI entity

Please, replace the info_wiremapinterface entity (lua/entities/info_wiremapinterface) by the content of this zip: http://puu.sh/1fqtD

It will fix the timer usages to use GMod13's roles.

Usermessages too large?

So basically I've been getting issues with holograms not doing what they're being told. I read garry changed the whole net system and it could be an error on his part unless hes just limited the max data through a usermessage. Either way I get this issue with some holo functions ( probably when calling multiple holo functions consecutively ).

Error sending usermessage - too large (wire_holograms_)
Warning: Unhandled usermessage ''

Small E2 script used to replicate error:
http://pastebin.com/EM3wH5HH
( Messy but it was just a small test scrip to test an algorithm )

Edit: FYI the result is that the first holo doesn't scale. Everything else seems to work.

Wire Stools do not respect Prop Protection

All wire stools that can update their SENTs (thrusters, constant values, rangers, etc) currently only allow updating if ENT.pl == tool:GetOwner(). As a result of this:

  • If you reconnect to a server, your old wire entities cannot be updated as disconnecting causes ENT.pl to become NULL (so shooting old sents will just dumbly spawn a new one on top)
  • Your prop protection friends/admins cannot update your sents

If we assume all reasonable servers have some degree of prop protection, then it should be left up to PP to decide if someone CanTool an entity, not up to the stool itself. If you dislike this assumption, consider that on a server lacking prop protection, anyone can just removergun your wire SENTs anyway, and manually remake them with the updated settings (or just remove your whole contraption; all serious servers will have prop protection).

It would be a simple commit (which I have prepared) to just remove these builtin ownership checks for all stools (Except expression2, which has its own system in place that respects prop protection).

tl;dr: Ownership checks belong in prop protection, not in stools themselves.

Wire borked :/

Wire cant seem to load any of its modules or extensions since release.

Welcome menu error

Hook 'DefaultTabs' Failed: [addons/wiremod-wire-40a8331/lua/wire/welcome_menu.lua:760] attempt to index field 'AlphaBar' (a nil value)

1. lua/includes/modules/hook.lua:83 (Call)
2. addons/wiremod-wire-40a8331/lua/wire/welcome_menu.lua:312 (CreateMenu)
3. addons/wiremod-wire-40a8331/lua/wire/welcome_menu.lua:170 (OpenMenu)
4. addons/wiremod-wire-40a8331/lua/wire/welcome_menu.lua:203 (?)
5. lua/includes/modules/concommand.lua:69 (unknown)
6. (tail call):-1 (unknown)

holoScale() and holoScaleUnits() not working correctly

So I've tried a few old projects that involve lots of holograms, IE:models, and they don't really seem to work out very well with holograms.

For example, creating 10 holograms, scaling, and positioning them, only a couple at a time will actually scale to vec(0.1,0.1,0.1)

if(first()){

    for(I=1,10){
        holoCreate(I)
        holoScale(I,vec(0.1,0.1,0.1))
        holoPos(I,entity():toWorld(vec(randint(-40,40),randint(-40,40),0)))
    }
}

And another example is the scaling and modeling on all other holograms in a chip breaking when holoScaleUnits() is used on just one hologram.

It's a bow I'm making, and when you uncomment the holoscaleunits() line, all of the other holograms turn into cubes.

@name Bow and Arrow
@inputs 
@outputs 
@persist [Hand TopPoint BottomPoint Grip Top Bottom ArrowHold StringTop StringBottom] H:entity
@model models/hunter/plates/plate1x1.mdl
runOnTick(1)
Wep=owner():weapon()
Wep:setHoldType("smg")
H=holoEntity(Hand)


if(first()){
    Hand=0
    TopPoint=1
    BottomPoint=2
    Grip=3
    Top=4
    Bottom=5
    ArrowHold=6
    StringTop=7
    StringBottom=8


    holoCreate(Hand)
    holoCreate(TopPoint)
    holoCreate(BottomPoint)

    holoCreate(Grip)
    holoCreate(Top)
    holoCreate(Bottom)
    holoCreate(ArrowHold)
    holoCreate(StringTop)
    holoCreate(StringBottom)


    holoModel(Grip,"hq_tube_thin")
    holoModel(Top,"hq_torus_thin")
    holoModel(Bottom,"hq_torus_thin")


    holoScale(Hand,vec(0.1,0.1,0.1))
    holoScale(Grip,vec(0.2,0.2,0.8))
    holoScale(Top,vec(4,6,4))
    holoScale(Bottom,vec(4,6,4))
    holoScale(ArrowHold,vec(0.1,0.1,0.1))
    holoScale(TopPoint,vec(0.1,0.1,0.1))
    holoScale(BottomPoint,vec(0.1,0.1,0.1))


    holoPos(Hand,entity():toWorld(vec(0,0,100)))
    holoPos(Grip,holoEntity(Hand):pos())
    holoPos(Top,holoEntity(Hand):toWorld(vec(0,22.8,4.8)))
    holoPos(Bottom,holoEntity(Hand):toWorld(vec(0,22.8,-4.8)))
    holoPos(ArrowHold,holoEntity(Hand):toWorld(vec(0,14,0)))
    holoPos(TopPoint,holoEntity(Hand):toWorld(vec(0,14,37)))
    holoPos(BottomPoint,holoEntity(Hand):toWorld(vec(0,14,-37)))


    holoAng(Top,holoEntity(Hand):toWorld(ang(90,0,0)))
    holoAng(Bottom,holoEntity(Hand):toWorld(ang(90,0,0)))


    holoClipEnabled(Top,1,1)
    holoClipEnabled(Top,2,1)
    holoClipEnabled(Bottom,1,1)
    holoClipEnabled(Bottom,2,1)


    holoClip(Top,1,vec(0,0,0),vec(-1,0,0),0)
    holoClip(Top,2,vec(0,-8,0),vec(0,-1,0),0)
    holoClip(Bottom,1,vec(0,0,0),vec(1,0,0),0)
    holoClip(Bottom,2,vec(0,-8,0),vec(0,-1,0),0)

}


holoPos(StringTop, ( (holoEntity(TopPoint):pos()) + (holoEntity(ArrowHold):pos()) )/2)
#holoScaleUnits(StringTop,vec(1, holoEntity(TopPoint):pos():distance( holoEntity(ArrowHold):pos() ) ,1))
holoAng(StringTop,( (holoEntity(TopPoint):pos()) - (holoEntity(ArrowHold):pos())):toAngle()+ang(90,0,90))

I haven't been able to test it in many other cases, and am getting no errors. Playing on an MP server with the most up to date wiremod, and the most up to date on my client.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.