Click here to Skip to main content
15,897,187 members

Videos


Page 1 of 4
1 2 3 4


1. How would I get or set a custom class?
Hello Codeproject,For one of my C# friends I had to create an infinite integer(Class, DLL).However, there is one thing I've never known about C#.Assuming that I have a class that looks like the following:public class CustomString{}I would then use this class to create...
Yvar Birx Updated: 31 Oct 2013
Rating: 4.00/5 ( (1 vote))
2. C# Deserialization exception using Binary Formatter!
I've been having the same exception for the past three days now, and it's starting to drive me mad. I am using TCP to send a serialized byte array over the Interwebz, and I then deserialize it. However, every second time deserializing the array it gives me an exception:"Binary stream '0'...
Yvar Birx Updated: 26 Oct 2013
Rating: ( (No votes))
.

()
» »
Updated:
Rating: ()
3. Rounding a negative value is zero?
Hello everyone!I am currently trying round figure out how much a value out of 20 is. For instance,-5 out of 20 would be -1.5 out of 20 would be 1.25 out of 20 would be 2.-25 out of 20 would be -2However, when I do that:int newValue = (int)Number / 20-5 returns as 0....
Yvar Birx Updated: 3 May 2013
Rating: ( (No votes))
4. Unclear error on cooardinates?
Hello Codeproject,I am currently working on a game of mine. It's a Minecraft type clone, I was just adding in the placing block function when I stumbled upon an odd error. It's not exactly an error, but it just acts up odd when I select a negative cooardinate block. Here is some of my...
Yvar Birx Updated: 30 Apr 2013
Rating: 4.20/5 ( (2 votes))
5. Networking (TCP-IP or Socket Programming)
Assuming that you have them saved in a file and you know the location to it. You could try this:public string ReadFile(string Location){ using(StreamReader Reader = new StreamReader(Location)) { return Reader.ReadToEnd(); }}public byte[] GetPacket(string Packet){...
Yvar Birx Updated: 30 Apr 2013
Rating: ( (No votes))
.

()
» »
Updated:
Rating: ()
6. A simple desktop sorter!
How to sort your desktop, the easy way!
Yvar Birx Updated: 25 Apr 2013
Rating: 4.00/5 ( (1 vote))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
7. What is wrong with this if statement?
Changed everything to the following:if (Chunk.ChunkY == 0 && j == (int)(f)){ Block.Material = BlockMaterial.Material_Grass;}else if (Chunk.ChunkY == 0 && j > (int)(f)){ if (j != 0) { if (Chunk.GetBlock(i, j - 1).Material == BlockMaterial.Material_Air) ...
Yvar Birx Updated: 9 Apr 2013
Rating: 1.00/5 ( (1 vote))
8. So, why do threads not like to set or get variables?
It's frustrating how this forum does not seem to understand questions. So, as a result of them deleting my question I thought; "Why not just repost it with simple details".I have a nice void here:public void ReloadChunks(){ // -- A small hint: Look how this is not created in the...
Yvar Birx Updated: 8 Apr 2013
Rating: 1.00/5 ( (5 votes))
9. C# Array - Object reference not set to an instance of an object.
So, a quick attempt of me trying to create random points it continuesly returnswith an error saying: "Object reference not set to an instance of an object.".Here is the code: public void GeneratePoints(int Width, int MaximumGain, int Frequency) { /*...
Yvar Birx Updated: 4 Apr 2013
Rating: ( (No votes))
10. How do I make perlin noise?
Hello Codeproject,I am currently developing a game, this game isbased on Minecraft, I am having a problem withgenerating perlin noise. Basically, what I wantto do is create a perlin noise that can be generatedby the few factors(Perhaps a class even)public double X...
Yvar Birx Updated: 3 Apr 2013
Rating: 4.33/5 ( (2 votes))
11. Generating a new random!
Hello codeproject happy easter,I am currently generating chunks with random blocks, however,when I do this, the whole chunk is either grass, dirt, or stone, or air,I am not sure why and that's why I came here. The new random always stays the samein the void. I don't know why but it's...
Yvar Birx Updated: 31 Mar 2013
Rating: 1.00/5 ( (1 vote))

Page 1 of 4
1 2 3 4