Omegapl Posted May 27, 2015 Share Posted May 27, 2015 Why object:getClass():getField(name)isnt working anymore ? it worked perfectly in build 31.How to get java classes' values in build 32 ? Link to comment Share on other sites More sharing options...
EasyPickins Posted May 28, 2015 Share Posted May 28, 2015 We've starting restricting which Java classes are exposed to Lua. In this case, 'Class' isn't exposed so getField() won't work. Can I ask what you were using getField() for? We might need to expose some more things. Link to comment Share on other sites More sharing options...
Omegapl Posted May 28, 2015 Author Share Posted May 28, 2015 I was using it for getting list of items needed in evolvedrecipe (variable named "itemsList" in this class) and item which was base for whole recipe ("baseItem" in the same class) Also I need "CanStoreWater" in DrainableComboItem class Link to comment Share on other sites More sharing options...
EasyPickins Posted May 29, 2015 Share Posted May 29, 2015 I added EvolvedRecipe.getBaseItem(), EvolvedRecipe.getItemsList(), and EvolvedRecipe.isCookable().It looks like InventoryItem.canStoreWater() already returns CanStoreWater. Svarog 1 Link to comment Share on other sites More sharing options...
Omegapl Posted May 29, 2015 Author Share Posted May 29, 2015 Thank you. Is it already on IWBUMS ? Link to comment Share on other sites More sharing options...
EasyPickins Posted May 29, 2015 Share Posted May 29, 2015 No not yet. You can unzip this into ProjectZomboid/zombie/scripting/objects for now. zombie_scripting_objects_EvolvedRecipe.zip Link to comment Share on other sites More sharing options...
Omegapl Posted May 29, 2015 Author Share Posted May 29, 2015 No not yet. You can unzip this into ProjectZomboid/zombie/scripting/objects for now.I also need "Name" in zombie\scripting\objects\ItemRecipe Link to comment Share on other sites More sharing options...
EasyPickins Posted May 30, 2015 Share Posted May 30, 2015 Here you go.ItemRecipe.zip Link to comment 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