Post Reply 
 
Thread Rating:
  • 4 Votes - 3.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spam Thread
07-19-2014, 11:41 AM
Post: #571
RE: Spam Thread
One of these days I will actually learn Lua, simply because of how frequently it appears as the superglue language holding a lot of game scripts and engines together.

Most of my code is PHP or C++, once and a while I will play with C# or Basic.

[Image: mabinogi_morrighan_.JPG]
Find all posts by this user
Quote this message in a reply
07-19-2014, 12:42 PM
Post: #572
RE: Spam Thread
(07-19-2014 10:42 AM)Nemesis Wrote:  Coding is evil. I'm sooo tired of this shit, but it's an unending spiral of bugs and despair. ;3;

I feel your pain. I'm neck deep in action script at the moment, and my primary discipline is modeling.

[Image: Untitled-1.jpg]
Find all posts by this user
Quote this message in a reply
07-19-2014, 02:00 PM
Post: #573
RE: Spam Thread
(07-19-2014 12:42 PM)The Taff Wrote:  
(07-19-2014 10:42 AM)Nemesis Wrote:  Coding is evil. I'm sooo tired of this shit, but it's an unending spiral of bugs and despair. ;3;

I feel your pain. I'm neck deep in action script at the moment, and my primary discipline is modeling.

At least you know what I'm doing. This is pretty much my first attempt at coding, and it's going awful. Only reason I've gotten as far as I have is lots of help from awesome people. x3
Find all posts by this user
Quote this message in a reply
07-19-2014, 02:07 PM (This post was last modified: 07-19-2014 02:08 PM by The Taff.)
Post: #574
RE: Spam Thread
(07-19-2014 02:00 PM)Nemesis Wrote:  
(07-19-2014 12:42 PM)The Taff Wrote:  
(07-19-2014 10:42 AM)Nemesis Wrote:  Coding is evil. I'm sooo tired of this shit, but it's an unending spiral of bugs and despair. ;3;

I feel your pain. I'm neck deep in action script at the moment, and my primary discipline is modeling.

At least you know what I'm doing. This is pretty much my first attempt at coding, and it's going awful. Only reason I've gotten as far as I have is lots of help from awesome people. x3

There are a lot of crash courses you can find online, as well. They don't have the benefit of having someone to directly aim questions towards, but they can certainly get you at a level one would call "competent."

If you can spare some cash, Digital Tutors has a mega-butt load of instructional videos on all sorts of programs and disciplines. They've helped me out of a jam on more than one occasion.

[Image: Untitled-1.jpg]
Find all posts by this user
Quote this message in a reply
07-19-2014, 04:09 PM
Post: #575
RE: Spam Thread
(07-19-2014 02:07 PM)The Taff Wrote:  
(07-19-2014 02:00 PM)Nemesis Wrote:  
(07-19-2014 12:42 PM)The Taff Wrote:  
(07-19-2014 10:42 AM)Nemesis Wrote:  Coding is evil. I'm sooo tired of this shit, but it's an unending spiral of bugs and despair. ;3;

I feel your pain. I'm neck deep in action script at the moment, and my primary discipline is modeling.

At least you know what I'm doing. This is pretty much my first attempt at coding, and it's going awful. Only reason I've gotten as far as I have is lots of help from awesome people. x3

There are a lot of crash courses you can find online, as well. They don't have the benefit of having someone to directly aim questions towards, but they can certainly get you at a level one would call "competent."

If you can spare some cash, Digital Tutors has a mega-butt load of instructional videos on all sorts of programs and disciplines. They've helped me out of a jam on more than one occasion.

Yeah. I've been meaning to do some research, but silly ole' me keeps thinking "Jeez, people are waiting for this. I need to hurry the fuck up". xP
Find all posts by this user
Quote this message in a reply
07-20-2014, 01:08 AM
Post: #576
RE: Spam Thread
(07-19-2014 11:15 AM)Odin Wrote:  Welcome to my reality. Also the matrix.

Code:
// We still have birthdays - display them in our list!
                if(!empty($today_bdays))
                {
                        foreach($today_bdays as $bdayuser)
                        {
                                if($bdayuser['displaygroup'] == 0)
                                {
                                        $bdayuser['displaygroup'] = $bdayuser['usergroup'];
                                }

                                // If this user's display group can't be seen in the birthday list, skip it
                                if($groupscache[$bdayuser['displaygroup']] && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1)
                                {
                                        continue;
                                }

                                $bday = explode("-", $bdayuser['birthday']);
                                if($year > $bday['2'] && $bday['2'] != '')
                                {
                                        $age = " (".($year - $bday['2']).")";
                                }
                                else
                                {
                                        $age = '';
                                }

                                $bdayuser['username'] = format_name($bdayuser['username'], $bdayuser['usergroup'], $bdayuser['displaygroup']);
                                $bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']);
                                eval("\$bdays .= \"".$templates->get("index_birthdays_birthday", 1, 0)."\";");
                                ++$bdaycount;
                                $comma = $lang->comma;
                        }
                }

This is in fact the function in the forum's code that makes it display people's birthdays on the forum index.

(07-19-2014 11:29 AM)Nemesis Wrote:  
(07-19-2014 11:15 AM)Odin Wrote:  Welcome to my reality. Also the matrix.

Code:
// We still have birthdays - display them in our list!
                if(!empty($today_bdays))
                {
                        foreach($today_bdays as $bdayuser)
                        {
                                if($bdayuser['displaygroup'] == 0)
                                {
                                        $bdayuser['displaygroup'] = $bdayuser['usergroup'];
                                }

                                // If this user's display group can't be seen in the birthday list, skip it
                                if($groupscache[$bdayuser['displaygroup']] && $groupscache[$bdayuser['displaygroup']]['showinbirthdaylist'] != 1)
                                {
                                        continue;
                                }

                                $bday = explode("-", $bdayuser['birthday']);
                                if($year > $bday['2'] && $bday['2'] != '')
                                {
                                        $age = " (".($year - $bday['2']).")";
                                }
                                else
                                {
                                        $age = '';
                                }

                                $bdayuser['username'] = format_name($bdayuser['username'], $bdayuser['usergroup'], $bdayuser['displaygroup']);
                                $bdayuser['profilelink'] = build_profile_link($bdayuser['username'], $bdayuser['uid']);
                                eval("\$bdays .= \"".$templates->get("index_birthdays_birthday", 1, 0)."\";");
                                ++$bdaycount;
                                $comma = $lang->comma;
                        }
                }

This is in fact the function in the forum's code that makes it display people's birthdays on the forum index.

Here's the talent I tried to code!

Code:
newTalent{
        name = "Unveil", shortname = "UNVEIL",
        type = {"spell/vile-tactics", 4},
        require = make_require(4),
        no_energy = "false",
        points = 5,
        cooldown = 10,
        mana = 30,
        hate = 5,
        range = 0,
        radius = function(self, t) return math.floor(self:combatTalentScale(t, 3, 7)) end,
    target = function(self, t)
        return {type="ball", range=self:getTalentRange(t), radius=self:getTalentRadius(t), friendlyfire=false, talent=t}
    end,
        action = function(src, x, y, type, dam, tmp)
        local target = game.level.map(x, y, Map.ACTOR)
        tmp = tmp or {}
        -- extra damage on hiding targets
        if target and target:attr("stealth") then
            dam = dam * 2
        if target and target:attr("invisible") then
            dam = dam * 2
        -- Dont lit magically unlit grids
        local a = game.level.map(x, y, Map.ACTOR)
        if a then
            a:setEffect(a.EFF_LUMINESCENCE, math.ceil(dam.turns), {power=dam.power, no_ct_effect=true})
        end}
        
        self:project(tg, self.x, self.y, DamageType.DARKNESS, self:mindCrit(self:combatTalentStatDamage(t, "cun", 40, 400)))
        self:project(tg, self.x, self.y, DamageType.CONFUSION, {
            dur=3,
            dam=40 + 6 * self:getTalentLevel(t),
            power_check=function() return self:combatPhysicalpower() end,
            resist_check=self.combatMindResist,
        })
        game.level.map:particleEmitter(self.x, self.y, self:getTalentRadius(t), "shout", {additive=true, life=10, size=3, distorion_factor=0.5, radius=self:getTalentRadius(t), nb_circles=8, rm=0.8, rM=1, gm=0, gM=0, bm=0.1, bM=0.2, am=0.4, aM=0.6})
        return true
    end,
    info = function(self, t)
        local radius = self:getTalentRadius(t)
        return ([[None can hide from you. Deals %d%% darkness damage in a radius of %d%%. This reveals hidden targets, and does double damage to them.
        The damage will scaling with your cunning]]):format(radius, self:combatTalentStatDamage(t, "cun", 40, 400))
    end,
    }

Welcome to pain.

I don't know, I want to go to school to learn how to do this nerd shit.

[Image: chibi_illaoi_by_huly0w-d9hxwfl.jpg]
Find all posts by this user
Quote this message in a reply
07-20-2014, 11:46 PM
Post: #577
RE: Spam Thread
(07-20-2014 01:08 AM)Aerial-Rave Wrote:  I don't know, I want to go to school to learn how to do this nerd shit.
Don't go to school to learn this stuff.

Master the art of googling and suddenly you'll always know exactly what you need with just a couple of clicks.

There's guides and whatnot online for learning this stuff, and a lot of languages have free to use editing and compiling software. Look for the GPL tag- that means it's free and awesome.

[Image: mabinogi_morrighan_.JPG]
Find all posts by this user
Quote this message in a reply
07-21-2014, 04:26 AM
Post: #578
RE: Spam Thread
As someone in school formally learning this nerd shit, definitely Google it if it's a passing fancy. That training is expensive.

[Image: Untitled-1.jpg]
Find all posts by this user
Quote this message in a reply
07-21-2014, 06:07 AM
Post: #579
RE: Spam Thread
The only programming language I ever had a formal course in was C++.

Everything else I learned by getting in there and doing it, referring to Google to find code examples and documentation of the different features.

If you're good at tinkering and debugging, making a couple quick projects is enough to pick up a language easily enough.

[Image: mabinogi_morrighan_.JPG]
Find all posts by this user
Quote this message in a reply
07-21-2014, 02:17 PM
Post: #580
RE: Spam Thread
(07-21-2014 06:07 AM)Odin Wrote:  The only programming language I ever had a formal course in was C++.

Everything else I learned by getting in there and doing it, referring to Google to find code examples and documentation of the different features.

If you're good at tinkering and debugging, making a couple quick projects is enough to pick up a language easily enough.

Your motto should be "00101.11010.01010.01111.00010".

When the "G" falls off of the local Graveyard gates.

[Image: tumblr_inline_nbb6221br71r4itqj.gif]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 280 Guest(s)