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:


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(
    at java.lang.Integer.parseInt(
    at java.lang.Integer.parseInt(
    at zombie.characters.IsoGameCharacter.DoFootstepSound(
    at zombie.characters.IsoPlayer.update(
    at zombie.iso.IsoCell.ProcessObjects(
    at zombie.iso.IsoCell.update(
    at zombie.iso.IsoWorld.update(
    at zombie.gameStates.IngameState.update(
    at zombie.gameStates.GameStateMachine.update(
    at zombie.GameWindow.logic(
    at zombie.GameWindow.maina(
    at zombie.gameStates.MainScreenState.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    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