This site has been archived and made available for preservation purposes. No edits can be made.

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: AI scripts

  1. #11
    Member Silentfood's Avatar
    Join Date
    Jun 2012
    Location
    somewhere in the back of a data centre
    Posts
    57
    Quote Originally Posted by roby65 View Post
    First rule in multiplayer games: never, ever, trust a client. Never.

    What when lamers will find out? They will simply teleport near npcs and manipate their behaviour ruining server for all the players.
    This is not a viable option, ai will be server-side.
    I can see where you are coming from, and I can fully understand the trust issues with players.

  2. #12
    I didn't realize all of that about the cheating and stuff, I just hope people are good enough to program AI to where it's not much different than single player AI.

  3. #13
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Added carter.cpp script, which spawns a Carter NPC who will go and pickup any items in his area.

  4. #14
    Hurr durr derp herp. (post deleted)

  5. #15
    Member Silentfood's Avatar
    Join Date
    Jun 2012
    Location
    somewhere in the back of a data centre
    Posts
    57
    Could you post compiled versions of these scripts? Thanks.

  6. #16
    Senior Member Volumed's Avatar
    Join Date
    Aug 2011
    Location
    Holland
    Posts
    1,010
    Blog Entries
    1
    Quote Originally Posted by Silentfood View Post
    Could you post compiled versions of these scripts? Thanks.
    You got enough time to learn and compile the script yourself in the mean time, AI is not supported in Gary 2.6.

  7. #17
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    https://codepad.org/vJ9Sjtmo

    The script (a modified version of the mutant and some minor other stuff) from this video:

    https://www.youtube.com/watch?v=kJJnm8Li1nU

    (hacked together, not clean, may be buggy, just as an example)

  8. #18
    When I try to build any of these, I get several errors, most notably:

    error: 'F3' has not been declared

    I extracted these to my cloned git vaultscript folder, then copied and edited makefile, changing all instances of "vaultscript" to "ant"/"carter"/"mutant"

    vaultscript does compile normally.

    Ubuntu server 64 bit, build-essential, gcc-multilib, and g++-multilib installed.

  9. #19
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Several (minor) things have changed (namespace F3 has been dropped because there is no more New Vegas support, ActorValues are predefined, GetName function has been renamed to GetBaseName). I updated the scripts in the first post, they should compile fine now.

  10. #20
    Thanks much. I'll have another go at it when I get home.

    And success, ant.so, carter.so, and mutant.so built. Will test next time the Windows computer is up.
    Last edited by ThatOneDude; 08-03-2013 at 01:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •