Results 1 to 7 of 7

Thread: Libcod2 Linux -> Win

  1. #1
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts

    Libcod2 Linux -> Win

    Hi guys!

    I'd like to make a botmod with high AI, but for this i need some functions such as setAnim(), setStance(), player movement, firing, etc..
    I could inject Mitch's dll and the basic functions worked fine, but when i tried to implement some functions from the forum i failed (yeah i know, lots of them for Kung's linux version).

    And the question: Can someone give me a description, how can i use the linux functions in the windows libcod? (i read Mitch's tutorial) Sadly i never wrote c++ program before, when i will have some time, maybe i should

    Thanks your helps!

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I don't think it is possible to port filthy_freak_'s player movement functions to Windows.
    The required function is a usercall and these calls are almost impossible to use.

    CoD2 Windows 1.3.
    PHP Code:
    hook_play_movement = new cHook(0x0456010, (int)play_movement); 
    PHP Code:
    const void *__usercall sub_456010<eax>(const void *result<eax>, int a2<ecx>) 
    I stopped working on libcod for Windows, because it has too many of these usercalls.
    Last edited by Mitch; 25th July 2015 at 19:37.

  3. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (26th July 2015)

  4. #3
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    Im sorry to hear that I want to forget the waypoint-based pathfinding and make navmesh but i cant without collision detecting. So it would be important to move the bots somehow, i dont like the meatbot's solution. Maybe i will try to freeze the controls and use the setVelocity(), but im not sure if it will work perfectly.
    And what about the other functions?

  5. #4
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Can't help you with Windows, but if you're trying to run a local server you can setup a ubuntu OS using VirtualBox and reconfig the local network so it will show on Windows.

  6. The Following User Says Thank You to filthy_freak_ For This Useful Post:

    kung foo man (26th July 2015)

  7. #5
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    Well, if there is no way to run the complete libcod on win, i have to install an ubuntu But first i want to make the AI, maybe a simple barrel script_model will enough for it. Thanks both of you!

  8. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by randall View Post
    Well, if there is no way to run the complete libcod on win, i have to install an ubuntu But first i want to make the AI, maybe a simple barrel script_model will enough for it. Thanks both of you!
    Windows has support for setAlive. http://killtube.org/showthread.php?1...Alive()-doubts
    So you can test with shooting the AI.

  9. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    randall check your pm s
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

Posting Permissions

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