Jump to content
The Indie Stone Forums
nolanri

Dear Devs - Help Remove attack sync

Recommended Posts

Could you need to make the same sort of change elsewhere in the code that references the original value? Like its looking for something that isn't there and so its causing that error.

 

Share this post


Link to post
Share on other sites

made a kind of hack job fix for the LOS problem. just manually using set alpha to all the object in the cell that return true on CanSee() in main players update loop.  So you can play the survivors mod without an "Major" problems now.  for some reason it seems that survivors still sync with your attack command. not sure why yet.  I guess it must be hard coded in without even doing a getPLayerNum() == 0 condition check.  but its not so bad and could even be usful i suppose.

Share this post


Link to post
Share on other sites

weapon:setCondition(weapon:getConditionMax());

 

That should do the job. Can also just use an integer. Also need to define weapon with something like getPrimaryHandItem()

Edited by tommysticks

Share this post


Link to post
Share on other sites
On 10/26/2016 at 3:29 PM, nolanri said:

made a kind of hack job fix for the LOS problem. just manually using set alpha to all the object in the cell that return true on CanSee() in main players update loop.  So you can play the survivors mod without an "Major" problems now.  for some reason it seems that survivors still sync with your attack command. not sure why yet.  I guess it must be hard coded in without even doing a getPLayerNum() == 0 condition check.  but its not so bad and could even be usful i suppose.

Did you do this java side? Or are you able to do this in lua?

Share this post


Link to post
Share on other sites
5 hours ago, tommysticks said:

weapon:setCondition(weapon:getConditionMax());

 

That should do the job. Can also just use an integer. Also need to define weapon with something like getPrimaryHandItem()

thanks for this. but i think now that you can give the survivors new weapons i dont need to use this.
but I was looking through BodyDamage and Player classes for a method to detect "how hungry" a player is but oddly could not find anything regarding hunger. know anything about that?

Share this post


Link to post
Share on other sites
25 minutes ago, nolanri said:

thanks for this. but i think now that you can give the survivors new weapons i dont need to use this.
but I was looking through BodyDamage and Player classes for a method to detect "how hungry" a player is but oddly could not find anything regarding hunger. know anything about that?

player:getStats():getHunger()

 

Im not 100% sure those are exact, specifically the getStats(), but it is something like that. I'm on my phone and no access to all my PZ notes.

Share this post


Link to post
Share on other sites
1 minute ago, tommysticks said:

player:getStats():getHunger()

 

Im not 100% sure those are exact, specifically the getStats(), but it is something like that. I'm on my phone and no access to all my PZ notes.

oh i didnt see that stats class. yeah it's there.

Share this post


Link to post
Share on other sites

I want to make hostile Survivors but no point in doing that when attacks are synced. i really need to remove the attack sync now.  Any ideas anyone?

Edited by nolanri

Share this post


Link to post
Share on other sites

if I can find a way to initiate the joypad/controller system without actually having a controller, i think i can fix the attack sync. And possibly remove the need for javaside patch.

I need to set GameWindow.ActivatedJoyPad to something not null.  I can set the suvivor players JoyPadBind to like 1 even but the condituions in the player update check for GameWindow.ActivatedJoyPad to be activated before they check for the players joypad bind.

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