Berdryn Posted October 26, 2016 Share Posted October 26, 2016 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. Link to comment Share on other sites More sharing options...
nolanri Posted October 26, 2016 Author Share Posted October 26, 2016 seems like i have it all working with the java changes. follow the isntall steps here: http://undeniable.info/pz/Survivors.php havent tested thoroughly yet, so i suspect there could be other prolems. but i had 1 minute of everything woprking playtime Link to comment Share on other sites More sharing options...
nolanri Posted October 26, 2016 Author Share Posted October 26, 2016 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. Link to comment Share on other sites More sharing options...
nolanri Posted October 26, 2016 Author Share Posted October 26, 2016 does anyone know how I can set / restore the durability of the weapon in hand? Link to comment Share on other sites More sharing options...
nolanri Posted October 26, 2016 Author Share Posted October 26, 2016 and another question is. is there an lua method for the action of jumping through window/ over fence like when you hold e button Link to comment Share on other sites More sharing options...
nolanri Posted October 30, 2016 Author Share Posted October 30, 2016 You can give a weapon to survivors now by dropping it by thieir feet. But I really want to find out why medical check option disappeared Link to comment Share on other sites More sharing options...
tommysticks Posted October 31, 2016 Share Posted October 31, 2016 (edited) 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 October 31, 2016 by tommysticks Link to comment Share on other sites More sharing options...
tommysticks Posted October 31, 2016 Share Posted October 31, 2016 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? Link to comment Share on other sites More sharing options...
nolanri Posted October 31, 2016 Author Share Posted October 31, 2016 5 hours ago, tommysticks said: Did you do this java side? Or are you able to do this in lua? ya this part was lua. Link to comment Share on other sites More sharing options...
nolanri Posted October 31, 2016 Author Share Posted October 31, 2016 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? Link to comment Share on other sites More sharing options...
tommysticks Posted October 31, 2016 Share Posted October 31, 2016 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. Link to comment Share on other sites More sharing options...
nolanri Posted October 31, 2016 Author Share Posted October 31, 2016 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. Link to comment Share on other sites More sharing options...
nolanri Posted November 4, 2016 Author Share Posted November 4, 2016 (edited) 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 November 4, 2016 by nolanri Link to comment Share on other sites More sharing options...
nolanri Posted November 4, 2016 Author Share Posted November 4, 2016 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. Link to comment Share on other sites More sharing options...
G48R13L Posted November 5, 2016 Share Posted November 5, 2016 Great work nolanri! Link to comment Share on other sites More sharing options...
nolanri Posted November 6, 2016 Author Share Posted November 6, 2016 i used setBannedAttacking() to sort of, mostly remove the attack sync problem. now i'm trying to figure out what is causing this:https://theindiestone.com/forums/index.php?app=tcbugtracker&module=tracker&controller=issues&id=481 Link to comment Share on other sites More sharing options...
danijfbm Posted March 14, 2017 Share Posted March 14, 2017 Olá eu traduzi os diálogos do mod para português do Brasil, teria como o dev adicionar ao mod para uso de todo mundo? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now