wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
553 stars 332 forks source link

Client lua errors after objectcontrol update #3044

Closed Astralcircle closed 5 months ago

Astralcircle commented 5 months ago

Describe the bug Lua error: [wire-master] addons/wire-master/lua/entities/gmod_wire_egp/lib/egplib/objectcontrol.lua:113: attempt to index local 'name' (a nil value)

  1. NewObject - addons/wire-master/lua/entities/gmod_wire_egp/lib/egplib/objectcontrol.lua:113
    1. unknown - addons/wire-master/lua/entities/gmod_wire_egp/lib/objects/text.lua:2
      1. include - [C]:-1
        1. ObjectInherit - addons/wire-master/lua/entities/gmod_wire_egp/lib/egplib/objectcontrol.lua:143
          1. unknown - addons/wire-master/lua/entities/gmod_wire_egp/lib/objects/textlayout.lua:2
            1. include - [C]:-1
              1. unknown - addons/wire-master/lua/entities/gmod_wire_egp/lib/egplib/objectcontrol.lua:156
                1. include - [C]:-1
                  1. unknown - addons/wire-master/lua/entities/gmod_wire_egp/lib/init.lua:40
                    1. include - [C]:-1
                      1. unknown - addons/wire-master/lua/entities/gmod_wire_egp/shared.lua:15
                        1. include - [C]:-1
                          1. unknown - addons/wire-master/lua/entities/gmod_wire_egp/cl_init.lua:1

To Reproduce Steps to reproduce the behavior:

  1. Sometimes appears when entering the game

Expected behavior Fix the error?

Screenshots image

Denneisk commented 5 months ago

Have you restarted the server/changed map? I only experienced this when the new version hot-reloads. Do you have any other versions of Wiremod installed?

Astralcircle commented 5 months ago

Have you restarted the server/changed map? I only experienced this when the new version hot-reloads. Do you have any other versions of Wiremod installed?

Latest from Github. And I completely reloaded the server after installing it

Denneisk commented 5 months ago

I just realized, your file is erroring on objectcontrol.lua, but this was renamed in the latest update to objects.lua. Are you sure there's no other versions of Wiremod?

Astralcircle commented 5 months ago

Well, of the other “wire” addons I only have Wire Extras and E2Power. But I don't think it has anything to do with it

thegrb93 commented 5 months ago

objectcontrol.lua shouldn't exist, you probably copied the files or something without deleting the old install

Astralcircle commented 5 months ago

objectcontrol.lua shouldn't exist, you probably copied the files or something without deleting the old install

Perhaps I should take a more responsible approach to updating addons. Thank you.

thegrb93 commented 5 months ago

rsync is a good option if you're using ftp or something.