Really stupid things that people have said about Modded MC(Off topicness makes moderators tired)

Discussion in 'Mod Discussion' started by Qazplm601, Jul 9, 2014.

?

Is this a good idea?

  1. Yes

    66 vote(s)
    18.2%
  2. No

    18 vote(s)
    5.0%
  3. if people don't get out of control

    68 vote(s)
    18.8%
  4. POTATOES

    210 vote(s)
    58.0%
Thread Status:
Not open for further replies.
  1. 1SDAN

    1SDAN Popular Member

    Is it wrong that I laughed when I read that?
     
  2. CoolSquid

    CoolSquid Over-Achiever Mod Developer

    Now I see the difference between moderator talking and member talking...
     
  3. SynysterBear

    SynysterBear Well-Known Member

    'yeah but like I don't understand it'

    Did you play it yet

    'well no...'

    How would you know if it's hard or not

    'I watched the achievement hunter guys play it'

    :-|
     
    1SDAN likes this.
  4. Strikingwolf

    Strikingwolf Philosopher and Programmer FTB Mod Dev

    I don't like to use it for my leisure programming (TheWolfBot). I would rather not use it for a project. But if I have to use it I will. Although it has been a while since I've touched C or C++ so I would probably need a refresher...
     
  5. 1SDAN

    1SDAN Popular Member

    "Mods are Hack and Notch will ban you if you use it" - Some guy on a server I used to play on
     
    Vasa likes this.
  6. Strikingwolf

    Strikingwolf Philosopher and Programmer FTB Mod Dev

    *faceplms*
    @Qazplm601
     
    1SDAN likes this.
  7. CoolSquid

    CoolSquid Over-Achiever Mod Developer

    >.<
     
  8. CoolSquid

    CoolSquid Over-Achiever Mod Developer

     
    1SDAN likes this.
  9. 1SDAN

    1SDAN Popular Member

    ...
    ...
    ...
    ...Why?
     
  10. Reika

    Reika RotaryCraft Dev FTB Mod Dev

    I find it rather cheaper, as long as you do not count the 25 minutes it takes to dry. :D

    I have seen this one too.
     
    Vasa, RavynousHunter and 1SDAN like this.
  11. CoolSquid

    CoolSquid Over-Achiever Mod Developer

    It appears everywhere. People seem to need some education in law.
     
  12. SinisterBro :3

    SinisterBro :3 Well-Known Member

    FTFY
     
    1SDAN and PierceSG like this.
  13. 1SDAN

    1SDAN Popular Member

    So true, it's even scarier when you find out there's some young adults who don't know who Isis are, yet knows exactly what flavor perfume Lady Gaga wore this morning.
     
  14. Reika

    Reika RotaryCraft Dev FTB Mod Dev

    *And do not see the problem with that, as they view the two of equal importance.
     
    KaosRitual, Strikingwolf and 1SDAN like this.
  15. CoolSquid

    CoolSquid Over-Achiever Mod Developer

    I think they find Lady Gagas perfume more important than IS...
     
    Strikingwolf and 1SDAN like this.
  16. 1SDAN

    1SDAN Popular Member

    And that's what's wrong with today's generation...

    BCA ALERT: Biased Content Ahead
    Well, minus PC and Retro-type Nintendo gamers, they seem to be more well-grounded than say, XBOX or Mobile gamers/snapchaters/whatevzers. (Not including Playstation as they go either way usually.)
     
  17. 1M Industries

    1M Industries Well-Known Member

    C++ is fun! I learned how to use it when I was 13. That was a fun course. 200 lines to make an LED blink....
     
    Last edited: Jan 27, 2015
  18. Strikingwolf

    Strikingwolf Philosopher and Programmer FTB Mod Dev

    ...
     
  19. 1M Industries

    1M Industries Well-Known Member

    Traffic lights in C. Fun, eh?

    // ***** 1. Pre-processor Directives Section *****

    #include "TExaS.h"

    #include "tm4c123gh6pm.h"

    #include "PLL.h"

    #include "SysTick.c"


    #define TrafficLIGHT (*((volatile unsigned long *)0x400050FC))

    #define WalkersLight (*((volatile unsigned long *)0x400253FC))

    #define GPIO_PORTB_OUT (*((volatile unsigned long *)0x400050FC)) // bits 5-0

    #define GPIO_PORTB_DIR_R (*((volatile unsigned long *)0x40005400))

    #define GPIO_PORTB_AFSEL_R (*((volatile unsigned long *)0x40005420))

    #define GPIO_PORTB_DEN_R (*((volatile unsigned long *)0x4000551C))

    #define GPIO_PORTB_AMSEL_R (*((volatile unsigned long *)0x40005528))

    #define GPIO_PORTB_PCTL_R (*((volatile unsigned long *)0x4000552C))

    #define GPIO_PORTE_IN (*((volatile unsigned long *)0x4002401C)) // bits 2 -0

    #define SENSOR (*((volatile unsigned long *)0x4002401C))


    #define GPIO_PORTE_DIR_R (*((volatile unsigned long *)0x40024400))

    #define GPIO_PORTE_AFSEL_R (*((volatile unsigned long *)0x40024420))

    #define GPIO_PORTE_DEN_R (*((volatile unsigned long *)0x4002451C))

    #define GPIO_PORTE_AMSEL_R (*((volatile unsigned long *)0x40024528))

    #define GPIO_PORTE_PCTL_R (*((volatile unsigned long *)0x4002452C))

    #define SYSCTL_RCGC2_R (*((volatile unsigned long *)0x400FE108))

    #define SYSCTL_RCGC2_GPIOE 0x00000010 // port E Clock Gating Control

    #define SYSCTL_RCGC2_GPIOB 0x00000002 // port B Clock Gating Control


    #define GPIO_PORTF_DATA_R (*((volatile unsigned long *)0x400253FC))

    #define GPIO_PORTF_DIR_R (*((volatile unsigned long *)0x40025400))

    #define GPIO_PORTF_AFSEL_R (*((volatile unsigned long *)0x40025420))

    #define GPIO_PORTF_PUR_R (*((volatile unsigned long *)0x40025510))

    #define GPIO_PORTF_DEN_R (*((volatile unsigned long *)0x4002551C))

    #define GPIO_PORTF_LOCK_R (*((volatile unsigned long *)0x40025520))

    #define GPIO_PORTF_CR_R (*((volatile unsigned long *)0x40025524))

    #define GPIO_PORTF_AMSEL_R (*((volatile unsigned long *)0x40025528))

    #define GPIO_PORTF_PCTL_R (*((volatile unsigned long *)0x4002552C))

    #define PF3 (*((volatile unsigned long *)0x40025020))

    #define PF1 (*((volatile unsigned long *)0x40025008))

    #define GPIO_PORTF_DR2R_R (*((volatile unsigned long *)0x40025500))

    #define GPIO_PORTF_DR4R_R (*((volatile unsigned long *)0x40025504))

    #define GPIO_PORTF_DR8R_R (*((volatile unsigned long *)0x40025508))

    #define GPIO_LOCK_KEY 0x4C4F434B // Unlocks the GPIO_CR register

    #define SYSCTL_RCGC2_R (*((volatile unsigned long *)0x400FE108))


    // ***** 2. Global Declarations Section *****


    // FUNCTION PROTOTYPES: Each subroutine defined

    void DisableInterrupts(void); // Disable interrupts

    void EnableInterrupts(void); // Enable interrupts



    // Linked Data Structure

    struct State {

    unsigned long Out;

    unsigned long WalkOut;

    unsigned long Time;

    unsigned long Next [8];};

    typedef const struct State STyp;

    #define GoWest 0

    #define SlowWest 1

    #define GoSouth 2

    #define SlowSouth 3

    #define Walk 4

    #define DontWalkA 5

    #define DontWalkOff 6

    #define DontWalkB 7

    #define AllBusy 8

    // Traffic Lights, Walker Lights, Delay, Next State for Input

    STyp FSM [9] ={

    {0x0C, 0x02, 300, {GoWest, GoWest, SlowWest, SlowWest, SlowWest, SlowWest, SlowWest, SlowWest}},

    {0x14, 0x02, 50, {GoSouth, GoSouth, GoSouth, GoSouth, Walk, Walk, GoSouth, GoSouth}},

    {0x21, 0x02, 300, {GoSouth, SlowSouth, GoSouth, SlowSouth, SlowSouth, SlowSouth, SlowSouth, SlowSouth}},

    {0x22, 0x02, 50, {GoWest, GoWest, GoWest, GoWest, Walk, Walk, Walk, Walk}},

    {0x24, 0x02, 300, {Walk, DontWalkA, DontWalkA, DontWalkA, DontWalkA, DontWalkA, DontWalkA, DontWalkA}},

    {0x24, 0x08, 15, {DontWalkOff, DontWalkOff, DontWalkOff, DontWalkOff, DontWalkOff, DontWalkOff, DontWalkOff, DontWalkOff}},

    {0x24, 0x02, 15, {DontWalkB, DontWalkB, DontWalkB, DontWalkB, DontWalkB, DontWalkB, DontWalkB, DontWalkB}},

    {0x24, 0x02, 15, {AllBusy, AllBusy, AllBusy, AllBusy, AllBusy, AllBusy, AllBusy, AllBusy}},

    {0x24, 0x00, 50, {GoWest, GoWest, GoSouth, GoWest, Walk, GoWest, GoSouth, GoWest}}};



    unsigned long S; // index to the current state

    unsigned long Input;

    // ***** 3. Subroutines Section *****


    int main(void){ volatile unsigned long delay;

    TExaS_Init(SW_PIN_PE210, LED_PIN_PB543210); // activate grader and set system clock to 80 MHz

    SysTick_Init(); // Program 10.2

    SYSCTL_RCGC2_R |= 0x32;

    delay = SYSCTL_RCGC2_R; // 2) no need to unlock

    GPIO_PORTE_DEN_R |= 0x07; // 7) enable digital on PE2-0

    GPIO_PORTE_DIR_R &= ~0x07; // 5) inputs on PE2-0

    GPIO_PORTB_DIR_R |= 0x3F; // 5) outputs on PB5-0

    GPIO_PORTB_AFSEL_R &= ~0x3F; // 6) regular function on PB5-0

    GPIO_PORTB_DEN_R |= 0x3F; // 7) enable digital on PB5-0

    GPIO_PORTF_LOCK_R = 0x4C4F434B; // 2) unlock PortF PF0

    GPIO_PORTF_CR_R |= 0x1F; // allow changes to PF4-0

    GPIO_PORTF_DIR_R |= 0x08; // 5.2) PF3 green output

    GPIO_PORTF_DIR_R |= 0x02; // 5.2) PF1 red output

    GPIO_PORTF_DEN_R |= 0x1F; // 7) enable digital pins PF4-PF0

    GPIO_PORTF_PCTL_R &= 0x00000000; // 4) GPIO clear bit PCTL

    GPIO_PORTE_PCTL_R &= 0x00000000; // 4) enable regular GPIO

    GPIO_PORTB_PCTL_R &= 0x00000000; // 4) enable regular GPIO


    EnableInterrupts();

    while(1){

    TrafficLIGHT = FSM.Out; // set lights

    WalkersLight = FSM.WalkOut; //set walker lights

    SysTick_Wait10ms(FSM.Time);

    Input = SENSOR; // read sensors

    S = FSM.Next[Input];

    }

    }

    And a blinking LED:
    // main.c

    // Runs on LM4F120 or TM4C123

    // C2_Toggle_PF1, toggles PF1 (red LED) at 5 Hz


    // LaunchPad built-in hardware

    // SW1 left switch is negative logic PF4 on the Launchpad

    // SW2 right switch is negative logic PF0 on the Launchpad

    // red LED connected to PF1 on the Launchpad

    // blue LED connected to PF2 on the Launchpad

    // green LED connected to PF3 on the Launchpad



    #define GPIO_PORTF_DATA_R (*((volatile unsigned long *)0x400253FC))

    #define GPIO_PORTF_DIR_R (*((volatile unsigned long *)0x40025400))

    #define GPIO_PORTF_AFSEL_R (*((volatile unsigned long *)0x40025420))

    #define GPIO_PORTF_PUR_R (*((volatile unsigned long *)0x40025510))

    #define GPIO_PORTF_DEN_R (*((volatile unsigned long *)0x4002551C))

    #define GPIO_PORTF_LOCK_R (*((volatile unsigned long *)0x40025520))

    #define GPIO_PORTF_CR_R (*((volatile unsigned long *)0x40025524))

    #define GPIO_PORTF_AMSEL_R (*((volatile unsigned long *)0x40025528))

    #define GPIO_PORTF_PCTL_R (*((volatile unsigned long *)0x4002552C))

    #define PF4 (*((volatile unsigned long *)0x40025040))

    #define PF3 (*((volatile unsigned long *)0x40025020))

    #define PF2 (*((volatile unsigned long *)0x40025010))

    #define PF1 (*((volatile unsigned long *)0x40025008))

    #define PF0 (*((volatile unsigned long *)0x40025004))

    #define GPIO_PORTF_DR2R_R (*((volatile unsigned long *)0x40025500))

    #define GPIO_PORTF_DR4R_R (*((volatile unsigned long *)0x40025504))

    #define GPIO_PORTF_DR8R_R (*((volatile unsigned long *)0x40025508))

    #define GPIO_LOCK_KEY 0x4C4F434B // Unlocks the GPIO_CR register

    #define SYSCTL_RCGC2_R (*((volatile unsigned long *)0x400FE108))


    void PortF_Init(void){ volatile unsigned long delay;

    SYSCTL_RCGC2_R |= 0x00000020; // 1) activate clock for Port F

    delay = SYSCTL_RCGC2_R; // allow time for clock to start

    GPIO_PORTF_LOCK_R = 0x4C4F434B; // 2) unlock GPIO Port F

    GPIO_PORTF_CR_R = 0x1F; // allow changes to PF4-0

    // only PF0 needs to be unlocked, other bits can't be locked

    GPIO_PORTF_AMSEL_R = 0x00; // 3) disable analog on PF

    GPIO_PORTF_PCTL_R = 0x00000000; // 4) PCTL GPIO on PF4-0

    GPIO_PORTF_DIR_R = 0x0E; // 5) PF4,PF0 in, PF3-1 out

    GPIO_PORTF_AFSEL_R = 0x00; // 6) disable alt funct on PF7-0

    GPIO_PORTF_PUR_R = 0x11; // enable pull-up on PF0 and PF4

    GPIO_PORTF_DEN_R = 0x1F; // 7) enable digital I/O on PF4-0

    }

    unsigned long Led;

    void Delay(void){unsigned long volatile time;

    time = 145448; // 0.1sec

    while(time){

    time--;

    }

    }

    int main(void){

    PortF_Init(); // make PF1 out (PF1 built-in LED)

    while(1){

    Led = GPIO_PORTF_DATA_R; // read previous

    Led = Led^0x02; // toggle red LED, PF1

    GPIO_PORTF_DATA_R = Led; // output

    Delay();

    }

    }










    // Color LED(s) PortF

    // dark --- 0

    // red R-- 0x02

    // blue --B 0x04

    // green -G- 0x08

    // yellow RG- 0x0A

    // sky blue -GB 0x0C

    // white RGB 0x0E

    // pink R-B 0x06
    All done before my 14th birthday, and all written in entirety by me.
     
    Last edited: Jan 27, 2015
    Vasa likes this.
  20. Strikingwolf

    Strikingwolf Philosopher and Programmer FTB Mod Dev

    A good testimony to skill, but when I can do the same thing in a much better language much more efficiently (in terms of lines of code). Why bother writing the C ;)
     
Thread Status:
Not open for further replies.

Share This Page