Play at mc.pigcraft.net! Click here for a free diamond. Also visit our Discord!
Hello There, Guest! Login Register


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programmer thread :D
#21
But I didn't texture it, I just set the renderer flag to render it as a normal block:

PHP Code:
public int getRenderType()
{
    return 
0//Change from '-1'
}

public 
boolean renderAsNormalBlock()
{
    return 
true//Change from 'false'


(Ignore the 'PHP code', it's Java. PHP was the closest thing the forum has to Java syntax highlighting.)

EDIT: Lol, forgot a semicolon
Spoiler:
CLIP- Stellvertreter Wrote:
"A programmer is just a tool which converts caffeine into code"

SwaggDragon Wrote:Evil you're the 9/11 of Staff Leaders

GOPikachuGO Wrote:I keep finding Oceans in these Seas

Quote:Evil Banned me for a week Im Crying in real life IM TELLING NOTCH! HA HA Shame on you HAHAHAHHAHAHA
TB was here
 
Reply
#22
how did you modify that ingame 0_0

Or did you do it clientside, and then c/p into game?
 
Reply
#23
I edited the decompiled source code and then patched the recompiled source into the latest build of my 'mod'
Spoiler:
CLIP- Stellvertreter Wrote:
"A programmer is just a tool which converts caffeine into code"

SwaggDragon Wrote:Evil you're the 9/11 of Staff Leaders

GOPikachuGO Wrote:I keep finding Oceans in these Seas

Quote:Evil Banned me for a week Im Crying in real life IM TELLING NOTCH! HA HA Shame on you HAHAHAHHAHAHA
TB was here
 
Reply
#24
For the first time, I think ever, I have absolutely no idea what any of the actual working stuff means.
EDIT Oh wait I didnt scroll down, so I thought those like first 6 lines did it all XD
EDITmuchmuchlater This now looks really weird as the post this described has been deleting.

Well here is my first VB project ever!(Other than Hello World ofc)

It is a prime number calculator.

https://bitbucket.org/Valar_Dev/primenumber is the link to it. Git was being hellish to work with today, so the file you want to look at is, Form1.vb. The rest was autogenerated, so if you want to look at that you can. The download file might give you the directory its running from when it starts up. (My Visual studios didnt give me that, but the .exe did which i uploaded)
 
Reply
#25
HEY LOOK DEV I FINALLY STARTED IT!

Kayso, I post code, and you try to figure out what it does. Anyone welcome to play.

Person who correctly tells me what this code does get's one friendly handshake! :D

Spoiler:
PHP Code:
import java.io.PrintStream;

public class 
a
{
  public static 
void main(String[] paramArrayOfString)
  {
    
paramArrayOfString 2;
    
int i 000;
    
long l System.currentTimeMillis();
    while (
150000)
    {
      
int m 1;
      
int n = (int)Math.sqrt(paramArrayOfString) + 1;
      for (
String[] arrayOfString 2arrayOfString narrayOfString++)
        if (
paramArrayOfString arrayOfString == 0)
        {
          
0;
          break;
        }
      if (
!= 0)
      {
        
i++;
        
paramArrayOfString;
      }
      if (
paramArrayOfString == 2)
        
paramArrayOfString++;
      else
        
paramArrayOfString += 2;
    }
    
System.out.println("\4c\61\73\74\20\70\72\69\6d\65\20\3d\20" k);
    
System.out.println("\54\6f\74\61\6c\20\74\69\6d\65\20\3d\20" + (System.currentTimeMillis() - l) / 1000.0D);
  }


This one's pretty simple; Also note that this probably won't compile as-is. Obfuscation is an information-lossy compression method.
Spoiler:
CLIP- Stellvertreter Wrote:
"A programmer is just a tool which converts caffeine into code"

SwaggDragon Wrote:Evil you're the 9/11 of Staff Leaders

GOPikachuGO Wrote:I keep finding Oceans in these Seas

Quote:Evil Banned me for a week Im Crying in real life IM TELLING NOTCH! HA HA Shame on you HAHAHAHHAHAHA
TB was here
 
Reply
#26
It finds prime numbers,
and gives the total elapsed time in miliseconds.

Now come to my house and gimme dat handshake.
 
Reply
#27
-_-

You'd have never figured it out if I hadn't told you what the strings meant

Your turn :p
Spoiler:
CLIP- Stellvertreter Wrote:
"A programmer is just a tool which converts caffeine into code"

SwaggDragon Wrote:Evil you're the 9/11 of Staff Leaders

GOPikachuGO Wrote:I keep finding Oceans in these Seas

Quote:Evil Banned me for a week Im Crying in real life IM TELLING NOTCH! HA HA Shame on you HAHAHAHHAHAHA
TB was here
 
Reply
#28
You understimate my power over Google/Reddit/THE ABYSS

and hue hue this is in C(its obfuscated :P)

Spoiler:
#define _ -F<00||--F-OO--;
int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
{
_-_-_-_
_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_
_-_-_-_
}

trolololol
 
Reply
#29
Spoiler:
A potato appears on your screen?
My collection:

Spoiler:
[Image: https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn2/970672_385333854899948_1510945221_n.jpg]
 
Reply
#30
Step 1: Beautify it a bit
Step 2: Change to comply with ANSI C
Step 3: Compile with GCC no optimizations
Step 4: Output is 3.141
Step 5: Assume it to be Pi, where's the only circle in that code?


It calculates Pi from looking at the area of the ASCII art circle
Spoiler:
CLIP- Stellvertreter Wrote:
"A programmer is just a tool which converts caffeine into code"

SwaggDragon Wrote:Evil you're the 9/11 of Staff Leaders

GOPikachuGO Wrote:I keep finding Oceans in these Seas

Quote:Evil Banned me for a week Im Crying in real life IM TELLING NOTCH! HA HA Shame on you HAHAHAHHAHAHA
TB was here
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)