Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
November 17, 2017, 11:22:59 AM

Home Help Login Register
  Show Posts
Pages: 1 [2] 3 4 5 6 7 ... 594
16  Blockland Forums / Modification Help / Re: Getting the object created from a default/different function on: October 26, 2017, 01:13:40 PM
You parented the itemdata vars incorrectly, just an info for everyone planning to copy that code without thought
0/10
thanks for the corrections guys, fixed, I should have paid more attention

Instead of doing the if checks, why not just keep track of the last added?

Code:
function onAddStuff(blub)
{
return ($lastAdded = parent::onAddStuff(blub));
}

(On mobile right now, will fix when I get back)
this works fine too

something like

Code:
package captureDroppedItem
{
     function serverCmdDropTool(%cl,%slot)
     {
          parent::serverCmdDropTool(%cl,%slot);
          %item = $dropItemCapture;
          %item.setVelocity("0 0 100");
     }
     function itemData::onAdd(%db,%item)
     {
          $dropItemCapture = %item;
          parent::onAdd(%db,%item);
     }
};
activatePackage(captureDroppedItem);

I wouldn't return the parent onAdd if I were you though, it could produce console errors


either way is essentially the same, the if checks are basically completely negligible and dropping them from the code will not result in really any performance increase since it's just a boolean check
17  Blockland Forums / Modification Help / Re: Getting the object created from a default/different function on: October 25, 2017, 11:10:30 PM
Code:
package captureDroppedItem
{
     function serverCmdDropTool(%cl,%slot)
     {
          $dropItemCapture ="";
          parent::serverCmdDropTool(%cl,%slot);
          %item = $dropItemCapture;
          %item.setVelocity("0 0 100");
     }
     function itemData::onAdd(%db,%item)
     {
          if(!$dropItemCapture)
               $dropItemCapture= %item;
          parent::onAdd(%db,%item);
     }
};
activatePackage(captureDroppedItem);

Edit: Woops thanks for the correction guys I didn't test it
18  Off Topic / Off Topic / Re: talk about your nightmares here on: October 25, 2017, 02:14:44 AM
I have frequent consecutive nightmares but then I go to sleep
19  Blockland Files / Add-Ons / Re: Event_MakePublic by Conan on: October 25, 2017, 02:10:58 AM
0/10
20  Blockland Forums / Suggestions & Requests / Re: REQUEST: Audio Visualizer Script? on: October 23, 2017, 05:15:11 AM
a server sided dll would be great for this a client sided dll ie bl browser is basically useless
21  Off Topic / Off Topic / Re: Pumpkin carving topic on: October 18, 2017, 08:08:09 PM
Aww man I haven't carved a pumpkin in years D:
it costs like 4 dollars and 30 minutes to an hour
22  Off Topic / Off Topic / Re: Pumpkin carving topic on: October 18, 2017, 08:05:40 PM
ya we accidentally used all our candles already, I'm buying one tomorrow
23  Off Topic / Off Topic / Pumpkin carving topic on: October 18, 2017, 08:04:08 PM
WOOOOO look at my shitty pumpkin, post yours!!
24  Blockland Forums / Suggestions & Requests / Re: Avatar Save/Load Events on: October 18, 2017, 03:25:23 PM
Or you can just do echo(findclientbyname("someone").faceName); in console but I understand why you did that I guess. Why not just add a /checkFace or /faceList command or something so people can easily check face/decal names, even if it's custom? Then you can eliminate the need for "double events" (aka something that could be simplified to 1 event)
sounds tacky as fuck
25  Blockland Forums / Suggestions & Requests / Re: Avatar Save/Load Events on: October 14, 2017, 11:10:57 PM
Swollow's events look promising, but I tested them in-game and discovered that push and pop appearance do (seemingly) nothing, restoring the players avatar is slightly broken because it looks for node "none" when it shouldn't (console errors)
Also, the setFaceDefault and setDecalDefault should be merged with the setFaceCustom and setDecalCustom events - it makes no sense to use both a drop down list and a string method, when they could just as easily type in the name of a default face
I mean first off everything works fine for me on a default installation without console errors, push and pop avatars definitely works, and the drop down methods simplify it for people who haven't memorized or dont want to open their addon installation to find the names of faces and decals
26  Off Topic / Off Topic / Re: You can change the outcome of a single historical event. What do you choose? on: October 13, 2017, 03:36:08 AM
invert hitler's mustache
27  Blockland Forums / Suggestions & Requests / Re: Avatar Save/Load Events on: October 12, 2017, 01:39:03 PM
how are they "broken"? they work fine for me
28  Off Topic / Off Topic / Re: so zach returned to the forums, and uh... on: October 11, 2017, 03:08:14 PM
who?
29  Blockland Forums / General Discussion / Re: Make the hatmod a default addon please on: October 11, 2017, 02:48:17 AM
slayer with zapk's "delete everything in your blockland directory" modification should be made default
30  Blockland Forums / Help / Re: Don't murder me, but i have a profile pic question. on: October 06, 2017, 03:19:16 PM
max size is 75x75 max filesize is way higher than 2 kb, you just need to strip your meta data from the file, the main limiter is theres a chance that your image will be detected as a false positive, I've noticed this most frequently when theres bright colored red in the photo, usually you can solve this by taking certain parts of your image and turning them to slightly off red, just try changing simple little color details so that they aren't exactly green or red etc and usually then it works, sometimes changing your image to 74x74 works just because you change the inner file details of the image but this is not something you should always do you basically just need to make a bunch of small changes until it eventually works
Pages: 1 [2] 3 4 5 6 7 ... 594


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.036 seconds with 18 queries.