-
Posts
3439 -
Joined
Posts posted by RoboMat
-
-
Past me probably meant "Soon" in dragon years... maybe.
-
In one of my old mods it was a feature though there were some engine limitations back then which caused the gameworld to stop updating while you were passed out. So zombies didn't attack your character while he was asleep.
Personally I'd love to see this in the current game.
-
It has arrived! <3
-
require('ISUI/ISPanel'); require('ISUI/ISRichTextPanel'); require('ISUI/ISCollapsableWindow'); UIStoryPanel = {}; function UIStoryPanel.new(title, text) title = title or 'test' text = text or 'Bacon ipsum dolor amet strip steak drumstick shankle jerky frankfurter short loin sausage. Short loin hamburger landjaeger turducken. Pork belly bresaola pork drumstick picanha. Rump capicola pork chop ball tip pork loin.' local self = {}; self.tut = ISRichTextPanel:new(0, 0, 500, 500); self.tut:initialise(); self.tut:setAnchorBottom(true); self.tut:setAnchorRight(true); self.moreinfo = self.tut:wrapInCollapsableWindow(); self.moreinfo:setX((getCore():getScreenWidth() * 0.5) - (self.tut.width * 0.5)); self.moreinfo:setY((getCore():getScreenHeight() * 0.5) - (self.tut.height * 0.5)); self.moreinfo:setTitle(title); self.moreinfo:addToUIManager(); self.tut:setWidth(self.moreinfo:getWidth()); self.tut:setHeight(self.moreinfo:getHeight() - 16); self.tut:setY(16); self.tut.autosetheight = false; self.tut.clip = true; self.tut:addScrollBars(); self.tut.textDirty = true; self.tut.text = text; self.tut:paginate(); return self; end
This is from an old mod of mine and *should* create a simple text window.
-
-
I meant if you looked at the actual IsoPlayer.class / .java file? You can use JD-gui to look at it.
Your problem is the update() method:
this.TimeRightPressed += 1; } else { this.TimeRightPressed = 0; } if (this.bNewControls) { if (!this.isCharging) { this.isCharging = (((Mouse.isButtonDownUICheck(1)) && (this.TimeRightPressed >= 8)) || (GameKeyboard.isKeyDown(Core.getInstance().getKey("Aim")))); } else { this.isCharging = ((Mouse.isButtonDown(1)) || (GameKeyboard.isKeyDown(Core.getInstance().getKey("Aim")))); } } else if (!this.isCharging) { this.isCharging = ((Mouse.isButtonDownUICheck(0)) && ((this.TimeLeftPressed >= 13) || (GameKeyboard.isKeyDown(Core.getInstance().getKey("Aim"))))); } else { this.isCharging = ((Mouse.isButtonDown(0)) && ((this.TimeLeftPressed >= 13) || (GameKeyboard.isKeyDown(Core.getInstance().getKey("Aim"))))); } this.bRunning = ((!PZConsole.instance.isVisible()) && (GameKeyboard.isKeyDown(Core.getInstance().getKey("Run"))) && (!this.bSneaking)); } this.Waiting = false;
Looks like the controls are actually hardcoded into the player class. Haven't found anything that could disable it... so my guess is you can't fix it without touching the java side.
-
Hm ... totally forgot about splitscreen. Did you take a look at the IsoPlayer class itself yet?
-
Pinned it
-
7 hours ago, Mr_Sunshine said:
<snip>
1 hour ago, Rathlord said:<snip>
Please avoid the off-topic next time. The NPC affair has been discussed time after time so there is no need to derail this topic which is actually about getting modding help
@nolanri: I suspect the code for getting the player to move is hardcoded into the actual IsoPlayer class (I don't have the time to check this right now, so don't take my word for granted). If this is the case, then it probably isn't easy to fix without some major refactoring to the whole system. I can't think of any way to fix this on the Lua side. You might be able to write your own NPC class by extending the IsoPlayer class and removing the input related code in there (by overriding the parent methods)... No idea how that would work in reality though.
Anyway I hope you are able to fix this.
-
If you want to discuss modding related topics join our Discord channel!
https://discord.gg/theindiestone
May the Spiffo be with you!
-
Just now, Zero Code said:
Thanks!
Sorry, Im new here
1No problem Welcome to the community
-
I like the idea.
P.S.: I deleted your other topic Next time, you can just "report" your own thread and we can move it to the right place.
-
15 hours ago, Fuji said:
New arts
<snip>
I'm loving the design! <3
-
Too late tommy san. Wax on, wax off, wax on ...
-
It doesn't "destroy" the item. It just removes it from the inventory it is located in. Of course, if you don't have any reference to it (aka stored it in a variable in your code somewhere) it'll be lost.
It's been quite some time since I worked with the inventory code so unfortunately, I can't give you more information than the code above.
-
You could probably just create a TimedAction with 0 execution time.
On the other hand you can just write a function to directly transfer the items. Maybe this helps.
-
-
Looks good
-
For the hive of mine I gaunt find my watch ...
I'm bad at this
-
5 minutes ago, Kitt Frostpaws said:
I've currently been working on a world-building sci-fi exercise, which has kind of spiraled out of control, been working on it for four months now. I'll post some when it's ready - I'm really just still adding to it, building up the history, species, religions, cultures + their corresponding crime & punishment.
I'll probably not post it for a while as it's still a heavy work-in-progress and it kind of takes a bit from everything out there, from conspiracy theories to the Warhammer 40K's tyrannids, Hell even H.P Lovecraft acted as an inspiration for some of it.
I may post snippets from time-to-time.
Hive mind ... Hive mind ... Hive mind ... Hive mind ... Hive mind ... Hive mind ...
- Kitt Frostpaws and Rathlord
- 2
-
Moved out of the WIP section.
Great work!
-
Lua doesn't use && like java ... you have to use and
local player = getPlayer(); local px = getPlayer():getX(); local py = getPlayer():getY(); if (px == 10994 and py == 9647) then player:Say("here i am"); end
-
Looks great!
-
This would help a lot!
Are hydro's cardboard boxes like normal containers (etc. cupboards or drawers) or like duffel bags?
Sleeping Overhaul (DOES NOT WORK WITH STEAM FFS)
in Mods
Posted
I haven't been actively modding the game for quite some time now and with all the changes the game has undergone since the release of the mod it would probably need to be rewritten from scratch.
So I'm afraid I won't update it in the near future.
But of course if somebody wants to pick up the development of this mod they are free to do so.