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

Pages: 1 ... 8 9 10 11 12 [13]
181
for something like this, it's easier to just use %final = %targets[mFloor(getRandom() * %targets)];
That has one more function call than it needs.

182
Just store the candidates inside a temporary array and use %winner = %arr[getRandom(0, %lengthOfArray - 1)]

Edit: I was under the impression that getRandom(0, -1) would bar you from getting negatives (in contrast to getRandom(-1)), but it turns out it's the opposite. Use getRandom(%len - 1).

183
Modification Help / Re: XML Parser
« on: June 13, 2015, 08:13:41 PM »
You'll learn that it's much easier to read and it probably parses faster, not that it matters a whole lot, along with other miscellaneous advantages.

184
Modification Help / Re: XML Parser
« on: June 13, 2015, 07:42:12 PM »
Out of curiosity, why use xml when there are much leaner alternatives?

185
It's completely possible but impractical for most virus creators, since their software is typically targeted at tech-illiterate people who probably don't even know how to use a sandbox.  I'd say you have nothing to worry about.

186
Modification Help / Re: Even MORE questions
« on: June 13, 2015, 11:07:33 AM »
The implication being that you want to disconnect anyone who's not compatible (or require that the information be known before any action) of course.  You shouldn't use it for anything else really.

187
Modification Help / Re: Even MORE questions
« on: June 13, 2015, 12:04:10 AM »
I would recommend that you do NOT follow Val's advice as you're likely to accidentally overwrite somebody else's mod (or have yours overwritten). Use Amade's point #2 instead. It's the safe route.
No, use my method.  The problem is the usage of it isn't standardized and we have lots of mods clashing together.  I agree we shouldn't add to the problem, but I disagree that the solution is using a workaround.  The solution isn't to avoid it and fall back to worse methods, its to make an effort to fix the problem.  The connection argument system was made for a reason.

188
Modification Help / Re: Even MORE questions
« on: June 12, 2015, 10:51:33 PM »
For #2, you should probably have the mod send the indicator that it has the add-on through the connection arguments.  This is explained pretty well in this topic, along with an example:
http://forum.blockland.us/index.php?topic=175929.0

The benefits include not having the join/leave spam that usually accompanies less sophisticated methods that do the same thing.

189
Off Topic / Re: Furry Megathread - Furry Things Here
« on: June 12, 2015, 05:14:14 PM »
I think in that case they were shooting for the comedic effect rather than draw for the sake of loveualizing it

190
i was a huge fan of fatpeoplehate lol
Glad to see I'm not the only one

stufflords report in now

Pages: 1 ... 8 9 10 11 12 [13]