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.


Topics - Lugnut

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 ... 16
76
Modification Help / Zip/unzip .zip files?
« on: March 06, 2012, 12:08:27 AM »
Yeah, subject is all there is to this.
Everyone I've asked said they don't know of one, so I thought I'd do a blanket ask and ask everyone in coding help.

Can you create .zip files from ingame in any way?

77
Modification Help / Need to remove certain parts of an array
« on: March 03, 2012, 03:24:50 PM »
I have a file that looks like this
Code: [Select]
$C2CMultilist::NumEntries = 0;
$C2CMultilist::user[$C2CMultilist::NumEntries++] = "White_Tiger";
$C2CMultilist::user[$C2CMultilist::NumEntries++] = "Lugnut1206";
$C2CMultilist::user[$C2CMultilist::NumEntries++] = "Derpington";

You get the idea.
suppose I want to remove the line that reads like this:
$C2CMultilist::user[$C2CMultilist::NumEntries++] = "Lugnut1206";
via a function or other method.
I have the following code, undoubtedly missing something important, is there anything that someone would like to add?

Updated: 3/4/12 1pm

Code: [Select]
function removeC2CGroupUser(%name)
{
%file = new FileObject();
%file.openForWrite("config/client/c2cgroup.cs");
for(%i = 0; %i < $C2CMultilist::NumEntries; %i++)
{
if($C2CMultilist::user[%i] $= %name)
{
$C2CMultilist::user[%i] = "";
%foundtarget = 1;
}
if(%foundtarget)
{
$C2CMultilist::user[%i--] = $C2CMultilist::user[%i--];
}
else
{
%file.writeline("$C2CMultilist::user[$C2CMultilist::NumEntries++] = \"" @ $C2CMultilist::user[%i] @ "\";");
}
}
%file.close();
%file.delete();
}
I.. uh.. haven't tested it yet, for a few real-world reasons.

78
So, I was in a Skype call with some friends, but I couldn't talk due to microphone problems. I had Connect2Chat, and was PMing one of the people on the call, who was speaking my words out loud so everyone could hear me.
wait a minute, couldn't we all just join the off-topic room so everyone could read my messages? Nope, C2C doesn't play well with rooms other than general discussion!
wait a minute, couldn't we just use RTB's built-in group functionality? Nope, that doesn't exist yet!

So this lead me to make artificial groups for RTB. I simply made a new command for the C2C hud (/a), and have it duplicate the message to multiple people. Easy!

Well stuff, I can manipulate stuff with RTB, why not make a location getter, to make the other person tell you their GPS coordinates?
Easy! Simply send the other person this message "!location" and they'll pm you their players location. They have to have this script for it to work.

I made this topic because I intend to release this mod to the public, but two features isn't enough for a pretty release. I can easily add more of the !commands to get more info, but I need ideas for just what info to get!

I need suggestions and beta testers.

I hope this doesn't violate anything with Ephialties, I'm sure his group functionality will be a thousand times better than this stuff, but until he gets his groups working...

Important: This requires Connect2Chat to work. I could've packaged RTB functions directly, but that's a lot harder.

79
Modification Help / NMH::Send(%this) help
« on: March 01, 2012, 10:25:36 PM »
I'm attempting to package NMH::Send and modify the message.
unfortunately, %this is a number, and to get it to a message you have to do %this.getvalue()
to get the actual message.
I'm not sure how to get the text back to the original value after I modify the message.

Help?

80
Help / Odd graphical glitch pertaining to bricks that are far away
« on: February 28, 2012, 11:20:40 PM »
I don't know what's causing this and it's pissing me off.



Keep in mind, I'm very far away, I'm just zooming in.


Help, please, this has been driving me nuts.

81
Games / Good livestreaming alternative?
« on: February 27, 2012, 01:10:30 AM »
Apparently livestream is now only available to people who want to pay.
Are there any alternatives with a similar service?

82
Add-Ons / Admin Orb Names - Now you know who's orbing!
« on: February 26, 2012, 01:52:38 AM »
Orb Names

So I was on Ottospark's server earlier, and the conversation wrangled around to setting names on cameras.
Port brought up this handy bit of code, which I made into an add-on for you to use.
Basically, it attaches a shape name (aka, name) above your orb that trails it, just like the names on your player.

Includes the following snazzy rtb prefs:
  • Enabled  - Is it enabled? Default to yes
  • [0]SpyNames - Are there names when you spy? Default to no


You wouldn't believe the trouble I had to go through to get this picture.

I had to get the first one to get the second one. Jesus christ, Pecon.

Download here!

83
Games / Considering livestreaming LoZ Majora's Mask. Anyone interested?
« on: February 25, 2012, 12:48:28 AM »
The reason I ask is because I don't really want to try to livestream something that no one will be interested in.

soo, I realize that the forums are dead around this time, but whatever

EDIT:First time doing this, I'm bumbling through the livestream website, where the hell is the procaster?

edit:wtf you have to apply to do this stuff
are there no other alternatives?

84
Modification Help / Is there a way to force two people to have trust?
« on: February 21, 2012, 02:39:15 PM »
No, bypassing trust will not work in this situation.
Suppose BL_ID 5 and 10 are on a server and do not have trust, but I have access to console.
Can I force trust between those two people?

85
Modification Help / How do you get the day of the week?
« on: February 11, 2012, 02:38:42 AM »
Eg Friday, Saturday, Sunday
is this possible?

86
Lockerwand

This add-on allows you to lock bricks to make them totally unmodifiable. Naturally, you can unlock the bricks too. No, this is not persisted when you saved, I don't know how to do that yet..
Simply use /uselockerwand or /lockerwand and beat on those bricks!
/useunlockerwand - Gives you the unlockerwand tool, which does as it's name implies.
/unlockerwand - Gives you the unlockerwand tool, which does as it's name implies.
/lockbypass - Allows you to destroy/interact with bricks. HOST ONLY.

What happens when a brick is locked?
You cannot do the following:
Hammer it
Wrench it
Print it
Wand it
Destructo Wand it (At least not with your brick lock safety on, as mentioned. "/lockbypass")
You can do the following:
Unlock it
Paint it, colors OR FX.

This tool is HOST ONLY.
I am considering making an obscure preference to make it SA and higher, opinions?

Code: [Select]
Modders: you can tell this by looking through the code, and frankly, you could make your own, but this tool modifies/checks the brickLocked variable.
Please post here if you find/want anything.

Planned Todo: Add lockBricksByBL_ID(); and lockBricksByName();

Download

87
Modification Help / How do you get a bricks wrench-menu name?
« on: February 08, 2012, 01:36:58 PM »
See Subject.
I tried [BricksID].name yet that didn't work, I must be missing something here.
EDIT:It just gives me a blank.

88
This is the add-on I'm trying to modify - http://forum.blockland.us/index.php?topic=183925.0
I'm attempting to make the green part (currently under the tool slider) be anchored next to the paint slider.

Using packages, I had hoped to make the green part slide out with the paint, and then slide back in when the paint slider goes in, so that both were always visible. The best result I've managed to achieve is the green part twitching, and the paint slider functioning normally.

I am very newby when it comes to packages, help please!
Code: [Select]
package PaintCanGlideSupport
{
function playgui::hidepaintbox(%this, %distance, %number, %numberother)
{
if(%distance < 0)
GPScounter.position = (%distance SPC (getWord(getRes(),1) - 80) + getWord($Pref::GPSCounter::posadd,1));
if(%distance > 0)
GPScounter.position = ("-15" SPC (getWord(getRes(),1) - 80) + getWord($Pref::GPSCounter::posadd,1));
parent::hidepaintbox(%this, %distance, %number, %numberother);
echo(%this SPC %distance SPC %number SPC %numberother);
}
};
activatePackage(PaintCanGlideSupport);

EDIT:Visual reference: should move to . This example was obviously manually doctored..

EDIT2:The debug ECHO I have up there returns this:
Code: [Select]
-open-
PlayGui -91 1 0
4352 -91 1 1
-close-
PlayGui 91 10 0
4352 91 10 1
4352 91 10 2
4352 91 10 3
4352 91 10 4
4352 91 10 5
4352 91 10 6
4352 91 10 7
4352 91 10 8
4352 91 10 9
4352 91 10 10

As it would turn out, it was getting reset because I had a loop in the script resetting it. Facepalm.jpg

89
Modification Help / How do you client-sidedly...?
« on: February 04, 2012, 07:29:55 PM »
Which function is called when you spawn, or otherwise, how would I cause actions to happen when I spawn?
Is there a way to measure distance to an object by looking at it client sidedly?

90
Add-Ons / Client_GPS - V4, 3 storable marks, spawn saving [2/4/11]
« on: February 01, 2012, 11:10:13 PM »
Client_GPS

Ever been roaming around, and wished you knew some random coordinates? No? This add-on is for you anyway!

It simply prints a little GPS thingy in the bottom left corner of your screen, near the paint can. Right underneath it, actually. If you open the paintcan, the GPS moves. forget'n miracles!
Then, if you keybind some keys, you can make little notes, along the right side of your screen! (up to 3)
The best part is this: It automatically stores where you spawned!



Take a bite out of that!

How to choose Y for Altitude:
do this in your console
$pref::client::GPSSwapYZ = 1;
Also pay me $500 in USD for going through that bullstuff to make that work.

Download

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 ... 16