blackteapie Posted January 9, 2016 Share Posted January 9, 2016 I just update to build 33.11.And I made a small mod for myself, few months ago. And I activate my mod for some testing. But the menu bar on the main screen disappeared. And I can not log onto the game with my mod activated, after I closed the game window (because I can't find the "exit" button).I found the following codes from the console.txt file.java.lang.NullPointerExceptionat zombie.scripting.objects.ScriptModule.getItem(ScriptModule.java:1164)at zombie.inventory.RecipeManager.Loaded(RecipeManager.java:77)at zombie.scripting.ScriptManager.Load(ScriptManager.java:1748)at zombie.GameWindow.initShared(GameWindow.java:197)at zombie.GameWindow.init(GameWindow.java:1656)at zombie.GameWindow.maina(GameWindow.java:970)at zombie.gameStates.MainScreenState.main(MainScreenState.java:171) Can any one give me some hint about the cause for such situation?Please. Link to comment Share on other sites More sharing options...
EnigmaGrey Posted January 10, 2016 Share Posted January 10, 2016 Well, for one, you shouldn't repost the same topic twice. If someone can or is willing to help you, they'll reply to your first attempt. As the error says, there's a problem with your item script. Link to comment Share on other sites More sharing options...
Svarog Posted January 10, 2016 Share Posted January 10, 2016 SnipPost the script, then we can talk about what's wrong with it and see how to fix it Link to comment Share on other sites More sharing options...
blackteapie Posted January 12, 2016 Author Share Posted January 12, 2016 SnipPost the script, then we can talk about what's wrong with it and see how to fix it Thanks. Here are the scripts I have changed that day. item scriptsitem BundleofCornStalks {Type = Normal,Weight = 3.6,DisplayName = Bundle of Corn Stalks,Icon = BundleofCornStalk,} recipe scriptsrecipe Make Bundle of Corns Stalks{CornStalk = 12, Result : BundleofCornStalks,Time : 20.0,Category : Farming,} recipe Make Five{RippedSheets, Result : CornStalk=12,Sound : PZ_PutInBag,Time : 50.0,Category : Survivalist,} recipe Make Six{RippedSheets, Result : Lighter,Sound : PZ_PutInBag,Time : 50.0,Category : Survivalist,} recipe Make Seven{RippedSheets, Result : CampfireKit,Sound : PZ_PutInBag,Time : 50.0,Category : Survivalist,} lua filesrequire "Camping/camping_fuel"; -- Add Fuel for CampfirecampingFuelType.CornStalk = 5/60;campingFuelType["CornStalk"] = 5/60;campingFuelType.BundleofCornStalks = 1.0;campingFuelType["BundleofCornStalks"] = 1.0; Chinese translationDisplayName_Bundle_of_Corn_Stalks = "一捆玉米杆", Recipe_Make_Bundle_of_Corns_Stalks = "做一捆玉米杆", Link to comment Share on other sites More sharing options...
blackteapie Posted January 12, 2016 Author Share Posted January 12, 2016 Well, for one, you shouldn't repost the same topic twice. If someone can or is willing to help you, they'll reply to your first attempt.As the error says, there's a problem with your item script.sorry EnigmaGrey 1 Link to comment Share on other sites More sharing options...
Svarog Posted January 12, 2016 Share Posted January 12, 2016 Well, since it wasn't obvious I just made a mod using the script part you provided and nothing broke :SIf you want you can PM the mod to me and I'll try to see if I can do something with it. Link to comment Share on other sites More sharing options...
blackteapie Posted January 12, 2016 Author Share Posted January 12, 2016 Well, since it wasn't obvious I just made a mod using the script part you provided and nothing broke :SIf you want you can PM the mod to me and I'll try to see if I can do something with it. Well, this information narrow down the range of search. I think I can take it myself, now.Thanks. 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