Jump to content

Where should I looking for the cause of this situation?


blackteapie

Recommended Posts

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.NullPointerException
at 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

 

Snip

Post 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.
 
:oops: item scripts
item BundleofCornStalks
{
Type = Normal,
Weight = 3.6,
DisplayName = Bundle of Corn Stalks,
Icon = BundleofCornStalk,
}
:oops: recipe scripts
recipe 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,
}
:oops: lua files
require "Camping/camping_fuel";
 
   -- Add Fuel for Campfire
campingFuelType.CornStalk = 5/60;
campingFuelType["CornStalk"] = 5/60;
campingFuelType.BundleofCornStalks = 1.0;
campingFuelType["BundleofCornStalks"] = 1.0;

:oops: Chinese translation

DisplayName_Bundle_of_Corn_Stalks = "一捆玉米杆",
 
Recipe_Make_Bundle_of_Corns_Stalks = "做一捆玉米杆",
Link to comment
Share on other sites

Well, since it wasn't obvious I just made a mod using the script part you provided and nothing broke :S

If you want you can PM the mod to me and I'll try to see if I can do something with it.

:oops: 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...