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

Pages: 1 2 3 4 5 [6] 7 8 9
76
Drama / ROBLOX
« on: April 20, 2008, 07:08:39 PM »
Discuse ROBLOX experiences.
I tried a Dm today, I couldn't move with the mouse when I had a weapon selected which made maneuvering difficult because it was a bunch of blocks floating in the air(i.e I kept falling off the edge because when I try to strafe... my mini fig turns and walks off, no matter how gently I press the button.)

However I did get on a better server and had some fun, but it was short lived(LAG ATTACK).

77
Modification Help / EXT system
« on: April 10, 2008, 09:32:52 PM »
A new project of mine is an extension system(EXT) that basically is a system to build add-ons upon, with many features for easy(and organized) functioning.

Features
•Toggling of functions / mods
•Easy pref saving and loading
•Saves client EXT variables as well
•Very organized way to sort all of this data
•More features coming soon as well as more advanced versions of existing ones

Anyways, I'm looking for feedback as to what I should add for the release.
So far the structure is as follows:
bold = folder

EXT
-VARIOUS
--Gunshoot script(gun editing script)
-RPG SYSTEMS
--Gold system(starting gold, building gold, items cost gold, bounty system)
-EXT DM
--Phaser weapon(incomplete)
--EXT DM(minigame functions)
--EXT TDM(space's TDM functions/packages)

Notes:
gunshoot script is an improved version of the gunspread script. It includes saving/loading of gun settings along with some other new features



Suggest some scripts/features if you don't mind.

I also need some ideas for EXT DM and EXT TDM. I have a few things planned, however, like a fort wars system.

78
Modification Help / Status bar and you!
« on: March 29, 2008, 08:57:09 PM »
This is a simple status bar that allows scripters to display info in a little window, that stays unfocused so you can still move & turn ect. with it open.


For clients:

Simply download this:
http://www.mediafire.com/?zzgma90129u
and extract to blockland/add-ons/client

Now you can use your status bar on status bar enabled servers(be sure to bind a key to toggling it and turn it on!)

For developers:

Since you should know how to make .cs files Im just going to put up the codes and explain them. This is a simple little add-on but I released it so that
1) new coders could get a feel for client-server relations
2) we could use a universal GUI so clients have a 1-time download
3) save coders time when developing GUIs

anyways, lets take a look here.
Quote
StatusB.cs
Code: [Select]
//statusbar serverside

function servercmdSendStatusData(%client){
%i=0;
while(%i<$stcount){
%data = %data @ $stname[%i] @ ":" @ stvarget(%client,%i) @ "|";
%i++;
}
%client.hasgui=1;
commandtoclient(%client,'ReStatusData',%data);
}
function servercmdUpStatusData(%client){
commandtoclient(%client,'UpStatusData');
if(!%client.hasgui){
schedule(1000,0,"nohavegui",%client);
}
}
function nohavegui(%client){
if(!%client.hasgui){
messageclient(%client,'',"Goto the forums, modification discussion, Status bar and you!. First post, download the client files.");
}
}
What this script does:
1) handles the commands for sending data & telling the client to request data
2) if they dont have the gui it tells them to get it

Simply put
Code: [Select]
servercmdUpStatusData(%client); in places where the variables shown on the status bar are changed, or stick it in a loop. Clients can also say /UpStatusData to update the statusbar.


Quote
ST.cs
Code: [Select]
if(!$stmaps){
$stname[0]="Cash";
$stcount++;
$stname[1]="Hunger";
$stcount++;
$stname[2]="Food";
$stcount++;
$stname[3]="FoodSell";
$stcount++;
$stname[4]="Class";
$stcount++;
$stname[5]="Time";
$stcount++;
$stmaps=1;
}

function stvarget(%client,%i){
if(%i==0){
return stvar0(%client);
}
if(%i==1){
return stvar1(%client);
}
if(%i==2){
return stvar2(%client);
}
if(%i==3){
return stvar3(%client);
}
if(%i==4){
return stvar4(%client);
}
if(%i==5){
return stvar5(%client);
}
if(%i==6){
return stvar6(%client);
}
}
function stvar0(%client){
if(!%client.money){%client.money=0;}
return %client.money;
}
function stvar1(%client){
if(!%client.hunger){%client.hunger=0;}
return %client.hunger;
}
function stvar2(%client){
if(!%client.food){%client.food=0;}
return %client.food;
}
function stvar3(%client){
if(!%client.foodsell){%client.foodsell=0;}
return %client.foodsell;
}
function stvar4(%client){
if(%client.hobo){%class="Hobo";}
if(!%client.hobo){
if(!%client.mafia){
%class="Normal Person";
}
if(%client.mafia){
%class="Mafia";
}
}
return %class;
}
function stvar5(%client){
if($hoboday){%class="Night";}else{%class="Day";}

return %class;
}
function stvar6(%client){
return;
}
This is an example script for entering the variables that show up on the status bar, taken from my hobo game.
This script:
1) sets up the variables( see the top portion )
2) handles the functions that give the variables to the function that sends them to the client.

To set up your variables
Code: [Select]
if(!$stmaps){
  $stvar[0]="name1";//name of the first variable
  $stcount++;//add one to the count of variables
  $stvar[1]="name2";//name of the second variable
  $stcount++;//remember to do this after each name you define
  $stmaps=1;
}

To give the variables to the updating functions
Code: [Select]
function stvarget(%client,%i){
if(%i==0){//if the variable 0 is requested
return stvar0(%client);//give it to them
}
if(%i==1){//same as above, but for variable 1
return stvar1(%client);
}
}
and
Code: [Select]
function stvar0(%client){
                return %client.money;// send the clients money
}
function stvar1(%client){
                if(%client.yeti){
                                       %t="yes";//it will send yes
               }else{
                                       %t="no";//it will send no
               }
               return %t;//send yes/no
}

Advanced:
Changing formating:
Code: [Select]
while(%i<$stcount){
%data = %data @ $stname[%i] @ ":" @ stvarget(%client,%i) @ "|";
%i++;
}
this is the default formatting see in StatusB.cs
to change it, take this line
Code: [Select]
%data = %data @ $stname[%i] @ ":" @ stvarget(%client,%i) @ "|";
Quote
var1:0|var2:1|var3:yes|

and change it.

Code: [Select]
%data = %data @ "[" @ $stname[%i] SPC "/" SPC stvarget(%client,%i) @ "]";
Quote
[var1 / 0][var2 / 1][var3 / yes]


Thats all, enjoy this little resource. Tell me if you encounter any errors or if I did something horribly wrong and should be sent to hell.

79
Modification Help / Rkys Projects
« on: March 06, 2008, 09:37:07 PM »
As long as were talking projects...
RPGKIT
The continuation to my rpg, recoded from scratch and 150% more efficient.
Features
•Full resource system, with resource building & painting, cutting trees, trading, ect.
•Ability system, with tiered abilities, and other functions
•Class system, class abilities, multi classing, its all there.
•much much more.

Chance of being released
65%
Chance of released to only people I trust
85%

Current status:
Hold, working on other stuff.

DAB
A new project of mine, I dont want to give too much info but it involves lots of bots and lots of destruction.
Features:
•Bots
•Destruction

Chance of being released
35%
Chance of being released only to people I trust
95%

Current status:
Working on it.

Bakora
An old project, I might revive it in a bit.
Features
•chat bot
•responds to commands
•records what is said to talk

Chance of being released:
0%
Chance of being released only to people I trust:
0%

Current status:
Hold.

Dungeons
Behold! yonder text dungeons!
Features:
•make your own dungeons!
•stays true to old styles of text adventures

Chance of being released:
100%(was released)
Chance of being released only to people I trust:
0%(was released)

Current status:
Hold, but I have plans for it.

Hobo Rpg
This is my newest project and is more of a gamemode(see: zombie mod) than a true Rpg
Right now I'm ironing out the details, but so far many of the systems are up and running.

Chance of being released:
unknown
Chance of being released only to people I trust:
unknown+ 15%

I will post updates, GUIs, and other stuff here.
I will also answer any questions you might have about a project.(except for "will you email/give it to me?")

80
I want to make bots run away from a specific player, Ive tried a few things but it just ends up in awkward zigzag running patterns among other things, so I need a bit of help. Any ideas?



Thanks for any help in advance.

NVM, found a way(incase someone has this problem or if I'm "doing it wrong!!!1!"):
Code: [Select]
%curx=getword(%bot.getposition(),0);
%cury=getword(%bot.getposition(),1);
%newx=0;
%newy=0;
%alx=getword(%bot.run.getposition(),0);
%aly=getword(%bot.run.getposition(),1);
%newx+=(%curx-%alx)*3;
%newy+=(%cury-%aly)*3;
%loc = vectorAdd(%bot.getTransform(),%newx SPC %newy SPC 0);
Then move to %loc.

81
General Discussion / GASP!
« on: February 27, 2008, 08:01:33 PM »
Blockland has advertisements!

82
Drama / OMG HAET
« on: February 13, 2008, 09:49:33 PM »
OMG LIEK I ON DIZ GUISE SERVER NAMED BADSPOT2 N HE SAY HE BADSPOT BRUTHER AND I R LIEK PIECEFULY HAMMARING @ NUBZ N I LEIK OMG WAI NO DEATHMATCH N HE LIEK BAN ME 4 "NUB!!"!!111!!!

OMG HOW MUCH U HAET HI!M?!?!>!?!

disclaimer:dont take srsly

83
Drama / Damnit roblox
« on: February 11, 2008, 09:55:06 PM »
Ugh, still alot of parasites/robloxians going around on youtube videos posting crap like
"olol you cant build in blockland now can u, get roblox it the funner!"

Quote
dude man blockland is so boring roblox is so funner dude the graphics isnt that much to worry the fun is the worry

Quote
ROBLOX is alot better and free! LOL

This is B-U-L-L-S-H-I-T! bullstuff!

Quote
Hey can you build anything "Good" there? Don't think so, and 20 bucks O_O WTH!

Code: [Select]
BL Sucks Roblox is better
Ranging from 4 days ago to about 3 weeks ago.

Basicly you just see "ROBLOX IS BETTER" everywhere. I think war were declared. Discuse.
note: last time I observed something it started a flame war. Seriously? stfu if your post includes the words "SUCK" or "handicaps" or anything in all caps that isnt a quote. This is for discuseing, not for "OLOL ROBLOX R SUCK LETSA GO KILL THEM".

84
Drama / Updates on various "things"
« on: February 03, 2008, 03:00:00 PM »
I was lurking around BL:S forums today.

•Now named Project A
•Still nothing done except for some maps
•Finally realized they needed to buy the source engine


That is all.(seriously I was hoping there would be more-- its been over a month since they said they'd have a beta)

Edit:

IN other news:
•stole retail pistol model made it a rtb weapon
•I think that qwertys retail demo brick hack is down now

85
Modification Help / Colorset wonders.
« on: February 01, 2008, 04:42:29 PM »
I wonders... Would it be possible to add a color to the colorset after the paintcans have been made, then make a special paint can for the extra colors?

If so, how would I add a color? I know how to set a color, but no idea about the adding.

86
Modification Help / Miniexecs...
« on: January 25, 2008, 06:08:17 PM »
A quick question, is it possible to do something like this:
Code: [Select]
$Scriptpackage_scriptone=0;
$Scriptpackage_scripttwo=1;
if($Scriptpackage_scriptone){
function servercmdscriptone(%client){
echo("one");
}
}
if($Scriptpackage_scripttwo){
function servercmdscripttwo(%client){
echo("two");
}
}
To enable and disable parts of the script without using other files and execs?
No, I do not mean update the file ingame by just saying $script=0;
I mean to pick and choose which parts load at start-- erm, when it execs-- without commenting them out ect.


87
Modification Help / Basic torque script tutorial
« on: January 09, 2008, 04:57:53 PM »
This is a basic tutorial that will:
1) get you started with torque
2) teach you various things that are commonplace in code

Things it will not do:
1) teach you how to make insane mods in a matter of minutes like many people think is possible because they have no knowledge of coding.

A suggestion for those of you with your fingers on ctrl-c and your mouse ready to drag and select:
I heartily suggest that you write out the scripts show rather than copy and pasting, if you cant put foward that effort, you'll never be a scripter.


Lets get started

+--Chapter one: scripting in general--+

Scripts are what make blockland function as a game, scripts handle everything from laying down a brick, to respawning that guy you just killed. Scripts have 4 things(mostly):
logic
objects
functions
variables

All scripts will at least use the first, logic. Regardless of what you think, all scripting contains logic to it. A script without this will not function, or at least, not the way you want.

Objects:
 objects are as the name suggests, objects. You can use objects in your scripts,   wheher your making a bot, or just modifying a player.
 objects can have variables applied to them, see the variables section.

Functions:
 functions are the actions of a script, if you only had Logic, Objects, and Variables, you would just be saying "player brick" instead of "player lay a brick", for example.

 many functions are prebuilt into torque, but you can of course make your own, so if you have to do something many times, you can stuff it in a function and then just call that every time you need to do it.

Variables:
 Variables store data, whether its a number, line of text(string), object, or anything else, variables are your basis for storing info about objects, and for saving preferences and the such.

 Objects can have variables applied to them, so you could give each player a variable and then call upon it from the player, to check/store something unique to the object.


+--Chapter 2: applying knowledge--+

Now that you have a background of scripting, lets start with something simple. Open blockland to the title screen, and open the console.

You can enter things directly into the console to test, or just see what happens.
Lets enter something now, say
Code: [Select]
echo("This was a triumph");into the console, make sure you included the semi-colon, or else you will get an error. Once you are sure you have it right, press enter.

On the line below your text, This was a triumph should have appeared. Echo is a function that sends text or other data to the console, it is useful for debugging, and we will use it for dealing with strings. "This was a triumph" was our string, it is a line of text, a string of characters, if you would. There are a few things you can do to modify strings. This time, put in
Code: [Select]
echo("I\'m making a note here:\n huge success.");I'm making a note here:
huge success
should've appeared.
\' lets us place a ' in the string, remember this because if you simply put it in without the \ it will give you an error, because the compiler thinks that the ' means the string is closed, the text is over, so it gets confused when it sees that you are still going.
\n creates a new line. There are many things \ can do in strings, so remember it.

Now, lets establish a variable. Go ahead and put in
Code: [Select]
$text = "Aperture science";Nothing will be spit out at us, but we have set up a variable. Now we can call upon $text...
Code: [Select]
echo($text);
It said Aperture science! Because we defined the variable, it found what we set it to, and told us that. Lets take a second to see what $ means.

$ defines a global variable, a global variable can be used over again without being set to an object.
% defines a local variable, a local variable is lost after the function ends, unless it is set to an object, in which case it will stay with the object untill the object is deleted.

Now, put in
Code: [Select]
$text1 = "We do what we must";
$text2 = "Because we can.";

We have set $text1 and $text2, so lets use them.
say
Code: [Select]
echo($text1 @ $text2);It will say
We do what we mustBecause we can.
@ is a linking symbol, it puts together variables, but it doesnt add a space, new line, or anything.
Lets give it a space,
Code: [Select]
echo($text1 SPC $text2);It will say
We do what we must Because we can.
SPC is a linking word, that adds a space between the two variables.
But what if we want a new line?
Code: [Select]
echo($text1 @ "\n" @ $text2);it will say
We do what we must
Because we can.
first, we linked $text1 with the newline symbol, then we linked that with $text2
resulting in
Code: [Select]
echo("We do what we must\nBecause we can.");Lets try a different kind of variable now.
say
Code: [Select]
$num = 5;This will set $num to the number 5, this is a numerical variable, now we can preform mathematical tasks on the number.
say
Code: [Select]
$num = $num + 1;in this case, we added 1 to the variable. We set the variable to itself + 1, so its now 6. Another way we could do this is
Code: [Select]
$num += 1;+= adds to the variable, so we saved some space.
now say
Code: [Select]
$num *= 2;This will multiply the number by 2, resulting in 12 or 14 depending on if you tried the +=.
Lets see our number.
Code: [Select]
echo($num);This is good and all, but what if we wanted to double a number a few times over?
That is where while() comes in.
Code: [Select]
While($t<5){$num*=2;$t++;echo($num);}We have alot of stuff going on, lets go over it in english

While our variable $t is less than(<) 5
{
   multiply $num by 2
   add one to $t
   tell us what $num is now
}

A while loop continues to do whatever is inside its brackets( { } ) untill its condition is met(in this case, $t has to be 5 or greater because it continues untill $t is not less than 5)
$t++; is a shortcut to adding one to a variable, everything else you should have seen before.
Because $t is undefined, it becomes 0, by the way.

In a normal script you could write it out like
Code: [Select]
While($t<5)
{
$num*=2;
$t++;
echo($num);
}
but because we are in the console, we have to scrunch everything up onto one line.

Lets try something that we will use in our first real script, say
Code: [Select]
echo(getrandom(1,30));Make sure you have the right amount of parenthesis, functions within functions can get confusing.
and it will spit out a number between 1 and 30!
getrandom(min,max) is a function that gives you a random number between the min and max numbers you specify.


+--Chapter 3: My First Script--+

Its time to start your first script, so open up notepad/w/e you use to code.

We are going to make a dice rolling script, so first, lets make the logic.

player says /dice
get a random number between 1 and 6
tell the player

That was easy. Now lets script it.
put in

Code: [Select]
function servercmddice(%client)function marks the start of a fuction, servercmddice is the name. If a function is a servercmd, it becomes a / command, so if someone says /dice it will be called. the parenthesis are what the command takes in-- for example, if you say /fetch rky, there would have to be a variable in the parenthesis to hold the name you say, rky. %client in this case is whoever says /dice, if we added another one, it would be what they say after /dice.

Code: [Select]
{the bracket marks the start of the function

Code: [Select]
   %num = getrandom(1,6);Here we are setting the local variable num to a random number between 1 and 6.
We dont need to keep num later, so it is a local variable not applied to an object.
A good habit to get into is to add spaces or an indent here, since this code is inside of the function, it helps to organize because now it doesnt look like a single block of code-- you can clearly see what is inside of what, and it makes things much easier to manage. I suggest a tab or 3 spaces, but 1 space works as well, I wouldnt suggest more than a tab though.

Code: [Select]
   messageclient(%client,'',"You rolled a" SPC %num);messageclient() lets us send a message to someone, and that person only.
%client is the person who said /dice, '' is something you dont really want to mess with, it deals with more complicated things and is not what we want so we leave it blank, and then we have the string to telll the user.

You rolled a 5

is an example of what it would say, remember, SPC connects two strings or variables into one string with a space seperator, so You rolled a is combined with the value of %num
Code: [Select]
}
and this bracket ends the function, closing it.
goto save as, scroll down the file type list to all files and save it as DiceScript.cs in your blockland/add-ons folder.

Now if you start a server, check DiceScript, and now you can say /dice if you did it right!

Tutorial in progress-- expect more later

88
Drama / Re: I'm back morons
« on: January 05, 2008, 08:56:56 PM »
You didnt think it really was that easy did you?


mercenary... well its better to put it in your words:
You are a...
Quote from: mercenary
handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps handicaps
Quote from: mercenary
ROFL you moron moron  MORON MORON MORON MORON   MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON
Quote from: mercenary
  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON  MORON MORON MORON MORON 

OMG moron!!! ahhh moron moron moron go on builder pandaing server moron moron moron boy


well,
Quote from: mercenary
Now go and rethink your life.

89
Modification Help / Making an item pickup able no matter what
« on: January 03, 2008, 09:21:30 PM »
How would I make a new item pick up able no matter what?
Im in a minigame and It wont pick up, so how should I make it pickupable?
Code: [Select]
new item(){
datablock = nametoid(sworditem);
};

90
Drama / Server Advertisers
« on: January 01, 2008, 09:44:11 PM »
So, This guy comes in and advertises Scout Recon's medieval rpg server, and leaves. So I go and I advertise "cigaretteGY MCcigaretteS SERVER FOR cigaretteS WHO LIKE TO cigaretteUP SERVERS BY ADVERTISING cigaretteGY SERVERS" and they banned me for advertising servers XD oh the irony.(also considering that, I was already in the server I was advertising XD)

Pages: 1 2 3 4 5 [6] 7 8 9