Crash after breaking into a hotel with alarm (my map)
1 1

7 posts in this topic

Recommended Posts

I've tested my map with own textures and room definitions and so on.

It works very well, after breaking into a hotel with an alarm system - the game crashed.

I'm not quite sure, if this is the reason, but it makes sense, because it happens nearly contemporaneous.

 

Here is the console.txt output as download: https://dl.dropboxusercontent.com/u/69737873/console.txt

 

And the error part embedded in this spoiler:

STATE: enter zombie.gameStates.IngameState
Jan 06, 2015 4:34:03 PM zombie.gameStates.IngameState update
SEVERE: null
java.lang.NumberFormatException: For input string: "tz_82"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.parseInt(Integer.java:527)
    at zombie.characters.IsoGameCharacter.DoFootstepSound(IsoGameCharacter.java:5174)
    at zombie.characters.IsoPlayer.update(IsoPlayer.java:3685)
    at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:1417)
    at zombie.iso.IsoCell.update(IsoCell.java:5244)
    at zombie.iso.IsoWorld.update(IsoWorld.java:2186)
    at zombie.gameStates.IngameState.update(IngameState.java:1135)
    at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
    at zombie.GameWindow.logic(GameWindow.java:623)
    at zombie.GameWindow.run(GameWindow.java:1151)
    at zombie.GameWindow.maina(GameWindow.java:976)
    at zombie.gameStates.MainScreenState.main(MainScreenState.java:150)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)

STATE: exit zombie.gameStates.IngameState

 

Share this post


Link to post
Share on other sites

Looks like it is caused by one of your custom tiles. If I am reading the error log correctly it happens because you have a string where you need an Int.

Share this post


Link to post
Share on other sites

It looks like this line

int index = Integer.parseInt(floorName.replaceFirst("floors_interior_tilesandwood_01_", ""));

I guess you have a tileset called tz_floors_interior_tilesandwood_01?

Share this post


Link to post
Share on other sites

It's a bug in the game, it removes the "floors_interior_tilesandwood_01_" from the name of the tile and that leaves only "tz_82".  I've fixed the bug but there's nothing you can do except not walk on those tiles for now.

Share this post


Link to post
Share on other sites

Hello, did this ever get fixed? I am playing with the version from the download link on the thread below, and get this error in PZ 36.4. Odd, since it seemed to be not working, then working last night, but definitely not working today :-)

 

EDIT: Definitely not working, was in Ghost mode the times it did work.

Edited by ddraigcymraeg

Share this post


Link to post
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
1 1