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

Pages: 1 2 [3] 4
31
Modification Help / Getting the brick number from the brick name
« on: June 22, 2011, 07:06:02 PM »
I am in the need of a system that can figure out what a brick's number is given the name of the brick.  For example, I have found that the first brick, 1x1, is always number 201, and it increases sequentially from there.  If I only wanted default bricks to work, I could just have a giant switch to change each brick name into the appropriate number, but addons are not always enabled, and the numbers of non-default bricks can change from server to server.  I am stumped as to how to find the brick number, since this number does not appear to exist on the client side outsode of the brick selector dialogue.

example of what I'm talking about:
type "/instantusebrick 201" and click the ground
a 1x1 ghost brick will appear
now type "/instantusebrick 202"
the ghost brick will turn into a 1x2 brick

32
Help / Hosting Issue
« on: June 18, 2011, 02:54:11 PM »
I have been trying to set up a dedicated server on a new computer.
When I start the server, everything is working perfectly.  People can join and leave (when it isn't private) and it posts to the master server just fine.

However, after a usually random amout of time that can be anywhere from a couple of hours to a couple of days, something appears to just stop working.

It will still post to the master server, but the ping will now be --- and it becomes unjoinable.  When I try to connect from a different computer, each time I send a challenge request a little message will appear on the server saying "no matches".  If I restart the server, it works again, at least for a while.

What is the issue?
Is my router screwed up?
Do I need to forward my ports? (lol something I have not done)

33
General Discussion / Animated face
« on: June 18, 2011, 01:40:29 AM »
Watch in utter amazed terror as Brian Smith's face moves!

http://www.youtube.com/watch?v=0bPPGbRSxbM

Discuss.

34
Modification Help / Take Command of the Server!
« on: June 15, 2011, 02:20:34 PM »
Just thought I'd leave this here.

Video


Get:



Hot Features:
 - Generate infinite keybinds
    - Run out of keys? GET ANOTHER KEYBOARD!
 - Two commands per keybind!
 - Super customizable commands
    - easy to loop
    - send to server
 - Saves and loads everything between uses
 - Preferences - comes with 5 slots, and supports infinite preference saving (advanced)!
 - Completely user - controlled
 - No limit on what you can do
 - Easily manage large numbers of commands and functions
 - CAN BE USED WITH ONE HAND - Proven by eating a burrito while using.
 - Function editor with included file manager
    - auto execution option
    - anti-data loss unprotection (double negative :o)
 - Certified awesome with the Nexus seal of total approval.

Quotes!
"gj" -Rykuta
"Yay!" -Nasoa

More Quotes!
"I will ban you if you use that keybind on me" -Rykuta
"In fact: I'll invent a specific command to use on you, if you try to slay me, something special, that will result in your utter demise." -Rykuta
"This quote will self destruct in 5 seconds." -Rykuta

Even MORE Quotes!
"nexus (if its the wwe one) SUCKS!" -bran456man
"sooooo wait wait wait how the **** do you use this ****ing thing?" -jojo127098

Get the mod today!

Installation instructions for custom functions (where * is the name of the function):
move *.cs to the "blockland/config/client/servercommandgui/functions" folder
To use a custom function:
Bind a key with the keybind manager to "f:*"

Also, this is a discussion board for:
 - Sharing functions designed for use with the function editor - keybind control
 - Telling funny stories about noobs that ask "how are you doing that so fast?"
 - Suggestions for updates
 - Bugs that you find
 - Problems/things you would like explained better than in my video.

35
I changed the topic because the old one didn't really matter since I changed the test to do strcmp instead of !$= and it works alright now.

New problem:  I am trying to get a check box to check and uncheck itself when a variable is changed.  In the past, the check box controls I have used had a variable as a part of an array, which I would then export.  When that file is executed, the check box control successfully changes to reflect the value of the variable.

Now, I have only one check box to worry about, and it's variable is $servercommandgui_FEAE
That variable is set to 0 whenever something is about to possibly change.

However, when I have a line of code that says
$servercommandgui_FEAE = 1;
the check box remails blank.
I can echo($servercommandgui_FEAE);
which displays a 1
I then check the box manualy, and do the echo again
1
Then I uncheck the box manually and echo yet again
0

I am really confused since before, changing the variable would always successfully change any check box control that had that variable.  Is there an alternate way I can set a check box?

36
Off Topic / What classes are you taking next year?
« on: June 10, 2011, 12:56:19 AM »
Post your schedules for the next school year here!  Is blockland an M101 forum or an M579 forum?
If you are home schooled....  ... uh... Figure out the equivalent! :D



It's funny, because I almost failed the engineering class before Digital Electronics.  I had a 29% in the class a few days ago.  Luckily, my teacher got off his butt and actually graded my stuff right, and I ended up with a 98% and college credit :D.

And yea, I'm in the noob gym class.  Didn't feel like playing a sport for an entire year or doing weights.

37
Modification Help / Recursion/evaluating Strings Within Strings?
« on: June 07, 2011, 05:48:20 PM »
So I recently released my Server Command Gui, which works great.  My goal for version 3 was to make every aspect of the gui recursive, meaning it can be repeated infinitely and can account for any number of commands.  As a part of this, I tried to change the way it constructed the command sent to the server.

This is the old way it sent the command:
Code: [Select]
eval("commandtoclient('"@getword($command),0)@"', strreplace(getword($command,1),%find, %replace), ... ");
With this method, I could support arguments that had more than one word, but I could only have as many arguments as I define in the script.

I tried to replace it with something kinda like this:
Code: [Select]
%find = "_";
%replace = " ";
%cmd = "commandtoserver("@addtaggedstring(getword($command, 0));
for(%a=1; %a<getwordcount($command); %a++)
%cmd = %cmd @ "," @ strreplace(getword($command, %a), %find, %replace);
%cmd = %cmd @ ");";
eval(%cmd);

This method worked for as many arguments as I could type into the text box, but when I tried to have an argument with more than one word, such as "messagesent hi_my_name_is_pedro" (note that "_" is replaced with " "), I would get a syntax error.

echoing %cmd would give me somthing like this:
Code: [Select]
commandtoserver(58, hi my name is pedro);

%cmd needs to look like this somehow
Code: [Select]
commandtoserver(58, "hi my name is pedro");But that would mean I need two different kinds of strings within another string, and that doesn't make alot of sense to me.


I tried to look for a solution to this, but all I came up with was a vague reference to parse string or something.

Is it possible to write this, so the eval(); is able to evaluate the strings within the strings while still retaining the ability to support infinite recursion?

38
Modification Help / CommandToServer(); causes game to crash
« on: June 04, 2011, 02:06:21 PM »
I am trying to create a way so that players are able to use / commands without typing them into the chat.

When they type out the command they want to use (ex: "suicide") into a gui, and that is saved as a global variable: $globalvariable

in order for this to accomplish anything, I need to send the command to the server

Code: [Select]
commandtoserver($globalvariable);
as soon as that line is hit, the game crashes with no error code.

I have tried to do things like:

Code: [Select]
eval("commandtoserver($globalvariable);");
but it still crashes.

Is there a way around this?  How does blockland convert the string you enter into the chat into a variable so it can be sent as a command to the server?

I played around with this for a bit and I did the following:
Code: [Select]
==>commandtoserver('suicide');
==>commandtoserver($variable = 'suicide');
==>echo($variable);
62
==>commandtoserver(62);
Remote Command Error - command must be a tag.
==>commandtoserver($variable);

none of these caused me to crash, but then I tried this:

Code: [Select]
commandtoserver("suicide");and the game crashed

So now my question is, how can I convert a variable from a "" string to a '' string?  How can I get it so that this:

Code: [Select]
$globalvariable = randomgui_textentry.getvalue();
saves $globalvariable as a '' type string instead of a "" one?
Is the trick using a different kind of gui text box?

39
Off Topic / A new level of starfish
« on: May 18, 2011, 07:44:31 PM »
So today in PE we played a game of baseball.  It was a pretty intense game, with the lead going back and forth the whole time.  Right before PE ended, the last play of the game, my team was down 11 to 12 with 2 outs and the bases loaded.

Unfortunately, the person up to bat was Nate.  All you really need to know about nate, is that he is crippled.  I have only heard him speak once in my life, and he has some sort of growth deformity, and everyone feels kinda sorry for him.  Anyway, he was up to bat at the very climax of the game, and everyone knew that he didn't really have a chance.

Suddenly, one of the Mexicans in my gym class, Roberto, runs up and actually takes to bat from Nate, then stands at the plate, ready to bat.  Nate doesn't say anything and just kinda steps back.  The gym teacher look at Roberto and shakes his head, just saying "I don't think so."  Roberto stands there a while, then finally stands down.  However, instead of giving the bat to nate, he walks along the people in the batting line and keeps offering the bat to them.  He wouldn't give it back to Nate.  I couldn't believe anyone would be such an starfish.  Finally Roberto kinda throws the bat at Nate's feet, who fumbles to pick it up.  Nate might have been crying, but he kinda hid his face.

Nate ended up striking out, and we lost a game of PE baseball, but I have lost all respect for that Mexican who just set a new benchmark in being an starfish for a chance to win stupid game.

I don't really care if this backfires in a chorus of "OP is tribal to Mexicans" because this guy made me hate him for being such an starfish to a crippled kid.

40
I have been wondering a while now if it would be possible in a future update to make it so cuboid bricks could have their dimensions defined in-game.  I often find myself frustrated because I need a 1x5 brick that I forgot to enable, or realize that some design would look better if I had something that was 1 and 2/3 bricks high, or any infinite possibilities.  I imagine that it could be done similarly to how bricks are generated in this video.

Sure, special bricks such as ramps and windows can still be made into addons, especially since they also need a .dts file to work properly, but I think that the possibility for builds would expand greatly with this update.  Never again would anyone need to download addons for cuboid bricks!

I have no idea what impact this would have on datablocks, but I imagine that something will need to change drastically, so each cuboid brick doesn't take up its own datablock, and people don't crash from loading datablocks while in game.

Discuss

41
Off Topic / Who would actually want to hack my account?
« on: May 01, 2011, 09:56:08 PM »
So I keep getting these email messages saying that I requested a password change:

Dear Nexus,

This mail was sent because the 'forgot password' function has been applied to your account. To set a new password click the following link:

http://forum.blockland.us/index.php?action=reminder;sa=setpassword;snipped

IP: 64.231.244.161

Username: Nexus

Regards,The Blockland Forum Team.

I looked up the location of this IP and it goes to somewhere in Canada.
To the stalker trying to steal my account:  I know where YOU live >:)
But seriously, who would want to try to access my account?

42
Modification Help / FileObjects - Saving and Loading Data
« on: April 10, 2011, 10:42:29 PM »
Hi, and thanks for your responses ahead of time.  I am new to fileObjects, and have been trying to make a function that can save strings of data, preceeded by an identifying number, and another function that can find a string by that identifying number.

For example, if I wanted the text document to read as follows:
Code: [Select]
702 wharrgarbl
62 lemon pie
4901 taco bell mascot
7 new mexico

How would I check to see if a line that started with 4901 already existed, so I could replace it with "4901 taco bell mascot" in case it read something different?

This was my attempt at this:
Code: [Select]
function savedata(%id, %data)
{
%file = new fileobject();
%file.openforwrite("config/server/randomtest.txt");

while(!%file.isEOF())
{
%line = %data.readline();

if(getword(%line, 0) $= %id)
{
echo("data found, overwriting...");
%file.writeline(%id TAB %data);
%found = true;
}
}

if(!%found)
{
echo("data does not exist! creating...");
%file.writeline(%id TAB %data);
}

%file.close();
%file.delete();
}

However, this code just keeps overwriting the first line, and I'm not sure how to fix it, or where to start for the LoadData function that would go with it.

43
Off Topic / Running steam on Ubuntu
« on: March 03, 2011, 08:40:03 PM »
My computer recently died, and when it was repaired, had its main partition completely blanked.  I got Ubuntu 10.10 for it, and it has worked great.  I use Wine as an emulator so I can still run some of my games, but I am having some annoying issues with running steam.  At first, steam would always close itself whenever it finished logging in.  I later realised this was caused by the update news, and managed to disable it.  Now, I can access my library tab and friends list, but If I go to any other tab, steam closes.  Also, if I try to install a game that requires me to accept an eula, it closes when it tries to load it.  I suspect that steam is having issues getting information from the steam servers, since it closes for anything like that.  I read somewhere that steam needs something called gecko to run properly, but that should have been done when I configured wine for the first time.

I am really stumped here.  What does steam need to run things like the store tab, community tab, update news, and related things?

44
Modification Help / What is the point of continue; ?
« on: February 18, 2011, 11:13:08 PM »
I see this:
Code: [Select]
continue; often, especially in functions dealing with other files.  I do not understand why you need to tell the script to continue, since it will always do so unless you tell it specifically to stop.

Can someone explain this to me?

example from the advanced wrench GUI
Code: [Select]

if(getsubstr(%line,0,1) $= "#")
{
continue;
}

45
Off Topic / Enter Characters to Continue...
« on: February 15, 2011, 09:35:01 PM »
I tried to download something, and got this as my security picture.  I think it's "B - A - Fish ...? - M"



Post your fail security pictures.

Pages: 1 2 [3] 4