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

Pages: 1 ... 81 82 83 84 85 [86]
1276
Modification Help / How to use trace
« on: April 15, 2012, 10:15:43 PM »
What Is Trace?

Purpose
Use the trace function to enable (or disable) function call tracing. If enabled, tracing will print a message every time a function is entered, showing what arguments it received, and it will print a message every time a function is exited, showing the return value (or last value of last statement) for that function.

Syntax
Trace(enable); enable – A boolean value. If set to true, tracing is enabled, otherwise it is disabled. (trace(1); or trace(0);)

Returns
No return value.

Definition from Garage Games.


Example 1

Now you may be thinking, "Elm, I still don't know what to do!". Well let me show you a few examples below.

Now let's say we want to know what happens when a player jumps. Well, start up a server and enable tracing, jump, then disable it really fast. Now open up your console and you should see a lot of junk, scroll up till you see "Entering Jump(1)", it should look like so:



Everything having to do with jump I highlighted, and I will explain to you below.



So since we are the host, we can see server sided things going on. The server sided function that gets called on when a player jumps is armor::onTrigger. Not going to go too much into detail on what it does, how it works, etc.

The client sided function that gets called as you can see is Jump(boolean). You can see what arguments it takes and what it returns;



Example 2

Let's try another example, moving forward! So what happens when we move forward? I'll show you. Once again, be at your own server (don't have to be, but it makes looking through your console a bit easier), enable tracing, move forward a bit, then disable it quickly.

Now you should see a lot of stuff again which will look somewhat like this:



Notice the selected area:



That is the function that gets called, the arguments it took, and what it returned when you moved forward.



Also

When tracing certain functions, there may be a lot of stuff that goes on between the entering of the function and the leaving of the function so try and know what you are looking for.

I wrote this because there are a lot of questions users ask that if they knew how to trace, they could answer themselves. Any questions or concerns, drop a message below.

1277
Add-Ons / Re: Chat Emoticons for My Little Pony
« on: April 15, 2012, 09:24:31 PM »
>grabs handgun
>loads handgun
>Self Delete

I dont want to live on this planet anymore.

1278
Modification Help / Re: Bot Warriors
« on: April 14, 2012, 04:58:00 PM »
Reserved

1279
Modification Help / Bot Warriors [Alpha]
« on: April 14, 2012, 04:57:18 PM »
Needs better logo if anyone wants to make one for me.

Bot Warriors is a turn based fighting game, where you train your bots, earn levels which in turn, gives you skill points you can use. The current skills you can use them on is, health, strength and defense.

Future updates will include weapons, potions, a currency system or betting system, armor, character customization and a tournament type thing held on weekends.

This post is pretty blank right now, just started working on this. You can track the progress of Bot Warriors on my website, which you can get to from here, but I can't post a link.

If you can join my server, and leave some suggestions here on this topic that would be great! If not, well I hope you can later.

1280
Add-Ons / Re: Blockland Glass
« on: April 14, 2012, 04:00:12 PM »
There is NO way to have an ENTIRELY working GUI downloader that has full functionality for ALL gui elements, that is ONE HUNDRED PERCENT safe and is capable of EVERYTHING any other client gui can do. It's just not possible. The following is possible:
  • safe
  • includes all gui elements
  • functional
  • allows for complicated, custom script elements like list handling, etc.
You can choose any two.

Quit acting like you know everything..

1281
I remember I had a problem like this, I believe it actually has something to do with setting the angleId incorrectly.

1282
Add-Ons / Re: Blockland Glass
« on: April 13, 2012, 11:05:35 PM »
Ill check this out.

1283
General Discussion / Re: VERY IMPORTANT - THIS GUY - COMPLETE handicap
« on: April 11, 2012, 02:36:00 AM »
Inb4movedtodramasection

Ontopic:

Never saw him before..

1284
Modification Help / Re: Player Type Functions?
« on: April 09, 2012, 10:44:42 PM »
When are onAdd, onRemove, and onNewDatablock called and what are their vars?

I think you mean arguments, not variables.

1285
Modification Help / Re: messageclient(); does not work?
« on: April 09, 2012, 03:26:28 AM »
the last line it says errors THERE ARE NONE

this is from console
Code: [Select]
Loading Add-On: Script_AutoMessage
Add-Ons/Script_AutoMessage/server.cs Line: 31 - Syntax error.
>>> Some error context, with ## on sides of error halt:
 

  if(%random == 3)

  {

  commandtoserver('messagesent',"Welcome to my server" SPC %name);

  }

 

  if(%random == 4)

  {

  commandtoserver('messagesent',"Yay more people are joining");

  }

 

  parent::onconnect(%client);

}



activatepackage(##A##utoMessage);
>>> Error report complete.

You have:

}
activatePackage(autoMessage);


It should be:

};
activatePackage(autoMessage);

1286
Modification Help / Re: messageclient(); does not work?
« on: April 08, 2012, 10:25:13 PM »
found the error
Code: [Select]
commandtoserver('messagesent',"Hey " @ %name @ " how ya going.);see the end does not have an "

edit: still says errors down at the parent

parent::onConnect(%client);

1287
Modification Help / Re: Point taxing doesn't save
« on: April 08, 2012, 10:17:07 PM »
No, silly. It doesn't work on me either.

Just use file objects and like HeadCrab said, ditch VCE.

Pages: 1 ... 81 82 83 84 85 [86]