Dialectics
Members-
Posts
12 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Calendar
Everything posted by Dialectics
-
@'Genusis': > bitwise and shift operators only work on the bit level. This wont do you any good if you are trying to add data into a byte array. The closest thing you could do to get this to work in to use a memcpy function which can copy each byte into the array of data: https://gitlab.com/ascendingcreations/swift/blob/master/net/source/buffer_stream.c#L162 I'm not even going to bother addressing you. Honestly, educate yourself before you say something quite so dense again. Here's how you can convert a 32 bit integer into a byte array (big endian): byte[] byteArray = new byte[4]; for (int i = 0; i < 4; i++) { bytes _= (byte)(integerToConvert >>> (i * 8)); } You could also simply use Java's ByteBuffer class._
-
These comments are cringe inducing. Why are you using the PrintWriter? Just pack the data directly into a byte array using simple bitwise and shift operators.
-
Eclipse being melodramatic as usual. The guy clearly doesn't speak English as a first language, so lay off him. Additionally, while the engine is indeed free and open source, that does not save it from criticism, both constructive and not.
-
If you could go back in time and replay any game, what would it be?
Dialectics replied to Colonello's topic in Slice of Life
Ooh, forgot about a two games that I'd love to replay for the first time: Medal of Honor Frontline & Rising Sun -
@'Marsh': > https://www.dropbox.com/s/24rt73os749iier/Pokemon%20Engine.zip?dl=0 Upload it to Github. If you don't want to, I'm sure someone else wouldn't mind. Also, Sherwin, under what license did you transfer it to Marsh? Full rights?
-
If you could go back in time and replay any game, what would it be?
Dialectics replied to Colonello's topic in Slice of Life
Runescape, Fallout 3, or GTA Vice City. -
When will you people learn not to publicly expose fields, especially when they are collections.
-
Why are so many things globally accessible (i.e., public and static)?
-
``` Int32 var3 = default(Int32); ``` **See:** 8.2.1 of ECMA-334 C# language specification. You should be using the predefined types rather than directly referencing the primitive data structures. For example, if you were to attempt to implement the following code: ``` public class WeirdInteger : Int32 { } ``` you would be unable to, as the language forbids the deriving of a type from a struct. There are arguments for the explicit use of, say, Int32, but they would not be relevant in this particular case.