Jump to content
blindcoder

Obey gravity, it's the law!

Recommended Posts

3 hours ago, blindcoder said:

 

 

2. Only the parts no longer supported, see the first screenshot.

 

So, if I detroy all 4 sides of wall on 2nd floor of a four storey building, would all floors above 2nd floor collapse or just 3rd floor collapse?

Share this post


Link to post
Share on other sites
20 hours ago, blackteapie said:

So, if I detroy all 4 sides of wall on 2nd floor of a four storey building, would all floors above 2nd floor collapse or just 3rd floor collapse?

All floors above will collapse. The check is recursive for all destroyed walls.

Share this post


Link to post
Share on other sites
On ‎2017‎年‎1‎月‎14‎日 at 6:52 PM, blindcoder said:

All floors above will collapse. The check is recursive for all destroyed walls.

Something just cross my mind. I think there should be some change to the roll-up doors. In the current version of PZ, players will destroyed both of the doorframe and the door in a tile, which means all the supports for that tile is destroyed. Therefore, we will evitably got injury if we try to break a roll-up door inside a building.

Share this post


Link to post
Share on other sites
3 minutes ago, blackteapie said:

, we will evitably got injury if we try to break a roll-up door inside a building

 

Whtat's a roll-up door? Can you give a link on the map?

Share this post


Link to post
Share on other sites
4 hours ago, blackteapie said:

Something just cross my mind. I think there should be some change to the roll-up doors. In the current version of PZ, players will destroyed both of the doorframe and the door in a tile, which means all the supports for that tile is destroyed. Therefore, we will evitably got injury if we try to break a roll-up door inside a building.

I believe this is the case because currently the roll-up doors aren't functional. As in the wooden doors open and shut, so there is a separate image for both the door and the frame, so you can destroy the door and not the frame.

Share this post


Link to post
Share on other sites
18 hours ago, blindcoder said:

 

Whtat's a roll-up door? Can you give a link on the map?

A roll-up door is something like this. In the game these doors are usually located in large warehouse.

Players can't only destroy the  door, but also the door frame, which means we will have to destroy all support at that tile.

Edited by blackteapie

Share this post


Link to post
Share on other sites
8 hours ago, blackteapie said:

A roll-up door is something like this. In the game these doors are usually located in large warehouse.

Players can't only destroy the  door, but also the door frame, which means we will have to destroy all support at that tile.

 

that is technically just a wall. A wall that is colored to look like a door.

Share this post


Link to post
Share on other sites

Ok, like i said on steam, ill be buzy soon until tonight, when ill be able to do more testing.

 

Error while loading up on server

 

1484593674592 function: C:\pzserver\steamapps\workshop\content\108600\836161359\mods\bcGravity\media\lua\server\bcGravity.lua -- file: bcGravity.lua line # 9
Jan 16, 2017 11:07:54 AM zombie.Lua.LuaManager RunLua
SEVERE: null
Jan 16, 2017 11:07:54 AM zombie.Lua.LuaManager RunLua
SEVERE: null
java.lang.RuntimeException:
        at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:91)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1285)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1642)
        at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:63)
        at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:77)
        at zombie.Lua.LuaManager.RunLua(LuaManager.java:4955)
        at zombie.Lua.LuaManager.RunLua(LuaManager.java:4919)
        at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:919)
        at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:853)
        at zombie.network.GameServer.doMinimumInit(GameServer.java:2110)
        at zombie.network.GameServer.main(GameServer.java:598)

Jan 16, 2017 11:07:54 AM zombie.Lua.LuaManager RunLua
SEVERE: null

Didnt notice that server start up error untill today.

 

Here is the error i got when it should have kicked in and the roof falling down.

 

1484507683861 function: destroyObject -- file: bcGravity.lua line # 102
1484507683861 function: itsTheLaw -- file: bcGravity.lua line # 207
1484507683861 function: obeyGravity -- file: bcGravity.lua line # 276
1484507683861 function: OnTileRemoved -- file: bcGravity.lua line # 331
1484507683862 Callframe at: sledgeDestroy
1484507683862 function: perform -- file: ISDestroyStuffAction.lua line # 118
java.lang.RuntimeException: attempted index: character of non-table: null
        at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1549)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:473)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1672)
        at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:53)
        at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:81)
        at zombie.Lua.Event.trigger(Event.java:37)
        at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:83)
        at zombie.iso.IsoGridSquare.RemoveTileObject(IsoGridSquare.java:4540)
        at zombie.network.GameClient.destroy(GameClient.java:4767)
        at zombie.Lua.LuaManager$GlobalObject.sledgeDestroy(LuaManager.java:2134)
        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 se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:61)
        at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:199)
        at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:189)
        at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:983)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1642)
        at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:72)
        at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:77)
        at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:9723)
        at zombie.characters.IsoPlayer.update(IsoPlayer.java:2726)
        at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:1366)
        at zombie.iso.IsoCell.update(IsoCell.java:4682)
        at zombie.iso.IsoWorld.update(IsoWorld.java:2862)
        at zombie.gameStates.IngameState.update(IngameState.java:1272)
        at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
        at zombie.GameWindow.logic(GameWindow.java:634)
        at zombie.GameWindow.run(GameWindow.java:1246)
        at zombie.GameWindow.maina(GameWindow.java:1022)
        at zombie.gameStates.MainScreenState.main(MainScreenState.java:180)

It will be about 8 hours or so until i can run more tests.  Mostly to see if its conflicting with something, trying a new world and not on a pre existing one, things like that.

 

Something i did notice was that when i got the error on a default building, nothing happened to the roof.  I shut down server, did some voodoo, started it back up and the section of the roof was magicly destoryed like it should have been.  I tried doing it again. Got the error, reloaded game and server, and the next section was still up.

 

BTW, i did find the CRC problem i was having. Turns out i had some 3d model loaders still in my game install directory, so after reinstalling and clearing that out, i was golden.

 

 

EDIT:

Ok, single player works fine. there are 0 errors, walls destroy just fine. Working as intended.

Its only muliplayer that i get the errors. On server startup, then on client when i try to destroy things.   Test it with only gravity, bcutils, and your mod preset save thingy.

Which also lead me to a rare bug ive having the last 2 days with the menu, which i haven tracked down yet as to if its a mod problem, or error between keyboard and chair yet. Im thinking it might be due to the mod presets one, but i wasnt able to duplicate it when i tried to.

 

Edited by thrandisher

Share this post


Link to post
Share on other sites
3 hours ago, blindcoder said:

@thrandisher

I just uploaded a new version to the workshop that should fix this. Can you please try again?

Ok, heres the error. Looks like 1 is same as before, plus a new one.

 

Spoiler

1485099132143 STACK TRACE
1485099132143 -----------------------------------------
1485099132144 function: C:\pzserver\steamapps\workshop\content\108600\836161359\mods\bcGravity\media\lua\server\bcGravity.lua -- file: bcGravity.lua line # 9
java.lang.RuntimeException: attempted index: perform of non-table: null
        at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1549)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:473)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1642)
        at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:63)
        at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:77)
        at zombie.Lua.LuaManager.RunLua(LuaManager.java:4955)
        at zombie.Lua.LuaManager.RunLua(LuaManager.java:4919)
        at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:919)
        at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:853)
        at zombie.network.GameServer.doMinimumInit(GameServer.java:2110)
        at zombie.network.GameServer.main(GameServer.java:598)
1485099132154
1485099132154 -----------------------------------------
1485099132154 STACK TRACE
1485099132155 -----------------------------------------
1485099132155 function: C:\pzserver\steamapps\workshop\content\108600\836161359\mods\bcGravity\media\lua\server\bcGravity.lua -- file: bcGravity.lua line # 9
Jan 22, 2017 7:32:12 AM zombie.Lua.LuaManager RunLua
SEVERE: null
Jan 22, 2017 7:32:12 AM zombie.Lua.LuaManager RunLua
SEVERE: null
java.lang.RuntimeException:
        at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:91)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1285)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1642)
        at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:63)
        at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:77)
        at zombie.Lua.LuaManager.RunLua(LuaManager.java:4955)
        at zombie.Lua.LuaManager.RunLua(LuaManager.java:4919)
        at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:919)
        at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:853)
        at zombie.network.GameServer.doMinimumInit(GameServer.java:2110)
        at zombie.network.GameServer.main(GameServer.java:598)
   

 

What was odd was my test server i had for just this, wouldnt update this, but my normal server updated it just peachy, lol.  I see 0 errors on client side for it when going into a server with gravity installed.

 

Anyway, ill try to play around with it today some more, include try to verify the item duplication. Looking good tho

Share this post


Link to post
Share on other sites
9 minutes ago, blindcoder said:

Okay, just uploaded v0.3.4 (check mod.info) that should fix this.

 

Clientside shouldn't see any errors as there's no clientside code :-)

Ahh, i figured that was the case, but i wanted to make sure on both ends ;)

 

Ok, update finally came through and...... No errors while loading up now!

Looks good. Ill run a few more tests but everything seems to be working perfect now.

 

 

Share this post


Link to post
Share on other sites
2 hours ago, blindcoder said:

I just uploaded v0.4.0 which should finally fix this mod for both single and multiplayer.

 

 

I've got this error when putting out a campfire.

 

 

Quote

1485295260234 -----------------------------------------
1485295260234 STACK TRACE
1485295260235 -----------------------------------------
1485295260235 function: OnTileRemoved -- file: bcGravity.lua line # 383
1485295260235 Callframe at: RemoveTileObject
1485295260235 function: removeFireObject -- file: ISCampfire.lua line # 113
1485295260235 function: syncFireFire -- file: camping.lua line # 169
1485295260235 function: changeFireLvl -- file: camping.lua line # 217
1485295260236 function: putOutCampfire -- file: camping.lua line # 104
1485295260236 function: perform -- file: ISPutOutCampfireAction.lua line # 31

 

Share this post


Link to post
Share on other sites

Error that appeared as someone ran by my test area. Rest of the situation i think i explained all on workshop page.

 

1485299612520 attempted index: getX of non-table: null
1485299612520
1485299612521 -----------------------------------------
1485299612521 STACK TRACE
1485299612522 -----------------------------------------
1485299612522 function: ReceiveFromClient -- file: bcGravity.lua line # 361
java.lang.RuntimeException: attempted index: getX of non-table: null
        at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1549)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:623)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1672)
        at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:53)
        at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:81)
        at zombie.Lua.Event.trigger(Event.java:37)
        at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:181)
        at zombie.network.GameServer.receiveClientCommand(GameServer.java:4847)
        at zombie.network.GameServer.mainLoopDealWithNetData(GameServer.java:2627)
        at zombie.network.GameServer.main(GameServer.java:740)
1485299612531
1485299612531 -----------------------------------------
1485299612531 STACK TRACE
1485299612532 -----------------------------------------
1485299612532 function: ReceiveFromClient -- file: bcGravity.lua line # 361

 

Share this post


Link to post
Share on other sites
9 hours ago, ditoseadio said:

 

 

I've got this error when putting out a campfire.

 

 

 

The part above the STACK TRACE would be interesting av it contains the error.

Share this post


Link to post
Share on other sites
10 hours ago, blindcoder said:

The part above the STACK TRACE would be interesting av it contains the error.

 

Console shows this...

1485368605280 -----------------------------------------
1485368605281 STACK TRACE
1485368605281 -----------------------------------------
1485368605281 function: OnTileRemoved -- file: bcGravity.lua line # 383
1485368605281 Callframe at: RemoveTileObject
1485368605282 function: removeFireObject -- file: ISCampfire.lua line # 113
1485368605282 function: syncFireFire -- file: camping.lua line # 169
1485368605282 function: changeFireLvl -- file: camping.lua line # 217
1485368605282 function: putOutCampfire -- file: camping.lua line # 104
1485368605282 function: perform -- file: ISPutOutCampfireAction.lua line # 31
java.lang.RuntimeException: attempted index: getProperties of non-table: null
        at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1549)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:623)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1672)
        at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:53)
        at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:81)
        at zombie.Lua.Event.trigger(Event.java:37)
        at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:83)
        at zombie.iso.IsoGridSquare.RemoveTileObject(IsoGridSquare.java:4540)
        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 se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:61)
        at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:199)
        at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:189)
        at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
        at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:983)
        at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1727)
        at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1642)
        at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:72)
        at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:77)
        at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:9723)
        at zombie.characters.IsoPlayer.update(IsoPlayer.java:2726)
        at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:1366)
        at zombie.iso.IsoCell.update(IsoCell.java:4682)
        at zombie.iso.IsoWorld.update(IsoWorld.java:2862)
        at zombie.gameStates.IngameState.update(IngameState.java:1272)
        at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
        at zombie.GameWindow.logic(GameWindow.java:634)
        at zombie.GameWindow.run(GameWindow.java:1246)
        at zombie.GameWindow.maina(GameWindow.java:1022)
        at zombie.gameStates.MainScreenState.main(MainScreenState.java:180)

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...