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

Pages: 1 ... 21 22 23 24 25 [26] 27 28 29 30 31 ... 238
376
Suggestions & Requests / Re: Press enter to "send" events
« on: October 29, 2013, 01:49:29 AM »
Code: (nexus') [Select]
WrenchEvents_Window.getobject(1).accelerator = "enter";

Wrench_Name.altCommand = "wrenchDlg.send();";
Wrench_ItemRespawnTime.altCommand = "wrenchDlg.send();";
Wrench_Window.getobject(4).accelerator = "enter";

wrenchBot_Name.altCommand = "wrenchBotDlg.send();";
wrenchBot_ItemRespawnTime.altCommand = "wrenchBotDlg.send();";

WrenchSound_Name.altCommand = "wrenchSoundDlg.send();";
WrenchSound_Window.getobject(1).accelerator = "enter";

WrenchVehicleSpawn_Name.altCommand = "wrenchVehicleSpawnDlg.send();";
WrenchVehicleSpawn_Window.getobject(1).accelerator = "enter";

so close, do button commands not get triggered by just changing the accelerator?

It turns out, when there are text edit controls in a gui control, no accelerators work except escape.  The text edit will just intercept everything else unless you decide to mess with global keymapping stuff like in the RTB overlay, which is kinda overkill.  My solution was to just make it so hitting enter in one of the text boxes just calls the same command as the button.

377
Gallery / Re: Fab's first 1:1 scale spaceship!
« on: October 28, 2013, 08:06:21 PM »
I think it is supposed to be studs long, not wide

378
Suggestions & Requests / Re: Press enter to "send" events
« on: October 28, 2013, 07:55:06 PM »
change wrench dialog button accelerators to enter?

Turned out to not be quite as simple as that, but close enough.
https://dl.dropboxusercontent.com/u/20459676/Betas/Client_EnterToSendEvents.zip

379
Off Topic / Re: Experience with rude customers?
« on: October 28, 2013, 07:06:26 PM »
I once opened a mexican whore house in a love rp and this dumb friend kept spinning around with his paint can and painting everyone black.  Can't have a mexican whore house with black prostitutes.

380
General Discussion / Re: What is the point of ChatBots? (Poll added)
« on: October 28, 2013, 07:02:28 PM »
I have found that chat is the best way for a client sided mod to output something to someone else in the server.  Like my terragen mod used chat lines to let other clients know when they had become an "adventurer" where the mod tracked them and built landscape around them.  However, if the entire point of a mod is to respond to chat with more precanned chat, then that is probably not a useful mod.

381
Modification Help / Re: Wand ProjectileData [Solved]
« on: October 28, 2013, 06:37:25 PM »
thanks I did it.

It might be a good idea to post your solution for other people searching for something similar in the future.

382
Modification Help / Re: Variable wont subtract
« on: October 28, 2013, 06:35:08 PM »
Your nested if statements do not stack like you think they do.  Use brackets.
When you write:

if(a)
if(b)
if(c)
do_this();
and_this();

It is interpreted by the compiler as:

if(a)
{
    if(b)
    {
        if(c)
        {
            do_this();
        }
    }
}
and_this();

384
thankyouthankyouthankyouthankyou
I'll test it now

I have one more question now



(typo in the image 0 deg. not 90)
imagine the red guy is the player
how do I know if he is looking down below 0 degrees


Just look at the last component of the muzzle vector.  That is the z component.  If it is less than zero, then it is down.

385
Off Topic / Re: yoteslaya died like 2 days ago.
« on: October 25, 2013, 06:08:45 PM »
Looked on http://forum.blockland.us/index.php?action=mlist;sa=search
No matches found for "yoteslaya"

edit: oh, alright then

386
Modification Help / Re: 123 Commands
« on: October 25, 2013, 12:24:13 PM »
Other than that is it correct?

Assuming your variables and objects work, then yes.

387
Modification Help / Re: 123 Commands
« on: October 25, 2013, 12:09:16 PM »
There is no %client argument in a client command.  What would the server send there?  The client knows who he is, and there is only one server so there is no need for clarification in the function.

388
Modification Help / Re: commandToServer With A Variable
« on: October 25, 2013, 01:30:11 AM »
Unashamed self promotion: http://forum.returntoblockland.com/dlm/viewFile.php?id=3499

relevant bit:

Code: [Select]
		%find = "_";
%replace = " ";
%cmd = "\'"@ getword($servercommandgui::command_[%key,%x], 0) @"\'";
for(%a=1; %a<getwordcount($servercommandgui::command_[%key,%x]); %a++)
%cmd = %cmd @ ",\"" @ strreplace(getword($servercommandgui::command_[%key,%x], %a), %find, %replace) @ "\"";
eval("commandtoserver("@%cmd@");");

Where $servercommandgui::command_[%key, %x] will be a string like "messagesent potato" or "slay rykuta"
The first word is the command and each word after is an argument.

389
Games / Re: New ROBLOX Water
« on: October 25, 2013, 01:22:18 AM »
The water looks good, but it also looks very out of place.

Yeah it looks like a random HD texture in the middle of an otherwise minecraft quality looking game.

Pages: 1 ... 21 22 23 24 25 [26] 27 28 29 30 31 ... 238