Ask Your Question
0

Lua support in 4.2.0 for Windows

asked 2023-12-18 15:11:24 +0000

Mike69 gravatar image

After upgrading to 4.2.0 from 4.0.9 in Windows, it looks like I lost lua support. I cannot find init.lua anywhere in any of the wireshark directories. Where can I get init.lua for 4.2.0 and in what directory should I place it?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-12-18 15:48:31 +0000

grahamb gravatar image

See the 4.2.0 release notes, in particular, the section on init.lua changes.

edit flag offensive delete link more

Comments

I already read the RN and there is no answer in it to my question here. After upgrading to 4.2.0, init.lua dissapeared. Again - I cannot find this file anywhere in the wireshark directories after the upgrade to 4.2.0, including the plugin directories. Are you trying to say that 4.2.0 does not use init.lua anymore? If yes, what kind of file does it use in order to specify which lua dissectors to be loaded when wireshark is started?

Mike69 gravatar imageMike69 ( 2023-12-18 16:02:17 +0000 )edit

The explanation for the change isn't that helpful, apparently it's now up to the user to create one using the "Personal Lua Plugins" path.

See the Merge Request Lua: Load init.lua from plugins directory that committed the change. Unfortunately the blurb doesn't explain why the file was removed, only that if it exists, it will be loaded from other places.

grahamb gravatar imagegrahamb ( 2023-12-18 16:25:07 +0000 )edit

I don't think the developer that made that change is on Ask, so you'll have to comment directly on the MR.

grahamb gravatar imagegrahamb ( 2023-12-18 16:26:33 +0000 )edit

Thanks. Creating own init.lua and placing it under the default profile directory worked.

Mike69 gravatar imageMike69 ( 2023-12-18 20:18:47 +0000 )edit

may i know how you created ur own init.lua file? I have also copied the init.lua file of previous version to wire shark but still it is not working for me.

vikas gravatar imagevikas ( 2024-02-15 17:38:50 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2023-12-18 15:11:24 +0000

Seen: 510 times

Last updated: Dec 18 '23