krylincy Posted March 24, 2020 Share Posted March 24, 2020 Hi, so I tried to adapt the DS mod to DST and it will not work. I alreday updated the ThePlayer stuff, but there is still something missing ... about widget replica. Creating the item is working, but when i will open/use it, it crashes: [00:01:35]: [string "scripts/widgets/containerwidget.lua"]:29: attempt to index local 'widget' (a nil value) LUA ERROR stack traceback: scripts/widgets/containerwidget.lua:29 in (method) Open (Lua) <24-149> self = callbacks = table: 7E6DEBC8 slotsperrow = 3 inst = 101727 - (valid:true) focus = false children = table: 7E6DEC40 focus_flow_args = table: 7E6DF1B8 focus_target = false isopen = false owner = 100184 - wendy (valid:true) open = false can_fade_alpha = true inv = table: 7E6E0658 parent = name = Container bgimage = Image - : focus_flow = table: 7E6DEB78 enabled = true bganim = UIAnim shown = true container = 101056 - casket (valid:true) doer = 100184 - wendy (valid:true) widget = nil The problem my be in the new compontent: https://github.com/krylincy/local_casket/blob/master/scripts/components/casket.lua but i don't know whats wrong. i read about init the widget https://github.com/krylincy/local_casket/blob/master/scripts/prefabs/casket.lua#L60 but that isnt working ... any help would be great 1 Link to comment https://forums.kleientertainment.com/forums/topic/116720-adapt-ds-mod-to-dst-and-get-widget-error/ Share on other sites More sharing options...
krylincy Posted March 26, 2020 Author Share Posted March 26, 2020 For anyone who land here: We need to add the container widget to the replica, too: if not TheWorld.ismastersim then inst.OnEntityReplicated = function(inst) inst.replica.container:WidgetSetup("casket",containerparams.casket) end return inst end 3 Link to comment https://forums.kleientertainment.com/forums/topic/116720-adapt-ds-mod-to-dst-and-get-widget-error/#findComment-1319296 Share on other sites More sharing options...
skittles sour Posted September 6, 2021 Share Posted September 6, 2021 thank you so much!!!! Link to comment https://forums.kleientertainment.com/forums/topic/116720-adapt-ds-mod-to-dst-and-get-widget-error/#findComment-1491440 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now