Whats the issue with adding ai?

  • ROHANman
    17th Dec 2014 Member 0 Permalink

    @Lord_Bowserinator (View Post)
    Can this type of logic be codded in C++ effectivly in the game (The same logic found in the Dan-Ball version). If so, has anyone, or can anyone make a mod out of my suggestion?
    Is there a chance AI might be added.

  • aaaaaaaa
    17th Dec 2014 Member 0 Permalink

    @ROHANman

    Do u think ur good or something!?!

  • ROHANman
    30th Dec 2014 Member 0 Permalink
  • jward212
    30th Dec 2014 Member 0 Permalink

    @ROHANman (View Post)

    @aaaaaaaa (View Post)

     no doubt its possible, its just devs, moders and scripters are just to lazy to do it... or well just see no point in it

    only reason I coded thought headcrabs was a bet after playing half life(and the fact i thought it funny headcrabs attacking stkm)

    If you have the willingness to commit learn a coding language I went from lua knowlege to c++ logic in a week, with a few other languages on the way (html, little bit of python, cmd prompt commands) and never know might even learn java - javascript soon if I take an intrest

    its not hard, open the console type print("hello") the output says hello

    os.execute('start http://www.google.com/') this opens google

    simple commands enhanced with logic

    if...(arithmetic) then

    (do something)

    end

    Edited 2 times by jward212. Last: 1st Jan 2015
  • asdf123
    31st Dec 2014 Member 0 Permalink

    We should have a couple of devs dedicated to creating new elements. Heh heh heh...

  • jacob1
    31st Dec 2014 Developer 0 Permalink
    And also devs dedicated to banning people that create and suggest new elements reviewing those new elements
  • Lord_Bowserinator
    1st Jan 2015 Member 0 Permalink

    @jward212 (View Post)

     C++ is a bit diffrent from python, for example a for loop would be

    for(int i=0;i<x;i++){

    }

     

    instead of

    for(range(0,x)):

     

    and there are more functions like ^= and -- and switch() and private, public, static, const, #define, comments are // instead of #, etc... so really C++ is easier to code some logic like inverting between true and false just do

    bool logic = true;

    logic ^= 1;

    printf(logic);

     

    Also we're not lazy, just busy...

    Edited once by Lord_Bowserinator. Last: 1st Jan 2015
  • FeynmanLogomaker
    1st Jan 2015 Member 0 Permalink
    @jward212 (View Post)
    What do you mean, "too lazy?" The problem with AI isn't that people are too lazy to make it, it's that AI is actually really complex. Just look at the code for TRON - that's pretty advanced, and it doesn't even have very complex behaviour.

    EDIT: unnecessary correction

    Edited 2 times by FeynmanLogomaker. Last: 1st Jan 2015
  • jward212
    1st Jan 2015 Member 0 Permalink

    @Lord_Bowserinator (View Post)

     never said it was alike just said I learnt it along the way to do some file things

    @FeynmanLogomaker (View Post)

     as for the os.excute... I just copyied and pasted from a lua script, some how it was changed, I even before posting checked via the console and worked fine!?!?! It may be the forum link making thing. edited anyway.

     

    well i'm put off coding complex things really quickly, would that be counted as laziness for me

    edit: yes the forum doesn't like quotes around links

    Edited 2 times by jward212. Last: 1st Jan 2015
  • jacob1
    1st Jan 2015 Developer 0 Permalink
    I could probably code an element that gives the appearance of having an AI (not stupid at least), but that doesn't really fit in TPT. savask is the one that added fighters a long time ago >:, that doesn't mean we want to add more stickmen or life to a particle simulation game.

    Also it's not that i'm lazy, I just don't think these things belong in the game. Well ... for every other suggestion i'm just lazy :). I only do bugfixes for TPT anymore.
Locked by jacob1: rejected, too complicated to code ):