ID:97453
 
Gather round children, today I tell you the story of my fail.

I have a scoreboard system that links with the Scoreboard on the hub. Great!
I want to make the scoreboard in game show the top 10. I do so, but wait what's this? The names aren't showing up.
-An hour of painstakingly checking the programming later-
score_holder = text2num(score_holder)


I broke down in fits of tears.


Please, share with me your stories of fail and hilarity, so we may all enjoy a nice little lol.
That is pretty fail. I've had a couple of brain farts where I've spent hours trying to find out why something was broken and it turned out to be something very simple I over looked. I can't think of anything specific at the moment. Most of these incidents occurred after days of sleep deprivation and made me decide that I had been awake too long.
Ulterior Motives wrote:
Most of these incidents occurred after days of sleep deprivation and made me decide that I had been awake too long.


Most of my incidents occur when I'm completely normal.
I just fail. :)
I just fail. I was wondering why I couldn't kill Mobs, then I took a look at the programming. I lol'd.
mob/Monster/DeathCheck(mob/PC/M)
if(src.powerlevel <= 0)
var/bonus_exp = round(src.exp)
if(istype(M,/mob/PC))
if(M.in_party)
var/count=0
for(var/mob/M2 in world)
if(M2.party_name==M.party_name)
count++
var/exp2=src.exp/count
M2.exp+=exp2
M2.zenni+=src.zenni
M2 << "\white Zenni +[src.zenni]"
M2 << "\white EXP +[exp2]"
M2.Level_Up()
else
M.exp+=bonus_exp
M.zenni+=src.zenni
M << "\white Zenni +[src.zenni]"
M << "\white EXP +[bonus_exp]"
M.Level_Up()

if(src.race == "Saibaman")
M.green_kills+=1
if(src.race == "Henchman")
M.thug_kills+=1
if(src.race == "Namekian Warrior")
M.namek_kills+=1
if(M.karma == src.karma)
M.karma_rating -= 1
else
M.karma_rating += 1
del(src)
..()

mob/Saga/DeathCheck(mob/PC/M)
if(src.powerlevel <= 0)
var/bonus_exp=src.exp
if(M.expbuff)bonus_exp*=2
if(istype(M,/mob/PC))
if(M.in_party)
var/count=0
for(var/mob/M2 in world)
if(M2.party_name==M.party_name)
count++
var/exp2=src.exp/count
M2.exp+=exp2
M2.zenni+=src.zenni
M2 << "\white Zenni +[src.zenni]"
M2 << "\white EXP +[exp2]"
M2.Level_Up()
else
M.exp+=bonus_exp
M.zenni+=src.zenni
M << "\white Zenni +[src.zenni]"
M << "\white EXP +[bonus_exp]"
M.PK_LVLUP(src.CPS)
M.Level_Up()
if(M.karma == src.karma)
M.karma_rating -= 1
else
M.karma_rating += 1
if(istype(src,/mob/Saga))
saga_episode ++
del(src)
..()
Another instance of fail I had recently:

var/Game_Started = 0
proc/Start_Game()
var/Game_Started = 1
while(Game_Started)
for(var/mob/player/client/M in world)
if(M.In_Game)
break
Game_Started =! Game_Started


Spot how many flaws I made in that, it's more or less what I had, and yes, it even compiled.
El Wookie wrote:
Another instance of fail I had recently:

> var/Game_Started = 0
> proc/Start_Game()
> var/Game_Started = 1
> while(Game_Started)
> for(var/mob/player/client/M in world)
> if(M.In_Game)
> break
> Game_Started =! Game_Started
>

Spot how many flaws I made in that, it's more or less what I had, and yes, it even compiled.
LOL, mine also compiled
Link1111 wrote:
I just fail. I was wondering why I couldn't kill Mobs, then I took a look at my programming. I lol'd.
> 
> mob/Monster/DeathCheck(mob/PC/M)
> if(src.powerlevel <= 0)
> var/bonus_exp = round(src.exp)
> if(istype(M,/mob/PC))
> if(M.in_party)
> var/count=0
> for(var/mob/M2 in world)
> if(M2.party_name==M.party_name)
> count++
> var/exp2=src.exp/count
> M2.exp+=exp2
> M2.zenni+=src.zenni
> M2 << "\white Zenni +[src.zenni]"
> M2 << "\white EXP +[exp2]"
> M2.Level_Up()
> else
> M.exp+=bonus_exp
> M.zenni+=src.zenni
> M << "\white Zenni +[src.zenni]"
> M << "\white EXP +[bonus_exp]"
> M.Level_Up()
>
> if(src.race == "Saibaman")
> M.green_kills+=1
> if(src.race == "Henchman")
> M.thug_kills+=1
> if(src.race == "Namekian Warrior")
> M.namek_kills+=1
> if(M.karma == src.karma)
> M.karma_rating -= 1
> else
> M.karma_rating += 1
> del(src)
> ..()
>
> mob/Saga/DeathCheck(mob/PC/M)
> if(src.powerlevel <= 0)
> var/bonus_exp=src.exp
> if(M.expbuff)bonus_exp*=2
> if(istype(M,/mob/PC))
> if(M.in_party)
> var/count=0
> for(var/mob/M2 in world)
> if(M2.party_name==M.party_name)
> count++
> var/exp2=src.exp/count
> M2.exp+=exp2
> M2.zenni+=src.zenni
> M2 << "\white Zenni +[src.zenni]"
> M2 << "\white EXP +[exp2]"
> M2.Level_Up()
> else
> M.exp+=bonus_exp
> M.zenni+=src.zenni
> M << "\white Zenni +[src.zenni]"
> M << "\white EXP +[bonus_exp]"
> M.PK_LVLUP(src.CPS)
> M.Level_Up()
> if(M.karma == src.karma)
> M.karma_rating -= 1
> else
> M.karma_rating += 1
> if(istype(src,/mob/Saga))
> saga_episode ++
> del(src)
> ..()


I see the problem, it's pulled from a dbz rip!
DivineTraveller wrote:
I see the problem, it's pulled from a dbz rip!

Thank god someone other than me spotted that.
Link1111 wrote:
my programming.

I lol'd
I've completely redesigned systems just to find out I named the icon_state wrong.

:(
Magicbeast20 wrote:
I've completely redesigned systems just to find out I named the icon_state wrong.

:(

Same =/
My biggest blunder was in Java rather than DM itself, which basically involved checking every possible solution for placements of a specified number of queens on a specified sized chessboard. I reprogrammed it a few times and even sat with my professor going over it for a couple hours...The only problem was a missing semicolon....
Back in the day, I used to loop through all turfs in the world to try and find a certain players location.
Mecha Destroyer JD wrote:
My biggest blunder was in Java rather than DM itself, which basically involved checking every possible solution for placements of a specified number of queens on a specified sized chessboard. I reprogrammed it a few times and even sat with my professor going over it for a couple hours...The only problem was a missing semicolon....

Missing semi colons are a rather common error.
El Wookie wrote:
Mecha Destroyer JD wrote:
My biggest blunder was in Java rather than DM itself, which basically involved checking every possible solution for placements of a specified number of queens on a specified sized chessboard. I reprogrammed it a few times and even sat with my professor going over it for a couple hours...The only problem was a missing semicolon....

Missing semi colons are a rather common error.

But it sucked soooo much more knowing your grade depended on it, disregarding the hours/days of frustration.
One time I spent hours trying to create a timestamp directly from world.realtime before finding the time2text() proc.
Warlord Fred wrote:
One time I spent hours trying to create a timestamp directly from world.realtime before finding the time2text() proc.

LOL I did much the same, I made a long and complicated proc for separating vars in params, before finding params2list
BxS0ldi3R wrote:
Link1111 wrote:
my programming.

I lol'd
I know you did :O
You're funny. I'll post my blunder wen I get home.