SenL Posted February 6, 2015 Share Posted February 6, 2015 I want to learn how to add a green meter for experience (mychar has level system + exp) but no idea how.I'm looking at rezecib's http://steamcommunity.com/sharedfiles/filedetails/?id=376333686 but I'm already lost. Any guide/tutorial?Thanks. Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/ Share on other sites More sharing options...
Kzisor Posted February 6, 2015 Share Posted February 6, 2015 @SenL, modding a widget into the game isn't too difficult, however, you will also need a component which acts as the go between for the server/client communication for the widget. Check out how the worldresettime.lua and the worldreset widget look like and go from there. There is also a Don't Starve mod on Steam which does exactly what you are wanting to do which might save a lot of time. Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/#findComment-610370 Share on other sites More sharing options...
SenL Posted February 6, 2015 Author Share Posted February 6, 2015 (edited) Ok I'll take a look. Also, is this mod http://steamcommunity.com/sharedfiles/filedetails/?id=250211954 ? Will I encounter issues if I try to do this in DST but learning from a DS mod? Edited February 6, 2015 by SenL Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/#findComment-610384 Share on other sites More sharing options...
Kzisor Posted February 6, 2015 Share Posted February 6, 2015 @SenL,yes you will encounter issues, but you can overcome those issues by referencing DST widgets when you get to that point. The major issue is with clients receiving the proper data from the server. Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/#findComment-610391 Share on other sites More sharing options...
SenL Posted February 18, 2015 Author Share Posted February 18, 2015 Wow I'm still confused.I have char mod Groot (http://steamcommunity.com/sharedfiles/filedetails/?id=391743403) and he has exp and level.I want to make a widget to display exp bar, % to level and level.Shouldn't it be client-only? Any more hints/helps? thanks! Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/#findComment-614212 Share on other sites More sharing options...
rezecib Posted February 18, 2015 Share Posted February 18, 2015 (edited) Shouldn't it be client-only? No, because the experience will exist on the server. Modifying the interface itself can be client-only, but the information you want may be only on the server. Like naughtiness, for example. Edited February 18, 2015 by rezecib Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/#findComment-614215 Share on other sites More sharing options...
Kzisor Posted February 18, 2015 Share Posted February 18, 2015 @SenL, use a net_var to send the information you want to use to update the experience bar with to the clients. Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/#findComment-614216 Share on other sites More sharing options...
SenL Posted February 20, 2015 Author Share Posted February 20, 2015 Thanks for replies but I'm still drawing a blank.I'm looking at woodie DST but it's so complicated.I'm also trying to make sense of this http://forums.kleientertainment.com/topic/48264-net-variable-types-and-sending-data-from-serverhost-to-clients/ Any easier mod as example? Link to comment https://forums.kleientertainment.com/forums/topic/50605-any-widget-tutorial/#findComment-614832 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