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

Pages: 1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 42
226
Modification Help / Re: Canvas Functions
« on: April 05, 2013, 11:44:51 PM »
You got farther than me.  I got caught up in work stuff.  I'd love to see how you got that far. o-O

I don't think the extra memory usage would be a problem.  Unless it increases dramatically as you add things to the gui.

227
Modification Help / Re: Canvas Functions
« on: March 31, 2013, 02:55:31 PM »
OP, I got to the point where I have a black canvas with a red dot that follows my mouse. Is that where you are currently?
Yeah.

228
Modification Help / Re: Spawning invisible brick via code
« on: March 29, 2013, 06:00:10 PM »
Hmm... I made some bricks that would automatically set to unrendering upon being planted.  But I don't remember if they flashed.  I stole the script from the ZoneBricks addon.  So maybe you could check and see if if those giant zonecubes flash upon being placed.

Edit:  I just realized who you are/what you're working on.  If you can't make the 2x2f not flash, I could make you a brick without any visible meshes.  Maybe that wouldn't flash.

229
Modification Help / Re: Cannot Move Object
« on: March 29, 2013, 05:48:03 PM »
Do you mean to move things instantly?  I sometimes use findclientbyname("Dglider").player.position = "# # #"; to move myself around to specific points.  Maybe that will help.

230
Modification Help / Re: Canvas Functions
« on: March 29, 2013, 05:39:40 PM »
to get some sort of external window running next to your dedicated server?
Yup.

If that is what you are trying to do you need to create that as an external program and connect it to the dedicated server with TCP objects.
I'm trying to make an add-on that runs inside of Blockland.  Not an external program.

The server cannot run gui.
Do you have any expertise in that area?  If so, what have you tried?

231
Modification Help / Re: JoyStick bindings
« on: March 29, 2013, 05:25:27 PM »
Sweet! Thanks for making this.  I've always wanted to attempt to use a joystick in BL.

232
Modification Help / Re: Temporarily replacing the player light?
« on: March 29, 2013, 05:20:48 PM »
I have no idea where to start.

I have an add-on on my server that lets you change the light via /setlight [lightnamehere].
http://forum.returntoblockland.com/dlm/viewFile.php?id=555
Additionally, this exists: http://forum.returntoblockland.com/dlm/viewFile.php?id=1393

I suggest looking through the code on those to find what you seek.

As far as making it happen when a specific image is mounted, ajksdfgaskldhvaksd.  I guess you could find another add-on that does 'something' as soon as it's mounted...

233
Modification Help / Re: Canvas Functions
« on: March 29, 2013, 05:05:02 PM »
The dedicated server cannot run the gui, all clients that shall see the gui must download the gui add-on.
As for showing the gui you would use canvas.pushdialog(somerandomgui);

I may not have been clear in my intentions.  I don't mean for the clients to see the gui at all.  It's specifically server-sided.  You start the server and, just like when you start a blockland normally, a second window pops up.  Only instead of the main menu it shows a bunch of buttons like, kick, ban, mute, kill etc.  Click the buttons and stuff happens.

234
Hmm...  I know cashmod2 does the same sort of thing you're trying to do.  But I haven't used it in a while so I don't know if it even still works.  Ill test it out when I get home, but in the meantime, maybe you could look at that.

Or maybe I'll just paste the plant code from it here and save you the trouble.
Code: [Select]
	function fxDTSbrick::Plant(%brick)
{
%e = Parent::Plant(%brick);
if(!%e)
{
%c = getbrickgroupfromobject(%brick).client;
if(isObject(%c) && isObject(%c.player) && isObject(%c.player.tempbrick))
{
%vol = %c.player.tempbrick.getVolume();
%cost = $Cash::BrickCostPerVolume / 10;
%amt = mFloatLength(%c.cashObj.cash,2);
if(%amt < %cost * %vol)
{
commandtoclient(%c,'centerprint',"\c6You need" SPC CashStr(%cost * %vol,"") SPC "\c6to plant this brick.",2);
%brick.schedule(0,"delete");
} else {
%c.cashObj.mod("Cash",0 - (%cost * %vol));
}
}
}
}

235
Modification Help / Canvas Functions
« on: March 29, 2013, 04:47:13 PM »
Hai der.  I've been messing around with trying to make a gui for a dedicated server.

I used initCanvas(Twinkle) to get the... well to get the canvas up and running.  But I've been having trouble trying to use Canvas.setContent(GuiProfile, testgui) to start the gui stuffs.  I don't actually know if <--that syntax is correct, as I don't have my notes here at work.  I know I got the syntax correct while testing it out at home though, for it stopped giving me error messages, and just crashed instead.  Yay progress.

I know Badspot has changed Blockland's engine alot since he started making it, so I went back to a copy of v0002.  Lo and behold it worked perfectly!

Given the evidence before me, either Badspot has locked up the dedicated server pretty tight, and it can no longer run a gui at all, or the dedicated server does not run some key scripts needed to run a gui.  In which case I need to go through the client startup stuffs and find which ones set up the guis so I can force feed my server some beautiful gui love.

Anyhow I'm wondering if anyone else has done this before, if anyone knows which scripts set up the gui love, or if anyone has any tips about gui-making in general(All I've done so far is put up a background image).

236
General Discussion / Re: Kaphost Blockland Servers
« on: March 29, 2013, 04:17:19 PM »
So, I'd like to buy a server, but I have a few questions about stuff.

Does the autosaver save ownership/events/emitters etc. properly?  The ownership is the big question.  Does it save the ownership of each individual brick?  If not, can that be changed?  I've always wanted to host a large community build, but that's just not possible with the way vanilla saving works.

RTB Hosting has an automatic restart feature.  Does your service have something similar? And if so, can I turn it off?

So, I don't actually want to host the server 24/7.  Leaving an empty server up can give it a bad reputation.  And if there isn't an admin present late at night, things can get a little hairy.  Do you happen to have anything that could be used to automatically close/open/password a server?  I could probably make something myself, but why do the work when it has already been done before?

237
Add-Ons / Deathzone Addon Thing
« on: March 29, 2013, 10:26:09 AM »
Hai. So I made a command that creates a killzone below the map.  Then I took a piece of another addon that toggles the ground on and off, and added that in as well.  Cause it's pretty pointless if you don't do that.  Ssssoyeah enjoy.

Commands:
/deathzone # # # - type in x y and z to make a deathzone of whatever size.  The zone is located 10 units below the map.  Type /deathzone again to remove the zone.
/deathzonehelp - displays the help message
/toggleground - toggles the ground (duh).  When you toggle it back into existance the ground will be completely transparent.  Give it some sort of texture to make it visible again.

Download: http://www.mediafire.com/download.php?c61biz0sv92hae6

If you're curious as to where the deathzone is centered, you can use the console command
Code: [Select]
findclientbybl_id("YOURIDHERE").player.position = "0 0 10";
to position yourself above it.

238
Modification Help / Deathzone Addon [TEST PLEASE] >.<
« on: March 27, 2013, 06:13:43 PM »
Hay there I've been getting tired of accidentally hitting the ground with my grapple rope during those grapple knife TDMs.  I've suggested to the hostificals that they get the toggle ground add-on, but they never seem to go for it.

This will hopefully change that.

It lets you create a trigger zone below the map, that kills people when they enter it.  It also includes the toggleground addon stuffs inside of it, since it's pretty much useless without it.

Anyhow I'd like some help testing it to make sure it's all sewn up tightly.

The commands are:

/toggleground - toggles the ground, duh.
/deathzonehelp - displays info on how to use the mod
/deathzone # # # - creates the trigger zone of size x y z.  The zone is centered at 0 0, and the top surface starts @ z of -10.

Once it has been created you can type /deathzone again to remove it.

All commands are admin only.

Download: http://www.mediafire.com/?c61biz0sv92hae6

239
Add-Ons / Re: water/surface vehicle LOST AND FOUND!!!!!!!
« on: March 25, 2013, 03:06:52 PM »
Ohey I remember this.  I never used it because I thought it looked horrible, but it's good to see it still exists somewhere.

240
General Discussion / Re: Jetz's Climbing Challenge
« on: March 13, 2013, 09:46:32 PM »
I got a false timescale detection reading.  I used the first launch bar on lvl 2 to launch over the hill towards the finish, but I hit a tree.  While sliding down the tree the detector went off.

Pages: 1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 42