Results 1 to 7 of 7

in need of links for working on the AI or someone who knows how to fix the HWU AI

  1. #1

    in need of links for working on the AI or someone who knows how to fix the HWU AI

    Recently i had a major set back with our Mod but i managed to stabalize the problem i was having, had to redo the research tree bit by bit, so far i got 3 teams with their research working, but the AI seems to have stopped working, they will harvest but never build crap so im looking for anything that can help me or someone as well aka AJsunrise im looking in your general direction or shadowgaz.

  2. #2
    Does the hw2.log say anything? like repeating process's?

    something like this?

    parameter:
    stack traceback:
    1: function `NumSquadrons' [C]
    2: function `DetermineSpecialDemand' at line 307 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 384 [string ""]
    4: function `CpuBuild_Process' at line 397 [string ""]
    5: function `SpendMoney' at line 94 [string ""]
    6: function `doai' at line 123 [string ""]
    I am a modder, not really much else to say. Tho my xfire is rapid107 if you want to chat about hw2 or modding.

  3. #3
    stack traceback:
    1: main of string "" at line 7
    2: function `dofilepath' [C]
    3: function `OnInit' at line 376 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]

  4. #4
    from the looks of what you posted there's a problem with the research, but this can be hard to identify...

  5. #5
    Member Dim@'s Avatar
    Join Date
    Jul 2007
    Location
    Battlecruiser complete
    You have two problems there, which cannot be properly identified without looking at the files themselves:

    stack traceback:
    1: main of string "" at line 7
    2: function `dofilepath' [C]
    3: function `OnInit' at line 376 [string ""]


    parameter:
    stack traceback:
    1: function `IsResearchDone' [C]
    2: function `DetermineSpecialDemand' at line 896 [string ""]
    3: function `CpuBuild_DefaultShipDemandRules' at line 1103 [string ""]
    4: function `CpuBuild_Process' at line 1133 [string ""]
    5: function `SpendMoney' at line 193 [string ""]
    6: function `doai' at line 243 [string ""]
    Destroying things is easy.
    Creating things is hard.
    Creating things in order to watch them explode is just plain fun.

    Explosion Damage Script, Scripting Tutorial

  6. #6
    To pop in and be annoying, HW2's default AI scripts are exceedingly easy to break by removing anything they expect to be there. Or by mis-typing something. The scrips also don't make a lot of sense when you look at them the first time.

    If you have an even slightly complex tech tree and you're really serious about a solid AI, you're better of hard-coding the behavior more or less from scratch. Which isn't exactly easy but will produce better results than the standard HW2 AI (which is really only designed to work with vanilla HW2). The biggest problem in the AI department is lack of tutorials - and lack of documentation on how the AI works. Most of it is trial and error with a ton of hacks and workarounds until it does what you want it to. At least, in my experience, that's what coding HW2 AI turned out to be.
    Path To Victory

    - I can count to 1024 on my fingers! -

  7. #7
    I dont suppose the Research order could throw off the AI cause AI research file starts off with Hig V kushan etc etc in that order and i redid the research file itself so that order is gone. So could that be causing this issue? What i mean is that our research file no longer goes from Hig V kushan etc, but it does start off with Hig and V.
    EDIT
    I take it back shadowgaz got ahold of a RS file from the 6 of june and the AI is building again, well thats that.
    Last edited by LeviathansWrath; 19th Jun 12 at 7:51 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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