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

Pages: 1 ... 237 238 239 240 241 [242] 243 244 245 246 247 ... 570
3616
Modification Help / Re: Cryptography Implementation Discussion
« on: November 11, 2013, 12:35:04 AM »
Don't benchmark mine quite yet; I have optimizations and such that I haven't gotten around to uploading. (I'll upload in the morning)
It might be faster even still, but I'm just saying.
Please rename your functions as well. "add" can easily be overwritten by accident.

3617
Modification Help / Re: Cryptography Implementation Discussion
« on: November 11, 2013, 12:29:18 AM »
I'm working on the benchmarks for the three libraries right now.

3618
Modification Help / Re: State-based RNG (linear-congruential)
« on: November 11, 2013, 12:24:19 AM »
https://github.com/Tungul/Script_Crypto
Shouldn't it be Support_Crypto? Maybe we should stop derailing Port's thread and make a new one for this.

Guys, we need to agree on a library to use and build on. SS's, Lugs, or mine?
I'm voting against Lug's because it creates an object for each number. EDIT: As does McTwist's.

3619
Modification Help / Re: State-based RNG (linear-congruential)
« on: November 11, 2013, 12:09:28 AM »
honestly with numbers that size it wouldn't take absolutely forever. generate the public/private keys on your own time, then somehow agree on who's computer is stronger, then have it decide on a big key, encrypt it, then send it back to the first guy. decryption is easier, right?

i'm really thinking this is feasible with the right optimizations and algorithms

edit: can't download the one on scatteredspace without an account
... for a dead forum. :(

Decryption is normally much faster.

Yes, this is definitely feasible. If somebody starts working on this, they should set up a bitbucket or something so everybody can review the code and contribute.

Here, I put the SS one on pastebin: http://pastebin.com/BsMn8ryz

3620
General Discussion / Re: How to run a Dedicated server in Blockland
« on: November 10, 2013, 11:46:18 PM »
The launcher is in the same folder as the original game.

I'm not sure what you're talking about. The default installation location for the launcher is in Program Files, and the default profile path is in Documents.

3621
General Discussion / Re: Small Team Deathmatch
« on: November 10, 2013, 11:44:27 PM »
It's not online... :(

3622
Modification Help / Re: State-based RNG (linear-congruential)
« on: November 10, 2013, 11:41:38 PM »
arbitrary precision arithmetic isn't inherently hard though, right? it's basically just implementing normal addition and subtraction algorithms manually, right?

Correct, it's basically doing calculations the way you learned them in first grade. Starting from the right, add digits individually, shifting the leftover to the next digit.

There's a couple bignum libraries floating around the forums somewhere.

Even with a decent modular exponentiation implementation that would still take unreasonably long to calculate.

Not necessarily. Just include a GUI with a progress bar and your users will be like "cool, it's doing something". Break the work down into chunks so that the game doesn't stop responding.

3623
Help / Re: Unbind console command
« on: November 10, 2013, 10:45:18 PM »
With Blockland closed, navigate to "config/client" and open the file called "config.cs".

Look for a line that starts like this:
Code: [Select]
moveMap.bind(keyboard, "3"

Delete that line.

3624
Suggestions & Requests / Re: Bricks4Points
« on: November 10, 2013, 10:41:17 PM »
Search the forums for "Cashmod II".

3625
Help / Re: Unable to alt-tab with BL running?
« on: November 10, 2013, 10:36:24 PM »
Are you running in fullscreen mode? If you need to switch applications often, I recommend using windowed mode.

3626
Help / Re: Unbind console command
« on: November 10, 2013, 10:35:27 PM »
Just open up your Options => Controls menu, double click the entry, and hit the Backspace button.

3627
Modification Help / Re: [Resource] A* Implementation (Pathfinding)
« on: November 10, 2013, 02:55:37 PM »
It checks whether there is a dropoff in the way so that they don't fall off of cliffs.

3628
General Discussion / Re: How to run a Dedicated server in Blockland
« on: November 10, 2013, 12:44:15 PM »
that was before the path changed

Erm, no. I wrote that guide after v21.

3629
Modification Help / Re: [Resource] A* Implementation (Pathfinding)
« on: November 10, 2013, 12:36:48 PM »
Bumping to post some basic cliff detection code.

Code: [Select]
function isCliffBlocking(%nodeA,%nodeB,%maxCliffHeight)
{
if(%maxCliffHeight $= "")
%maxCliffHeight = 5;

%posA = %nodeA.position;
%posB = %nodeB.position;
%typeMask = $TypeMasks::fxBrickObjectType & $TypeMasks::EnvironmentObjectType;

for(%e = 0.1; %e < 1; %e += 0.1)
{
%posC = vectorAdd(%posA,vectorScale(vectorNormalize(vectorSub(%posB,%posA)),vectorDist(%posA,%posB) * %e));
%posD = vectorSub(%posC,"0 0" SPC %maxCliffHeight);
%hit = containerRayCast(%posC,%posD,%typeMask,%obj);
if(!isObject(firstWord(%hit)))
{
return true;
}
}

return false;
}

3630
General Discussion / Re: How to run a Dedicated server in Blockland
« on: November 10, 2013, 10:40:10 AM »
Here's the one I use on the Help board.

Quote
Creating a Dedicated Server (for Windows)

First, make a copy of your Blockland shortcut. Then right click on the new copy of the shortcut and go to Properties. Click the Shortcut tab.

The target field will look something like this:
Code: [Select]
"C:\Program Files (x86)\Blockland\BlocklandLauncher.exe"

To make this launch a dedicated server, add the -dedicated parameter to the end. It should now look like this:
Code: [Select]
"C:\Program Files (x86)\Blockland\BlocklandLauncher.exe" -dedicated
You can now launch the server using that shortcut, but I recommend that you read below first.

(Optional) If you wish to start a specific game mode, add the -gamemode Name_of_GameMode parameter to the end of the target. If you don't do this, the server will default to the standard/custom mode. (which allows you to set your own add-ons and customize everything)

(Optional, but recommended) Set your dedicated server to use its own directory. (if you don't do this, it will use your current BL directory) Add this parameter to the end of your shortcut's target: -profilePath "C:\path\to\server folder"



Setting Up Your Server

Before you perform these steps, you should start your server at least once and then close it - doing so will create the pref files for you to edit. Note, these steps should be performed while the server is closed.

To change server settings, open the file called "prefs.cs" in the "config/server" folder.

To change which add-ons are enabled, open the file called "ADD_ON_LIST.cs" in the "config/server" folder. A 1 next to an add-on indicates it is enabled while a -1 indicates it is disabled.

To install new add-ons, simply place them in the add-ons folder.



Shutting Down Your Server

This might seem trivial, but most people don't know how to do this properly.

To shut down your server, enter quit(); in the server console.

Pages: 1 ... 237 238 239 240 241 [242] 243 244 245 246 247 ... 570