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

Is this a good idea?

  • Yes

    Votes: 66 18.2%
  • No

    Votes: 18 5.0%
  • if people don't get out of control

    Votes: 68 18.8%
  • POTATOES

    Votes: 210 58.0%

  • Total voters
    362
Status
Not open for further replies.

CoolSquid

New Member
Jul 29, 2019
840
-1,536
0
I'll just say that swearing is not encouraged and leave it at that. See Rule 2 the second bullet point here.

...also I think I may need to update the links in my signature, because Jaded and Nana are ninjas and changed them on me. :p
Now I see the difference between moderator talking and member talking...
 

SynysterBear

New Member
Jul 29, 2019
154
0
0
'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'

:-|
 
  • Like
Reactions: 1SDAN

Strikingwolf

New Member
Jul 29, 2019
3,709
-26
1
You got a problem with C++, bwoy?
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...
 

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
"Mods are Hack and Notch will ban you if you use it" - Some guy on a server I used to play on
 
  • Like
Reactions: Vasa

Reika

RotaryCraft Dev
FTB Mod Dev
Sep 3, 2013
5,079
5,331
550
Toronto, Canada
sites.google.com

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
I think they find Lady Gagas perfume more important than IS...
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.)
 

1M Industries

New Member
Jul 29, 2019
537
0
0
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:
  • Like
Reactions: Vasa
Status
Not open for further replies.