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

Pages: [1]
1
VCE onVariableFunction, How do I get <arg0>, <arg1> into <NAMED BRICK>?

Can a called function reach back and touch the caller?


Wrench and edit two bricks.

Code: [Select]
Name the first [Triggerbrick   ]

[x]0  [0   ][onActivate ][<NAMED BRICK>][fireRelay            ]
                               [Eventbrick         ]
[x]1  [0   ][onActivate ][<NAMED BRICK>][VCE_callFunction  ][testFunction          ][<var:brick:name>     ]
                               [Eventbrick         ]
[x]2  [0   ][onActivate ][Client              ][Chat Message       ][feedback---trigger--- ]



Name the second [Eventbrick   ]

[x]0  [0   ][onRelay                ][Self         ][VCE_statefunction ][testFunction           ][1 3]
[x]1  [0   ][onVaribableFunction ][Client       ][Chat Message      ][feedback---event---    ]
[x]2  [0   ][onVaribableFunction ][Client       ][Chat Message      ][hairy event logic here ]
[x]3  [0   ][onVaribableFunction ][<NAMED BRICK>][set Item          ][Duplicator             ]
                                                  [ ****        ]
****How do I get <arg0>, <arg1> into <NAMED BRICK>?

Can I return a payload to the brick that called?
Am I limited to preloading the Duplicator function on the triggerbrick, and after eventbrick logic decides, pong back a command to use it?

I'm trying to reduce the event spam across a forest of triggers. Can I abstract the common payload functions and pass the calling brick instead?

2
Help / Re: Main menu error?
« on: October 31, 2011, 12:28:09 AM »
How do we determine the minor version number of v20 our installation is running?

3
Help / Re: VCE Random Event
« on: October 31, 2011, 12:08:05 AM »
check

4
Help / VCE Random Event
« on: October 31, 2011, 12:07:41 AM »
The following describes VCE version 6.10, your experience may differ depending upon your version.
To determine your environment's VCE version: Wrench and open an event window, click the (VCE Client) button at the top. Then click on (changelog) and read for the latest version mentioned.


RANDOM:
The VCE random function has two modes of operation.
The first will generate a random decimal between but not including zero and one.
The second is a convenience function that will select a positive integer from a selected range.

How to set the RANDOM mode:
Random will read the modVariable's existing value to determine its mode.

  • If the modVariable does not exist yet: the default mode will generate a decimal number between 0 and 1.
  • If the modVariable contains a negative number: the default mode will generate a decimal number between 0 and 1.
  • If the modVariable contains a decimal number: the default mode will generate a decimal number between 0 and 1.
  • If the modVariable already exists and contains a whole number (0 1 2 3…)  then random will read that number as the min, Random's parameter as the maximum, and randomly select an integer within that range.


Wrench a nearby brick and enter these events. Then un-equip and click on it.

Code: [Select]
[x]0  [0   ][onActivate ][Client ][ChatMessage      ][Begin <var:global:time>  ]
[x]1  [0   ][onActivate ][Client ][ChatMessage      ][Initially generatednumberA is <var:brick:generatednumberA> ]
[x]2  [0   ][onActivate ][Self   ][VCE_modVariable ][Brick ][generatednumberA      ][Random ][4   ]
[x]3  [0   ][onActivate ][Client ][ChatMessage      ][Afterward generatednumberA is <var:brick:generatednumberA> ]
[x]4  [0   ][onActivate ][Client ][ChatMessage      ][------Finished------ ]
[x]5  [0   ][onActivate ][Client ][ChatMessage      ][   put a space in this box  ]
[x]6  [0   ][onActivate ][Self   ][VCE_modVariable ][Brick ][generatednumberA      ][Set    ][-2    ]

Note the first time thru the variable has not been created yet. Click the brick and run it a few times.
On Line 6, change the SET value to see how pre-setting the variable changes the output.
On Line 2, change the maximum Random value. Note it is ignored if default mode is used.
Use your pageUp and PageDn keys to scroll the chat area.

The convenience/integer range mode is the most common way RANDOM is used in Blockland.
You must preset the modVariable (in a prior event line) to enable output greater than 1 and match the examples.
Common values to preload are zero and one. The stored number becomes your minimum. The number you entered after the random command becomes your maximum value. The resulting random whole number will be Set on the modVariable, completely replacing the previous contents.

5
Help / Re: Shutdown Faceless Server - blockland.app
« on: October 19, 2011, 12:30:47 AM »
sorry for the repetition, I've dealt with too many blackberries today.

6
Help / Shutdown Faceless Server - blockland.app
« on: October 19, 2011, 12:29:18 AM »
How do I shutdown a Faceless Server?


Code: [Select]
./Blockland.app/Contents/MacOS/Blockland -dedicatedLAN -map BedroomStarted from the command line, Blockland.app does NOT go into an interactive mode at the console. It just dumps Std-out to the screen.

I issue cmd-c and it halts. But this does not safely shut down the server.
It just kills it. Wham!


How do I access the console on a faceless server? So I may issue Quit();

If I connect with blockland on the same host, I am able to perform a save from the GUI. But when I go to the console and issue Quit(); it only quits the Client. The faceless server remains up.

How do I safely shutdown a Faceless dedicated Server?

7
Help / Re: blockland.exe command line options
« on: October 16, 2011, 02:29:44 AM »
THX much.

Is it possible to auto-load a saved.bls?

If server restarts I can get both dedicatedLAN instances up, but they would be empty maps.


8
Help / Re: Does blockland work on 1.5.8 Mac OSX Yet
« on: October 16, 2011, 02:13:15 AM »
Reply to the OP,

YES

Both version 19m and 20m work perfectly on my MacBook Pro and MacPro and happily work as servers and clients on very large builds daily 6K+.

I experienced issues with hackintosh v19m, 20m.


9
Help / Re: Does blockland work on 1.5.8 Mac OSX Yet
« on: October 16, 2011, 02:08:10 AM »
I'm wondering this too. I've mentioned I had a Hackintosh a few months back and I would like to have it back. The thing is I need to make sure the server doesn't spontaneously crashes.


=============================
Version 19 - on hackintosh 10.6.8

I am successful playing v19 on Hackintosh [Dell mini10v ]
But the authorization system will NOT accept my purchased ID key.

We run a LANserver on an AppleMac running 10.6.8 - it does accept the key.
We connect the Hackintosh and others using BLdemo to the Mac server and they are all happy with 10K brick builds. The speed is quite amazing on a tiny atom processor Netbook.

=============================
Version 20 - on hackintosh 10.6.8

The authorization system WILL accept purchased ID key!
Version 20m runs incredibly slowly on my Dell mini10v. Lots of LAG.

Changing settings doesn't seem to help much. It's unacceptable for use.
Quit version 20, start up version 19 = snappy performance.

=============================
Thanks for moving to a multi-user mindset in version 20.

10
Help / blockland.exe command line options
« on: October 16, 2011, 01:48:40 AM »
What are the arguments for blockland.exe?
Can I change server configuration from the command line?


Most forum posts mention  -map <mapname>
But the executable is mum on its existence. Are there other secret options?

Code: [Select]
./Blockland.app/Contents/MacOS/Blockland -help
% Activating package: Help

Torque Demo command line options:
 -log <logmode> Logging behavior; see main.cs comments for details
 -game <game_name> Reset list of mods to only contain <game_name>
 <game_name> Works like the -game argument
 -mod <mod_name> Add <mod_name> to list of mods
 -console Open a separate console
 -show <shape> Launch the TS show tool
 -jSave <file_name> Record a journal
 -jPlay <file_name> Play back a journal
 -jDebug <file_name> Play back a journal and issue an int3 at the end
 -dbgPort <port> Set debug port (default = 28040)
 -dbgPassword <pass> Set debug password (default = password)
 -dbgEnable Start game in debug mode
 -dedicated Start as dedicated server
 -connect <address> For non-dedicated: Connect to a game at <address>
 -mission <filename> For dedicated: Load the mission
 -help Display this help message

Pages: [1]