Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Zeblote

Pages: 1 ... 248 249 250 251 252 [253] 254 255 256 257 258 ... 727
3781
To save bricks server-sided, you'll have to write code that saves every brick as there's no default functionality for that.

If you're planning to write an autosaver (that's what your post sounds like), I've made the RTB auto saver a standalone add-on some time ago, maybe you should look at it:

https://dl.dropboxusercontent.com/u/143512782/bl/Server_RTBAutoSaver.zip

3782
Modification Help / Re: script.cs + packaging for playertype?
« on: July 12, 2014, 11:00:36 AM »
Yes, but there are some cases where putting ./ on its own doesn't work, for example in AddDamageType when setting a bitmap. You have to define the entire directory (or use expandFileName of course), and if the .zip's name is changed then the add-on will create errors and potentially not work. With a nameCheck.txt, it wouldn't load at all.

From Weapon_gun/server.cs for reference.
Code: [Select]
AddDamageType("Gun",   '<bitmap:add-ons/Weapon_Gun/CI_gun> %1',    '%2 <bitmap:add-ons/Weapon_Gun/CI_gun> %1',0.2,1);
That's because you aren't directly setting a file name, but rather embedding one in a string. The engine can't know that there's a file name to be expanded in the middle of the string.

That's why you use "<bitmap:" @ expandFileName("./CI_gun") @ ">", it will tell the engine that you want to expand the relative file name in the middle.

3783
Modification Help / Re: script.cs + packaging for playertype?
« on: July 12, 2014, 10:17:59 AM »
Actually, nameCheck.txt is there so that if you designate any files/folders inside the add-on without using ./ or expandFileName("./ ..."), the add-on wont load at all instead of it loading with errors.
No it isn't, ./ in file names is recognized by the engine when executing the file and makes the file path start in the same folder the script is located.

It has nothing to do with namecheck.txt.

3784
Use search. Almost everything you want already exists. Also you can just use addhealth with a negative value.

There's also a buildable vehicles add-on, but it sucks. Proper buildable vehicles (like being able to place ramps and custom bricks and whatnot on it) aren't possible.

3785
General Discussion / Re: Freecam when in 1st person
« on: July 12, 2014, 08:49:57 AM »
I was trying to figure out how you can do 1st-person freelook with no mods.
You don't.

3786
Just set altImage variables in the image datablock to the image you want to switch to right right click, put disableDrop = 1 for images you dont want to drop then do a single package in server.cs like this (you might want to indent that code better)

package tbooguns
{
   function Armor::onTrigger(%this, %player, %slot, %val)
   {
      if(%val && %slot == 4 && isObject(%image = %player.getMountedImage(0)))
         if(isObject(%image.altImage))
            %player.mountImage(%image.altImage, 0);

      Parent::onTrigger(%this, %player, %slot, %val);
   }

   function servercmdDropTool(%client,%slot)
   {
      if(isObject(%player = %client.player) && isObject(%image = %player.getMountedImage(0)))
         if(%image.disableDrop)
            %player.unmountImage(0);

      return Parent::servercmdDropTool(%client,%slot);
   }
};   
ActivatePackage(tbooguns);

3787
Don't make a new package that contains almost identical code for every weapon, that's why the b3 pack massicely slowed down glass' server awhile ago. Make a single package.

3788
Help / Re: My chat wont work anymore
« on: July 12, 2014, 07:31:04 AM »
Try removing any add-ons you recently downloaded

3789
General Discussion / Re: https support?
« on: July 12, 2014, 07:29:17 AM »
It would still probably take Badspot a month or two to do it. How would you like a month without an auth/master server?
They wouldn't make a change like that without warning.

3790
General Discussion / Re: https support?
« on: July 11, 2014, 10:02:59 PM »
Yes, because the correct way to motivate developers is to break how everything they currently have works so that they're required to update it.
If that's the only way to motivate them, why not?

3791
General Discussion / Re: https support?
« on: July 11, 2014, 06:44:18 PM »
This isn't just a chat problem, it affects coding as well
Would be cool if cloudflare started forcing https or all clients because then badspot would actually have to add https support for torkscript.

3792
Suggestions & Requests / Re: Is a 128x128 baseplate possible?
« on: July 11, 2014, 06:31:06 PM »
64 studs length/width and 90 plates high.
90 plates high would not make a cube with a 64x64 base, it's 160 plates high

So basically he's making a giant brick in the shape of a skyscraper but less than 64 x 64 x 64?
Giant model and collision shape but only a small brick in the grid

3793
Drama / Re: Blockland is TERRIBLE
« on: July 11, 2014, 06:06:35 PM »
I think that's the right link
Ye it is, my download is still up becaue of some unknown wonder.

3794
Off Topic / Re: Recommend me a Windows 8 laptop.
« on: July 11, 2014, 06:02:40 PM »
Why would you want to use Windows? Linux is way better
lmao no it isn't

3795
Build a more relieable antenna, those images are all half corrupted

Pages: 1 ... 248 249 250 251 252 [253] 254 255 256 257 258 ... 727